@getflip/swirl-components-react 0.12.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{file-manager.entry.7a321755.js → file-manager.entry.8cbc1f28.js} +2 -2
- package/dist/index.efe53c34.js +1416 -0
- package/dist/stencil-generated/index.d.ts +2 -0
- package/dist/{swirl-action-list-item.entry.6548a6f0.js → swirl-action-list-item.entry.02ce0405.js} +6 -6
- package/dist/{swirl-action-list-section.entry.e12fe159.js → swirl-action-list-section.entry.f224afc1.js} +6 -6
- package/dist/{swirl-action-list.entry.21644ba6.js → swirl-action-list.entry.62ec9277.js} +1 -1
- package/dist/{swirl-app-layout_5.entry.9703e919.js → swirl-app-layout_5.entry.bc3879ae.js} +69 -69
- package/dist/{swirl-autocomplete.entry.4bad6cbf.js → swirl-autocomplete.entry.5de078b7.js} +5 -5
- package/dist/{swirl-avatar-group.entry.d41bfa97.js → swirl-avatar-group.entry.729ba3f3.js} +3 -3
- package/dist/{swirl-avatar.entry.c81909ad.js → swirl-avatar.entry.13e1baed.js} +11 -11
- package/dist/{swirl-badge.entry.7bd8bbda.js → swirl-badge.entry.62460ead.js} +2 -2
- package/dist/{swirl-banner.entry.ef0143b1.js → swirl-banner.entry.2b18d7c1.js} +6 -6
- package/dist/{swirl-button-group.entry.60578a80.js → swirl-button-group.entry.00719321.js} +5 -5
- package/dist/{swirl-button.entry.167120c6.js → swirl-button.entry.549ba1c7.js} +20 -20
- package/dist/{swirl-card.entry.47b41ce9.js → swirl-card.entry.bff9e043.js} +5 -5
- package/dist/{swirl-checkbox.entry.37c16abe.js → swirl-checkbox.entry.75f2100f.js} +11 -11
- package/dist/{swirl-chip.entry.89c2c730.js → swirl-chip.entry.464802b8.js} +6 -6
- package/dist/swirl-components-react.js +62 -60
- package/dist/swirl-components-react.umd.cjs +65 -37
- package/dist/{swirl-console-layout.entry.61b9ad81.js → swirl-console-layout.entry.cc8c37bd.js} +13 -13
- package/dist/{swirl-date-input.entry.f0f6d6ee.js → swirl-date-input.entry.73f77d30.js} +3 -3
- package/dist/{swirl-date-picker_2.entry.91531b84.js → swirl-date-picker_2.entry.452b8553.js} +12 -12
- package/dist/{swirl-description-list-item.entry.99c83045.js → swirl-description-list-item.entry.3768204d.js} +2 -2
- package/dist/{swirl-description-list.entry.724f88d9.js → swirl-description-list.entry.1f7db4de.js} +1 -1
- package/dist/{swirl-dialog.entry.b50cfdb2.js → swirl-dialog.entry.00b57bd2.js} +3 -3
- package/dist/{swirl-file-uploader.entry.f8afd2d4.js → swirl-file-uploader.entry.66681065.js} +3 -3
- package/dist/{swirl-file-viewer_7.entry.8973a210.js → swirl-file-viewer_7.entry.08ef00f1.js} +11 -11
- package/dist/{swirl-form-control.entry.bc87b691.js → swirl-form-control.entry.9ca453e3.js} +8 -8
- package/dist/{swirl-form-group.entry.674e8b3f.js → swirl-form-group.entry.03dbf074.js} +1 -1
- package/dist/{swirl-heading.entry.8e9ded19.js → swirl-heading.entry.7dd77ccf.js} +2 -2
- package/dist/{swirl-icon-add-photo.entry.5a20015c.js → swirl-icon-add-photo.entry.ba89dfdf.js} +1 -1
- package/dist/{swirl-icon-add_4.entry.0844d9ca.js → swirl-icon-add_4.entry.d7f801fe.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.8f932fe7.js → swirl-icon-admin-panel-settings.entry.c9dbbcca.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.c9c0cd69.js → swirl-icon-arrow-back.entry.58f7b782.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.03e4f1bc.js → swirl-icon-arrow-downward_2.entry.0f5605db.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.965aa3ee.js → swirl-icon-arrow-forward.entry.a84eacd5.js} +1 -1
- package/dist/{swirl-icon-arrow-left_3.entry.5cddfb42.js → swirl-icon-arrow-left_3.entry.de27eb55.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.53b648b8.js → swirl-icon-arrow-right-small.entry.bdd5f45a.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.302569e9.js → swirl-icon-attachment.entry.62508dd0.js} +1 -1
- package/dist/{swirl-icon-block.entry.79c5f2b2.js → swirl-icon-block.entry.951fda6d.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.31c7f7d7.js → swirl-icon-cancel_4.entry.26d91767.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.ac1cbfcd.js → swirl-icon-chat-bubble.entry.c74ebaac.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.18c0e11a.js → swirl-icon-chats-filled.entry.e70e9fdc.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.af240396.js → swirl-icon-chats-outlined.entry.1082a0a3.js} +1 -1
- package/dist/{swirl-icon-check-circle.entry.4c0304e9.js → swirl-icon-check-circle.entry.4ec5b3b3.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.c7292189.js → swirl-icon-check-small_4.entry.9b014246.js} +5 -5
- package/dist/{swirl-icon-check-strong.entry.0e1ebe49.js → swirl-icon-check-strong.entry.37aa57d0.js} +1 -1
- package/dist/{swirl-icon-check.entry.bb609d4c.js → swirl-icon-check.entry.d41e074a.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.0faf5ceb.js → swirl-icon-chevron-left.entry.fe7dc664.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.9b9edbac.js → swirl-icon-chevron-right.entry.5e8e4d79.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.47516cb5.js → swirl-icon-close-small.entry.b31af029.js} +1 -1
- package/dist/{swirl-icon-close.entry.f20dd2d1.js → swirl-icon-close.entry.f5741d51.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.5307cd46.js → swirl-icon-cloud-upload.entry.35fbad98.js} +1 -1
- package/dist/{swirl-icon-column.entry.fb461b40.js → swirl-icon-column.entry.0b865410.js} +1 -1
- package/dist/{swirl-icon-comment.entry.7bfbd903.js → swirl-icon-comment.entry.cea3c237.js} +1 -1
- package/dist/{swirl-icon-copy.entry.4c17082a.js → swirl-icon-copy.entry.eba05a98.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.c8ce6402.js → swirl-icon-date-range.entry.d8af244e.js} +1 -1
- package/dist/{swirl-icon-delete.entry.6d3a6a54.js → swirl-icon-delete.entry.a11a8c00.js} +1 -1
- package/dist/{swirl-icon-description.entry.060d019c.js → swirl-icon-description.entry.69379d01.js} +1 -1
- package/dist/{swirl-icon-edit.entry.329a25ea.js → swirl-icon-edit.entry.afdee6ee.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.3fbee1e1.js → swirl-icon-emoji-mood.entry.84ef4d82.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.9fc1863d.js → swirl-icon-emoji-satisfied.entry.3d3bfb6a.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.8209c557.js → swirl-icon-error_3.entry.19f57f10.js} +10 -10
- package/dist/{swirl-icon-expand-more.entry.b2e0a30c.js → swirl-icon-expand-more.entry.41ea2ac1.js} +1 -1
- package/dist/{swirl-icon-file.entry.c0e82b43.js → swirl-icon-file.entry.79171b94.js} +1 -1
- package/dist/{swirl-icon-filter.entry.e26fa57c.js → swirl-icon-filter.entry.eb9f44c4.js} +1 -1
- package/dist/{swirl-icon-folder-shared.entry.0169b375.js → swirl-icon-folder-shared.entry.3fe206a2.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.70e80a6e.js → swirl-icon-group-assign.entry.afd46722.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.d16f5fb9.js → swirl-icon-groups-custom.entry.c72b26de.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.6cccc3d3.js → swirl-icon-groups-filled.entry.cd7b988d.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.2bf03f93.js → swirl-icon-groups-outlined.entry.b0312283.js} +1 -1
- package/dist/{swirl-icon-groups.entry.cbc420c1.js → swirl-icon-groups.entry.151daf33.js} +1 -1
- package/dist/{swirl-icon-help.entry.bca2c9e9.js → swirl-icon-help.entry.c77d6e87.js} +1 -1
- package/dist/{swirl-icon-image.entry.67457d50.js → swirl-icon-image.entry.0addbaa4.js} +1 -1
- package/dist/{swirl-icon-info.entry.0ee58aeb.js → swirl-icon-info.entry.48ebac29.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.1548c8b5.js → swirl-icon-inventory.entry.2c758c71.js} +1 -1
- package/dist/{swirl-icon-like.entry.e9d549b8.js → swirl-icon-like.entry.73f3190f.js} +1 -1
- package/dist/{swirl-icon-link.entry.c442143c.js → swirl-icon-link.entry.4d79e6f2.js} +1 -1
- package/dist/{swirl-icon-lock.entry.d84f882b.js → swirl-icon-lock.entry.6a5247a2.js} +1 -1
- package/dist/{swirl-icon-logout.entry.7a6a96d3.js → swirl-icon-logout.entry.1b0f9eaf.js} +1 -1
- package/dist/{swirl-icon-mail.entry.a7b7df7b.js → swirl-icon-mail.entry.0785fd2b.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.fe2691fc.js → swirl-icon-manage-accounts.entry.ba3fbb8d.js} +1 -1
- package/dist/{swirl-icon-mention.entry.c0368650.js → swirl-icon-mention.entry.aca481a8.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.06cced02.js → swirl-icon-menu-filled.entry.1130810e.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.89dca403.js → swirl-icon-menu-outlined.entry.f9e79a4c.js} +1 -1
- package/dist/{swirl-icon-menu.entry.ff253f8f.js → swirl-icon-menu.entry.9b935d31.js} +1 -1
- package/dist/{swirl-icon-message.entry.b7d9f581.js → swirl-icon-message.entry.5ebfb81e.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.407e51c1.js → swirl-icon-more-horizontal.entry.09a6451e.js} +1 -1
- package/dist/{swirl-icon-more-vertikal.entry.718f85e0.js → swirl-icon-more-vertikal.entry.89f6b61b.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.5134e640.js → swirl-icon-news-filled.entry.0d3ae3b1.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.9c0931c4.js → swirl-icon-news-outlined.entry.9ac2513b.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.c47bbb94.js → swirl-icon-notifications-active.entry.b9d25621.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.d5933059.js → swirl-icon-notifications-off.entry.8034a842.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.b945b795.js → swirl-icon-notifications.entry.09c500dc.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.98a7ed82.js → swirl-icon-open-in-new.entry.fa226bdb.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.646cfc3d.js → swirl-icon-people-alt.entry.c1a65542.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.f5db1b83.js → swirl-icon-person-off.entry.8e0863b0.js} +1 -1
- package/dist/{swirl-icon-person.entry.4b5b54cb.js → swirl-icon-person.entry.d947cd09.js} +1 -1
- package/dist/{swirl-icon-phone.entry.f6c4012a.js → swirl-icon-phone.entry.2f946231.js} +1 -1
- package/dist/{swirl-icon-poll.entry.9ee6b1d2.js → swirl-icon-poll.entry.6908eec3.js} +1 -1
- package/dist/{swirl-icon-print.entry.37f08abb.js → swirl-icon-print.entry.e535b03a.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.f79a1343.js → swirl-icon-recieved.entry.67395082.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.6752b238.js → swirl-icon-search-strong.entry.71a391a2.js} +1 -1
- package/dist/{swirl-icon-search.entry.d152e72f.js → swirl-icon-search.entry.5c0314ce.js} +1 -1
- package/dist/{swirl-icon-send.entry.cafcc526.js → swirl-icon-send.entry.4c79407a.js} +1 -1
- package/dist/{swirl-icon-settings.entry.cdd23f77.js → swirl-icon-settings.entry.5ef094af.js} +1 -1
- package/dist/{swirl-icon-sync.entry.37eed48f.js → swirl-icon-sync.entry.f643527a.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.629446b0.js → swirl-icon-tasks-filled.entry.7f0c37a3.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.21e25bc3.js → swirl-icon-tasks-outlined.entry.cef3b2fc.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.67ee5a24.js → swirl-icon-time-filled.entry.e0e564a7.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.d0eb5d19.js → swirl-icon-time-outlined.entry.73903433.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.8a6b68ea.js → swirl-icon-user-assign.entry.cf6a4007.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.85101910.js → swirl-icon-video-camera.entry.72afd3b1.js} +1 -1
- package/dist/{swirl-icon-warning.entry.330bf12a.js → swirl-icon-warning.entry.4cdf0bec.js} +1 -1
- package/dist/{swirl-lightbox.entry.7a2191eb.js → swirl-lightbox.entry.bc7e89a4.js} +3 -3
- package/dist/{swirl-link.entry.81bd6e0f.js → swirl-link.entry.8f8e0b12.js} +3 -3
- package/dist/{swirl-list.entry.ca7b2daf.js → swirl-list.entry.2a538e3c.js} +1 -1
- package/dist/{swirl-modal.entry.97df470f.js → swirl-modal.entry.0596d11f.js} +13 -13
- package/dist/{swirl-option-list-section.entry.b3b30b8f.js → swirl-option-list-section.entry.4d56d4da.js} +6 -6
- package/dist/{swirl-pagination.entry.0bbbf034.js → swirl-pagination.entry.9b1830ee.js} +6 -6
- package/dist/{swirl-pdf-reader.entry.064e66a5.js → swirl-pdf-reader.entry.a09b2dbe.js} +4 -4
- package/dist/{swirl-popover.entry.1e51f870.js → swirl-popover.entry.4b481d69.js} +5 -5
- package/dist/{swirl-progress-indicator.entry.46470fa4.js → swirl-progress-indicator.entry.a089f7cc.js} +2 -2
- package/dist/{swirl-radio-group.entry.f931de9f.js → swirl-radio-group.entry.c46b0024.js} +2 -2
- package/dist/{swirl-radio.entry.5ccbc5fa.js → swirl-radio.entry.b9b6cbb2.js} +5 -5
- package/dist/{swirl-resource-list-file-item.entry.66329d69.js → swirl-resource-list-file-item.entry.fbbc9f4e.js} +6 -6
- package/dist/{swirl-search.entry.364d373f.js → swirl-search.entry.4fa71c6c.js} +6 -6
- package/dist/{swirl-select.entry.95b1f5bc.js → swirl-select.entry.4877d293.js} +13 -13
- package/dist/{swirl-separator.entry.7c230cd1.js → swirl-separator.entry.44397f27.js} +1 -1
- package/dist/swirl-skeleton-box.entry.93ef0b47.js +32 -0
- package/dist/swirl-skeleton-text.entry.e3190c69.js +39 -0
- package/dist/{swirl-stack.entry.cb1d54ae.js → swirl-stack.entry.3465246e.js} +1 -1
- package/dist/{swirl-switch.entry.895cfbbd.js → swirl-switch.entry.f7349f44.js} +12 -12
- package/dist/swirl-tab.entry.708c3cc7.js +18 -0
- package/dist/{swirl-table-cell.entry.0d4a9b8f.js → swirl-table-cell.entry.d30e7322.js} +1 -1
- package/dist/{swirl-table-column.entry.b1f05cb5.js → swirl-table-column.entry.a093441d.js} +3 -3
- package/dist/{swirl-table-row-group.entry.85368b7a.js → swirl-table-row-group.entry.a468d7ea.js} +2 -2
- package/dist/{swirl-table-row.entry.39f31a4b.js → swirl-table-row.entry.25f02692.js} +5 -5
- package/dist/{swirl-table.entry.cd3a7dde.js → swirl-table.entry.8d1f07ab.js} +11 -11
- package/dist/{swirl-tabs.entry.6dbf6d57.js → swirl-tabs.entry.4e511298.js} +2 -2
- package/dist/{swirl-tag.entry.b0d8059b.js → swirl-tag.entry.5a996c71.js} +8 -8
- package/dist/{swirl-text-input.entry.86bbfa05.js → swirl-text-input.entry.172ba17b.js} +3 -3
- package/dist/{swirl-text.entry.53142b33.js → swirl-text.entry.f502341d.js} +6 -6
- package/dist/{swirl-theme-provider.entry.9cc36512.js → swirl-theme-provider.entry.2564d6c2.js} +13 -13
- package/dist/{swirl-thumbnail.entry.bd0a5c89.js → swirl-thumbnail.entry.9b46d348.js} +5 -5
- package/dist/{swirl-toast-provider.entry.7747ba81.js → swirl-toast-provider.entry.83b4c5b3.js} +6 -6
- package/dist/{swirl-toast.entry.ea517c98.js → swirl-toast.entry.488b7115.js} +6 -6
- package/dist/{swirl-tooltip.entry.71acfc7d.js → swirl-tooltip.entry.630615ba.js} +3 -3
- package/dist/{swirl-tree-navigation-item.entry.59540e7e.js → swirl-tree-navigation-item.entry.1802081c.js} +5 -5
- package/dist/{swirl-video-thumbnail.entry.4546c208.js → swirl-video-thumbnail.entry.7cb8e5ba.js} +2 -2
- package/dist/{swirl-visually-hidden.entry.bbc8b32d.js → swirl-visually-hidden.entry.21a580ff.js} +1 -1
- package/dist/{wc-datepicker.entry.d105e9ee.js → wc-datepicker.entry.389887e4.js} +1 -1
- package/package.json +2 -2
- package/dist/index.149af511.js +0 -1394
- package/dist/swirl-tab.entry.b870a20f.js +0 -18
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as l, h as t, H as a } from "./index.efe53c34.js";
|
|
2
|
+
import { c as s } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const o = `:host{display:block;width:100%}:host *{box-sizing:border-box}.skeleton-text{position:relative}.skeleton-text--static .skeleton-text__line:after{display:none}.skeleton-text--size-sm{--skeleton-text-line-padding:calc(
|
|
7
|
+
(var(--s-line-height-sm) - var(--s-font-size-sm)) / 2
|
|
8
|
+
)}.skeleton-text--size-sm .skeleton-text__line{height:var(--s-line-height-sm);border-radius:calc(var(--s-font-size-sm) / 2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.skeleton-text--size-sm .skeleton-text__line{height:var(--s-line-height-sm)}}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.skeleton-text--size-sm{--skeleton-text-line-padding:calc(
|
|
9
|
+
(var(--s-line-height-sm) - var(--s-font-size-sm)) / 2
|
|
10
|
+
)}}.skeleton-text--size-base{--skeleton-text-line-padding:calc(
|
|
11
|
+
(var(--s-line-height-base) - var(--s-font-size-base)) / 2
|
|
12
|
+
)}.skeleton-text--size-base .skeleton-text__line{height:var(--s-line-height-base);border-radius:calc(var(--s-font-size-base) / 2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.skeleton-text--size-base .skeleton-text__line{height:var(--s-line-height-sm)}}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.skeleton-text--size-base{--skeleton-text-line-padding:calc(
|
|
13
|
+
(var(--s-line-height-sm) - var(--s-font-size-sm)) / 2
|
|
14
|
+
)}}.skeleton-text--size-lg{--skeleton-text-line-padding:calc(
|
|
15
|
+
(var(--s-line-height-lg) - var(--s-font-size-lg)) / 2
|
|
16
|
+
)}.skeleton-text--size-lg .skeleton-text__line{height:var(--s-line-height-lg);border-radius:calc(var(--s-font-size-lg) / 2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.skeleton-text--size-lg .skeleton-text__line{height:var(--s-line-height-base)}}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.skeleton-text--size-lg{--skeleton-text-line-padding:calc(
|
|
17
|
+
(var(--s-line-height-base) - var(--s-font-size-base)) / 2
|
|
18
|
+
)}}.skeleton-text--size-xl{--skeleton-text-line-padding:calc(
|
|
19
|
+
(var(--s-line-height-xl) - var(--s-font-size-xl)) / 2
|
|
20
|
+
)}.skeleton-text--size-xl .skeleton-text__line{height:var(--s-line-height-xl);border-radius:calc(var(--s-font-size-xl) / 2)}.skeleton-text--size-2xl{--skeleton-text-line-padding:calc(
|
|
21
|
+
(var(--s-line-height-2xl) - var(--s-font-size-2xl)) / 2
|
|
22
|
+
)}.skeleton-text--size-2xl .skeleton-text__line{height:var(--s-line-height-2xl);border-radius:calc(var(--s-font-size-2xl) / 2)}.skeleton-text__line{overflow:hidden;width:100%;padding-top:var(--skeleton-text-line-padding);padding-bottom:var(--skeleton-text-line-padding)}.skeleton-text__line:before{display:block;width:100%;height:100%;border-radius:10rem;background-color:var(--s-surface-raised-hovered);content:""}.skeleton-text__line:after{position:relative;z-index:1;top:-100%;display:block;width:100%;height:100%;background-image:linear-gradient(
|
|
23
|
+
90deg,
|
|
24
|
+
rgba(255, 255, 255, 0) 0,
|
|
25
|
+
var(--s-surface-raised-default) 33%,
|
|
26
|
+
rgba(255, 255, 255, 0) 66%
|
|
27
|
+
);content:"";transform:translateX(-100%);-webkit-animation:skeleton-text-shimmer 3s infinite;animation:skeleton-text-shimmer 3s infinite}.skeleton-text__line:first-child:last-child{width:100%}.skeleton-text__line:last-child:not(:first-child){width:25%}@-webkit-keyframes skeleton-text-shimmer{100%{transform:translateX(100%)}}@keyframes skeleton-text-shimmer{100%{transform:translateX(100%)}}`, r = class {
|
|
28
|
+
constructor(e) {
|
|
29
|
+
l(this, e), this.animated = !0, this.lines = 1, this.size = "base";
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
const e = s("skeleton-text", `skeleton-text--size-${this.size}`, { "skeleton-text--static": !this.animated }), i = s("skeleton-text__line", `skeleton-text__line--size-${this.size}`);
|
|
33
|
+
return t(a, null, t("div", { class: e, part: e }, new Array(this.lines).fill(void 0).map((h, n) => t("div", { class: i, key: n, part: i }))));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
r.style = o;
|
|
37
|
+
export {
|
|
38
|
+
r as swirl_skeleton_text
|
|
39
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as h, c as n, h as e, H as a, g as
|
|
2
|
-
import { c as
|
|
1
|
+
import { r as h, c as n, h as e, H as a, g as l } from "./index.efe53c34.js";
|
|
2
|
+
import { c as o } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
6
|
const d = `.sc-swirl-switch-h{display:inline-flex}.sc-swirl-switch-h *.sc-swirl-switch{box-sizing:border-box}.switch.sc-swirl-switch{display:inline-flex;align-items:center;touch-action:none}.switch.sc-swirl-switch:focus-within .switch__control.sc-swirl-switch{box-shadow:0 0 0 0.0625rem var(--s-background-default),
|
|
7
7
|
0 0 0 0.1875rem var(--s-focus-default)}.switch--size-m.sc-swirl-switch .switch__control.sc-swirl-switch{width:2.75rem;height:1.5rem;border-radius:calc(1.5rem / 2)}.switch--size-m.sc-swirl-switch .switch__thumb.sc-swirl-switch{width:1.25rem;height:1.25rem}.switch--on.switch--size-m.sc-swirl-switch .switch__thumb.sc-swirl-switch{left:calc(100% - 1.25rem - var(--s-space-2))}.switch--on.sc-swirl-switch .switch__control.sc-swirl-switch{background-color:var(--s-interactive-primary-default)}.switch--on.sc-swirl-switch .switch__thumb.sc-swirl-switch{left:calc(100% - 0.875rem - var(--s-space-2))}.switch--disabled.sc-swirl-switch .switch__control.sc-swirl-switch{background-color:var(--s-interactive-primary-disabled);cursor:default}.switch--disabled.sc-swirl-switch .switch__thumb.sc-swirl-switch{background-color:var(--s-interactive-neutral-default)}.switch--disabled.sc-swirl-switch .switch__label.sc-swirl-switch{color:var(--s-text-disabled)}.switch__control.sc-swirl-switch{position:relative;width:1.875rem;height:1.125rem;flex-shrink:0;border-radius:calc(1.125rem / 2);background-color:var(--s-interactive-primary-disabled);cursor:pointer;transition:background-color 0.2s}@media (prefers-reduced-motion){.switch__control.sc-swirl-switch{transition:none}}.switch__thumb.sc-swirl-switch{position:absolute;top:var(--s-space-2);left:var(--s-space-2);width:0.875rem;height:0.875rem;border-radius:50%;background-color:var(--s-surface-default);transition:left 0.2s;pointer-events:none}@media (prefers-reduced-motion){.switch__thumb.sc-swirl-switch{transition:none}}.switch__label.sc-swirl-switch{position:relative;z-index:1;margin-left:var(--s-space-12);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base)}`, w = class {
|
|
8
8
|
constructor(c) {
|
|
9
|
-
h(this, c), this.valueChange = n(this, "valueChange", 7), this.
|
|
9
|
+
h(this, c), this.valueChange = n(this, "valueChange", 7), this.dragging = !1, this.recentlyDragged = !1, this.onChange = () => {
|
|
10
10
|
if (!this.dragging) {
|
|
11
11
|
if (this.recentlyDragged) {
|
|
12
12
|
this.recentlyDragged = !1;
|
|
@@ -19,8 +19,8 @@ const d = `.sc-swirl-switch-h{display:inline-flex}.sc-swirl-switch-h *.sc-swirl-
|
|
|
19
19
|
}, this.onEndDrag = () => {
|
|
20
20
|
if (!this.disabled) {
|
|
21
21
|
if (this.recentlyDragged) {
|
|
22
|
-
const i = this.control.getBoundingClientRect(), r = this.thumb.getBoundingClientRect(),
|
|
23
|
-
this.checked !==
|
|
22
|
+
const i = this.control.getBoundingClientRect(), r = this.thumb.getBoundingClientRect(), t = this.thumb.offsetLeft + r.width / 2 > i.width / 2;
|
|
23
|
+
this.checked !== t && (this.checked = t, this.valueChange.emit(t));
|
|
24
24
|
}
|
|
25
25
|
this.thumb.style.left = "", this.thumb.style.transition = "", this.dragging = !1, setTimeout(() => {
|
|
26
26
|
this.recentlyDragged = !1;
|
|
@@ -30,24 +30,24 @@ const d = `.sc-swirl-switch-h{display:inline-flex}.sc-swirl-switch-h *.sc-swirl-
|
|
|
30
30
|
if (!this.dragging)
|
|
31
31
|
return;
|
|
32
32
|
this.recentlyDragged = !0;
|
|
33
|
-
const r = this.control.getBoundingClientRect(),
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
};
|
|
33
|
+
const r = this.control.getBoundingClientRect(), t = this.thumb.getBoundingClientRect();
|
|
34
|
+
let s = Math.round(i.offsetX - t.width / 2);
|
|
35
|
+
s < 0 && (s = 0), s > Math.round(r.width - t.width) && (s = Math.round(r.width - t.width)), this.thumb.style.left = `${s}px`;
|
|
36
|
+
}, this.checked = !1, this.disabled = !1, this.inputId = void 0, this.inputName = void 0, this.label = void 0, this.size = "m", this.value = void 0;
|
|
37
37
|
}
|
|
38
38
|
onWindowPointerUp() {
|
|
39
39
|
this.onEndDrag();
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
const c = !this.checked, i = this.checked, r = i ? "true" : "false",
|
|
42
|
+
const c = !this.checked, i = this.checked, r = i ? "true" : "false", t = o("switch", `switch--size-${this.size}`, {
|
|
43
43
|
"switch--off": c,
|
|
44
44
|
"switch--on": i,
|
|
45
45
|
"switch--disabled": this.disabled
|
|
46
46
|
});
|
|
47
|
-
return e(a, null, e("label", { class:
|
|
47
|
+
return e(a, null, e("label", { class: t, htmlFor: this.inputId }, e("span", { class: "switch__control", onPointerDown: this.onStartDrag, onPointerMove: this.onDrag, onPointerUp: this.onEndDrag, ref: (s) => this.control = s }, e("swirl-visually-hidden", null, e("input", { "aria-checked": r, checked: i, class: "switch__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, role: "switch", type: "checkbox", value: this.value })), e("span", { "aria-hidden": "true", class: "switch__thumb", ref: (s) => this.thumb = s })), this.label && e("span", { class: "switch__label" }, this.label)));
|
|
48
48
|
}
|
|
49
49
|
get el() {
|
|
50
|
-
return
|
|
50
|
+
return l(this);
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
w.style = d;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as a, h as s, H as i } from "./index.efe53c34.js";
|
|
2
|
+
import { c as e } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
+
const r = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{display:none;width:100%;padding:var(--s-space-8)}.tab--active{display:block}", o = class {
|
|
7
|
+
constructor(t) {
|
|
8
|
+
a(this, t), this.active = void 0, this.label = void 0, this.tabId = void 0;
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
const t = e("tab", { "tab--active": this.active });
|
|
12
|
+
return s(i, { "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 }, s("div", { class: t }, s("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
o.style = r;
|
|
16
|
+
export {
|
|
17
|
+
o as swirl_tab
|
|
18
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, h as s, H as e } from "./index.
|
|
1
|
+
import { r as a, h as s, H as e } from "./index.efe53c34.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-background-default);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", l = class {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r, h as t, H as
|
|
1
|
+
import { r as e, h as t, H as r, g as i } from "./index.efe53c34.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padding-right:var(--s-space-16);padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-top:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);background-color:var(--s-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;letter-spacing:var(--s-letter-spacing-tighter);text-overflow:ellipsis;transition:box-shadow 0.15s;gap:var(--s-space-8)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host(.table-column--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-column--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}.table-column__sort-indicator{display:inline-flex;width:1.25rem;height:1.25rem;flex-grow:0;flex-shrink:0}", a = class {
|
|
5
5
|
constructor(s) {
|
|
6
|
-
|
|
6
|
+
e(this, s), this.sort = void 0, this.sortable = void 0, this.maxWidth = void 0, this.minWidth = "fit-content", this.sticky = void 0, this.width = void 0;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
const s = {
|
|
@@ -11,7 +11,7 @@ const o = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padd
|
|
|
11
11
|
maxWidth: this.maxWidth || "",
|
|
12
12
|
minWidth: this.minWidth || ""
|
|
13
13
|
};
|
|
14
|
-
return t(
|
|
14
|
+
return t(r, { "aria-sort": this.sort, class: "table-column", role: "columnheader", style: s }, t("span", null, t("slot", null)), this.sortable && t("span", { class: "table-column__sort-indicator" }, this.sort === "ascending" && t("swirl-icon-arrow-upward", { "aria-hidden": "true", size: 20 }), this.sort === "descending" && t("swirl-icon-arrow-downward", { "aria-hidden": "true", size: 20 }), !Boolean(this.sort) && " "));
|
|
15
15
|
}
|
|
16
16
|
get el() {
|
|
17
17
|
return i(this);
|
package/dist/{swirl-table-row-group.entry.85368b7a.js → swirl-table-row-group.entry.a468d7ea.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as o, h as r, H as s, g as t } from "./index.
|
|
1
|
+
import { r as o, h as r, H as s, g as t } from "./index.efe53c34.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ":host{position:relative;z-index:1;display:block}:host *{box-sizing:border-box}.table-row-group__header-row{padding:var(--s-space-12) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-surface-raised-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}@media (min-width: 768px){.table-row-group__label{position:sticky;left:var(--s-space-16)}}", l = class {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
o(this, e);
|
|
6
|
+
o(this, e), this.label = void 0;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
const e = this.el.querySelectorAll("swirl-table-row").length;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r, h as o, H as s } from "./index.
|
|
1
|
+
import { r, h as o, H as s } from "./index.efe53c34.js";
|
|
2
2
|
import { c as e } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
-
const l = ":host{display:flex}:host(.table-row--highlighted){--swirl-ghost-button-background-default:transparent}:host(.table-row--highlighted) ::slotted(.table-cell){background-color:rgba(240, 242, 255, 1);}:host ::slotted(.table-cell){border-bottom:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}",
|
|
6
|
+
const l = ":host{display:flex}:host(.table-row--highlighted){--swirl-ghost-button-background-default:transparent}:host(.table-row--highlighted) ::slotted(.table-cell){background-color:rgba(240, 242, 255, 1);}:host ::slotted(.table-cell){border-bottom:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", i = class {
|
|
7
7
|
constructor(t) {
|
|
8
|
-
r(this, t);
|
|
8
|
+
r(this, t), this.highlighted = void 0, this.index = void 0;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const t = e("table-row", {
|
|
@@ -14,7 +14,7 @@ const l = ":host{display:flex}:host(.table-row--highlighted){--swirl-ghost-butto
|
|
|
14
14
|
return o(s, { "aria-rowindex": this.index, class: t, role: "row" }, o("slot", null));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
i.style = l;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
i as swirl_table_row
|
|
20
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as g, h as i, H as _, g as S } from "./index.
|
|
1
|
+
import { r as g, h as i, H as _, g as S } from "./index.efe53c34.js";
|
|
2
2
|
import { i as v } from "./utils-33d31b58.1488fcfe.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,16 +7,16 @@ var C = function(e) {
|
|
|
7
7
|
return function() {
|
|
8
8
|
var w = x(a), h = new Date().getTime(), y = !n || h - n > w;
|
|
9
9
|
n = h;
|
|
10
|
-
for (var l = arguments.length, u = Array(l),
|
|
11
|
-
u[
|
|
10
|
+
for (var l = arguments.length, u = Array(l), f = 0; f < l; f++)
|
|
11
|
+
u[f] = arguments[f];
|
|
12
12
|
if (y && s.leading)
|
|
13
|
-
return s.accumulate ? Promise.resolve(e.call(this, [u])).then(function(
|
|
14
|
-
return
|
|
13
|
+
return s.accumulate ? Promise.resolve(e.call(this, [u])).then(function(b) {
|
|
14
|
+
return b[0];
|
|
15
15
|
}) : Promise.resolve(e.call.apply(e, [this].concat(u)));
|
|
16
16
|
if (r ? clearTimeout(c) : r = L(), o.push(u), c = setTimeout(m.bind(this), w), s.accumulate) {
|
|
17
17
|
var p = o.length - 1;
|
|
18
|
-
return r.promise.then(function(
|
|
19
|
-
return
|
|
18
|
+
return r.promise.then(function(b) {
|
|
19
|
+
return b[p];
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
return r.promise;
|
|
@@ -43,11 +43,11 @@ const R = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
43
43
|
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
44
44
|
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header ::slotted(*){display:flex}.table__empty-row{display:flex}.table__empty-row-cell{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-right:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);border-left:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.table__empty-row-cell>*{flex-grow:1}`, T = class {
|
|
45
45
|
constructor(t) {
|
|
46
|
-
g(this, t), this.
|
|
46
|
+
g(this, t), this.updateLayout = C(async () => {
|
|
47
47
|
await this.resetEmptyRowStyles(), await this.resetRowGroupStyles(), await this.resetCellStyles(), await this.resetColumnStyles(), await this.layoutEmptyRow(), await this.layoutRowGroups(), await this.layOutColumns(), this.layOutCells();
|
|
48
48
|
}, 100), this.onScroll = () => {
|
|
49
49
|
this.updateScrolledState();
|
|
50
|
-
};
|
|
50
|
+
}, this.caption = void 0, this.emptyStateLabel = "No results found.", this.label = void 0, this.empty = void 0, this.scrollable = void 0, this.scrolled = void 0, this.scrolledToEnd = void 0;
|
|
51
51
|
}
|
|
52
52
|
async componentDidRender() {
|
|
53
53
|
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
@@ -115,12 +115,12 @@ const R = `:host{position:relative;display:block}:host *{box-sizing:border-box}.
|
|
|
115
115
|
var n, r;
|
|
116
116
|
const c = e.filter((l, u) => (s - u) % t.length === 0), o = s <= Math.floor(t.length / 2), m = o ? window.getComputedStyle(a).left : window.getComputedStyle(a).right, d = (n = t[s + 1]) === null || n === void 0 ? void 0 : n.sticky, w = (r = t[s - 1]) === null || r === void 0 ? void 0 : r.sticky, h = a.sticky, y = a.width || `${a.getBoundingClientRect().width}px`;
|
|
117
117
|
c.forEach((l) => {
|
|
118
|
-
const u = h && o,
|
|
118
|
+
const u = h && o, f = h && !o, p = o && d;
|
|
119
119
|
if (l.style.flex = Boolean(y) ? `0 0 ${y}` : "", v()) {
|
|
120
120
|
l.classList.remove("table-cell--has-shadow"), l.style.left = "", l.style.right = "", l.style.position = "", l.style.zIndex = "";
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
l.style.left = u ? m : "", l.style.right =
|
|
123
|
+
l.style.left = u ? m : "", l.style.right = f ? m : "", l.style.position = h ? "sticky" : "", l.style.zIndex = p ? "1" : "", h && (o && !d || !o && !w) ? l.classList.add(o ? "table-cell--has-shadow-right" : "table-cell--has-shadow-left") : (l.classList.remove("table-cell--has-shadow-right"), l.classList.remove("table-cell--has-shadow-left"));
|
|
124
124
|
});
|
|
125
125
|
});
|
|
126
126
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as i, c as r, h as e, H as o, g as b } from "./index.
|
|
1
|
+
import { r as i, c as r, h as e, H as o, g as b } from "./index.efe53c34.js";
|
|
2
2
|
import { c as n } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,7 +7,7 @@ const l = '.sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl
|
|
|
7
7
|
constructor(t) {
|
|
8
8
|
i(this, t), this.tabActivated = r(this, "tabActivated", 7), this.tabs = [], this.onKeyDown = (a) => {
|
|
9
9
|
a.code === "ArrowLeft" ? (a.preventDefault(), this.activatePreviousTab()) : a.code === "ArrowRight" && (a.preventDefault(), this.activateNextTab());
|
|
10
|
-
};
|
|
10
|
+
}, this.initialTab = void 0, this.label = void 0, this.activeTab = void 0;
|
|
11
11
|
}
|
|
12
12
|
componentWillLoad() {
|
|
13
13
|
this.collectTabs();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r
|
|
1
|
+
import { r, c as s, h as t, H as n } from "./index.efe53c34.js";
|
|
2
2
|
import { c as i } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
6
|
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tag{display:inline-flex;padding:var(--s-space-2) var(--s-space-8);align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--s-surface-neutral-subdued);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;gap:var(--s-space-4)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--icon-info)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--icon-critical)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--icon-warning)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--icon-success)}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer}.tag__removal-button:focus:not(:focus-visible){outline:none}.tag__removal-button:focus-visible{outline-color:var(--s-focus-default)}", l = class {
|
|
7
|
-
constructor(
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
(
|
|
11
|
-
};
|
|
7
|
+
constructor(a) {
|
|
8
|
+
r(this, a), this.remove = s(this, "remove", 7), this.onRemove = (e) => {
|
|
9
|
+
var o;
|
|
10
|
+
(o = this.remove) === null || o === void 0 || o.emit(e);
|
|
11
|
+
}, this.intent = "default", this.label = void 0, this.removable = void 0, this.removalButtonLabel = "Remove";
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
const
|
|
15
|
-
return t(n, null, t("span", { class:
|
|
14
|
+
const a = i("tag", `tag--intent-${this.intent}`);
|
|
15
|
+
return t(n, null, t("span", { class: a }, this.label, this.removable && t("button", { "aria-label": this.removalButtonLabel, class: "tag__removal-button", onClick: this.onRemove, type: "button" }, t("swirl-icon-close", { size: 16 }))));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
l.style = c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as n, h as i, H as d } from "./index.
|
|
1
|
+
import { r as h, c as n, h as i, H as d } from "./index.efe53c34.js";
|
|
2
2
|
import { c } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import { g as x } from "./utils-33d31b58.1488fcfe.js";
|
|
4
4
|
import "react";
|
|
@@ -6,7 +6,7 @@ import "react-dom";
|
|
|
6
6
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
7
|
const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-h *.sc-swirl-text-input{box-sizing:border-box}.text-input.sc-swirl-text-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);font:inherit;line-height:var(--s-line-height-sm)}.text-input--clearable.sc-swirl-text-input,.text-input--type-number.sc-swirl-text-input,.text-input--type-password.sc-swirl-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-swirl-text-input .text-input__input.sc-swirl-text-input{width:100%}.text-input--disabled.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{color:var(--s-text-disabled)}.text-input--inline.sc-swirl-text-input .text-input__stepper.sc-swirl-text-input{display:none}.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:-0.0625rem}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input--inline.sc-swirl-text-input .text-input__clear-button.sc-swirl-text-input,.text-input--inline.sc-swirl-text-input .text-input__password-toggle.sc-swirl-text-input{top:0}}.text-input--inline.sc-swirl-text-input .text-input__character-counter.sc-swirl-text-input{top:0}.text-input__input.sc-swirl-text-input{display:inline-flex;width:100%;max-height:13.75rem;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);resize:none;caret-color:var(--s-border-highlight)}.text-input__input.sc-swirl-text-input:focus{outline:none}.text-input__input.sc-swirl-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-swirl-text-input::-webkit-outer-spin-button,.text-input__input.sc-swirl-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-swirl-text-input{-moz-appearance:textfield}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__input.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}input.text-input__input.sc-swirl-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-swirl-text-input input.text-input__input.sc-swirl-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-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;cursor:pointer}.text-input__clear-button.sc-swirl-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-swirl-text-input:focus-visible,.text-input__password-toggle.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__clear-button.sc-swirl-text-input,.text-input__password-toggle.sc-swirl-text-input{top:-0.625rem}}.text-input__stepper.sc-swirl-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__stepper.sc-swirl-text-input{top:-1.25rem}}.text-input__step-button.sc-swirl-text-input{display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.text-input__step-button.sc-swirl-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-swirl-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-swirl-text-input{position:absolute;top:-1.375rem;right:0;display:flex;color:var(--s-text-subdued);line-height:var(--s-line-height-sm);flex-direction:column}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text-input__character-counter.sc-swirl-text-input{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text-input__prefix.sc-swirl-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-swirl-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', m = class {
|
|
8
8
|
constructor(e) {
|
|
9
|
-
h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.
|
|
9
|
+
h(this, e), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.desktopMediaQuery = x(), this.desktopMediaQueryHandler = (t) => {
|
|
10
10
|
this.updateIconSize(t.matches);
|
|
11
11
|
}, this.clear = () => {
|
|
12
12
|
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
@@ -35,7 +35,7 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
|
|
|
35
35
|
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, s + t)), this.valueChange.emit(this.value);
|
|
36
36
|
}, this.togglePassword = () => {
|
|
37
37
|
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
38
|
-
};
|
|
38
|
+
}, this.autoComplete = "on", this.autoFocus = void 0, this.autoSelect = void 0, this.clearable = void 0, this.clearButtonLabel = "Clear input", this.disabled = void 0, this.disableDynamicWidth = void 0, this.swirlAriaAutocomplete = void 0, this.swirlAriaControls = void 0, this.swirlAriaDescribedby = void 0, this.swirlAriaExpanded = void 0, this.swirlRole = void 0, this.inline = void 0, this.invalid = void 0, this.maxLength = void 0, this.max = void 0, this.min = void 0, this.mode = void 0, this.prefixLabel = void 0, this.required = void 0, this.rows = 1, this.showCharacterCounter = void 0, this.spellCheck = void 0, this.suffixLabel = void 0, this.step = void 0, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.value = void 0, this.iconSize = 24, this.showPassword = !1;
|
|
39
39
|
}
|
|
40
40
|
componentDidLoad() {
|
|
41
41
|
var e, t;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r, h as e, H as l, g as n } from "./index.
|
|
2
|
-
import { c as
|
|
3
|
-
import { b as
|
|
1
|
+
import { r, h as e, H as l, g as n } from "./index.efe53c34.js";
|
|
2
|
+
import { c as a } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { b as o } from "./balancetext-31f1ec68.bd1c1b2d.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
7
|
const x = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-swirl-text{box-sizing:border-box}.text.sc-swirl-text{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--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--truncate.sc-swirl-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}", c = class {
|
|
8
8
|
constructor(t) {
|
|
9
|
-
r(this, t), this.align = "start", this.as = "p", this.color = "default", this.fontStyle = "normal", this.size = "base", this.weight = "normal";
|
|
9
|
+
r(this, t), this.align = "start", this.as = "p", this.balance = void 0, this.color = "default", this.fontStyle = "normal", this.size = "base", this.truncate = void 0, this.weight = "normal";
|
|
10
10
|
}
|
|
11
11
|
componentDidRender() {
|
|
12
12
|
this.rebalance();
|
|
@@ -15,10 +15,10 @@ const x = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-s
|
|
|
15
15
|
this.rebalance();
|
|
16
16
|
}
|
|
17
17
|
rebalance() {
|
|
18
|
-
!this.balance || !Boolean(this.textEl) ||
|
|
18
|
+
!this.balance || !Boolean(this.textEl) || o(this.textEl);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
const t = this.as, s =
|
|
21
|
+
const t = this.as, s = a("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--weight-${this.weight}`, { "text--truncate": this.truncate });
|
|
22
22
|
return e(l, null, e(t, { class: s, ref: (i) => this.textEl = i }, e("slot", null)));
|
|
23
23
|
}
|
|
24
24
|
get el() {
|
package/dist/{swirl-theme-provider.entry.9cc36512.js → swirl-theme-provider.entry.2564d6c2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as j, c as E, h as w, H } from "./index.
|
|
1
|
+
import { r as j, c as E, h as w, H } from "./index.efe53c34.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
function d(e, t, o) {
|
|
@@ -9,10 +9,10 @@ class P extends Error {
|
|
|
9
9
|
super(`Failed to parse color: "${t}"`);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var p = P;
|
|
13
13
|
function C(e) {
|
|
14
14
|
if (typeof e != "string")
|
|
15
|
-
throw new
|
|
15
|
+
throw new p(e);
|
|
16
16
|
if (e.trim().toLowerCase() === "transparent")
|
|
17
17
|
return [0, 0, 0, 0];
|
|
18
18
|
let t = e.trim();
|
|
@@ -36,12 +36,12 @@ function C(e) {
|
|
|
36
36
|
if (s) {
|
|
37
37
|
const [a, i, h, c] = Array.from(s).slice(1).map(parseFloat);
|
|
38
38
|
if (d(0, 100, i) !== i)
|
|
39
|
-
throw new
|
|
39
|
+
throw new p(e);
|
|
40
40
|
if (d(0, 100, h) !== h)
|
|
41
|
-
throw new
|
|
41
|
+
throw new p(e);
|
|
42
42
|
return [...L(a, i, h), c || 1];
|
|
43
43
|
}
|
|
44
|
-
throw new
|
|
44
|
+
throw new p(e);
|
|
45
45
|
}
|
|
46
46
|
function $(e) {
|
|
47
47
|
let t = 5381, o = e.length;
|
|
@@ -59,7 +59,7 @@ const b = (e) => parseInt(e.replace(/_/g, ""), 36), q = "1q29ehhb 1n09sgk7 1kl1e
|
|
|
59
59
|
function M(e) {
|
|
60
60
|
const t = e.toLowerCase().trim(), o = q[$(t)];
|
|
61
61
|
if (!o)
|
|
62
|
-
throw new
|
|
62
|
+
throw new p(e);
|
|
63
63
|
return `#${o}`;
|
|
64
64
|
}
|
|
65
65
|
const u = (e, t) => Array.from(Array(t)).map(() => e).join(""), A = new RegExp(`^#${u("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), F = new RegExp(`^#${u("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), R = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${u(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), I = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, O = /^[a-z]+$/i, z = (e) => Math.round(e * 255), L = (e, t, o) => {
|
|
@@ -69,11 +69,11 @@ const u = (e, t) => Array.from(Array(t)).map(() => e).join(""), A = new RegExp(`
|
|
|
69
69
|
const r = (e % 360 + 360) % 360 / 60, s = (1 - Math.abs(2 * n - 1)) * (t / 100), a = s * (1 - Math.abs(r % 2 - 1));
|
|
70
70
|
let i = 0, h = 0, c = 0;
|
|
71
71
|
r >= 0 && r < 1 ? (i = s, h = a) : r >= 1 && r < 2 ? (i = a, h = s) : r >= 2 && r < 3 ? (h = s, c = a) : r >= 3 && r < 4 ? (h = a, c = s) : r >= 4 && r < 5 ? (i = a, c = s) : r >= 5 && r < 6 && (i = s, c = a);
|
|
72
|
-
const l = n - s / 2, m = i + l,
|
|
73
|
-
return [m,
|
|
72
|
+
const l = n - s / 2, m = i + l, f = h + l, v = c + l;
|
|
73
|
+
return [m, f, v].map(z);
|
|
74
74
|
};
|
|
75
75
|
function y(e) {
|
|
76
|
-
const [t, o, n, r] = C(e).map((m,
|
|
76
|
+
const [t, o, n, r] = C(e).map((m, f) => f === 3 ? m : m / 255), s = Math.max(t, o, n), a = Math.min(t, o, n), i = (s + a) / 2;
|
|
77
77
|
if (s === a)
|
|
78
78
|
return [0, 0, i, r];
|
|
79
79
|
const h = s - a, c = i > 0.5 ? h / (2 - s - a) : h / (s + a);
|
|
@@ -106,7 +106,7 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
106
106
|
"--s-interactive-primary-pressed": "textPressed"
|
|
107
107
|
}, D = class {
|
|
108
108
|
constructor(e) {
|
|
109
|
-
j(this, e), this.themeChange = E(this, "themeChange", 7);
|
|
109
|
+
j(this, e), this.themeChange = E(this, "themeChange", 7), this.config = void 0;
|
|
110
110
|
}
|
|
111
111
|
componentWillLoad() {
|
|
112
112
|
this.resolveConfig(), this.determineOSTheme(), this.updateAppTheme();
|
|
@@ -156,8 +156,8 @@ const B = ".sc-swirl-theme-provider-h{display:block}", x = "swirl-preferred-them
|
|
|
156
156
|
this.resetTenantVariables();
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
const o = this.resolvedConfig.rootElement, n = y(t.primary), r = y(t.secondary), s = y(t.text), a = _(g(n[0], n[1] - 0.21, n[2] + 0.09, 1)), i = _(g(n[0], n[1] - 0.2, n[2] + 0.17, 1)), h = _(g(r[0], r[1], r[2] + 0.07, 1)), c = _(g(r[0], r[1], r[2] + 0.15, 1)), l = _(g(s[0], s[1] - 0.34, s[2] + 0.1, 1)), m = _(g(s[0], s[1] - 0.48, s[2] + 0.2, 1)),
|
|
160
|
-
Object.entries(T).forEach(([v, k]) => o.style.setProperty(v,
|
|
159
|
+
const o = this.resolvedConfig.rootElement, n = y(t.primary), r = y(t.secondary), s = y(t.text), a = _(g(n[0], n[1] - 0.21, n[2] + 0.09, 1)), i = _(g(n[0], n[1] - 0.2, n[2] + 0.17, 1)), h = _(g(r[0], r[1], r[2] + 0.07, 1)), c = _(g(r[0], r[1], r[2] + 0.15, 1)), l = _(g(s[0], s[1] - 0.34, s[2] + 0.1, 1)), m = _(g(s[0], s[1] - 0.48, s[2] + 0.2, 1)), f = Object.assign(Object.assign({}, t), { primaryHovered: a, primaryPressed: i, secondaryHovered: h, secondaryPressed: c, textHovered: l, textPressed: m });
|
|
160
|
+
Object.entries(T).forEach(([v, k]) => o.style.setProperty(v, f[k]));
|
|
161
161
|
}
|
|
162
162
|
resetTenantVariables() {
|
|
163
163
|
const e = this.resolvedConfig.rootElement;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as t, h as a, H as s } from "./index.
|
|
1
|
+
import { r as t, h as a, H as s } from "./index.efe53c34.js";
|
|
2
2
|
import { c as r } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
|
-
const l = ":host{display:inline-flex}:host *{box-sizing:border-box}.thumbnail{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.03125rem rgba(0, 0, 0, 0.1)}.thumbnail--size-s{--swirl-thumbnail-size:2.5rem}.thumbnail--size-m{--swirl-thumbnail-size:3rem}.thumbnail--size-l{--swirl-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--swirl-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--swirl-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--swirl-thumbnail-size);height:var(--swirl-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}",
|
|
6
|
+
const l = ":host{display:inline-flex}:host *{box-sizing:border-box}.thumbnail{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.03125rem rgba(0, 0, 0, 0.1)}.thumbnail--size-s{--swirl-thumbnail-size:2.5rem}.thumbnail--size-m{--swirl-thumbnail-size:3rem}.thumbnail--size-l{--swirl-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--swirl-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--swirl-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--swirl-thumbnail-size);height:var(--swirl-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", e = class {
|
|
7
7
|
constructor(i) {
|
|
8
|
-
t(this, i), this.format = "landscape", this.size = "m";
|
|
8
|
+
t(this, i), this.alt = void 0, this.format = "landscape", this.size = "m", this.src = void 0;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const i = r("thumbnail", `thumbnail--format-${this.format}`, `thumbnail--size-${this.size}`);
|
|
12
12
|
return a(s, null, a("span", { class: i }, a("img", { alt: this.alt, class: "thumbnail__image", loading: "lazy", src: this.src })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
e.style = l;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
e as swirl_thumbnail
|
|
18
18
|
};
|
package/dist/{swirl-toast-provider.entry.7747ba81.js → swirl-toast-provider.entry.83b4c5b3.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r, h as a, H as
|
|
1
|
+
import { r, h as a, H as n } from "./index.efe53c34.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const h = class {
|
|
5
5
|
constructor(t) {
|
|
6
|
-
r(this, t), this.
|
|
6
|
+
r(this, t), this.onDismiss = (s) => {
|
|
7
7
|
this.toasts = [...this.toasts].filter((i) => i.toastId !== s.detail);
|
|
8
|
-
};
|
|
8
|
+
}, this.globalDuration = void 0, this.toasts = [];
|
|
9
9
|
}
|
|
10
10
|
async clearAll() {
|
|
11
11
|
this.toasts = [];
|
|
@@ -22,9 +22,9 @@ const l = class {
|
|
|
22
22
|
return this.toasts = [...this.toasts, i], i;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return a(
|
|
25
|
+
return a(n, { role: "status" }, a("swirl-stack", { spacing: "12" }, this.toasts.map((t) => a("swirl-toast", Object.assign({ key: t.toastId, onDismiss: this.onDismiss }, t)))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
h as swirl_toast_provider
|
|
30
30
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as a, c as n, h as i, H as r } from "./index.
|
|
2
|
-
import { c } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
-
import { g as
|
|
1
|
+
import { r as a, c as n, h as i, H as r } from "./index.efe53c34.js";
|
|
2
|
+
import { c as d } from "./index-47862d62.75c2fcf1.js";
|
|
3
|
+
import { g as c } from "./utils-33d31b58.1488fcfe.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
7
|
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__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 {
|
|
8
8
|
constructor(s) {
|
|
9
|
-
a(this, s), this.dismiss = n(this, "dismiss", 7), this.
|
|
9
|
+
a(this, s), this.dismiss = n(this, "dismiss", 7), this.desktopMediaQuery = c(), this.desktopMediaQueryHandler = (t) => {
|
|
10
10
|
this.forceIconProps(t.matches);
|
|
11
11
|
}, this.onDismiss = () => {
|
|
12
12
|
this.dismiss.emit(this.toastId);
|
|
13
|
-
};
|
|
13
|
+
}, 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;
|
|
14
14
|
}
|
|
15
15
|
watchDuration() {
|
|
16
16
|
this.startTimer();
|
|
@@ -37,7 +37,7 @@ const l = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;
|
|
|
37
37
|
!Boolean(this.timeout) || (clearTimeout(this.timeout), this.timeout = void 0);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
const s =
|
|
40
|
+
const s = d("toast", `toast--intent-${this.intent}`);
|
|
41
41
|
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", part: "toast__content" }, this.content), 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 }))));
|
|
42
42
|
}
|
|
43
43
|
static get watchers() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as n, h as i, H as l } from "./index.
|
|
1
|
+
import { r as n, h as i, H as l } from "./index.efe53c34.js";
|
|
2
2
|
import { c as r, o as p, s as h, f as d } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;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);-webkit-animation:tooltip-fade-in 0.1s;animation:tooltip-fade-in 0.1s}@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)}@-webkit-keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}", u = class {
|
|
6
6
|
constructor(e) {
|
|
7
|
-
n(this, e), this.
|
|
7
|
+
n(this, e), this.onKeydown = (t) => {
|
|
8
8
|
t.code === "Escape" && this.hide();
|
|
9
9
|
}, this.reposition = async () => {
|
|
10
10
|
!Boolean(this.referenceEl) || !Boolean(this.popperEl) || (this.actualPosition = await r(this.referenceEl, this.popperEl, this.options));
|
|
@@ -51,7 +51,7 @@ const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{disp
|
|
|
51
51
|
left: "100%",
|
|
52
52
|
transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
|
|
53
53
|
};
|
|
54
|
-
};
|
|
54
|
+
}, this.content = void 0, this.delay = 300, this.position = "top", this.actualPosition = void 0, this.visible = !1;
|
|
55
55
|
}
|
|
56
56
|
watchPosition() {
|
|
57
57
|
this.updateOptions();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as t, h as i, H as s, g as r } from "./index.efe53c34.js";
|
|
2
2
|
import { c as o } from "./index-47862d62.75c2fcf1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
6
|
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:var(--s-surface-default);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-surface-highlight-default)}: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 {
|
|
7
7
|
constructor(e) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
8
|
+
t(this, e), this.onKeyDown = (a) => {
|
|
9
|
+
a.code === "Enter" && (a.preventDefault(), this.el.click());
|
|
10
|
+
}, this.active = void 0, this.icon = void 0, this.label = void 0;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const e = o("tree-navigation-item", {
|
|
14
14
|
"tree-navigation-item--active": this.active,
|
|
15
15
|
"tree-navigation-item--has-icon": Boolean(this.icon)
|
|
16
16
|
});
|
|
17
|
-
return
|
|
17
|
+
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));
|
|
18
18
|
}
|
|
19
19
|
get el() {
|
|
20
20
|
return r(this);
|