@getflip/swirl-components-react 0.0.0-new-shell-20231128130728
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/README.md +4 -0
- package/dist/a11y-dialog.esm-d7a94c8c.bd6ae411.js +99 -0
- package/dist/bodyScrollLock.esm-ce6356d8.2c600fb9.js +93 -0
- package/dist/file-manager.entry.38457ac1.js +57 -0
- package/dist/floating-ui.dom.esm-ac7cc24e.79b318e4.js +780 -0
- package/dist/focus-trap.esm-37cd2d2b.724cca66.js +452 -0
- package/dist/index-d280dafb.186cdb0e.js +71 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.e5965a8a.js +2915 -0
- package/dist/maska-4866b970.5336f9cb.js +5420 -0
- package/dist/sortable.esm-8c3d5856.57c4f048.js +1229 -0
- package/dist/stencil-generated/index.d.ts +306 -0
- package/dist/stencil-generated/react-component-lib/createComponent.d.ts +10 -0
- package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/dist/stencil-generated/react-component-lib/index.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/interfaces.d.ts +29 -0
- package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +12 -0
- package/dist/stencil-generated/react-component-lib/utils/case.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/utils/index.d.ts +10 -0
- package/dist/swirl-accordion-item.entry.741527ea.js +38 -0
- package/dist/swirl-accordion.entry.783de61a.js +36 -0
- package/dist/swirl-action-list-section.entry.7884f6d3.js +15 -0
- package/dist/swirl-action-list_3.entry.336ba911.js +83 -0
- package/dist/swirl-app-bar.entry.1a137585.js +45 -0
- package/dist/swirl-app-icon.entry.0f5a2f97.js +23 -0
- package/dist/swirl-app-layout_6.entry.1521cc72.js +327 -0
- package/dist/swirl-autocomplete.entry.ffefda4d.js +115 -0
- package/dist/swirl-avatar-group.entry.99938460.js +28 -0
- package/dist/swirl-avatar.entry.63c9bc2f.js +48 -0
- package/dist/swirl-badge.entry.f831e3ba.js +19 -0
- package/dist/swirl-banner.entry.62b1b388.js +47 -0
- package/dist/swirl-box.entry.cef3da26.js +42 -0
- package/dist/swirl-button-group.entry.d1365437.js +19 -0
- package/dist/swirl-button.entry.6693fe19.js +61 -0
- package/dist/swirl-card.entry.139358ac.js +43 -0
- package/dist/swirl-carousel-slide.entry.e5aa75c8.js +19 -0
- package/dist/swirl-carousel.entry.022eb63c.js +69 -0
- package/dist/swirl-checkbox.entry.ac8e5f0c.js +30 -0
- package/dist/swirl-chip.entry.58d154bc.js +41 -0
- package/dist/swirl-color-input.entry.03d4a7b0.js +269 -0
- package/dist/swirl-columns.entry.af9bb8c8.js +18 -0
- package/dist/swirl-components-react.js +310 -0
- package/dist/swirl-components-react.umd.cjs +383 -0
- package/dist/swirl-console-layout.entry.da154330.js +68 -0
- package/dist/swirl-date-input.entry.be6f26aa.js +80 -0
- package/dist/swirl-date-picker_2.entry.77533bb6.js +37 -0
- package/dist/swirl-description-list-item.entry.474237ca.js +23 -0
- package/dist/swirl-description-list.entry.87bfbd2c.js +15 -0
- package/dist/swirl-dialog.entry.3406a45d.js +44 -0
- package/dist/swirl-emoji-clap.entry.dc03619c.js +17 -0
- package/dist/swirl-emoji-happy.entry.4f231b56.js +17 -0
- package/dist/swirl-emoji-idea.entry.4ec13295.js +17 -0
- package/dist/swirl-emoji-love.entry.c391767e.js +17 -0
- package/dist/swirl-emoji-sad.entry.59771260.js +17 -0
- package/dist/swirl-emoji-thumbs-up.entry.92b3728b.js +17 -0
- package/dist/swirl-emoji.entry.dcfa7e9a.js +16 -0
- package/dist/swirl-file-uploader.entry.611709a7.js +31 -0
- package/dist/swirl-file-viewer_7.entry.4256e623.js +16427 -0
- package/dist/swirl-form-control.entry.a98574c9.js +86 -0
- package/dist/swirl-form-group.entry.c0c3fc26.js +17 -0
- package/dist/swirl-heading.entry.479591c1.js +26 -0
- package/dist/swirl-icon-add-photo.entry.b56fbf0a.js +17 -0
- package/dist/swirl-icon-add-reaction.entry.bb763e26.js +17 -0
- package/dist/swirl-icon-add_6.entry.e88710ef.js +72 -0
- package/dist/swirl-icon-admin-panel-settings.entry.38529404.js +17 -0
- package/dist/swirl-icon-ai.entry.3947d9fd.js +17 -0
- package/dist/swirl-icon-apps.entry.43da29af.js +17 -0
- package/dist/swirl-icon-arrow-back_3.entry.0ec779cb.js +39 -0
- package/dist/swirl-icon-arrow-downward_2.entry.5db48d10.js +28 -0
- package/dist/swirl-icon-arrow-left_4.entry.a745156f.js +52 -0
- package/dist/swirl-icon-arrow-right-small.entry.f71957dd.js +17 -0
- package/dist/swirl-icon-attachment.entry.7ce2a377.js +17 -0
- package/dist/swirl-icon-bar-chart.entry.b6732a1c.js +17 -0
- package/dist/swirl-icon-block.entry.58cf215a.js +17 -0
- package/dist/swirl-icon-bookmark.entry.54da117b.js +17 -0
- package/dist/swirl-icon-cancel_4.entry.e736ca50.js +50 -0
- package/dist/swirl-icon-chat-bubble.entry.11e43296.js +17 -0
- package/dist/swirl-icon-chats-filled.entry.4ab449f2.js +17 -0
- package/dist/swirl-icon-chats-outlined.entry.a566fe1f.js +17 -0
- package/dist/swirl-icon-check-circle_2.entry.0916adac.js +28 -0
- package/dist/swirl-icon-check-small_3.entry.b0b595f2.js +72 -0
- package/dist/swirl-icon-check-strong.entry.fc27f45d.js +17 -0
- package/dist/swirl-icon-check.entry.1b4002c9.js +17 -0
- package/dist/swirl-icon-chevron-left.entry.1fc94453.js +17 -0
- package/dist/swirl-icon-chevron-right.entry.24f12c52.js +17 -0
- package/dist/swirl-icon-close-small.entry.c1b29419.js +17 -0
- package/dist/swirl-icon-close.entry.75c72236.js +17 -0
- package/dist/swirl-icon-cloud-upload.entry.ab76558e.js +17 -0
- package/dist/swirl-icon-column.entry.d03b751b.js +17 -0
- package/dist/swirl-icon-comment.entry.32016143.js +17 -0
- package/dist/swirl-icon-copy.entry.f61fee12.js +17 -0
- package/dist/swirl-icon-date-range.entry.361b08f0.js +17 -0
- package/dist/swirl-icon-delete.entry.30c5c1ee.js +17 -0
- package/dist/swirl-icon-description.entry.6abae0e8.js +17 -0
- package/dist/swirl-icon-discover.entry.ba59a44e.js +17 -0
- package/dist/swirl-icon-double-arrow-left.entry.a5fa2721.js +17 -0
- package/dist/swirl-icon-double-arrow-right.entry.c88ba872.js +17 -0
- package/dist/swirl-icon-download.entry.42721c06.js +17 -0
- package/dist/swirl-icon-edit.entry.27e2a29a.js +17 -0
- package/dist/swirl-icon-emoji-mood.entry.de2168fe.js +17 -0
- package/dist/swirl-icon-emoji-satisfied.entry.32e0db6e.js +17 -0
- package/dist/swirl-icon-error_3.entry.23cd435a.js +56 -0
- package/dist/swirl-icon-expand-more.entry.b3b48b42.js +17 -0
- package/dist/swirl-icon-filter.entry.03d15319.js +17 -0
- package/dist/swirl-icon-folder.entry.c6401970.js +17 -0
- package/dist/swirl-icon-format-h-one.entry.8cadd550.js +17 -0
- package/dist/swirl-icon-gif.entry.d7d560b9.js +17 -0
- package/dist/swirl-icon-group-add.entry.42f3927e.js +17 -0
- package/dist/swirl-icon-group-assign.entry.cdfc2a9a.js +17 -0
- package/dist/swirl-icon-groups-custom.entry.94cd54d4.js +17 -0
- package/dist/swirl-icon-groups-filled.entry.d2b299a0.js +17 -0
- package/dist/swirl-icon-groups-outlined.entry.68110f5f.js +17 -0
- package/dist/swirl-icon-groups.entry.7b52773f.js +17 -0
- package/dist/swirl-icon-help.entry.d117d224.js +17 -0
- package/dist/swirl-icon-highlight.entry.45458438.js +17 -0
- package/dist/swirl-icon-home.entry.ffea2643.js +17 -0
- package/dist/swirl-icon-image.entry.ebb22d57.js +17 -0
- package/dist/swirl-icon-improve-text.entry.87a5e492.js +17 -0
- package/dist/swirl-icon-info.entry.52c62ada.js +17 -0
- package/dist/swirl-icon-insert-below.entry.de696181.js +17 -0
- package/dist/swirl-icon-insert-on-top.entry.0cf765d3.js +17 -0
- package/dist/swirl-icon-inventory.entry.e7195625.js +17 -0
- package/dist/swirl-icon-like.entry.2e14ba9b.js +17 -0
- package/dist/swirl-icon-link.entry.bb5085a2.js +17 -0
- package/dist/swirl-icon-lock-person.entry.b8433731.js +17 -0
- package/dist/swirl-icon-lock.entry.d7281a35.js +17 -0
- package/dist/swirl-icon-logout.entry.a69beb85.js +17 -0
- package/dist/swirl-icon-long-text.entry.086fe906.js +17 -0
- package/dist/swirl-icon-mail.entry.90a3ccc4.js +17 -0
- package/dist/swirl-icon-manage-accounts.entry.dee2113c.js +17 -0
- package/dist/swirl-icon-mark-chat-read.entry.9498efd3.js +17 -0
- package/dist/swirl-icon-mark-chat-unread.entry.4f09c26a.js +17 -0
- package/dist/swirl-icon-mention.entry.a9f67c22.js +17 -0
- package/dist/swirl-icon-menu-filled.entry.e59223c8.js +17 -0
- package/dist/swirl-icon-menu-outlined.entry.de79a0b2.js +17 -0
- package/dist/swirl-icon-menu.entry.fc7bf22d.js +17 -0
- package/dist/swirl-icon-message.entry.b820c5a1.js +17 -0
- package/dist/swirl-icon-mic.entry.5822c59c.js +17 -0
- package/dist/swirl-icon-more-horizontal.entry.7d3a8710.js +17 -0
- package/dist/swirl-icon-news-filled.entry.4a5bf3ab.js +17 -0
- package/dist/swirl-icon-news-outlined.entry.7ac5345b.js +17 -0
- package/dist/swirl-icon-notifications-active.entry.c5e7bf02.js +17 -0
- package/dist/swirl-icon-notifications-off.entry.39f48267.js +17 -0
- package/dist/swirl-icon-notifications.entry.d1db0a12.js +17 -0
- package/dist/swirl-icon-open-in-full.entry.88f52ffe.js +17 -0
- package/dist/swirl-icon-open-in-new.entry.3c1c0e70.js +17 -0
- package/dist/swirl-icon-pause-circle.entry.cd2e5f9e.js +17 -0
- package/dist/swirl-icon-pause.entry.687dd24e.js +17 -0
- package/dist/swirl-icon-people-alt.entry.b76529d4.js +17 -0
- package/dist/swirl-icon-person-off.entry.2775268a.js +17 -0
- package/dist/swirl-icon-person.entry.57275ca5.js +17 -0
- package/dist/swirl-icon-phone.entry.c5f47f81.js +17 -0
- package/dist/swirl-icon-play-arrow.entry.26280a6b.js +17 -0
- package/dist/swirl-icon-poll.entry.24788fe9.js +17 -0
- package/dist/swirl-icon-print.entry.cf8aa941.js +17 -0
- package/dist/swirl-icon-recieved.entry.16fc1aa0.js +17 -0
- package/dist/swirl-icon-reply.entry.09bffb40.js +17 -0
- package/dist/swirl-icon-report.entry.803f0403.js +17 -0
- package/dist/swirl-icon-roadmap.entry.3ffab30d.js +17 -0
- package/dist/swirl-icon-search-strong.entry.5d2b23cb.js +17 -0
- package/dist/swirl-icon-search.entry.d68b61f9.js +17 -0
- package/dist/swirl-icon-secure.entry.8d4d2b9c.js +17 -0
- package/dist/swirl-icon-send.entry.2b82872e.js +17 -0
- package/dist/swirl-icon-settings.entry.1e929864.js +17 -0
- package/dist/swirl-icon-short-text.entry.73801734.js +17 -0
- package/dist/swirl-icon-simplify.entry.413061f3.js +17 -0
- package/dist/swirl-icon-spellcheck.entry.a946c908.js +17 -0
- package/dist/swirl-icon-stop.entry.0c8b21b3.js +17 -0
- package/dist/swirl-icon-sync.entry.6f002cab.js +17 -0
- package/dist/swirl-icon-tasks-filled.entry.905208ce.js +17 -0
- package/dist/swirl-icon-tasks-outlined.entry.69893e5a.js +17 -0
- package/dist/swirl-icon-time-filled.entry.5118c56c.js +17 -0
- package/dist/swirl-icon-time-outlined.entry.2289a356.js +17 -0
- package/dist/swirl-icon-translate.entry.bdba5fac.js +17 -0
- package/dist/swirl-icon-tree-structure.entry.43cd78ef.js +17 -0
- package/dist/swirl-icon-undo.entry.d7e7ea40.js +17 -0
- package/dist/swirl-icon-unlock-person.entry.245d9be9.js +17 -0
- package/dist/swirl-icon-user-add.entry.0054b073.js +17 -0
- package/dist/swirl-icon-user-assign.entry.d4e5543f.js +17 -0
- package/dist/swirl-icon-video-camera.entry.797b8e28.js +17 -0
- package/dist/swirl-icon-video-library.entry.4d2f0731.js +17 -0
- package/dist/swirl-icon-voice.entry.ce8471dd.js +17 -0
- package/dist/swirl-icon.entry.176c73f4.js +16 -0
- package/dist/swirl-image-grid-item.entry.1c92d9a1.js +19 -0
- package/dist/swirl-image-grid.entry.f759570d.js +25 -0
- package/dist/swirl-inline-notification.entry.2160dcb6.js +17 -0
- package/dist/swirl-inline-status.entry.5397827b.js +36 -0
- package/dist/swirl-lightbox.entry.1258a9dc.js +131 -0
- package/dist/swirl-link.entry.562be9b0.js +17 -0
- package/dist/swirl-list.entry.3533e6c1.js +18 -0
- package/dist/swirl-menu-item.entry.c987b0f9.js +76 -0
- package/dist/swirl-menu.entry.bb36d68d.js +166 -0
- package/dist/swirl-modal.entry.8545ad1c.js +118 -0
- package/dist/swirl-option-list-section.entry.c3ade3d4.js +15 -0
- package/dist/swirl-option-list_2.entry.bd00e9dc.js +210 -0
- package/dist/swirl-pagination.entry.471f5873.js +38 -0
- package/dist/swirl-pdf-reader.entry.dbd37982.js +98 -0
- package/dist/swirl-popover_2.entry.e45966ae.js +177 -0
- package/dist/swirl-progress-indicator.entry.244caaf6.js +17 -0
- package/dist/swirl-radio-group.entry.0ae54e53.js +35 -0
- package/dist/swirl-radio.entry.cdfac28b.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.4c50dd4a.js +35 -0
- package/dist/swirl-search.entry.002c73f2.js +50 -0
- package/dist/swirl-select.entry.6467db20.js +79 -0
- package/dist/swirl-shell-layout.entry.62ba60c3.js +85 -0
- package/dist/swirl-shell-navigation-item.entry.91b49950.js +136 -0
- package/dist/swirl-skeleton-box.entry.5c0428ca.js +31 -0
- package/dist/swirl-skeleton-text.entry.924203e6.js +38 -0
- package/dist/swirl-stack.entry.bef2eb97.js +17 -0
- package/dist/swirl-status-indicator.entry.5fe381d5.js +17 -0
- package/dist/swirl-switch.entry.57a8e80c.js +55 -0
- package/dist/swirl-symbol-account-circle.entry.33ff8e3a.js +17 -0
- package/dist/swirl-symbol-alternate-email.entry.7da7c845.js +17 -0
- package/dist/swirl-symbol-android.entry.bf4bbe6b.js +17 -0
- package/dist/swirl-symbol-announcement.entry.8993582b.js +17 -0
- package/dist/swirl-symbol-backup.entry.8d96216d.js +17 -0
- package/dist/swirl-symbol-beach-access.entry.56b385aa.js +17 -0
- package/dist/swirl-symbol-bookmark.entry.538be734.js +17 -0
- package/dist/swirl-symbol-cloud.entry.a2e031c5.js +17 -0
- package/dist/swirl-symbol-coronavirus.entry.7b565347.js +17 -0
- package/dist/swirl-symbol-desktop-windows.entry.3b148f81.js +17 -0
- package/dist/swirl-symbol-directions-car-filled.entry.317ab14a.js +17 -0
- package/dist/swirl-symbol-edit-calendar.entry.d2a64bb9.js +17 -0
- package/dist/swirl-symbol-email.entry.9cfaa4d2.js +17 -0
- package/dist/swirl-symbol-emoji-food-beverage.entry.3f9c9e01.js +17 -0
- package/dist/swirl-symbol-event-menu.entry.54a2bf4e.js +17 -0
- package/dist/swirl-symbol-facebook.entry.4553184a.js +17 -0
- package/dist/swirl-symbol-favorite.entry.2c9c7a78.js +17 -0
- package/dist/swirl-symbol-fitness-center.entry.26364c64.js +17 -0
- package/dist/swirl-symbol-flag.entry.95bff9f4.js +17 -0
- package/dist/swirl-symbol-folder.entry.87817dd9.js +17 -0
- package/dist/swirl-symbol-globe.entry.dacfeb5a.js +17 -0
- package/dist/swirl-symbol-groups.entry.399985e4.js +17 -0
- package/dist/swirl-symbol-help.entry.d884a11e.js +17 -0
- package/dist/swirl-symbol-image.entry.a6e56ccf.js +17 -0
- package/dist/swirl-symbol-info-menu.entry.f809ed59.js +17 -0
- package/dist/swirl-symbol-instagram.entry.1512e9b3.js +17 -0
- package/dist/swirl-symbol-ios.entry.56949a46.js +17 -0
- package/dist/swirl-symbol-language.entry.b47fb5c1.js +17 -0
- package/dist/swirl-symbol-leaderboard.entry.2f74c121.js +17 -0
- package/dist/swirl-symbol-lightbulb.entry.3bb1d749.js +17 -0
- package/dist/swirl-symbol-linkedin.entry.ae55477b.js +17 -0
- package/dist/swirl-symbol-location-on.entry.ed4ba5c5.js +17 -0
- package/dist/swirl-symbol-loyalty.entry.74ef2180.js +17 -0
- package/dist/swirl-symbol-maps-home-work.entry.93df095c.js +17 -0
- package/dist/swirl-symbol-notifications.entry.d4dc1955.js +17 -0
- package/dist/swirl-symbol-open-in-new.entry.288d063a.js +17 -0
- package/dist/swirl-symbol-pedal-bike.entry.91c0a151.js +17 -0
- package/dist/swirl-symbol-pinterest.entry.6b83e6df.js +17 -0
- package/dist/swirl-symbol-policy.entry.b54305f1.js +17 -0
- package/dist/swirl-symbol-push-pin.entry.51183455.js +17 -0
- package/dist/swirl-symbol-redeem.entry.4e4e4309.js +17 -0
- package/dist/swirl-symbol-report-problem.entry.99c33202.js +17 -0
- package/dist/swirl-symbol-restaurant.entry.082d53e9.js +17 -0
- package/dist/swirl-symbol-roadmap.entry.3704828e.js +17 -0
- package/dist/swirl-symbol-room.entry.c1818bfb.js +17 -0
- package/dist/swirl-symbol-savings.entry.e881d2ac.js +17 -0
- package/dist/swirl-symbol-settings-voice.entry.47c52d64.js +17 -0
- package/dist/swirl-symbol-shopping-cart.entry.352b3b43.js +17 -0
- package/dist/swirl-symbol-smartphone.entry.9adf156e.js +17 -0
- package/dist/swirl-symbol-star.entry.bc31986d.js +17 -0
- package/dist/swirl-symbol-supervisor-account.entry.822989a8.js +17 -0
- package/dist/swirl-symbol-thumbs-up-down.entry.991030ac.js +17 -0
- package/dist/swirl-symbol-twitter.entry.cc122704.js +17 -0
- package/dist/swirl-symbol-wb-sunny.entry.85d7ceb7.js +17 -0
- package/dist/swirl-symbol-wechat.entry.d36b55ff.js +17 -0
- package/dist/swirl-symbol-weibo.entry.5e44d3d2.js +17 -0
- package/dist/swirl-symbol-work.entry.ceb7e06f.js +17 -0
- package/dist/swirl-symbol-xing.entry.c525dbdd.js +17 -0
- package/dist/swirl-symbol-youtube.entry.8e29b40e.js +17 -0
- package/dist/swirl-symbol.entry.d2bb6d18.js +16 -0
- package/dist/swirl-tab-bar.entry.5b121baa.js +33 -0
- package/dist/swirl-tab.entry.ce9ecb2f.js +17 -0
- package/dist/swirl-table-cell.entry.0786f246.js +15 -0
- package/dist/swirl-table-column.entry.d1695dea.js +28 -0
- package/dist/swirl-table-row-group.entry.847b500b.js +19 -0
- package/dist/swirl-table-row.entry.7e3632b7.js +27 -0
- package/dist/swirl-table.entry.45de7a03.js +133 -0
- package/dist/swirl-tabs.entry.fddd66a4.js +62 -0
- package/dist/swirl-text-input.entry.f491a11d.js +85 -0
- package/dist/swirl-text.entry.5dafa051.js +292 -0
- package/dist/swirl-theme-provider.entry.9e7b2687.js +89 -0
- package/dist/swirl-time-input.entry.f73e1530.js +77 -0
- package/dist/swirl-toast-provider.entry.bdedbabb.js +38 -0
- package/dist/swirl-toast.entry.da5981d7.js +50 -0
- package/dist/swirl-toolbar.entry.d3b712e4.js +56 -0
- package/dist/swirl-tooltip.entry.302000cf.js +95 -0
- package/dist/swirl-tree-navigation-item.entry.ed1a5937.js +25 -0
- package/dist/swirl-video-thumbnail.entry.370b16e1.js +88 -0
- package/dist/swirl-visually-hidden.entry.d86c6ecd.js +15 -0
- package/dist/utils-9f141e25.a4ae3adc.js +61 -0
- package/dist/v4-fa4bb814.196482d9.js +33 -0
- package/dist/vite-env.d.ts +1 -0
- package/dist/wc-datepicker.entry.0537b021.js +274 -0
- package/package.json +33 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { r as n, h as i, H as r } from "./index.e5965a8a.js";
|
|
2
|
+
import { c as l, a as p, o as h, s as d, f as c } from "./floating-ui.dom.esm-ac7cc24e.79b318e4.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const u = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:absolute;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);animation:tooltip-fade-in 0.2s;animation-delay:0.1s;animation-fill-mode:forwards;opacity:0}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}", m = class {
|
|
6
|
+
constructor(s) {
|
|
7
|
+
n(this, s), this.onKeydown = (t) => {
|
|
8
|
+
t.code === "Escape" && this.hide();
|
|
9
|
+
}, this.reposition = async () => {
|
|
10
|
+
!Boolean(this.referenceEl) || !Boolean(this.popperEl) || (this.actualPosition = await l(this.referenceEl, this.popperEl, this.options));
|
|
11
|
+
}, this.show = () => {
|
|
12
|
+
this.visible = !0, requestAnimationFrame(() => {
|
|
13
|
+
this.reposition(), this.disableAutoUpdate = p(this.referenceEl, this.popperEl, this.reposition.bind(this));
|
|
14
|
+
});
|
|
15
|
+
}, this.showWithDelay = () => {
|
|
16
|
+
Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.showTimeout = setTimeout(() => {
|
|
17
|
+
this.show();
|
|
18
|
+
}, this.delay);
|
|
19
|
+
}, this.hide = () => {
|
|
20
|
+
var t;
|
|
21
|
+
Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.visible = !1, (t = this.disableAutoUpdate) == null || t.call(this);
|
|
22
|
+
}, this.updateOptions = () => {
|
|
23
|
+
const t = +getComputedStyle(document.documentElement).getPropertyValue("--s-space-12").replace("rem", "") * 16;
|
|
24
|
+
this.options = {
|
|
25
|
+
middleware: [h(t), d(), c()],
|
|
26
|
+
placement: this.position,
|
|
27
|
+
strategy: "absolute"
|
|
28
|
+
};
|
|
29
|
+
}, this.getArrowStyles = () => {
|
|
30
|
+
var t, e, o, a;
|
|
31
|
+
if (((t = this.actualPosition) == null ? void 0 : t.placement) === "top")
|
|
32
|
+
return {
|
|
33
|
+
top: "100%",
|
|
34
|
+
left: "50%",
|
|
35
|
+
transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
|
|
36
|
+
};
|
|
37
|
+
if (((e = this.actualPosition) == null ? void 0 : e.placement) === "bottom")
|
|
38
|
+
return {
|
|
39
|
+
bottom: "100%",
|
|
40
|
+
left: "50%",
|
|
41
|
+
transform: "translate3d(-50%, 50%, 0) rotate(45deg)"
|
|
42
|
+
};
|
|
43
|
+
if (((o = this.actualPosition) == null ? void 0 : o.placement) === "right")
|
|
44
|
+
return {
|
|
45
|
+
top: "50%",
|
|
46
|
+
right: "100%",
|
|
47
|
+
transform: "translate3d(50%, -50%, 0) rotate(45deg)"
|
|
48
|
+
};
|
|
49
|
+
if (((a = this.actualPosition) == null ? void 0 : a.placement) === "left")
|
|
50
|
+
return {
|
|
51
|
+
top: "50%",
|
|
52
|
+
left: "100%",
|
|
53
|
+
transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
|
|
54
|
+
};
|
|
55
|
+
}, this.content = void 0, this.delay = 300, this.position = "top", this.actualPosition = void 0, this.visible = !1;
|
|
56
|
+
}
|
|
57
|
+
watchPosition() {
|
|
58
|
+
this.updateOptions();
|
|
59
|
+
}
|
|
60
|
+
onMouseEnter() {
|
|
61
|
+
this.showWithDelay();
|
|
62
|
+
}
|
|
63
|
+
onMouseLeave() {
|
|
64
|
+
this.hide();
|
|
65
|
+
}
|
|
66
|
+
onWindowResize() {
|
|
67
|
+
this.reposition();
|
|
68
|
+
}
|
|
69
|
+
onWindowScroll() {
|
|
70
|
+
this.reposition();
|
|
71
|
+
}
|
|
72
|
+
componentWillLoad() {
|
|
73
|
+
this.reposition();
|
|
74
|
+
}
|
|
75
|
+
componentDidLoad() {
|
|
76
|
+
this.updateOptions();
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
var t, e;
|
|
80
|
+
const s = this.getArrowStyles();
|
|
81
|
+
return i(r, { onKeydown: this.onKeydown }, i("span", { class: "tooltip" }, i("span", { class: "tooltip__reference", "aria-describedby": "tooltip", onBlur: this.hide, onClick: this.hide, onFocus: this.show, ref: (o) => this.referenceEl = o, tabIndex: 0 }, i("slot", null)), i("span", { class: "tooltip__popper", ref: (o) => this.popperEl = o, style: {
|
|
82
|
+
top: Boolean(this.actualPosition) ? `${(t = this.actualPosition) == null ? void 0 : t.y}px` : "",
|
|
83
|
+
left: Boolean(this.actualPosition) ? `${(e = this.actualPosition) == null ? void 0 : e.x}px` : ""
|
|
84
|
+
} }, this.visible && i("span", { class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, i("span", { class: "tooltip__content", innerHTML: this.content }), i("span", { class: "tooltip__arrow", style: s })))));
|
|
85
|
+
}
|
|
86
|
+
static get watchers() {
|
|
87
|
+
return {
|
|
88
|
+
position: ["watchPosition"]
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
m.style = u;
|
|
93
|
+
export {
|
|
94
|
+
m as swirl_tooltip
|
|
95
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as a, h as i, H as s, g as r } from "./index.e5965a8a.js";
|
|
2
|
+
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const n = ":host{display:inline-flex;width:100%;height:2.5rem;padding-right:var(--s-space-16);padding-left:calc(var(--s-space-16) + 1.5rem + var(--s-space-8));flex-shrink:0;justify-content:flex-start;align-items:center;color:var(--s-text-default);background-color:transparent;font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);cursor:pointer;gap:calc(var(--s-space-8) - var(--s-space-2))}:host(:hover){background-color:var(--s-surface-hovered)}:host(:active){background-color:var(--s-surface-pressed)}:host(:focus){outline:none}:host(:focus-visible) .tree-navigation-item__label{border-radius:var(--s-border-radius-xs);box-shadow:0 0 0 0.125rem var(--s-focus-default)}:host(.tree-navigation-item--active){background-color:var(--s-surface-raised-default);box-shadow:inset 0.25rem 0 0 0 var(--s-border-highlight)}:host(.tree-navigation-item--active:hover){background-color:var(--s-surface-raised-hovered)}:host(.tree-navigation-item--active:active){background-color:var(--s-surface-raised-pressed)}:host(.tree-navigation-item--has-icon){padding-left:var(--s-space-16)}:host *{box-sizing:border-box}.tree-navigation-item__icon{display:inline-flex}.tree-navigation-item__label{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis;padding-right:var(--s-space-2);padding-left:var(--s-space-2)}", c = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
a(this, e), this.onKeyDown = (t) => {
|
|
8
|
+
t.code === "Enter" && (t.preventDefault(), this.el.click());
|
|
9
|
+
}, this.active = void 0, this.icon = void 0, this.label = void 0;
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const e = o("tree-navigation-item", {
|
|
13
|
+
"tree-navigation-item--active": this.active,
|
|
14
|
+
"tree-navigation-item--has-icon": Boolean(this.icon)
|
|
15
|
+
});
|
|
16
|
+
return i(s, { class: e, onKeyDown: this.onKeyDown, role: "link", tabIndex: 0 }, this.icon && i("span", { class: "tree-navigation-item__icon", innerHTML: this.icon }), i("span", { class: "tree-navigation-item__label" }, this.label));
|
|
17
|
+
}
|
|
18
|
+
get el() {
|
|
19
|
+
return r(this);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
c.style = n;
|
|
23
|
+
export {
|
|
24
|
+
c as swirl_tree_navigation_item
|
|
25
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { r as t, h as n, H as e } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const a = `:host {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host * {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.video-thumbnail {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
border: none;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
container-type: inline-size;
|
|
23
|
+
container-name: video-thumbnail;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.video-thumbnail:after {
|
|
27
|
+
position: absolute;
|
|
28
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
29
|
+
content: "";
|
|
30
|
+
inset: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.video-thumbnail:focus:not(:focus-visible) {
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.video-thumbnail:focus-visible {
|
|
38
|
+
outline-color: var(--s-focus-default);
|
|
39
|
+
outline-offset: var(--s-space-4);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.video-thumbnail__image {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.video-thumbnail__duration {
|
|
47
|
+
position: absolute;
|
|
48
|
+
bottom: var(--s-space-8);
|
|
49
|
+
left: var(--s-space-8);
|
|
50
|
+
padding: var(--s-space-2) var(--s-space-8);
|
|
51
|
+
border-radius: var(--s-border-radius-sm);
|
|
52
|
+
color: var(--s-text-on-image);
|
|
53
|
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
|
|
54
|
+
rgba(255, 255, 255, 0.1);
|
|
55
|
+
font-size: var(--s-font-size-sm);
|
|
56
|
+
font-weight: var(--s-font-weight-medium);
|
|
57
|
+
line-height: var(--s-line-height-sm);
|
|
58
|
+
letter-spacing: var(--s-letter-spacing-tighter);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.video-thumbnail__play-icon {
|
|
62
|
+
position: absolute;
|
|
63
|
+
z-index: 1;
|
|
64
|
+
top: 50%;
|
|
65
|
+
left: 50%;
|
|
66
|
+
width: 2.5rem;
|
|
67
|
+
height: 2.5rem;
|
|
68
|
+
transform: translate3d(-50%, -50%, 0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@container video-thumbnail (min-width: 448px) {
|
|
72
|
+
.video-thumbnail__play-icon {
|
|
73
|
+
width: 3.5rem;
|
|
74
|
+
height: 4.5rem;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`, o = class {
|
|
78
|
+
constructor(i) {
|
|
79
|
+
t(this, i), this.durationLabel = "Duration", this.duration = void 0, this.label = void 0, this.src = void 0;
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
return n(e, null, n("button", { "aria-describedby": this.duration !== void 0 ? "duration" : void 0, "aria-label": this.label, class: "video-thumbnail", type: "button" }, n("img", { alt: "", class: "video-thumbnail__image", loading: "lazy", src: this.src }), this.duration && n("span", { class: "video-thumbnail__duration", id: "duration" }, n("swirl-visually-hidden", null, this.durationLabel), this.duration), n("svg", { class: "video-thumbnail__play-icon", fill: "none", viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg" }, n("path", { d: "M15 14.65V25.35C15 26.1167 15.35 26.7 16.05 27.1C16.75 27.5 17.4333 27.4667 18.1 27L26.4 21.7C27.0333 21.3 27.35 20.7333 27.35 20C27.35 19.2667 27.0333 18.7 26.4 18.3L18.1 13C17.4333 12.5333 16.75 12.5 16.05 12.9C15.35 13.3 15 13.8833 15 14.65ZM20 40C17.2333 40 14.6333 39.4747 12.2 38.424C9.76667 37.3747 7.65 35.95 5.85 34.15C4.05 32.35 2.62533 30.2333 1.576 27.8C0.525334 25.3667 0 22.7667 0 20C0 17.2333 0.525334 14.6333 1.576 12.2C2.62533 9.76667 4.05 7.65 5.85 5.85C7.65 4.05 9.76667 2.62467 12.2 1.574C14.6333 0.524667 17.2333 0 20 0C22.7667 0 25.3667 0.524667 27.8 1.574C30.2333 2.62467 32.35 4.05 34.15 5.85C35.95 7.65 37.3747 9.76667 38.424 12.2C39.4747 14.6333 40 17.2333 40 20C40 22.7667 39.4747 25.3667 38.424 27.8C37.3747 30.2333 35.95 32.35 34.15 34.15C32.35 35.95 30.2333 37.3747 27.8 38.424C25.3667 39.4747 22.7667 40 20 40Z", fill: "white", "fill-opacity": "0.95" }))));
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
o.style = a;
|
|
86
|
+
export {
|
|
87
|
+
o as swirl_video_thumbnail
|
|
88
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r, h as i, H as l } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const e = ".sc-swirl-visually-hidden-h{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)}", n = class {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
r(this, s);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return i(l, null, i("slot", null));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
n.style = e;
|
|
13
|
+
export {
|
|
14
|
+
n as swirl_visually_hidden
|
|
15
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
function f(t, e) {
|
|
2
|
+
return t ? t instanceof ShadowRoot ? f(t.host, e) : t instanceof HTMLElement && t.matches(e) ? t : f(t.parentNode, e) : null;
|
|
3
|
+
}
|
|
4
|
+
function d(t = document) {
|
|
5
|
+
const e = t.activeElement;
|
|
6
|
+
if (!!Boolean(e))
|
|
7
|
+
return Boolean(e.shadowRoot) ? d(e.shadowRoot) : e;
|
|
8
|
+
}
|
|
9
|
+
const w = () => 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)");
|
|
10
|
+
function g(t, e, n = !1) {
|
|
11
|
+
let a;
|
|
12
|
+
return async function() {
|
|
13
|
+
const o = this, l = arguments, s = function() {
|
|
14
|
+
a = null, n || t.apply(o, l);
|
|
15
|
+
}, c = n && !Boolean(a);
|
|
16
|
+
clearTimeout(a), a = setTimeout(s, e), c && t.apply(o, l);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function M(t, e) {
|
|
20
|
+
const n = e.scrollTop, a = n + e.clientHeight, i = e.getBoundingClientRect(), o = t.getBoundingClientRect(), s = {
|
|
21
|
+
top: o.top - i.top,
|
|
22
|
+
right: o.right - i.right,
|
|
23
|
+
bottom: o.bottom - i.bottom,
|
|
24
|
+
left: o.left - i.left
|
|
25
|
+
}.top + n, c = s + t.offsetHeight, u = s < n ? n : s;
|
|
26
|
+
return (c > a ? a : c) - u;
|
|
27
|
+
}
|
|
28
|
+
function T() {
|
|
29
|
+
return !window.matchMedia("(min-width: 768px)").matches;
|
|
30
|
+
}
|
|
31
|
+
function r(t, e, n = []) {
|
|
32
|
+
return t ? t instanceof ShadowRoot ? r(t.host, e, n) : t instanceof HTMLElement && t.matches(e) ? r(t.parentNode, e, [...n, t]) : r(t.parentNode, e, n) : n;
|
|
33
|
+
}
|
|
34
|
+
function b(t, e) {
|
|
35
|
+
function n(i, o) {
|
|
36
|
+
if (!Boolean(o))
|
|
37
|
+
return [];
|
|
38
|
+
const l = Array.from(o.querySelectorAll(i)), s = Boolean(window.HTMLSlotElement) && o instanceof HTMLSlotElement ? o.assignedElements() : [], c = [...Array.from(o.children), ...s], u = o.shadowRoot, m = n(i, u);
|
|
39
|
+
return [
|
|
40
|
+
...l,
|
|
41
|
+
...c.map((h) => n(i, h)).flat(),
|
|
42
|
+
...m
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
return n(e, t).filter((i, o, l) => !l.some((s, c) => s.isSameNode(i) && c > o));
|
|
46
|
+
}
|
|
47
|
+
function B(t) {
|
|
48
|
+
const e = new Date(t);
|
|
49
|
+
return e.setMinutes(e.getMinutes() + e.getTimezoneOffset()), e;
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
d as a,
|
|
53
|
+
M as b,
|
|
54
|
+
f as c,
|
|
55
|
+
g as d,
|
|
56
|
+
w as g,
|
|
57
|
+
T as i,
|
|
58
|
+
r as p,
|
|
59
|
+
b as q,
|
|
60
|
+
B as r
|
|
61
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var s, a = new Uint8Array(16);
|
|
2
|
+
function f() {
|
|
3
|
+
if (!s && (s = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !s))
|
|
4
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
5
|
+
return s(a);
|
|
6
|
+
}
|
|
7
|
+
const i = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
8
|
+
function g(t) {
|
|
9
|
+
return typeof t == "string" && i.test(t);
|
|
10
|
+
}
|
|
11
|
+
var n = [];
|
|
12
|
+
for (var d = 0; d < 256; ++d)
|
|
13
|
+
n.push((d + 256).toString(16).substr(1));
|
|
14
|
+
function p(t) {
|
|
15
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = (n[t[e + 0]] + n[t[e + 1]] + n[t[e + 2]] + n[t[e + 3]] + "-" + n[t[e + 4]] + n[t[e + 5]] + "-" + n[t[e + 6]] + n[t[e + 7]] + "-" + n[t[e + 8]] + n[t[e + 9]] + "-" + n[t[e + 10]] + n[t[e + 11]] + n[t[e + 12]] + n[t[e + 13]] + n[t[e + 14]] + n[t[e + 15]]).toLowerCase();
|
|
16
|
+
if (!g(o))
|
|
17
|
+
throw TypeError("Stringified UUID is invalid");
|
|
18
|
+
return o;
|
|
19
|
+
}
|
|
20
|
+
function y(t, e, o) {
|
|
21
|
+
t = t || {};
|
|
22
|
+
var u = t.random || (t.rng || f)();
|
|
23
|
+
if (u[6] = u[6] & 15 | 64, u[8] = u[8] & 63 | 128, e) {
|
|
24
|
+
o = o || 0;
|
|
25
|
+
for (var r = 0; r < 16; ++r)
|
|
26
|
+
e[o + r] = u[r];
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
29
|
+
return p(u);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
y as v
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { r as R, c as S, h as n, H, g as E } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
function F(e, t) {
|
|
5
|
+
const a = new Date(e);
|
|
6
|
+
return a.setDate(a.getDate() + t), a;
|
|
7
|
+
}
|
|
8
|
+
function V(e, t, a) {
|
|
9
|
+
const s = [], i = b(e), d = i.getDay() === 0 ? 7 : i.getDay(), l = T(e), g = l.getDay() === 0 ? 7 : l.getDay(), D = a === 1 ? 7 : a - 1, f = [], v = [];
|
|
10
|
+
if (t) {
|
|
11
|
+
let p = (7 - a + d) % 7, m = y(i);
|
|
12
|
+
for (; p > 0; )
|
|
13
|
+
f.push(m), m = y(m), p -= 1;
|
|
14
|
+
f.reverse();
|
|
15
|
+
let w = (7 - g + D) % 7, c = C(l);
|
|
16
|
+
for (; w > 0; )
|
|
17
|
+
v.push(c), c = C(c), w -= 1;
|
|
18
|
+
}
|
|
19
|
+
let r = i;
|
|
20
|
+
for (; r.getMonth() === e.getMonth(); )
|
|
21
|
+
s.push(r), r = C(r);
|
|
22
|
+
return [...f, ...s, ...v];
|
|
23
|
+
}
|
|
24
|
+
function b(e) {
|
|
25
|
+
return u(new Date(`${String(P(e)).padStart(4, "0")}-${String(O(e)).padStart(2, "0")}-01`));
|
|
26
|
+
}
|
|
27
|
+
function h(e) {
|
|
28
|
+
if (e instanceof Date)
|
|
29
|
+
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
30
|
+
}
|
|
31
|
+
function T(e) {
|
|
32
|
+
const t = b(e);
|
|
33
|
+
return t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1), t;
|
|
34
|
+
}
|
|
35
|
+
function O(e) {
|
|
36
|
+
return e.getMonth() + 1;
|
|
37
|
+
}
|
|
38
|
+
function K(e) {
|
|
39
|
+
return new Array(12).fill(void 0).map((t, a) => {
|
|
40
|
+
const s = u(new Date(`2006-${String(a + 1).padStart(2, "0")}-01`));
|
|
41
|
+
return Intl.DateTimeFormat(e, {
|
|
42
|
+
month: "long"
|
|
43
|
+
}).format(s);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function C(e) {
|
|
47
|
+
return F(e, 1);
|
|
48
|
+
}
|
|
49
|
+
function N(e) {
|
|
50
|
+
const t = new Date(e);
|
|
51
|
+
return t.setMonth(t.getMonth() + 1), t;
|
|
52
|
+
}
|
|
53
|
+
function B(e) {
|
|
54
|
+
const t = new Date(e);
|
|
55
|
+
return t.setFullYear(t.getFullYear() + 1), t;
|
|
56
|
+
}
|
|
57
|
+
function y(e) {
|
|
58
|
+
return L(e, 1);
|
|
59
|
+
}
|
|
60
|
+
function Y(e) {
|
|
61
|
+
const t = new Date(e);
|
|
62
|
+
return t.setMonth(t.getMonth() - 1), t;
|
|
63
|
+
}
|
|
64
|
+
function x(e) {
|
|
65
|
+
const t = new Date(e);
|
|
66
|
+
return t.setFullYear(t.getFullYear() - 1), t;
|
|
67
|
+
}
|
|
68
|
+
function j(e, t) {
|
|
69
|
+
return new Array(7).fill(void 0).map((a, s) => (e + s) % 7 + 1).map((a) => {
|
|
70
|
+
const s = u(new Date(`2006-01-0${a}`));
|
|
71
|
+
return [
|
|
72
|
+
Intl.DateTimeFormat(t, {
|
|
73
|
+
weekday: "short"
|
|
74
|
+
}).format(s),
|
|
75
|
+
Intl.DateTimeFormat(t, {
|
|
76
|
+
weekday: "long"
|
|
77
|
+
}).format(s)
|
|
78
|
+
];
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function P(e) {
|
|
82
|
+
return e.getFullYear();
|
|
83
|
+
}
|
|
84
|
+
function U(e, t) {
|
|
85
|
+
if (!e || !t || !t.from || !t.to)
|
|
86
|
+
return !1;
|
|
87
|
+
const a = t.from < t.to ? t.from : t.to, s = t.from < t.to ? t.to : t.from;
|
|
88
|
+
return e >= a && e <= s;
|
|
89
|
+
}
|
|
90
|
+
function o(e, t) {
|
|
91
|
+
return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
92
|
+
}
|
|
93
|
+
function u(e) {
|
|
94
|
+
const t = new Date(e);
|
|
95
|
+
return t.setMinutes(t.getMinutes() + t.getTimezoneOffset()), t;
|
|
96
|
+
}
|
|
97
|
+
function L(e, t) {
|
|
98
|
+
const a = new Date(e);
|
|
99
|
+
return a.setDate(a.getDate() - t), a;
|
|
100
|
+
}
|
|
101
|
+
const z = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%)}", q = {
|
|
102
|
+
clearButton: "Clear value",
|
|
103
|
+
monthSelect: "Select month",
|
|
104
|
+
nextMonthButton: "Next month",
|
|
105
|
+
nextYearButton: "Next year",
|
|
106
|
+
picker: "Choose date",
|
|
107
|
+
previousMonthButton: "Previous month",
|
|
108
|
+
previousYearButton: "Previous year",
|
|
109
|
+
todayButton: "Show today",
|
|
110
|
+
yearSelect: "Select year"
|
|
111
|
+
}, G = class {
|
|
112
|
+
constructor(e) {
|
|
113
|
+
R(this, e), this.selectDate = S(this, "selectDate", 7), this.changeMonth = S(this, "changeMonth", 7), this.disabled = !1, this.disableDate = () => !1, this.elementClassName = "wc-datepicker", this.firstDayOfWeek = 0, this.labels = q, this.locale = (navigator == null ? void 0 : navigator.language) || "en-US", this.showClearButton = !1, this.showMonthStepper = !0, this.showTodayButton = !1, this.showYearStepper = !1, this.startDate = h(new Date()), this.init = () => {
|
|
114
|
+
this.currentDate = this.startDate ? u(new Date(this.startDate)) : new Date(), this.updateWeekdays();
|
|
115
|
+
}, this.nextMonth = () => {
|
|
116
|
+
this.updateCurrentDate(N(this.currentDate));
|
|
117
|
+
}, this.nextYear = () => {
|
|
118
|
+
this.updateCurrentDate(B(this.currentDate));
|
|
119
|
+
}, this.previousMonth = () => {
|
|
120
|
+
this.updateCurrentDate(Y(this.currentDate));
|
|
121
|
+
}, this.previousYear = () => {
|
|
122
|
+
this.updateCurrentDate(x(this.currentDate));
|
|
123
|
+
}, this.showToday = () => {
|
|
124
|
+
this.updateCurrentDate(new Date());
|
|
125
|
+
}, this.clear = () => {
|
|
126
|
+
this.value = void 0, this.selectDate.emit(void 0);
|
|
127
|
+
}, this.onClick = (t) => {
|
|
128
|
+
if (this.disabled)
|
|
129
|
+
return;
|
|
130
|
+
const a = t.target.closest("[data-date]");
|
|
131
|
+
if (!Boolean(a))
|
|
132
|
+
return;
|
|
133
|
+
const s = u(new Date(a.dataset.date));
|
|
134
|
+
this.updateCurrentDate(s), this.onSelectDate(s);
|
|
135
|
+
}, this.onMonthSelect = (t) => {
|
|
136
|
+
const a = +t.target.value - 1, s = new Date(this.currentDate);
|
|
137
|
+
s.setMonth(a), this.updateCurrentDate(s);
|
|
138
|
+
}, this.onYearSelect = (t) => {
|
|
139
|
+
let a = +t.target.value;
|
|
140
|
+
const s = t.target;
|
|
141
|
+
isNaN(a) ? (a = new Date().getFullYear(), s.value = String(a)) : a < 0 ? (a = 0, s.value = String(a)) : a > 9999 && (a = 9999, s.value = String(a));
|
|
142
|
+
const i = new Date(this.currentDate);
|
|
143
|
+
i.setFullYear(a), this.updateCurrentDate(i);
|
|
144
|
+
}, this.onKeyDown = (t) => {
|
|
145
|
+
this.disabled || (t.code === "ArrowLeft" ? (t.preventDefault(), this.updateCurrentDate(y(this.currentDate), !0)) : t.code === "ArrowRight" ? (t.preventDefault(), this.updateCurrentDate(C(this.currentDate), !0)) : t.code === "ArrowUp" ? (t.preventDefault(), this.updateCurrentDate(L(this.currentDate, 7), !0)) : t.code === "ArrowDown" ? (t.preventDefault(), this.updateCurrentDate(F(this.currentDate, 7), !0)) : t.code === "PageUp" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(x(this.currentDate), !0) : this.updateCurrentDate(Y(this.currentDate), !0)) : t.code === "PageDown" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(B(this.currentDate), !0) : this.updateCurrentDate(N(this.currentDate), !0)) : t.code === "Home" ? (t.preventDefault(), this.updateCurrentDate(b(this.currentDate), !0)) : t.code === "End" ? (t.preventDefault(), this.updateCurrentDate(T(this.currentDate), !0)) : (t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.onSelectDate(this.currentDate)));
|
|
146
|
+
}, this.onMouseEnter = (t) => {
|
|
147
|
+
if (this.disabled)
|
|
148
|
+
return;
|
|
149
|
+
const a = u(new Date(t.target.closest("td").dataset.date));
|
|
150
|
+
this.hoveredDate = a;
|
|
151
|
+
}, this.onMouseLeave = () => {
|
|
152
|
+
this.hoveredDate = void 0;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
componentWillLoad() {
|
|
156
|
+
this.init();
|
|
157
|
+
}
|
|
158
|
+
watchFirstDayOfWeek() {
|
|
159
|
+
this.updateWeekdays();
|
|
160
|
+
}
|
|
161
|
+
watchLocale() {
|
|
162
|
+
Boolean(this.locale) || (this.locale = (navigator == null ? void 0 : navigator.language) || "en-US"), this.updateWeekdays();
|
|
163
|
+
}
|
|
164
|
+
watchRange() {
|
|
165
|
+
this.value = void 0, this.selectDate.emit(void 0);
|
|
166
|
+
}
|
|
167
|
+
watchStartDate() {
|
|
168
|
+
this.currentDate = this.startDate ? u(new Date(this.startDate)) : new Date();
|
|
169
|
+
}
|
|
170
|
+
watchValue() {
|
|
171
|
+
Boolean(this.value) && (Array.isArray(this.value) && this.value.length >= 1 ? this.currentDate = this.value[0] : this.value instanceof Date && (this.currentDate = this.value));
|
|
172
|
+
}
|
|
173
|
+
componentDidRender() {
|
|
174
|
+
this.moveFocusAfterMonthChanged && (this.focusDate(this.currentDate), this.moveFocusAfterMonthChanged = !1);
|
|
175
|
+
}
|
|
176
|
+
updateWeekdays() {
|
|
177
|
+
this.weekdays = j(this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek, this.locale);
|
|
178
|
+
}
|
|
179
|
+
getClassName(e) {
|
|
180
|
+
return Boolean(e) ? `${this.elementClassName}__${e}` : this.elementClassName;
|
|
181
|
+
}
|
|
182
|
+
getCalendarRows() {
|
|
183
|
+
const e = V(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), t = [];
|
|
184
|
+
for (let a = 0; a < e.length; a += 7) {
|
|
185
|
+
const s = e.slice(a, a + 7);
|
|
186
|
+
t.push(s);
|
|
187
|
+
}
|
|
188
|
+
return t;
|
|
189
|
+
}
|
|
190
|
+
getTitle() {
|
|
191
|
+
if (!!Boolean(this.currentDate))
|
|
192
|
+
return Intl.DateTimeFormat(this.locale, {
|
|
193
|
+
day: "numeric",
|
|
194
|
+
month: "long",
|
|
195
|
+
year: "numeric"
|
|
196
|
+
}).format(this.currentDate);
|
|
197
|
+
}
|
|
198
|
+
focusDate(e) {
|
|
199
|
+
var t;
|
|
200
|
+
(t = this.el.querySelector(`[data-date="${h(e)}"]`)) === null || t === void 0 || t.focus();
|
|
201
|
+
}
|
|
202
|
+
updateCurrentDate(e, t) {
|
|
203
|
+
const a = e.getMonth(), s = e.getFullYear();
|
|
204
|
+
if (s > 9999 || s < 0)
|
|
205
|
+
return;
|
|
206
|
+
(a !== this.currentDate.getMonth() || s !== this.currentDate.getFullYear()) && (this.changeMonth.emit({ month: O(e), year: P(e) }), t && (this.moveFocusAfterMonthChanged = !0)), this.currentDate = e, t && this.focusDate(this.currentDate);
|
|
207
|
+
}
|
|
208
|
+
onSelectDate(e) {
|
|
209
|
+
var t, a;
|
|
210
|
+
if (!this.disableDate(e))
|
|
211
|
+
if (this.isRangeValue(this.value)) {
|
|
212
|
+
const s = ((t = this.value) === null || t === void 0 ? void 0 : t[0]) === void 0 || this.value.length === 2 ? [e] : [this.value[0], e];
|
|
213
|
+
s.length === 2 && s[0] > s[1] && s.reverse();
|
|
214
|
+
const i = s[1] === void 0 ? [h(s[0])] : [h(s[0]), h(s[1])];
|
|
215
|
+
this.value = s, this.selectDate.emit(i);
|
|
216
|
+
} else {
|
|
217
|
+
if (((a = this.value) === null || a === void 0 ? void 0 : a.getTime()) === e.getTime())
|
|
218
|
+
return;
|
|
219
|
+
this.value = e, this.selectDate.emit(h(e));
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
isRangeValue(e) {
|
|
223
|
+
return this.range;
|
|
224
|
+
}
|
|
225
|
+
render() {
|
|
226
|
+
const e = this.showTodayButton || this.showClearButton;
|
|
227
|
+
return n(H, null, n("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
|
|
228
|
+
[this.getClassName()]: !0,
|
|
229
|
+
[`${this.getClassName()}--disabled`]: this.disabled
|
|
230
|
+
}, role: "group" }, n("div", { class: this.getClassName("header") }, n("span", { "aria-atomic": "true", "aria-live": "polite", class: "visually-hidden" }, this.getTitle()), this.showYearStepper && n("button", { "aria-label": this.labels.previousYearButton, class: this.getClassName("previous-year-button"), disabled: this.disabled, innerHTML: this.previousYearButtonContent || void 0, onClick: this.previousYear, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "11 17 6 12 11 7" }), n("polyline", { points: "18 17 13 12 18 7" }))), this.showMonthStepper && n("button", { "aria-label": this.labels.previousMonthButton, class: this.getClassName("previous-month-button"), disabled: this.disabled, innerHTML: this.previousMonthButtonContent || void 0, onClick: this.previousMonth, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "15 18 9 12 15 6" }))), n("span", { class: this.getClassName("current-month") }, n("select", { "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, name: "month", onChange: this.onMonthSelect }, K(this.locale).map((t, a) => n("option", { key: t, selected: this.currentDate.getMonth() === a, value: a + 1 }, t))), n("input", { "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, maxLength: 4, min: 1, name: "year", onChange: this.onYearSelect, type: "number", value: this.currentDate.getFullYear() })), this.showMonthStepper && n("button", { "aria-label": this.labels.nextMonthButton, class: this.getClassName("next-month-button"), disabled: this.disabled, innerHTML: this.nextMonthButtonContent || void 0, onClick: this.nextMonth, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "9 18 15 12 9 6" }))), this.showYearStepper && n("button", { "aria-label": this.labels.nextYearButton, class: this.getClassName("next-year-button"), disabled: this.disabled, innerHTML: this.nextYearButtonContent || void 0, onClick: this.nextYear, type: "button" }, n("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, n("polyline", { points: "13 17 18 12 13 7" }), n("polyline", { points: "6 17 11 12 6 7" })))), n("div", { class: this.getClassName("body") }, n("table", { class: this.getClassName("calendar"), onKeyDown: this.onKeyDown, role: "grid" }, n("thead", { class: this.getClassName("calendar-header") }, n("tr", { class: this.getClassName("weekday-row") }, this.weekdays.map((t) => n("th", { abbr: t[1], class: this.getClassName("weekday"), key: t[0], scope: "col" }, n("span", null, t[0]))))), n("tbody", null, this.getCalendarRows().map((t) => {
|
|
231
|
+
const a = `row-${t[0].getMonth()}-${t[0].getDate()}`;
|
|
232
|
+
return n("tr", { class: this.getClassName("calendar-row"), key: a }, t.map((s) => {
|
|
233
|
+
var i, d, l, g, D;
|
|
234
|
+
const f = o(s, this.currentDate), v = s.getMonth() !== this.currentDate.getMonth(), r = Array.isArray(this.value) ? o(s, this.value[0]) || o(s, this.value[1]) : o(s, this.value), M = this.isRangeValue ? U(s, {
|
|
235
|
+
from: (i = this.value) === null || i === void 0 ? void 0 : i[0],
|
|
236
|
+
to: ((d = this.value) === null || d === void 0 ? void 0 : d[1]) || this.hoveredDate || this.currentDate
|
|
237
|
+
}) : !1, p = Boolean((l = this.value) === null || l === void 0 ? void 0 : l[0]) ? [
|
|
238
|
+
(g = this.value) === null || g === void 0 ? void 0 : g[0],
|
|
239
|
+
((D = this.value) === null || D === void 0 ? void 0 : D[1]) || this.hoveredDate
|
|
240
|
+
].sort((_, I) => _ - I) : [], m = this.range && o(p[0], s), k = this.range && o(p[1], s), w = o(s, new Date()), c = this.disableDate(s), A = `cell-${s.getMonth()}-${s.getDate()}`, $ = {
|
|
241
|
+
[this.getClassName("date")]: !0,
|
|
242
|
+
[this.getClassName("date--current")]: f,
|
|
243
|
+
[this.getClassName("date--disabled")]: c,
|
|
244
|
+
[this.getClassName("date--overflowing")]: v,
|
|
245
|
+
[this.getClassName("date--today")]: w,
|
|
246
|
+
[this.getClassName("date--selected")]: r,
|
|
247
|
+
[this.getClassName("date--in-range")]: M,
|
|
248
|
+
[this.getClassName("date--start")]: m,
|
|
249
|
+
[this.getClassName("date--end")]: k
|
|
250
|
+
}, W = r ? "strong" : w ? "em" : "span";
|
|
251
|
+
return n("td", { "aria-disabled": String(c), "aria-selected": r ? "true" : void 0, class: $, "data-date": h(s), key: A, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: o(s, this.currentDate) && !this.disabled ? 0 : -1 }, n(W, { "aria-hidden": "true" }, s.getDate()), n("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
|
|
252
|
+
day: "numeric",
|
|
253
|
+
month: "long"
|
|
254
|
+
}).format(s)));
|
|
255
|
+
}));
|
|
256
|
+
})))), e && n("div", { class: this.getClassName("footer") }, this.showTodayButton && n("button", { class: this.getClassName("today-button"), disabled: this.disabled, innerHTML: this.todayButtonContent || void 0, onClick: this.showToday, type: "button" }, this.labels.todayButton), this.showClearButton && n("button", { class: this.getClassName("clear-button"), disabled: this.disabled, innerHTML: this.clearButtonContent || void 0, onClick: this.clear, type: "button" }, this.labels.clearButton))));
|
|
257
|
+
}
|
|
258
|
+
get el() {
|
|
259
|
+
return E(this);
|
|
260
|
+
}
|
|
261
|
+
static get watchers() {
|
|
262
|
+
return {
|
|
263
|
+
firstDayOfWeek: ["watchFirstDayOfWeek"],
|
|
264
|
+
locale: ["watchLocale"],
|
|
265
|
+
range: ["watchRange"],
|
|
266
|
+
startDate: ["watchStartDate"],
|
|
267
|
+
value: ["watchValue"]
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
G.style = z;
|
|
272
|
+
export {
|
|
273
|
+
G as wc_datepicker
|
|
274
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@getflip/swirl-components-react",
|
|
3
|
+
"version": "0.0.0-new-shell-20231128130728",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/swirl-components-react.umd.cjs",
|
|
9
|
+
"module": "./dist/swirl-components-react.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/swirl-components-react.js",
|
|
14
|
+
"require": "./dist/swirl-components-react.umd.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc && vite build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@getflip/swirl-components": "0.0.0-new-shell-20231128130728",
|
|
22
|
+
"react": "^18.2.0",
|
|
23
|
+
"react-dom": "^18.2.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/react": "^18.0.18",
|
|
27
|
+
"@types/react-dom": "^18.0.6",
|
|
28
|
+
"@vitejs/plugin-react": "^2.0.1",
|
|
29
|
+
"typescript": "^4.6.4",
|
|
30
|
+
"vite": "^3.2.7",
|
|
31
|
+
"vite-plugin-dts": "^1.6.6"
|
|
32
|
+
}
|
|
33
|
+
}
|