@getflip/swirl-components-react 0.23.2 → 0.24.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.026158d1.js → file-manager.entry.e4184d58.js} +1 -1
- package/dist/{index.8e1ac613.js → index.d7895c25.js} +2 -2
- package/dist/{swirl-action-list-section.entry.d61d1b65.js → swirl-action-list-section.entry.19b33d63.js} +1 -1
- package/dist/{swirl-action-list_3.entry.616be73d.js → swirl-action-list_3.entry.8d13b80e.js} +1 -1
- package/dist/{swirl-app-bar.entry.99b4e55e.js → swirl-app-bar.entry.1c3fd3f9.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.5aef534e.js → swirl-app-layout_7.entry.c5ad48bd.js} +5 -4
- package/dist/{swirl-autocomplete.entry.848a4f09.js → swirl-autocomplete.entry.a1f7a08d.js} +1 -1
- package/dist/{swirl-avatar-group.entry.ec6545b7.js → swirl-avatar-group.entry.95a6a486.js} +1 -1
- package/dist/{swirl-avatar.entry.17fd4d75.js → swirl-avatar.entry.74bb5c4e.js} +1 -1
- package/dist/{swirl-badge.entry.f971623f.js → swirl-badge.entry.145e1960.js} +1 -1
- package/dist/swirl-banner.entry.4d318f26.js +48 -0
- package/dist/{swirl-button-group.entry.b2e2cc89.js → swirl-button-group.entry.d351bed4.js} +1 -1
- package/dist/{swirl-button.entry.9d82a31d.js → swirl-button.entry.7b7dcd83.js} +1 -1
- package/dist/{swirl-card.entry.52d2d45b.js → swirl-card.entry.03fec590.js} +1 -1
- package/dist/{swirl-checkbox.entry.b1b31ecb.js → swirl-checkbox.entry.5e81b6ae.js} +1 -1
- package/dist/{swirl-chip.entry.c2a5d9c6.js → swirl-chip.entry.2b4373a0.js} +1 -1
- package/dist/{swirl-columns.entry.57c42cc2.js → swirl-columns.entry.be5690d5.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +9 -7
- package/dist/{swirl-console-layout.entry.f1479af1.js → swirl-console-layout.entry.b24a7654.js} +1 -1
- package/dist/{swirl-date-input.entry.b7f36a7a.js → swirl-date-input.entry.d51c352a.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.452f9349.js → swirl-date-picker_2.entry.84c9e535.js} +1 -1
- package/dist/{swirl-description-list-item.entry.961a4d96.js → swirl-description-list-item.entry.a92850ca.js} +1 -1
- package/dist/{swirl-description-list.entry.1f87897d.js → swirl-description-list.entry.95b97fa2.js} +1 -1
- package/dist/{swirl-dialog.entry.cc00c430.js → swirl-dialog.entry.0701af22.js} +1 -1
- package/dist/{swirl-file-uploader.entry.e59896c9.js → swirl-file-uploader.entry.48985551.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.4dfd6c0a.js → swirl-file-viewer_7.entry.c6ab0cfb.js} +1 -1
- package/dist/{swirl-form-control.entry.d4bc7b58.js → swirl-form-control.entry.f502e306.js} +1 -1
- package/dist/{swirl-form-group.entry.a0b04da5.js → swirl-form-group.entry.76f626ce.js} +1 -1
- package/dist/{swirl-heading.entry.2161c421.js → swirl-heading.entry.1715248a.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.56eaadc0.js → swirl-icon-add-photo.entry.4fd87d1d.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.677eea1b.js → swirl-icon-add_6.entry.392f2450.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.fff839eb.js → swirl-icon-admin-panel-settings.entry.4e06df32.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.fe46cea0.js → swirl-icon-arrow-back.entry.23369ff8.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.948fd9c9.js → swirl-icon-arrow-downward_2.entry.078729a2.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.ee24a4de.js → swirl-icon-arrow-forward.entry.4fabd19a.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.84243c10.js → swirl-icon-arrow-left_4.entry.650b1aff.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.609525c5.js → swirl-icon-arrow-right-small.entry.6ef0c8bc.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.941d3334.js → swirl-icon-attachment.entry.f5e4710e.js} +1 -1
- package/dist/{swirl-icon-block.entry.59e06093.js → swirl-icon-block.entry.983971b1.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.78a9df4f.js → swirl-icon-bookmark.entry.d79ae2e7.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.29b9c67b.js → swirl-icon-cancel_4.entry.93a732fe.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.ee02b1f9.js → swirl-icon-chat-bubble.entry.5fb874a3.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.a23fd8d7.js → swirl-icon-chats-filled.entry.beffa6d7.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.b8673f12.js → swirl-icon-chats-outlined.entry.4e2e37af.js} +1 -1
- package/dist/{swirl-icon-check-circle.entry.9580d1b4.js → swirl-icon-check-circle.entry.cca663bc.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.236c3afb.js → swirl-icon-check-small_4.entry.eb994f9a.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.20e61604.js → swirl-icon-check-strong.entry.de7735fb.js} +1 -1
- package/dist/{swirl-icon-check.entry.42899517.js → swirl-icon-check.entry.1c39e48a.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.f3b2a7d1.js → swirl-icon-chevron-left.entry.7632a872.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.d2a072d8.js → swirl-icon-chevron-right.entry.dc9e51e3.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.be7125dc.js → swirl-icon-close-small.entry.47d3bbc5.js} +1 -1
- package/dist/{swirl-icon-close.entry.aa053b43.js → swirl-icon-close.entry.f43c3265.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.7179581e.js → swirl-icon-cloud-upload.entry.8b1c5cc8.js} +1 -1
- package/dist/{swirl-icon-column.entry.f3244e3d.js → swirl-icon-column.entry.859adfe0.js} +1 -1
- package/dist/{swirl-icon-comment.entry.d290c261.js → swirl-icon-comment.entry.e335c0e0.js} +1 -1
- package/dist/{swirl-icon-copy.entry.8e096dfd.js → swirl-icon-copy.entry.a5261473.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.95c12c40.js → swirl-icon-date-range.entry.1eee1d26.js} +1 -1
- package/dist/{swirl-icon-delete.entry.ec088913.js → swirl-icon-delete.entry.54daaed9.js} +1 -1
- package/dist/{swirl-icon-description.entry.ac0cfc5c.js → swirl-icon-description.entry.e46585fc.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.fc775e85.js → swirl-icon-double-arrow-left.entry.cd768772.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.09f20226.js → swirl-icon-double-arrow-right.entry.e5390c56.js} +1 -1
- package/dist/{swirl-icon-download.entry.6cc05050.js → swirl-icon-download.entry.30be06df.js} +1 -1
- package/dist/{swirl-icon-edit.entry.37ae499e.js → swirl-icon-edit.entry.56c4c8de.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.ddb03228.js → swirl-icon-emoji-mood.entry.623f9ce8.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.7f769861.js → swirl-icon-emoji-satisfied.entry.bb6c5930.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.0627e424.js → swirl-icon-error_3.entry.de06bb56.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.0c6311ef.js → swirl-icon-expand-more.entry.d0da6773.js} +1 -1
- package/dist/{swirl-icon-filter.entry.18a55017.js → swirl-icon-filter.entry.dffe7e73.js} +1 -1
- package/dist/{swirl-icon-folder.entry.59bf4ff7.js → swirl-icon-folder.entry.63ba31f8.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.f4325fa6.js → swirl-icon-group-assign.entry.8a4408f6.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.af95748d.js → swirl-icon-groups-custom.entry.4109c2e3.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.b3cbc709.js → swirl-icon-groups-filled.entry.278d42f9.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.8c0d54d4.js → swirl-icon-groups-outlined.entry.74b81ba6.js} +1 -1
- package/dist/{swirl-icon-groups.entry.5f36a8a7.js → swirl-icon-groups.entry.3bf594fe.js} +1 -1
- package/dist/{swirl-icon-help.entry.a2aaba9e.js → swirl-icon-help.entry.abb610a7.js} +1 -1
- package/dist/{swirl-icon-image.entry.f928e191.js → swirl-icon-image.entry.c8a1f547.js} +1 -1
- package/dist/{swirl-icon-info.entry.e473da7d.js → swirl-icon-info.entry.51b2f67a.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.923d5ce3.js → swirl-icon-inventory.entry.7724f2ac.js} +1 -1
- package/dist/{swirl-icon-like.entry.51f44412.js → swirl-icon-like.entry.4c1c158b.js} +1 -1
- package/dist/{swirl-icon-link.entry.6a348ad1.js → swirl-icon-link.entry.8bb5e7fd.js} +1 -1
- package/dist/{swirl-icon-lock.entry.151cfe92.js → swirl-icon-lock.entry.e7196787.js} +1 -1
- package/dist/{swirl-icon-logout.entry.6d7df72a.js → swirl-icon-logout.entry.6c6055bb.js} +1 -1
- package/dist/{swirl-icon-mail.entry.6575970f.js → swirl-icon-mail.entry.0d819f99.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.7186113b.js → swirl-icon-manage-accounts.entry.4a624c60.js} +1 -1
- package/dist/{swirl-icon-mention.entry.d589bcfc.js → swirl-icon-mention.entry.8d5e6c64.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.f2d9ea75.js → swirl-icon-menu-filled.entry.289bc2d4.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.6b92c00a.js → swirl-icon-menu-outlined.entry.91928b04.js} +1 -1
- package/dist/{swirl-icon-menu.entry.a48dd2f4.js → swirl-icon-menu.entry.b77e8e76.js} +1 -1
- package/dist/{swirl-icon-message.entry.7110f9b0.js → swirl-icon-message.entry.67fa2d9e.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.db54bb79.js → swirl-icon-more-horizontal.entry.ecc03621.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.f94f3c14.js → swirl-icon-news-filled.entry.75518865.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.4cab6c24.js → swirl-icon-news-outlined.entry.7b4baed1.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.c5bcfdec.js → swirl-icon-notifications-active.entry.f656e02a.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.4fc83923.js → swirl-icon-notifications-off.entry.4dcf3760.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.4532e3be.js → swirl-icon-notifications.entry.f58edc08.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.19d27781.js → swirl-icon-open-in-new.entry.a80bbdd7.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.fe22e737.js → swirl-icon-people-alt.entry.348cb5f0.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.411e80f1.js → swirl-icon-person-off.entry.7f035c71.js} +1 -1
- package/dist/{swirl-icon-person.entry.7cb803ad.js → swirl-icon-person.entry.ff9b77c6.js} +1 -1
- package/dist/{swirl-icon-phone.entry.f81f6eee.js → swirl-icon-phone.entry.f43eec19.js} +1 -1
- package/dist/{swirl-icon-poll.entry.e8cdd7af.js → swirl-icon-poll.entry.8ebff9de.js} +1 -1
- package/dist/{swirl-icon-print.entry.6ef87773.js → swirl-icon-print.entry.af75018d.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.c22cf8d5.js → swirl-icon-recieved.entry.e063c9ac.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.bc71dd25.js → swirl-icon-search-strong.entry.55927dd9.js} +1 -1
- package/dist/{swirl-icon-search.entry.5ee50ecb.js → swirl-icon-search.entry.a0504af9.js} +1 -1
- package/dist/{swirl-icon-send.entry.f896cf3d.js → swirl-icon-send.entry.780ab53b.js} +1 -1
- package/dist/{swirl-icon-settings.entry.5c41b7a2.js → swirl-icon-settings.entry.034a8c27.js} +1 -1
- package/dist/{swirl-icon-sync.entry.e8929ae8.js → swirl-icon-sync.entry.dbfbf1c9.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.3cb69ee6.js → swirl-icon-tasks-filled.entry.f8d27051.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.3198a993.js → swirl-icon-tasks-outlined.entry.3e97fd7e.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.f2587cec.js → swirl-icon-time-filled.entry.3ae5cbc4.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.b17546b3.js → swirl-icon-time-outlined.entry.db0fdc32.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.e616cb2d.js → swirl-icon-user-assign.entry.3d1d297c.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.37fa90f6.js → swirl-icon-video-camera.entry.6fb5f425.js} +1 -1
- package/dist/{swirl-icon-warning.entry.78c1fd42.js → swirl-icon-warning.entry.78d7e78b.js} +1 -1
- package/dist/{swirl-lightbox.entry.cd8b9b20.js → swirl-lightbox.entry.91fa26c8.js} +1 -1
- package/dist/{swirl-link.entry.24591ae0.js → swirl-link.entry.2e73b632.js} +1 -1
- package/dist/{swirl-list.entry.98487854.js → swirl-list.entry.dd5d9e3b.js} +1 -1
- package/dist/{swirl-modal.entry.c4d24233.js → swirl-modal.entry.6629145a.js} +1 -1
- package/dist/{swirl-option-list-section.entry.6b25a620.js → swirl-option-list-section.entry.55e9c211.js} +1 -1
- package/dist/{swirl-pagination.entry.c73f5ec2.js → swirl-pagination.entry.48a00ad0.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.aa91bf2b.js → swirl-pdf-reader.entry.07991f74.js} +1 -1
- package/dist/{swirl-popover.entry.5ff2cd49.js → swirl-popover.entry.c0a0eabd.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.2ad346c0.js → swirl-progress-indicator.entry.cc47fa2d.js} +1 -1
- package/dist/{swirl-radio-group.entry.6a0c7f2d.js → swirl-radio-group.entry.9ad2ba4f.js} +1 -1
- package/dist/{swirl-radio.entry.a3790b4b.js → swirl-radio.entry.fe0998a2.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.a1ac3b6c.js → swirl-resource-list-file-item.entry.6910d24f.js} +1 -1
- package/dist/{swirl-search.entry.a32f9b5f.js → swirl-search.entry.ea746f65.js} +2 -2
- package/dist/{swirl-select.entry.7e12eca7.js → swirl-select.entry.1adbf6c0.js} +1 -1
- package/dist/swirl-shell-layout.entry.9f4dbe84.js +57 -0
- package/dist/{swirl-shell-navigation-item.entry.f9e841e0.js → swirl-shell-navigation-item.entry.0b901c7d.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.cc0363cf.js → swirl-skeleton-box.entry.59eb1950.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.8e86d2f5.js → swirl-skeleton-text.entry.6750d525.js} +1 -1
- package/dist/{swirl-stack.entry.7e1784b4.js → swirl-stack.entry.4cf78ebb.js} +1 -1
- package/dist/{swirl-switch.entry.f4bbe40e.js → swirl-switch.entry.b89e892f.js} +1 -1
- package/dist/{swirl-tab.entry.224b4613.js → swirl-tab.entry.4fc442ef.js} +1 -1
- package/dist/{swirl-table-cell.entry.a391e495.js → swirl-table-cell.entry.8e04dcde.js} +1 -1
- package/dist/{swirl-table-column.entry.6f04523a.js → swirl-table-column.entry.a1a48877.js} +1 -1
- package/dist/{swirl-table-row-group.entry.4fa20251.js → swirl-table-row-group.entry.2908f880.js} +1 -1
- package/dist/{swirl-table-row.entry.a8d31775.js → swirl-table-row.entry.bc9e4f31.js} +1 -1
- package/dist/{swirl-table.entry.d8cfb919.js → swirl-table.entry.2d6f377f.js} +1 -1
- package/dist/{swirl-tabs.entry.ae611189.js → swirl-tabs.entry.dcce7fa1.js} +1 -1
- package/dist/{swirl-tag.entry.71cbc2ed.js → swirl-tag.entry.209bfb45.js} +1 -1
- package/dist/{swirl-text-input.entry.fac6f454.js → swirl-text-input.entry.6ab8bc43.js} +1 -1
- package/dist/{swirl-text.entry.42efc618.js → swirl-text.entry.345e1169.js} +1 -1
- package/dist/{swirl-theme-provider.entry.285c8694.js → swirl-theme-provider.entry.049a49a2.js} +1 -1
- package/dist/{swirl-toast-provider.entry.29bce983.js → swirl-toast-provider.entry.6c20b2a5.js} +1 -1
- package/dist/{swirl-toast.entry.a64b47bf.js → swirl-toast.entry.e51348a1.js} +1 -1
- package/dist/{swirl-tooltip.entry.7fce185d.js → swirl-tooltip.entry.417f3c45.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.9151c5b3.js → swirl-tree-navigation-item.entry.a6839b2c.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.0fd184c9.js → swirl-video-thumbnail.entry.bc92ca90.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.b8f7116a.js → swirl-visually-hidden.entry.0da7caaf.js} +1 -1
- package/dist/{wc-datepicker.entry.edb39102.js → wc-datepicker.entry.ca456578.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-banner.entry.0dafe557.js +0 -48
- package/dist/swirl-shell-layout.entry.dc7482ef.js +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as c, h as e, H as u, g } from "./index.
|
|
1
|
+
import { r as c, h as e, H as u, g } from "./index.d7895c25.js";
|
|
2
2
|
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as m, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as x } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as i, H as t } from "./index.
|
|
1
|
+
import { r, h as i, H as t } from "./index.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ":host{display:inline-flex}:host *{box-sizing:border-box}.link{color:var(--s-interactive-primary-default);line-height:var(--s-line-height-base);text-underline-offset:var(--s-space-4)}.link:hover{color:var(--s-interactive-primary-hovered)}.link:active{color:var(--s-interactive-primary-pressed)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.link{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as t, H as r } from "./index.
|
|
1
|
+
import { r as l, h as t, H as r } from "./index.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ':host{display:block}:host *{box-sizing:border-box}.swirl-list{line-height:var(--s-line-height-base)}.swirl-list ul,.swirl-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.swirl-list ul li{padding-left:1.5rem}.swirl-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.swirl-list ol{counter-reset:item}.swirl-list ol ol{counter-reset:letter}.swirl-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.swirl-list ol li{padding-left:1.5rem}.swirl-list ol li:before{display:inline-block;min-width:1.5rem;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item;font-variant-numeric:tabular-nums}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.swirl-list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}', n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as s, h as o, H as p } from "./index.
|
|
1
|
+
import { r as h, c as s, h as o, H as p } from "./index.d7895c25.js";
|
|
2
2
|
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as f, e as u } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as v } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as t, H as e } from "./index.
|
|
1
|
+
import { r as s, h as t, H as e } from "./index.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:block}:host *{box-sizing:border-box}.option-list-section{background-color:var(--s-surface-overlay-default)}.option-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-section__label{padding:var(--s-space-8) var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as n, g as d } from "./index.
|
|
1
|
+
import { r as l, h as e, H as n, g as d } from "./index.d7895c25.js";
|
|
2
2
|
import { A as c } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as h, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as r } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as r, h as n, H as m, g as v } from "./index.
|
|
1
|
+
import { r as h, c as r, h as n, H as m, g as v } from "./index.d7895c25.js";
|
|
2
2
|
import { o as p, s as l, f, c as u, a as g } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
|
|
3
3
|
import { d as b, e as y } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as k } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as o, h as i, H as l, g as n } from "./index.
|
|
1
|
+
import { r as a, c as o, h as i, H as l, g as n } from "./index.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const u = ".sc-swirl-radio-group-h{display:block}.sc-swirl-radio-group-h *.sc-swirl-radio-group{box-sizing:border-box}.radio-group.sc-swirl-radio-group{display:flex;flex-direction:column;gap:var(--s-space-12)}", d = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as a, h as s, H as c } from "./index.
|
|
1
|
+
import { r as n, c as a, h as s, H as c } from "./index.d7895c25.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as h } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as i, c as r, h as a, H as t } from "./index.
|
|
1
|
+
import { r as i, c as r, h as a, H as t } from "./index.d7895c25.js";
|
|
2
2
|
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as l } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -8,7 +8,7 @@ const o = ".sc-swirl-search-h{display:flex;width:100%}.sc-swirl-search-h *.sc-sw
|
|
|
8
8
|
i(this, e), this.inputBlur = r(this, "inputBlur", 7), this.inputFocus = r(this, "inputFocus", 7), this.valueChange = r(this, "valueChange", 7), this.desktopMediaQuery = l(), this.desktopMediaQueryHandler = (s) => {
|
|
9
9
|
this.forceIconProps(s.matches);
|
|
10
10
|
}, this.clear = () => {
|
|
11
|
-
this.input.value = "", this.input.focus();
|
|
11
|
+
this.input.value = "", this.input.focus(), this.valueChange.emit("");
|
|
12
12
|
}, this.onBlur = (s) => {
|
|
13
13
|
this.inputBlur.emit(s);
|
|
14
14
|
}, this.onChange = (s) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as r, h as e, H as c, g as d } from "./index.
|
|
1
|
+
import { r as a, c as r, h as e, H as c, g as d } from "./index.d7895c25.js";
|
|
2
2
|
import { c as h } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as p } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { r as o, h as e, H as t } from "./index.d7895c25.js";
|
|
2
|
+
import { c as i } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { a as r, g as d } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const n = `:host{--extended-sidebar-width:17.5rem;--collapsed-sidebar-width:4rem;display:flex;width:100%;height:100%}:host *{box-sizing:border-box}.shell-layout{display:grid;width:100%;min-height:100%;transition:grid-template-columns 0.2s;grid-template-columns:0 1fr;grid-template-rows:auto 1fr;grid-template-areas:"banner banner"
|
|
7
|
+
"sidebar main"}@media (min-width: 992px){.shell-layout{grid-template-columns:var(--extended-sidebar-width) 1fr}}.shell-layout--collapsed-sidebar{grid-template-columns:0 1fr}@media (min-width: 992px){.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper.shell-layout__sidebar-wrapper--hovered .shell-layout__sidebar,.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper:focus-within .shell-layout__sidebar{width:var(--extended-sidebar-width);box-shadow:0 0.75rem 2rem rgba(25, 26, 28, 0.12),
|
|
8
|
+
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{transform:translate3d(-100%, 0, 0)}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper .shell-layout__sidebar{width:100%;box-shadow:none}@media (min-width: 992px){.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{max-width:var(--collapsed-sidebar-width);flex-basis:var(--collapsed-sidebar-width);transform:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__sidebar{box-shadow:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__collapsed-logo{display:block}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__expanded-logo{display:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__toggle{display:none}}@media (min-width: 992px){.shell-layout--collapsed-sidebar{grid-template-columns:var(--collapsed-sidebar-width) 1fr}}.shell-layout__banner{grid-area:banner}.shell-layout__sidebar-wrapper{position:absolute;z-index:2;top:0;bottom:0;left:0;width:100%;max-width:var(--extended-sidebar-width);min-height:0;flex-basis:var(--extended-sidebar-width);flex-shrink:0;transition:max-width 0.2s, transform 0.2s;grid-area:sidebar}@media (min-width: 992px){.shell-layout__sidebar-wrapper{position:relative;inset:auto}}.shell-layout__sidebar{display:flex;width:var(--extended-sidebar-width);height:100%;border-right:var(--s-border-width-default) solid var(--s-border-default);flex-direction:column;transition:box-shadow 0.2s, width 0.2s;box-shadow:0 0.75rem 2rem rgba(25, 26, 28, 0.12),
|
|
9
|
+
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}@media (min-width: 992px){.shell-layout__sidebar{box-shadow:none}}.shell-layout__header{padding:var(--s-space-8);flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.shell-layout__logo-bar{display:flex;overflow:hidden;align-items:center}.shell-layout__expanded-logo{padding-top:var(--s-space-8);padding-right:calc(var(--s-space-12) + var(--s-space-2));padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-12) + var(--s-space-2));flex-grow:1}.shell-layout__collapsed-logo{display:none;padding-top:var(--s-space-8);padding-right:calc(var(--s-space-12) + var(--s-space-2));padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-12) + var(--s-space-2));flex-grow:1}.shell-layout__toggle{padding-right:var(--s-space-8);padding-left:var(--s-space-12);flex-grow:0;flex-shrink:0}.shell-layout__mobile-toggle{position:absolute;z-index:2;top:var(--s-space-12);left:calc(100% + var(--s-space-16))}@media (min-width: 992px){.shell-layout__mobile-toggle{display:none}}.shell-layout__tools{margin-top:var(--s-space-4);flex-basis:100%;flex-shrink:0}.shell-layout__main-navigation{overflow:auto;padding:var(--s-space-8);flex-grow:1;background-color:var(--s-background-default)}.shell-layout__main{min-height:0;background-color:var(--s-background-default);grid-area:main}.shell-layout__main>*,.shell-layout__main ::slotted(*){height:100%}.shell-layout__backdrop{position:fixed;z-index:1;background-color:rgba(0, 0, 0, 0.4);-webkit-animation:shell-layout-backdrop-fade-in 0.1s;animation:shell-layout-backdrop-fade-in 0.1s;inset:0}@media (min-width: 992px){.shell-layout__backdrop{display:none}}.shell-layout__backdrop--fading{-webkit-animation:shell-layout-backdrop-fade-out 0.2s;animation:shell-layout-backdrop-fade-out 0.2s}@-webkit-keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes shell-layout-backdrop-fade-out{from{opacity:1}to{opacity:0}}@keyframes shell-layout-backdrop-fade-out{from{opacity:1}to{opacity:0}}`, h = class {
|
|
10
|
+
constructor(l) {
|
|
11
|
+
o(this, l), this.desktopMediaQuery = r(), this.desktopMediaQueryHandler = (a) => {
|
|
12
|
+
a.matches ? this.showSidebar() : this.hideSidebar();
|
|
13
|
+
}, this.hideSidebar = () => {
|
|
14
|
+
this.collapsedSidebar = !0, this.collapsing = !0, setTimeout(() => {
|
|
15
|
+
this.collapsing = !1, this.sidebarHovered = !1;
|
|
16
|
+
}, 200);
|
|
17
|
+
}, this.showSidebar = () => {
|
|
18
|
+
this.collapsedSidebar = !1;
|
|
19
|
+
}, this.toggleSidebar = () => {
|
|
20
|
+
this.collapsedSidebar ? this.showSidebar() : this.hideSidebar();
|
|
21
|
+
}, this.onBackdropClick = () => {
|
|
22
|
+
this.collapsedSidebar || this.hideSidebar();
|
|
23
|
+
}, this.onSidebarClick = () => {
|
|
24
|
+
var a, s;
|
|
25
|
+
this.collapsedSidebar && ((a = document.activeElement) === null || a === void 0 || a.blur(), (s = d()) === null || s === void 0 || s.blur());
|
|
26
|
+
}, this.onSidebarMouseEnter = () => {
|
|
27
|
+
this.sidebarHovered = !0;
|
|
28
|
+
}, this.onSidebarMouseLeave = () => {
|
|
29
|
+
this.sidebarHovered = !1;
|
|
30
|
+
}, this.mainNavigationLabel = "Main", this.sidebarToggleLabel = "Toggle sidebar", this.collapsedSidebar = void 0, this.collapsing = void 0, this.sidebarHovered = void 0;
|
|
31
|
+
}
|
|
32
|
+
componentWillLoad() {
|
|
33
|
+
var l, a;
|
|
34
|
+
this.desktopMediaQuery.matches || this.hideSidebar(), (a = (l = this.desktopMediaQuery).addEventListener) === null || a === void 0 || a.call(l, "change", this.desktopMediaQueryHandler);
|
|
35
|
+
}
|
|
36
|
+
async collapseSidebar() {
|
|
37
|
+
this.hideSidebar();
|
|
38
|
+
}
|
|
39
|
+
async extendSidebar() {
|
|
40
|
+
this.showSidebar();
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
const l = i("shell-layout", {
|
|
44
|
+
"shell-layout--collapsed-sidebar": this.collapsedSidebar,
|
|
45
|
+
"shell-layout--collapsing": this.collapsing
|
|
46
|
+
}), a = i("shell-layout__sidebar-wrapper", {
|
|
47
|
+
"shell-layout__sidebar-wrapper--hovered": this.sidebarHovered
|
|
48
|
+
}), s = i("shell-layout__backdrop", {
|
|
49
|
+
"shell-layout__backdrop--fading": this.collapsing
|
|
50
|
+
});
|
|
51
|
+
return e(t, null, e("div", { class: l }, e("div", { class: "shell-layout__banner" }, e("slot", { name: "banner" })), e("div", { class: a, onClick: this.onSidebarClick, onMouseEnter: this.onSidebarMouseEnter, onMouseLeave: this.onSidebarMouseLeave }, e("div", { class: "shell-layout__sidebar" }, e("header", { class: "shell-layout__header" }, e("div", { class: "shell-layout__logo-bar" }, e("div", { class: "shell-layout__expanded-logo" }, e("slot", { name: "logo-expanded" })), e("div", { class: "shell-layout__collapsed-logo" }, e("slot", { name: "logo-collapsed" })), e("div", { class: "shell-layout__toggle" }, e("swirl-button", { swirlAriaExpanded: String(!this.collapsedSidebar), hideLabel: !0, icon: this.collapsedSidebar ? "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>" : "<swirl-icon-double-arrow-left></swirl-icon-double-arrow-left>", label: this.sidebarToggleLabel, onClick: this.toggleSidebar }))), e("div", { class: "shell-layout__tools" }, e("slot", { name: "tools" }))), e("nav", { "aria-label": this.mainNavigationLabel, class: "shell-layout__main-navigation" }, e("slot", { name: "main-navigation" })))), e("main", { class: "shell-layout__main" }, e("slot", { name: "main" })), (!this.collapsedSidebar || this.collapsing) && e("div", { class: s, onClick: this.onBackdropClick })));
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
h.style = n;
|
|
55
|
+
export {
|
|
56
|
+
h as swirl_shell_layout
|
|
57
|
+
};
|
|
@@ -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.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;background-color:var(--s-background-default);word-break:break-word;-webkit-hyphens:auto;hyphens:auto;transition:box-shadow 0.15s}:host(.table-cell--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-cell--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host *{box-sizing:border-box}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t, H as r, g as i } from "./index.
|
|
1
|
+
import { r as e, h as t, H as r, g as i } from "./index.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padding-right:var(--s-space-16);padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-top:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);background-color:var(--s-background-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);white-space:nowrap;letter-spacing:var(--s-letter-spacing-tighter);text-overflow:ellipsis;transition:box-shadow 0.15s;gap:var(--s-space-8)}:host(:first-child){border-left:var(--s-border-width-default) solid var(--s-border-default)}:host(:last-child){border-right:var(--s-border-width-default) solid var(--s-border-default)}:host(.table-column--has-shadow-right){box-shadow:var(--swirl-table-sticky-right-shadow)}:host(.table-column--has-shadow-left){box-shadow:var(--swirl-table-sticky-left-shadow)}:host *{box-sizing:border-box}.table-column__sort-indicator{display:inline-flex;width:1.25rem;height:1.25rem;flex-grow:0;flex-shrink:0}", a = class {
|
package/dist/{swirl-table-row-group.entry.4fa20251.js → swirl-table-row-group.entry.2908f880.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as r, H as s, g as t } from "./index.
|
|
1
|
+
import { r as o, h as r, H as s, g as t } from "./index.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ":host{position:relative;z-index:1;display:block}:host *{box-sizing:border-box}.table-row-group__header-row{padding:var(--s-space-12) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-surface-raised-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}@media (min-width: 768px){.table-row-group__label{position:sticky;left:var(--s-space-16)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as r, g as n } from "./index.
|
|
1
|
+
import { r as l, h as e, H as r, g as n } from "./index.d7895c25.js";
|
|
2
2
|
import { c as a } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { b as o } from "./balancetext-fa49c64f.754e913c.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, c as n, h as i, H as r } from "./index.
|
|
1
|
+
import { r as o, c as n, h as i, H as r } from "./index.d7895c25.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as c } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
package/dist/{swirl-visually-hidden.entry.b8f7116a.js → swirl-visually-hidden.entry.0da7caaf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as i, H as l } from "./index.
|
|
1
|
+
import { r as s, h as i, H as l } from "./index.d7895c25.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}", o = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@getflip/swirl-components": "^0.
|
|
21
|
+
"@getflip/swirl-components": "^0.25.1",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { r as o, c as r, h as t, H as c, g as l } from "./index.8e1ac613.js";
|
|
2
|
-
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
-
import { a as b } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
const h = ":host{display:block}:host *{box-sizing:border-box}.banner{display:flex;max-width:100%;padding:var(--s-space-12);align-items:flex-start}.banner:focus:not(:focus-visible){outline:none}.banner:focus-visible{outline-color:var(--s-focus-default);outline-offset:var(--s-space-4)}@media (min-width: 768px){.banner{padding:var(--s-space-16)}}.banner--intent-default .banner__icon,.banner--intent-default .banner__content,.banner--intent-default .banner__action-button,.banner--intent-default .banner__dismiss-button,.banner--intent-critical .banner__icon,.banner--intent-critical .banner__content,.banner--intent-critical .banner__action-button,.banner--intent-critical .banner__dismiss-button,.banner--intent-success .banner__icon,.banner--intent-success .banner__content,.banner--intent-success .banner__action-button,.banner--intent-success .banner__dismiss-button,.banner--intent-info .banner__icon,.banner--intent-info .banner__content,.banner--intent-info .banner__action-button,.banner--intent-info .banner__dismiss-button{color:var(--s-text-on-status)}.banner--intent-default{background-color:var(--s-surface-neutral-default)}.banner--intent-critical{background-color:var(--s-surface-critical-default)}.banner--intent-success{background-color:var(--s-surface-success-default)}.banner--intent-info{background-color:var(--s-surface-info-default)}.banner--intent-warning{background-color:var(--s-surface-warning-default)}.banner--intent-warning .banner__icon{color:var(--s-icon-strong)}.banner--intent-warning .banner__content,.banner--intent-warning .banner__action-button,.banner--intent-warning .banner__dismiss-button{color:var(--s-text-default)}@media (min-width: 375px){.banner--has-icon .banner__content{padding-top:var(--s-space-2)}}.banner__icon{position:relative;top:var(--s-space-2);display:none;margin-right:var(--s-space-8);color:var(--s-icon-on-status)}@media (min-width: 375px){.banner__icon{display:inline-flex}}.banner__content{min-height:1.5rem;margin-right:var(--s-space-12);flex-grow:1;line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.banner__content{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.banner__controls{display:inline-flex;margin-left:var(--s-space-16);align-items:center;line-height:var(--s-line-height-base);gap:var(--s-space-16)}@media (min-width: 768px){.banner__controls{gap:var(--s-space-24)}}.banner__action-button,.banner__dismiss-button{display:inline-flex;overflow:hidden;max-width:7rem;height:1.5rem;padding:0;flex-shrink:0;align-items:center;border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.banner__action-button:focus,.banner__dismiss-button:focus{outline-color:var(--s-focus-default)}@media (min-width: 768px){.banner__action-button,.banner__dismiss-button{max-width:12rem}}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.banner__action-button,.banner__dismiss-button{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", u = {
|
|
7
|
-
default: void 0,
|
|
8
|
-
critical: "<swirl-icon-error></swirl-icon-error>",
|
|
9
|
-
success: "<swirl-icon-check-circle></swirl-icon-check-circle>",
|
|
10
|
-
warning: "<swirl-icon-warning></swirl-icon-warning>",
|
|
11
|
-
info: "<swirl-icon-info></swirl-icon-info>"
|
|
12
|
-
}, _ = class {
|
|
13
|
-
constructor(i) {
|
|
14
|
-
o(this, i), this.action = r(this, "action", 7), this.dismiss = r(this, "dismiss", 7), this.desktopMediaQuery = b(), this.desktopMediaQueryHandler = (n) => {
|
|
15
|
-
this.forceIconProps(n.matches);
|
|
16
|
-
}, this.onAction = (n) => {
|
|
17
|
-
this.action.emit(n);
|
|
18
|
-
}, this.onDismiss = (n) => {
|
|
19
|
-
this.dismiss.emit(n);
|
|
20
|
-
}, this.actionLabel = void 0, this.content = void 0, this.dismissable = !1, this.dismissLabel = "Dismiss", this.importance = "status", this.intent = "default", this.showIcon = !1;
|
|
21
|
-
}
|
|
22
|
-
componentDidLoad() {
|
|
23
|
-
var i, n;
|
|
24
|
-
this.forceIconProps(this.desktopMediaQuery.matches), (n = (i = this.desktopMediaQuery).addEventListener) === null || n === void 0 || n.call(i, "change", this.desktopMediaQueryHandler);
|
|
25
|
-
}
|
|
26
|
-
disconnectedCallback() {
|
|
27
|
-
var i, n;
|
|
28
|
-
(n = (i = this.desktopMediaQuery).removeEventListener) === null || n === void 0 || n.call(i, "change", this.desktopMediaQueryHandler);
|
|
29
|
-
}
|
|
30
|
-
forceIconProps(i) {
|
|
31
|
-
var n, s;
|
|
32
|
-
const a = (n = this.iconEl) === null || n === void 0 ? void 0 : n.children[0], e = (s = this.dismissButtonEl) === null || s === void 0 ? void 0 : s.children[0];
|
|
33
|
-
a == null || a.setAttribute("size", i ? "20" : "24"), e == null || e.setAttribute("size", i ? "20" : "24");
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
const i = u[this.intent], n = Boolean(this.actionLabel) || this.dismissable, s = this.showIcon && Boolean(i), a = d("banner", `banner--intent-${this.intent}`, {
|
|
37
|
-
"banner--has-icon": s
|
|
38
|
-
});
|
|
39
|
-
return t(c, null, t("div", { "aria-describedby": "content", class: a, role: this.importance, tabIndex: 0 }, s && t("span", { "aria-hidden": "true", class: "banner__icon", innerHTML: i, ref: (e) => this.iconEl = e }), t("span", { class: "banner__content", id: "content", part: "banner__content" }, this.content), n && t("span", { class: "banner__controls" }, this.actionLabel && t("button", { class: "banner__action-button", onClick: this.onAction, part: "banner__action-button", type: "button" }, this.actionLabel), this.dismissable && t("button", { "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, part: "banner__dismiss-button", ref: (e) => this.dismissButtonEl = e, type: "button" }, t("swirl-icon-close", null)))));
|
|
40
|
-
}
|
|
41
|
-
get element() {
|
|
42
|
-
return l(this);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
_.style = h;
|
|
46
|
-
export {
|
|
47
|
-
_ as swirl_banner
|
|
48
|
-
};
|