@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,292 @@
|
|
|
1
|
+
import { r as at, h as Y, H as ot, g as lt } from "./index.e5965a8a.js";
|
|
2
|
+
import { a as ct, c as ht, b as dt } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
var ft = ct(function(a) {
|
|
6
|
+
(function(o, r) {
|
|
7
|
+
a.exports ? a.exports = r() : o.balanceText = r();
|
|
8
|
+
})(dt, () => {
|
|
9
|
+
let o, r, l;
|
|
10
|
+
const h = {
|
|
11
|
+
sel: [],
|
|
12
|
+
el: []
|
|
13
|
+
};
|
|
14
|
+
let f = !1, m = !1;
|
|
15
|
+
function T() {
|
|
16
|
+
}
|
|
17
|
+
function w(t, e) {
|
|
18
|
+
Array.prototype.forEach.call(t, e);
|
|
19
|
+
}
|
|
20
|
+
function B(t) {
|
|
21
|
+
document.readyState !== "loading" ? t() : document.addEventListener ? document.addEventListener("DOMContentLoaded", t) : document.attachEvent("onreadystatechange", () => {
|
|
22
|
+
document.readyState !== "loading" && t();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function D(t, e, n, ...i) {
|
|
26
|
+
let s;
|
|
27
|
+
return function() {
|
|
28
|
+
const c = this;
|
|
29
|
+
function S() {
|
|
30
|
+
n || t.apply(c, i), s = null;
|
|
31
|
+
}
|
|
32
|
+
s ? clearTimeout(s) : n && t.apply(c, i), s = setTimeout(S, e || 100);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function I() {
|
|
36
|
+
if (typeof window > "u")
|
|
37
|
+
return !1;
|
|
38
|
+
const { style: t } = document.documentElement;
|
|
39
|
+
return t.textWrap || t.WebkitTextWrap || t.MozTextWrap || t.MsTextWrap;
|
|
40
|
+
}
|
|
41
|
+
function C() {
|
|
42
|
+
this.reset();
|
|
43
|
+
}
|
|
44
|
+
C.prototype.reset = function() {
|
|
45
|
+
this.index = 0, this.width = 0;
|
|
46
|
+
};
|
|
47
|
+
function v(t) {
|
|
48
|
+
return r.some((e) => e.start < t && t < e.end);
|
|
49
|
+
}
|
|
50
|
+
function M(t, e) {
|
|
51
|
+
if (t.nodeType === t.ELEMENT_NODE)
|
|
52
|
+
if (window.getComputedStyle(t).whiteSpace === "nowrap") {
|
|
53
|
+
const i = t.outerHTML.length;
|
|
54
|
+
r.push({ start: l, end: l + i }), l += i;
|
|
55
|
+
} else
|
|
56
|
+
w(t.childNodes, (i) => {
|
|
57
|
+
M(i, !0);
|
|
58
|
+
}), e && (l += t.outerHTML.length - t.innerHTML.length);
|
|
59
|
+
else
|
|
60
|
+
t.nodeType === t.COMMENT_NODE ? l += t.length + 7 : t.nodeType === t.PROCESSING_INSTRUCTION_NODE ? l += t.length + 2 : l += t.length;
|
|
61
|
+
}
|
|
62
|
+
function _(t, e, n) {
|
|
63
|
+
if (n === 0)
|
|
64
|
+
t.style.whiteSpace = e, l = 0, r = [], M(t, !1), t.style.whiteSpace = "nowrap";
|
|
65
|
+
else {
|
|
66
|
+
const i = [];
|
|
67
|
+
r.forEach((s) => {
|
|
68
|
+
s.start > n && i.push({ start: s.start - n, end: s.end - n });
|
|
69
|
+
}), r = i;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function K(t) {
|
|
73
|
+
let e = t.querySelectorAll('br[data-owner="balance-text-hyphen"]');
|
|
74
|
+
w(e, (i) => {
|
|
75
|
+
i.outerHTML = "";
|
|
76
|
+
}), e = t.querySelectorAll('br[data-owner="balance-text"]'), w(e, (i) => {
|
|
77
|
+
i.outerHTML = " ";
|
|
78
|
+
});
|
|
79
|
+
let n = t.querySelectorAll('span[data-owner="balance-text-softhyphen"]');
|
|
80
|
+
if (n.length > 0 && w(n, (i) => {
|
|
81
|
+
const s = document.createTextNode("\xAD");
|
|
82
|
+
i.parentNode.insertBefore(s, i), i.parentNode.removeChild(i);
|
|
83
|
+
}), n = t.querySelectorAll('span[data-owner="balance-text-justify"]'), n.length > 0) {
|
|
84
|
+
let i = "";
|
|
85
|
+
w(n, (s) => {
|
|
86
|
+
i += s.textContent, s.parentNode.removeChild(s);
|
|
87
|
+
}), t.innerHTML = i;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const O = function(t) {
|
|
91
|
+
return (t.currentStyle || window.getComputedStyle(t, null)).textAlign === "justify";
|
|
92
|
+
};
|
|
93
|
+
function d(t, e, n) {
|
|
94
|
+
e = e.trim();
|
|
95
|
+
const i = e.split(" ").length;
|
|
96
|
+
if (e = `${e} `, i < 2)
|
|
97
|
+
return e;
|
|
98
|
+
const s = document.createElement("span");
|
|
99
|
+
s.innerHTML = e, t.appendChild(s);
|
|
100
|
+
const c = s.offsetWidth;
|
|
101
|
+
s.parentNode.removeChild(s);
|
|
102
|
+
const S = Math.floor((n - c) / (i - 1));
|
|
103
|
+
s.style.wordSpacing = `${S}px`, s.setAttribute("data-owner", "balance-text-justify");
|
|
104
|
+
const p = document.createElement("div");
|
|
105
|
+
return p.appendChild(s), p.innerHTML;
|
|
106
|
+
}
|
|
107
|
+
function x(t, e) {
|
|
108
|
+
const n = /([^\S\u00a0]|-|\u2014|\u2013|\u00ad)(?![^<]*>)/g;
|
|
109
|
+
let i;
|
|
110
|
+
if (!o)
|
|
111
|
+
for (o = [], i = n.exec(t); i !== null; )
|
|
112
|
+
v(i.index) || o.push(i.index), i = n.exec(t);
|
|
113
|
+
return o.indexOf(e) !== -1;
|
|
114
|
+
}
|
|
115
|
+
function Q(t, e) {
|
|
116
|
+
return e === 0 || e === t.length || x(t, e - 1) && !x(t, e);
|
|
117
|
+
}
|
|
118
|
+
function b(t, e, n, i, s, c, S) {
|
|
119
|
+
let p;
|
|
120
|
+
if (e && typeof e == "string")
|
|
121
|
+
for (; ; ) {
|
|
122
|
+
for (; !Q(e, c); )
|
|
123
|
+
c += s;
|
|
124
|
+
if (t.innerHTML = e.substr(0, c), p = t.offsetWidth, s < 0) {
|
|
125
|
+
if (p <= i || p <= 0 || c === 0)
|
|
126
|
+
break;
|
|
127
|
+
} else if (i <= p || n <= p || c === e.length)
|
|
128
|
+
break;
|
|
129
|
+
c += s;
|
|
130
|
+
}
|
|
131
|
+
S.index = c, S.width = p;
|
|
132
|
+
}
|
|
133
|
+
function R(t, e) {
|
|
134
|
+
const n = document.createElement("div");
|
|
135
|
+
n.style.display = "block", n.style.position = "absolute", n.style.bottom = 0, n.style.right = 0, n.style.width = 0, n.style.height = 0, n.style.margin = 0, n.style.padding = 0, n.style.visibility = "hidden", n.style.overflow = "hidden";
|
|
136
|
+
const i = document.createElement("span");
|
|
137
|
+
i.style.fontSize = "2000px", i.innerHTML = " ", n.appendChild(i), t.appendChild(n);
|
|
138
|
+
const s = i.getBoundingClientRect();
|
|
139
|
+
n.parentNode.removeChild(n);
|
|
140
|
+
const c = s.height / s.width;
|
|
141
|
+
return e / c;
|
|
142
|
+
}
|
|
143
|
+
function u(t) {
|
|
144
|
+
return t ? typeof t == "string" ? document.querySelectorAll(t) : t.tagName && t.querySelectorAll ? [t] : t : [];
|
|
145
|
+
}
|
|
146
|
+
function $(t) {
|
|
147
|
+
w(u(t), (e) => {
|
|
148
|
+
K(e);
|
|
149
|
+
const i = e.style.whiteSpace, s = e.style.float, c = e.style.display, S = e.style.position, p = e.style.lineHeight;
|
|
150
|
+
e.style.lineHeight = "normal";
|
|
151
|
+
const E = e.offsetWidth, rt = e.offsetHeight;
|
|
152
|
+
e.style.whiteSpace = "nowrap", e.style.float = "none", e.style.display = "inline", e.style.position = "static";
|
|
153
|
+
let U = e.offsetWidth;
|
|
154
|
+
const Z = e.offsetHeight, P = i === "pre-wrap" ? 0 : R(e, Z);
|
|
155
|
+
if (E > 0 && U > E && U < 5e3) {
|
|
156
|
+
let g = e.innerHTML, q = "", N = "";
|
|
157
|
+
const tt = O(e);
|
|
158
|
+
let V = Math.round(rt / Z), et = 0, W, A, y, H, j, nt, X;
|
|
159
|
+
for (; V > 1; )
|
|
160
|
+
o = null, _(e, i, et), W = Math.round((U + P) / V - P), A = Math.round((g.length + 1) / V) - 1, y = new C(), b(e, g, E, W, -1, A, y), H = new C(), A = y.index, b(e, g, E, W, 1, A, H), y.reset(), A = H.index, b(e, g, E, W, -1, A, y), y.index === 0 ? j = H.index : E < H.width || y.index === H.index ? j = y.index : j = Math.abs(W - y.width) < Math.abs(H.width - W) ? y.index : H.index, N = g.substr(0, j).replace(/\s$/, ""), X = Boolean(N.match(/\u00ad$/)), X && (N = N.replace(/\u00ad$/, '<span data-owner="balance-text-softhyphen">-</span>')), tt ? q += d(e, N, E) : (q += N, nt = X || Boolean(N.match(/(-|\u2014|\u2013)$/)), q += nt ? '<br data-owner="balance-text-hyphen" />' : '<br data-owner="balance-text" aria-hidden="true" />'), g = g.substr(j), et = j, V--, e.innerHTML = g, U = e.offsetWidth;
|
|
161
|
+
tt ? e.innerHTML = q + d(e, g, E) : e.innerHTML = q + g;
|
|
162
|
+
}
|
|
163
|
+
e.style.whiteSpace = i, e.style.float = s, e.style.display = c, e.style.position = S, e.style.lineHeight = p;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function z() {
|
|
167
|
+
const t = h.sel.join(","), e = u(t), n = Array.prototype.concat.apply(h.el, e);
|
|
168
|
+
$(n);
|
|
169
|
+
}
|
|
170
|
+
function F() {
|
|
171
|
+
f || (B(z), window.addEventListener("load", z), window.addEventListener("resize", D(z)), f = !0);
|
|
172
|
+
}
|
|
173
|
+
function L(t) {
|
|
174
|
+
typeof t == "string" ? h.sel.push(t) : w(u(t), (e) => {
|
|
175
|
+
h.el.push(e);
|
|
176
|
+
}), F(), z();
|
|
177
|
+
}
|
|
178
|
+
function J(t) {
|
|
179
|
+
typeof t == "string" ? h.sel = h.sel.filter((e) => e !== t) : (t = u(t), h.el = h.el.filter((e) => t.indexOf(e) === -1));
|
|
180
|
+
}
|
|
181
|
+
function G() {
|
|
182
|
+
m || (h.sel.push(".balance-text"), F(), m = !0);
|
|
183
|
+
}
|
|
184
|
+
function k(t, e) {
|
|
185
|
+
t ? e && e.watch === !0 ? L(t) : e && e.watch === !1 ? J(t) : $(t) : G();
|
|
186
|
+
}
|
|
187
|
+
return k.updateWatched = z, I() ? (T.updateWatched = T, T) : k;
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
shave - Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
|
|
192
|
+
@version v5.0.2
|
|
193
|
+
@link https://github.com/yowainwright/shave#readme
|
|
194
|
+
@author Jeff Wainwright <yowainwright@gmail.com> (jeffry.in)
|
|
195
|
+
@license MIT
|
|
196
|
+
**/
|
|
197
|
+
function it(a, o) {
|
|
198
|
+
var r = typeof Symbol == "function" && a[Symbol.iterator];
|
|
199
|
+
if (!r)
|
|
200
|
+
return a;
|
|
201
|
+
var l = r.call(a), h, f = [], m;
|
|
202
|
+
try {
|
|
203
|
+
for (; (o === void 0 || o-- > 0) && !(h = l.next()).done; )
|
|
204
|
+
f.push(h.value);
|
|
205
|
+
} catch (T) {
|
|
206
|
+
m = { error: T };
|
|
207
|
+
} finally {
|
|
208
|
+
try {
|
|
209
|
+
h && !h.done && (r = l.return) && r.call(l);
|
|
210
|
+
} finally {
|
|
211
|
+
if (m)
|
|
212
|
+
throw m.error;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return f;
|
|
216
|
+
}
|
|
217
|
+
function st(a, o, r) {
|
|
218
|
+
if (r || arguments.length === 2)
|
|
219
|
+
for (var l = 0, h = o.length, f; l < h; l++)
|
|
220
|
+
(f || !(l in o)) && (f || (f = Array.prototype.slice.call(o, 0, l)), f[l] = o[l]);
|
|
221
|
+
return a.concat(f || Array.prototype.slice.call(o));
|
|
222
|
+
}
|
|
223
|
+
function ut(a) {
|
|
224
|
+
return typeof a == "string" ? st([], it(document.querySelectorAll(a)), !1) : "length" in a ? st([], it(a), !1) : [a];
|
|
225
|
+
}
|
|
226
|
+
function xt(a, o, r) {
|
|
227
|
+
if (r === void 0 && (r = {}), typeof o > "u" || isNaN(o))
|
|
228
|
+
throw Error("maxHeight is required");
|
|
229
|
+
var l = ut(a);
|
|
230
|
+
if (!!l.length)
|
|
231
|
+
for (var h = r.character, f = h === void 0 ? "\u2026" : h, m = r.classname, T = m === void 0 ? "js-shave" : m, w = r.spaces, B = w === void 0 ? !0 : w, D = r.charclassname, I = D === void 0 ? "js-shave-char" : D, C = r.link, v = C === void 0 ? {} : C, M = typeof B == "boolean" ? B : !0, _ = v && JSON.stringify(v) !== "{}" && v.href, K = _ ? "a" : "span", O = 0; O < l.length; O += 1) {
|
|
232
|
+
var d = l[O], x = d.style, Q = d.querySelector("." + T), b = d.textContent === void 0 ? "innerText" : "textContent";
|
|
233
|
+
Q && (d.removeChild(d.querySelector("." + I)), d[b] = d[b]);
|
|
234
|
+
var R = d[b], u = M ? R.split(" ") : R;
|
|
235
|
+
if (!(u.length < 2)) {
|
|
236
|
+
var $ = x.height;
|
|
237
|
+
x.height = "auto";
|
|
238
|
+
var z = x.maxHeight;
|
|
239
|
+
if (x.maxHeight = "none", d.offsetHeight <= o) {
|
|
240
|
+
x.height = $, x.maxHeight = z;
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
var F = _ && v.textContent ? v.textContent : f, L = document.createElement(K), J = {
|
|
244
|
+
className: I,
|
|
245
|
+
textContent: F
|
|
246
|
+
};
|
|
247
|
+
for (var G in J)
|
|
248
|
+
L[G] = J[G], L.textContent = f;
|
|
249
|
+
if (_)
|
|
250
|
+
for (var k in v)
|
|
251
|
+
L[k] = v[k];
|
|
252
|
+
for (var t = u.length - 1, e = 0, n = void 0; e < t; )
|
|
253
|
+
n = e + t + 1 >> 1, d[b] = M ? u.slice(0, n).join(" ") : u.slice(0, n), d.insertAdjacentElement("beforeend", L), d.offsetHeight > o ? t = n - 1 : e = n;
|
|
254
|
+
d[b] = M ? u.slice(0, t).join(" ") : u.slice(0, t), d.insertAdjacentElement("beforeend", L);
|
|
255
|
+
var i = M ? " ".concat(u.slice(t).join(" ")) : u.slice(t), s = document.createTextNode(i), c = document.createElement("span");
|
|
256
|
+
c.classList.add(T), c.style.display = "none", c.appendChild(s), d.insertAdjacentElement("beforeend", c), x.height = $, x.maxHeight = z;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
const pt = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-swirl-text{box-sizing:border-box}.text.sc-swirl-text{overflow:hidden;margin:0;padding:0}.text--align-start.sc-swirl-text{text-align:start}.text--align-center.sc-swirl-text{text-align:center}.text--align-end.sc-swirl-text{text-align:end}.text--color-default.sc-swirl-text{color:var(--s-text-default)}.text--color-subdued.sc-swirl-text{color:var(--s-text-subdued)}.text--color-critical.sc-swirl-text{color:var(--s-text-critical)}.text--color-success.sc-swirl-text{color:var(--s-text-success)}.text--color-warning.sc-swirl-text{color:var(--s-text-warning)}.text--size-sm.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.text--size-base.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-base.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-lg);line-height:var(--s-line-height-lg)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text--size-xl.sc-swirl-text{font-size:var(--s-font-size-xl);line-height:var(--s-line-height-xl)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-xl.sc-swirl-text{font-size:var(--s-font-size-lg);line-height:var(--s-line-height-lg)}}.text--size-2xl.sc-swirl-text{font-size:var(--s-font-size-2xl);line-height:var(--s-line-height-2xl)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-2xl.sc-swirl-text{font-size:var(--s-font-size-xl);line-height:var(--s-line-height-xl)}}.text--weight-normal.sc-swirl-text{font-weight:var(--s-font-weight-normal)}.text--weight-medium.sc-swirl-text{font-weight:var(--s-font-weight-medium)}.text--weight-semibold.sc-swirl-text{font-weight:var(--s-font-weight-semibold)}.text--weight-bold.sc-swirl-text{font-weight:var(--s-font-weight-bold)}.text--font-style-normal.sc-swirl-text{font-style:normal}.text--font-style-italic.sc-swirl-text{font-style:italic}.text--font-family-code.sc-swirl-text{font-family:var(--s-font-family-code)}.text--truncate.sc-swirl-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.text--truncate-direction-start.sc-swirl-text{direction:rtl;text-align:left}", wt = class {
|
|
261
|
+
constructor(a) {
|
|
262
|
+
at(this, a), this.align = "start", this.as = "p", this.balance = void 0, this.color = "default", this.fontFamily = "text", this.fontStyle = "normal", this.lines = void 0, this.size = "base", this.truncate = void 0, this.truncateDirection = "end", this.weight = "normal";
|
|
263
|
+
}
|
|
264
|
+
componentDidRender() {
|
|
265
|
+
this.rebalance(), this.handleTruncation();
|
|
266
|
+
}
|
|
267
|
+
onWindowResize() {
|
|
268
|
+
this.rebalance(), this.handleTruncation();
|
|
269
|
+
}
|
|
270
|
+
handleTruncation() {
|
|
271
|
+
if (!this.truncate || !Boolean(this.lines) || this.lines === 1)
|
|
272
|
+
return;
|
|
273
|
+
const a = +window.getComputedStyle(this.textEl, null).getPropertyValue("line-height").replace("px", "");
|
|
274
|
+
a > 0 && xt(this.textEl, a * this.lines);
|
|
275
|
+
}
|
|
276
|
+
rebalance() {
|
|
277
|
+
!this.balance || !Boolean(this.textEl) || ft(this.textEl);
|
|
278
|
+
}
|
|
279
|
+
render() {
|
|
280
|
+
const a = this.as, o = ht("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-family-${this.fontFamily}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--truncate-direction-${this.truncateDirection}`, `text--weight-${this.weight}`, {
|
|
281
|
+
"text--truncate": this.truncate && (!Boolean(this.lines) || this.lines === 1)
|
|
282
|
+
});
|
|
283
|
+
return Y(ot, null, Y(a, { class: o, ref: (r) => this.textEl = r }, Y("slot", null)));
|
|
284
|
+
}
|
|
285
|
+
get el() {
|
|
286
|
+
return lt(this);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
wt.style = pt;
|
|
290
|
+
export {
|
|
291
|
+
wt as swirl_text
|
|
292
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { r as a, c as m, h, H as d } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const c = ".sc-swirl-theme-provider-h{display:block}", o = "swirl-preferred-theme", l = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
a(this, e), this.themeChange = m(this, "themeChange", 7), this.setDesignTokens = [], this.config = void 0;
|
|
7
|
+
}
|
|
8
|
+
componentWillLoad() {
|
|
9
|
+
this.resolveConfig(), this.determineOSTheme(), this.updateAppTheme();
|
|
10
|
+
}
|
|
11
|
+
watchConfig() {
|
|
12
|
+
this.resolveConfig(), this.determineOSTheme(), this.updateAppTheme();
|
|
13
|
+
}
|
|
14
|
+
async getActiveOSTheme() {
|
|
15
|
+
return this.appOSTheme;
|
|
16
|
+
}
|
|
17
|
+
async getPreferredOSTheme() {
|
|
18
|
+
if (!!Boolean(this.resolvedConfig.storage))
|
|
19
|
+
return this.resolvedConfig.storage.getItem(o);
|
|
20
|
+
}
|
|
21
|
+
async setPreferredOSTheme(e) {
|
|
22
|
+
!Boolean(this.resolvedConfig.storage) || (this.resolvedConfig.storage.setItem(o, e), this.updateAppTheme());
|
|
23
|
+
}
|
|
24
|
+
async resetPreferredOSTheme() {
|
|
25
|
+
!Boolean(this.resolvedConfig.storage) || (this.resolvedConfig.storage.removeItem(o), this.updateAppTheme());
|
|
26
|
+
}
|
|
27
|
+
resolveConfig() {
|
|
28
|
+
var e, t;
|
|
29
|
+
this.resolvedConfig = {
|
|
30
|
+
...this.config || {},
|
|
31
|
+
rootElement: ((e = this.config) == null ? void 0 : e.rootElement) || document.documentElement,
|
|
32
|
+
storage: ((t = this.config) == null ? void 0 : t.storage) || (window == null ? void 0 : window.localStorage)
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
determineOSTheme() {
|
|
36
|
+
if (!Boolean(window.matchMedia)) {
|
|
37
|
+
this.osTheme = "light";
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
41
|
+
this.osTheme = e.matches ? "dark" : "light", e.addEventListener("change", (t) => {
|
|
42
|
+
this.osTheme = t.matches ? "dark" : "light", this.updateAppTheme();
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async updateAppTheme() {
|
|
46
|
+
this.appOSTheme = await this.getPreferredOSTheme() || this.osTheme, this.appOSTheme === "dark" ? (document.documentElement.classList.remove("theme-light"), document.documentElement.classList.add("theme-dark")) : (document.documentElement.classList.remove("theme-dark"), document.documentElement.classList.add("theme-light")), this.updateTenantVariables(), this.updateTenantAssets();
|
|
47
|
+
const e = {
|
|
48
|
+
activeTheme: await this.getActiveOSTheme(),
|
|
49
|
+
preferredTheme: await this.getPreferredOSTheme()
|
|
50
|
+
};
|
|
51
|
+
(!Boolean(this.recentOSThemeChangeEventData) || e.activeTheme !== this.recentOSThemeChangeEventData.activeTheme || e.preferredTheme !== this.recentOSThemeChangeEventData.preferredTheme) && (this.recentOSThemeChangeEventData = e, this.themeChange.emit(this.recentOSThemeChangeEventData));
|
|
52
|
+
}
|
|
53
|
+
updateTenantAssets() {
|
|
54
|
+
var t, s, r;
|
|
55
|
+
const e = (s = (t = this.resolvedConfig) == null ? void 0 : t.themes) == null ? void 0 : s[this.appOSTheme];
|
|
56
|
+
!Boolean(e) || (r = document.head.querySelector('link[rel="icon"]')) == null || r.setAttribute("href", e.favicon.link);
|
|
57
|
+
}
|
|
58
|
+
updateTenantVariables() {
|
|
59
|
+
var s, r;
|
|
60
|
+
const e = (r = (s = this.resolvedConfig) == null ? void 0 : s.themes) == null ? void 0 : r[this.appOSTheme];
|
|
61
|
+
if (!Boolean(e)) {
|
|
62
|
+
this.resetTenantVariables();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const t = this.resolvedConfig.rootElement;
|
|
66
|
+
this.setDesignTokens = [], e.design_tokens.forEach((i) => {
|
|
67
|
+
const n = `--s-${i.id}`;
|
|
68
|
+
t.style.setProperty(n, `rgba(${i.color.r}, ${i.color.g}, ${i.color.b}, ${i.color.a})`), this.setDesignTokens.push(n);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
resetTenantVariables() {
|
|
72
|
+
const e = this.resolvedConfig.rootElement;
|
|
73
|
+
this.setDesignTokens.forEach((t) => {
|
|
74
|
+
e.style.removeProperty(t);
|
|
75
|
+
}), this.setDesignTokens = [];
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
return h(d, null, h("slot", null));
|
|
79
|
+
}
|
|
80
|
+
static get watchers() {
|
|
81
|
+
return {
|
|
82
|
+
config: ["watchConfig"]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
l.style = c;
|
|
87
|
+
export {
|
|
88
|
+
l as swirl_theme_provider
|
|
89
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { r as h, c, h as a, H as m, g as p } from "./index.e5965a8a.js";
|
|
2
|
+
import { c as f } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { p as r, i as o, f as l, m as v } from "./maska-4866b970.5336f9cb.js";
|
|
4
|
+
import { g as w } from "./utils-9f141e25.a4ae3adc.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const g = ".sc-swirl-time-input-h{display:flex;width:100%}.sc-swirl-time-input-h *.sc-swirl-time-input{box-sizing:border-box}.time-input.sc-swirl-time-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);line-height:var(--s-line-height-sm)}.time-input--inline.sc-swirl-time-input .time-input__icon.sc-swirl-time-input{top:-0.0625rem}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.time-input--inline.sc-swirl-time-input .time-input__icon.sc-swirl-time-input{top:0}}.time-input__input.sc-swirl-time-input{display:inline-flex;width:calc(100% - 1.25rem - var(--s-space-8));margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.time-input__input.sc-swirl-time-input:focus{outline:none}.time-input__input.sc-swirl-time-input:disabled{color:var(--s-text-disabled);background-color:transparent}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.time-input__input.sc-swirl-time-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.time-input__icon.sc-swirl-time-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.time-input__icon.sc-swirl-time-input{top:-0.625rem}}", d = "HH:mm:ss", x = class {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
h(this, e), this.valueChange = c(this, "valueChange", 7), this.desktopMediaQuery = w(), this.desktopMediaQueryHandler = (i) => {
|
|
10
|
+
this.updateIconSize(i.matches);
|
|
11
|
+
}, this.onChange = (i) => {
|
|
12
|
+
const t = i.target.value;
|
|
13
|
+
let s;
|
|
14
|
+
t === "" && (this.value = void 0, this.valueChange.emit(void 0));
|
|
15
|
+
const n = r(t, this.format, new Date()), u = new RegExp(`^${this.format.replace(/[Hhms]/g, "\\d")}$`);
|
|
16
|
+
!Boolean(t.match(u)) || (o(n) ? s = l(n, d) : s = l(new Date(), d), this.value = s, this.valueChange.emit(s));
|
|
17
|
+
}, this.onBlur = (i) => {
|
|
18
|
+
const t = i.target, s = r(t.value, this.format, new Date());
|
|
19
|
+
if (!o(s) && Boolean(this.value)) {
|
|
20
|
+
const n = Boolean(this.value) ? r(this.value, d, new Date()) : void 0;
|
|
21
|
+
(!Boolean(n) || !o(n)) && (this.value = ""), t.value = l(n, this.format);
|
|
22
|
+
}
|
|
23
|
+
}, this.onInput = (i) => {
|
|
24
|
+
this.onChange(i);
|
|
25
|
+
}, this.onClick = (i) => {
|
|
26
|
+
i.preventDefault();
|
|
27
|
+
}, this.onFocus = (i) => {
|
|
28
|
+
this.handleAutoSelect(i);
|
|
29
|
+
}, this.autoFocus = void 0, this.autoSelect = void 0, this.disabled = void 0, this.format = "HH:mm", this.inline = void 0, this.invalid = void 0, this.placeholder = "hh:mm", this.required = void 0, this.swirlAriaDescribedby = void 0, this.value = void 0, this.iconSize = 24;
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
const e = Array.from(document.querySelectorAll("swirl-time-input")).indexOf(this.el);
|
|
33
|
+
this.id = `swirl-time-input-${e}`;
|
|
34
|
+
}
|
|
35
|
+
componentDidLoad() {
|
|
36
|
+
this.setupMask(), this.updateIconSize(this.desktopMediaQuery.matches), this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler, this.autoFocus && setTimeout(() => {
|
|
37
|
+
this.inputEl.focus();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
disconnectedCallback() {
|
|
41
|
+
var e, i, t;
|
|
42
|
+
(e = this.mask) == null || e.destroy(), (t = (i = this.desktopMediaQuery).removeEventListener) == null || t.call(i, "change", this.desktopMediaQueryHandler);
|
|
43
|
+
}
|
|
44
|
+
watchFormat() {
|
|
45
|
+
this.setupMask();
|
|
46
|
+
}
|
|
47
|
+
updateIconSize(e) {
|
|
48
|
+
this.iconSize = e ? 20 : 24;
|
|
49
|
+
}
|
|
50
|
+
handleAutoSelect(e) {
|
|
51
|
+
!this.autoSelect || e.target.select();
|
|
52
|
+
}
|
|
53
|
+
setupMask() {
|
|
54
|
+
var e;
|
|
55
|
+
(e = this.mask) == null || e.destroy(), this.mask = v.create(`#${this.id}`, {
|
|
56
|
+
mask: this.format.replace(/[Hhms]/g, "#")
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const e = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, i = Boolean(this.value) ? r(this.value, d, new Date()) : void 0, t = o(i) ? l(i, this.format) : void 0, s = f("time-input", {
|
|
61
|
+
"time-input--inline": this.inline
|
|
62
|
+
});
|
|
63
|
+
return a(m, null, a("div", { class: s }, a("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-invalid": e, autoFocus: this.autoFocus, class: "time-input__input", disabled: this.disabled, id: this.id, onBlur: this.onBlur, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (n) => this.inputEl = n, required: this.required, type: "text", value: t }), a("span", { class: "time-input__icon" }, a("swirl-icon-time-outlined", { size: this.iconSize }))));
|
|
64
|
+
}
|
|
65
|
+
get el() {
|
|
66
|
+
return p(this);
|
|
67
|
+
}
|
|
68
|
+
static get watchers() {
|
|
69
|
+
return {
|
|
70
|
+
format: ["watchFormat"]
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
x.style = g;
|
|
75
|
+
export {
|
|
76
|
+
x as swirl_time_input
|
|
77
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { r, h as o, H as n } from "./index.e5965a8a.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const h = class {
|
|
5
|
+
constructor(t) {
|
|
6
|
+
r(this, t), this.onDismiss = (s) => {
|
|
7
|
+
this.toasts = [...this.toasts].filter((i) => i.toastId !== s.detail);
|
|
8
|
+
}, this.globalDuration = void 0, this.toasts = [];
|
|
9
|
+
}
|
|
10
|
+
async clearAll() {
|
|
11
|
+
this.toasts = [];
|
|
12
|
+
}
|
|
13
|
+
async dismiss(t) {
|
|
14
|
+
this.toasts = [...this.toasts].filter((s) => s.toastId !== t);
|
|
15
|
+
}
|
|
16
|
+
async toast(t) {
|
|
17
|
+
if (this.toasts.some((a) => a.toastId === t.toastId))
|
|
18
|
+
return;
|
|
19
|
+
let s = this.globalDuration;
|
|
20
|
+
this.globalDuration === void 0 ? s = t.duration : this.globalDuration === 0 && (s = void 0);
|
|
21
|
+
const i = {
|
|
22
|
+
...t,
|
|
23
|
+
createdAt: new Date(),
|
|
24
|
+
duration: s,
|
|
25
|
+
toastId: t.toastId || String(Math.round(Math.random() * 1e4))
|
|
26
|
+
};
|
|
27
|
+
return this.toasts = [...this.toasts, i], i;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return o(n, { role: "status" }, o("swirl-stack", { spacing: "12" }, this.toasts.map((t) => {
|
|
31
|
+
const s = { ...t, content: void 0 };
|
|
32
|
+
return o("swirl-toast", { key: t.toastId, onDismiss: this.onDismiss, ...s }, t.content);
|
|
33
|
+
})));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
h as swirl_toast_provider
|
|
38
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { r as o, c as n, h as i, H as r } from "./index.e5965a8a.js";
|
|
2
|
+
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { g as d } from "./utils-9f141e25.a4ae3adc.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const l = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);box-shadow:var(--s-shadow-level-2)}.toast--intent-critical{background-color:var(--s-surface-critical-default)}.toast--intent-success{background-color:var(--s-surface-success-default)}.toast__icon{display:inline-flex;margin-top:calc(-1 * var(--s-space-2));margin-right:0.625rem;flex-shrink:0}.toast__icon ::part(icon){color:var(--s-icon-on-status)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__icon{margin-top:0}}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left;align-self:flex-start}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__content{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.toast__content ::part(link){color:var(--text-default)}.toast__dismiss-button{display:inline-flex;min-width:1.5rem;height:1.5rem;margin-top:calc(-1 * var(--s-space-2));margin-left:var(--s-space-16);padding:0;flex-shrink:0;justify-content:center;align-items:center;border:none;color:var(--s-text-on-status);background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);cursor:pointer}.toast__dismiss-button ::part(icon){color:var(--s-icon-on-status)}", h = class {
|
|
7
|
+
constructor(s) {
|
|
8
|
+
o(this, s), this.dismiss = n(this, "dismiss", 7), this.desktopMediaQuery = d(), this.desktopMediaQueryHandler = (t) => {
|
|
9
|
+
this.forceIconProps(t.matches);
|
|
10
|
+
}, this.onDismiss = () => {
|
|
11
|
+
this.dismiss.emit(this.toastId);
|
|
12
|
+
}, this.accessibleDismissLabel = "Dismiss", this.content = void 0, this.dismissLabel = void 0, this.duration = void 0, this.icon = void 0, this.intent = "default", this.toastId = void 0;
|
|
13
|
+
}
|
|
14
|
+
watchDuration() {
|
|
15
|
+
this.startTimer();
|
|
16
|
+
}
|
|
17
|
+
componentDidLoad() {
|
|
18
|
+
this.startTimer(), this.forceIconProps(this.desktopMediaQuery.matches), this.desktopMediaQuery.onchange = this.desktopMediaQueryHandler;
|
|
19
|
+
}
|
|
20
|
+
disconnectedCallback() {
|
|
21
|
+
var s, t;
|
|
22
|
+
(t = (s = this.desktopMediaQuery).removeEventListener) == null || t.call(s, "change", this.desktopMediaQueryHandler);
|
|
23
|
+
}
|
|
24
|
+
forceIconProps(s) {
|
|
25
|
+
var a;
|
|
26
|
+
const t = (a = this.iconEl) == null ? void 0 : a.children[0], e = this.dismissIconEl;
|
|
27
|
+
t == null || t.setAttribute("size", s ? "20" : "24"), e == null || e.setAttribute("size", s ? "20" : "24");
|
|
28
|
+
}
|
|
29
|
+
startTimer() {
|
|
30
|
+
this.clearTimer(), this.duration !== void 0 && (this.timeout = setTimeout(() => {
|
|
31
|
+
this.dismiss.emit(this.toastId);
|
|
32
|
+
}, this.duration));
|
|
33
|
+
}
|
|
34
|
+
clearTimer() {
|
|
35
|
+
!Boolean(this.timeout) || (clearTimeout(this.timeout), this.timeout = void 0);
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
const s = c("toast", `toast--intent-${this.intent}`);
|
|
39
|
+
return i(r, null, i("div", { class: s }, this.icon && i("span", { class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (t) => this.iconEl = t }), i("span", { class: "toast__content", innerHTML: this.content, part: "toast__content" }, i("slot", null)), i("button", { "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && i("swirl-icon-close", { ref: (t) => this.dismissIconEl = t }))));
|
|
40
|
+
}
|
|
41
|
+
static get watchers() {
|
|
42
|
+
return {
|
|
43
|
+
duration: ["watchDuration"]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
h.style = l;
|
|
48
|
+
export {
|
|
49
|
+
h as swirl_toast
|
|
50
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r as n, h as s, H as i, g as r } from "./index.e5965a8a.js";
|
|
2
|
+
import { a } from "./utils-9f141e25.a4ae3adc.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const c = ":host{display:block}:host *{box-sizing:border-box}", l = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
n(this, e), this.onKeyDown = (t) => {
|
|
8
|
+
t.code === "ArrowDown" || t.code === "ArrowRight" ? (t.preventDefault(), this.focusNextItem()) : (t.code === "ArrowUp" || t.code === "ArrowLeft") && (t.preventDefault(), this.focusPreviousItem());
|
|
9
|
+
}, this.label = void 0, this.orientation = "horizontal";
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
var o;
|
|
13
|
+
const e = this.getItems();
|
|
14
|
+
this.deactivateTabIndexes(e);
|
|
15
|
+
const t = (o = e[0]) == null ? void 0 : o.querySelector("button");
|
|
16
|
+
!Boolean(t) || (t.tabIndex = 0);
|
|
17
|
+
}
|
|
18
|
+
getItems() {
|
|
19
|
+
return Array.from(this.el.querySelectorAll("swirl-button, swirl-chip"));
|
|
20
|
+
}
|
|
21
|
+
focusNextItem() {
|
|
22
|
+
const e = this.getItems(), o = (this.getActiveItemIndex(e) + 1) % e.length;
|
|
23
|
+
this.focusItem(e[o]);
|
|
24
|
+
}
|
|
25
|
+
focusPreviousItem() {
|
|
26
|
+
const e = this.getItems(), t = this.getActiveItemIndex(e), o = t === 0 ? e.length - 1 : t - 1;
|
|
27
|
+
this.focusItem(e[o]);
|
|
28
|
+
}
|
|
29
|
+
getActiveItemIndex(e) {
|
|
30
|
+
const t = a();
|
|
31
|
+
return e.findIndex((o) => o === (t == null ? void 0 : t.closest("swirl-button, swirl-chip")));
|
|
32
|
+
}
|
|
33
|
+
focusItem(e) {
|
|
34
|
+
const t = this.getItems();
|
|
35
|
+
if (this.deactivateTabIndexes(t), !Boolean(e))
|
|
36
|
+
return;
|
|
37
|
+
const o = e.querySelector("button");
|
|
38
|
+
!Boolean(o) || (o.tabIndex = 0, o.focus());
|
|
39
|
+
}
|
|
40
|
+
deactivateTabIndexes(e) {
|
|
41
|
+
e.forEach((t) => {
|
|
42
|
+
const o = t.querySelector("button");
|
|
43
|
+
!Boolean(o) || (o.tabIndex = -1);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return s(i, null, s("swirl-stack", { align: "center", "aria-label": this.label, "aria-orientation": this.orientation, role: "toolbar", onKeyDown: this.onKeyDown, orientation: this.orientation, spacing: "8" }, s("slot", null)));
|
|
48
|
+
}
|
|
49
|
+
get el() {
|
|
50
|
+
return r(this);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
l.style = c;
|
|
54
|
+
export {
|
|
55
|
+
l as swirl_toolbar
|
|
56
|
+
};
|