@getflip/swirl-components-react 0.24.1 → 0.25.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.e4184d58.js → file-manager.entry.aaf36472.js} +1 -1
- package/dist/{index.d7895c25.js → index.f2d42269.js} +155 -154
- package/dist/stencil-generated/index.d.ts +1 -0
- package/dist/{swirl-action-list-section.entry.19b33d63.js → swirl-action-list-section.entry.fcc7aa02.js} +1 -1
- package/dist/{swirl-action-list_3.entry.8d13b80e.js → swirl-action-list_3.entry.3f46c26a.js} +1 -1
- package/dist/{swirl-app-bar.entry.1c3fd3f9.js → swirl-app-bar.entry.44e6f7c7.js} +1 -1
- package/dist/swirl-app-icon.entry.cf7641eb.js +25 -0
- package/dist/{swirl-app-layout_7.entry.c5ad48bd.js → swirl-app-layout_7.entry.80bc8746.js} +1 -1
- package/dist/{swirl-autocomplete.entry.a1f7a08d.js → swirl-autocomplete.entry.43cd0e64.js} +1 -1
- package/dist/{swirl-avatar-group.entry.95a6a486.js → swirl-avatar-group.entry.b67f7592.js} +1 -1
- package/dist/{swirl-avatar.entry.74bb5c4e.js → swirl-avatar.entry.3e792833.js} +1 -1
- package/dist/{swirl-badge.entry.145e1960.js → swirl-badge.entry.f9f10ca1.js} +1 -1
- package/dist/{swirl-banner.entry.4d318f26.js → swirl-banner.entry.b43bb6ed.js} +1 -1
- package/dist/{swirl-button-group.entry.d351bed4.js → swirl-button-group.entry.6e2a0e23.js} +1 -1
- package/dist/{swirl-button.entry.7b7dcd83.js → swirl-button.entry.f07f5953.js} +1 -1
- package/dist/{swirl-card.entry.03fec590.js → swirl-card.entry.2ac0a1a6.js} +1 -1
- package/dist/{swirl-checkbox.entry.5e81b6ae.js → swirl-checkbox.entry.af2c6b5d.js} +1 -1
- package/dist/{swirl-chip.entry.2b4373a0.js → swirl-chip.entry.cb915d3e.js} +1 -1
- package/dist/{swirl-columns.entry.be5690d5.js → swirl-columns.entry.164a4c5a.js} +1 -1
- package/dist/swirl-components-react.js +175 -174
- package/dist/swirl-components-react.umd.cjs +142 -32
- package/dist/{swirl-console-layout.entry.b24a7654.js → swirl-console-layout.entry.4fb56452.js} +1 -1
- package/dist/{swirl-date-input.entry.d51c352a.js → swirl-date-input.entry.dd893cb0.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.84c9e535.js → swirl-date-picker_2.entry.38c37a53.js} +1 -1
- package/dist/{swirl-description-list-item.entry.a92850ca.js → swirl-description-list-item.entry.4590204a.js} +1 -1
- package/dist/{swirl-description-list.entry.95b97fa2.js → swirl-description-list.entry.e1e814f7.js} +1 -1
- package/dist/{swirl-dialog.entry.0701af22.js → swirl-dialog.entry.70401709.js} +1 -1
- package/dist/{swirl-file-uploader.entry.48985551.js → swirl-file-uploader.entry.7e2b957b.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.c6ab0cfb.js → swirl-file-viewer_7.entry.feed41f1.js} +1 -1
- package/dist/{swirl-form-control.entry.f502e306.js → swirl-form-control.entry.82045e63.js} +1 -1
- package/dist/{swirl-form-group.entry.76f626ce.js → swirl-form-group.entry.12cdb292.js} +1 -1
- package/dist/{swirl-heading.entry.1715248a.js → swirl-heading.entry.7f3c88cf.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.4fd87d1d.js → swirl-icon-add-photo.entry.afde3243.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.392f2450.js → swirl-icon-add_6.entry.ea49ad1c.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.4e06df32.js → swirl-icon-admin-panel-settings.entry.a2c0d2d2.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.23369ff8.js → swirl-icon-arrow-back.entry.05a91414.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.078729a2.js → swirl-icon-arrow-downward_2.entry.31452aeb.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.4fabd19a.js → swirl-icon-arrow-forward.entry.9b2a5d03.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.650b1aff.js → swirl-icon-arrow-left_4.entry.a23d078e.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.6ef0c8bc.js → swirl-icon-arrow-right-small.entry.168366b3.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.f5e4710e.js → swirl-icon-attachment.entry.e66902df.js} +1 -1
- package/dist/{swirl-icon-block.entry.983971b1.js → swirl-icon-block.entry.e7698abb.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.d79ae2e7.js → swirl-icon-bookmark.entry.a27c06ef.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.93a732fe.js → swirl-icon-cancel_4.entry.289a22bf.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.5fb874a3.js → swirl-icon-chat-bubble.entry.42fd6bc2.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.beffa6d7.js → swirl-icon-chats-filled.entry.328626d4.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.4e2e37af.js → swirl-icon-chats-outlined.entry.371551f6.js} +1 -1
- package/dist/{swirl-icon-check-circle.entry.cca663bc.js → swirl-icon-check-circle.entry.5206acda.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.eb994f9a.js → swirl-icon-check-small_4.entry.00c004ae.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.de7735fb.js → swirl-icon-check-strong.entry.22a5d43c.js} +1 -1
- package/dist/{swirl-icon-check.entry.1c39e48a.js → swirl-icon-check.entry.57c9a56b.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.7632a872.js → swirl-icon-chevron-left.entry.9fda0e0b.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.dc9e51e3.js → swirl-icon-chevron-right.entry.afa42dcf.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.47d3bbc5.js → swirl-icon-close-small.entry.469c03a3.js} +1 -1
- package/dist/{swirl-icon-close.entry.f43c3265.js → swirl-icon-close.entry.d16eaf1f.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.8b1c5cc8.js → swirl-icon-cloud-upload.entry.6c4f15cc.js} +1 -1
- package/dist/{swirl-icon-column.entry.859adfe0.js → swirl-icon-column.entry.0ed2183c.js} +1 -1
- package/dist/{swirl-icon-comment.entry.e335c0e0.js → swirl-icon-comment.entry.b1483dcb.js} +1 -1
- package/dist/{swirl-icon-copy.entry.a5261473.js → swirl-icon-copy.entry.2740eed5.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.1eee1d26.js → swirl-icon-date-range.entry.0aa3beb4.js} +1 -1
- package/dist/{swirl-icon-delete.entry.54daaed9.js → swirl-icon-delete.entry.8b137230.js} +1 -1
- package/dist/{swirl-icon-description.entry.e46585fc.js → swirl-icon-description.entry.62a73896.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.cd768772.js → swirl-icon-double-arrow-left.entry.061b2c3e.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.e5390c56.js → swirl-icon-double-arrow-right.entry.e69b9fe6.js} +1 -1
- package/dist/{swirl-icon-download.entry.30be06df.js → swirl-icon-download.entry.21011314.js} +1 -1
- package/dist/{swirl-icon-edit.entry.56c4c8de.js → swirl-icon-edit.entry.c02dfe6f.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.623f9ce8.js → swirl-icon-emoji-mood.entry.39770071.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.bb6c5930.js → swirl-icon-emoji-satisfied.entry.2a022b88.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.de06bb56.js → swirl-icon-error_3.entry.d2f4db8f.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.d0da6773.js → swirl-icon-expand-more.entry.1fab167c.js} +1 -1
- package/dist/{swirl-icon-filter.entry.dffe7e73.js → swirl-icon-filter.entry.d5e895c3.js} +1 -1
- package/dist/{swirl-icon-folder.entry.63ba31f8.js → swirl-icon-folder.entry.e95ebe85.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.8a4408f6.js → swirl-icon-group-assign.entry.308fddc4.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.4109c2e3.js → swirl-icon-groups-custom.entry.e67ead38.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.278d42f9.js → swirl-icon-groups-filled.entry.224bd41e.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.74b81ba6.js → swirl-icon-groups-outlined.entry.dfc93dd7.js} +1 -1
- package/dist/{swirl-icon-groups.entry.3bf594fe.js → swirl-icon-groups.entry.2102c6b5.js} +1 -1
- package/dist/{swirl-icon-help.entry.abb610a7.js → swirl-icon-help.entry.f506032f.js} +1 -1
- package/dist/{swirl-icon-image.entry.c8a1f547.js → swirl-icon-image.entry.cb792a0d.js} +1 -1
- package/dist/{swirl-icon-info.entry.51b2f67a.js → swirl-icon-info.entry.0c76fd71.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.7724f2ac.js → swirl-icon-inventory.entry.75e02e94.js} +1 -1
- package/dist/{swirl-icon-like.entry.4c1c158b.js → swirl-icon-like.entry.b8e33d4a.js} +1 -1
- package/dist/{swirl-icon-link.entry.8bb5e7fd.js → swirl-icon-link.entry.a71ec845.js} +1 -1
- package/dist/{swirl-icon-lock.entry.e7196787.js → swirl-icon-lock.entry.46ab8b90.js} +1 -1
- package/dist/{swirl-icon-logout.entry.6c6055bb.js → swirl-icon-logout.entry.e4aeb071.js} +1 -1
- package/dist/{swirl-icon-mail.entry.0d819f99.js → swirl-icon-mail.entry.c8e02667.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.4a624c60.js → swirl-icon-manage-accounts.entry.1ecd7911.js} +1 -1
- package/dist/{swirl-icon-mention.entry.8d5e6c64.js → swirl-icon-mention.entry.30db137d.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.289bc2d4.js → swirl-icon-menu-filled.entry.34253fa8.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.91928b04.js → swirl-icon-menu-outlined.entry.2f8c1f14.js} +1 -1
- package/dist/{swirl-icon-menu.entry.b77e8e76.js → swirl-icon-menu.entry.b91de1fe.js} +1 -1
- package/dist/{swirl-icon-message.entry.67fa2d9e.js → swirl-icon-message.entry.0850b775.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.ecc03621.js → swirl-icon-more-horizontal.entry.70685e84.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.75518865.js → swirl-icon-news-filled.entry.bc2b21a6.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.7b4baed1.js → swirl-icon-news-outlined.entry.c3e8632c.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.f656e02a.js → swirl-icon-notifications-active.entry.19d9e407.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.4dcf3760.js → swirl-icon-notifications-off.entry.96c688bb.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.f58edc08.js → swirl-icon-notifications.entry.f00e93fe.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.a80bbdd7.js → swirl-icon-open-in-new.entry.e48d9baf.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.348cb5f0.js → swirl-icon-people-alt.entry.7153d424.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.7f035c71.js → swirl-icon-person-off.entry.4731b98b.js} +1 -1
- package/dist/{swirl-icon-person.entry.ff9b77c6.js → swirl-icon-person.entry.a09d2595.js} +1 -1
- package/dist/{swirl-icon-phone.entry.f43eec19.js → swirl-icon-phone.entry.b86d4f24.js} +1 -1
- package/dist/{swirl-icon-poll.entry.8ebff9de.js → swirl-icon-poll.entry.55a98978.js} +1 -1
- package/dist/{swirl-icon-print.entry.af75018d.js → swirl-icon-print.entry.a18d74d6.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.e063c9ac.js → swirl-icon-recieved.entry.2137e3ff.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.55927dd9.js → swirl-icon-search-strong.entry.93e35a93.js} +1 -1
- package/dist/{swirl-icon-search.entry.a0504af9.js → swirl-icon-search.entry.a3bde2df.js} +1 -1
- package/dist/{swirl-icon-send.entry.780ab53b.js → swirl-icon-send.entry.d1e6bb2e.js} +1 -1
- package/dist/{swirl-icon-settings.entry.034a8c27.js → swirl-icon-settings.entry.838ee3c7.js} +1 -1
- package/dist/{swirl-icon-sync.entry.dbfbf1c9.js → swirl-icon-sync.entry.e9294cab.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.f8d27051.js → swirl-icon-tasks-filled.entry.544d9437.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.3e97fd7e.js → swirl-icon-tasks-outlined.entry.d728fed8.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.3ae5cbc4.js → swirl-icon-time-filled.entry.7c58ae9f.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.db0fdc32.js → swirl-icon-time-outlined.entry.3b86b209.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.3d1d297c.js → swirl-icon-user-assign.entry.6b4db471.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.6fb5f425.js → swirl-icon-video-camera.entry.bf4447be.js} +1 -1
- package/dist/{swirl-icon-warning.entry.78d7e78b.js → swirl-icon-warning.entry.6977e6c2.js} +1 -1
- package/dist/{swirl-lightbox.entry.91fa26c8.js → swirl-lightbox.entry.84ffbc76.js} +1 -1
- package/dist/{swirl-link.entry.2e73b632.js → swirl-link.entry.d3e41eb8.js} +1 -1
- package/dist/{swirl-list.entry.dd5d9e3b.js → swirl-list.entry.2908c020.js} +1 -1
- package/dist/{swirl-modal.entry.6629145a.js → swirl-modal.entry.5cbc722e.js} +1 -1
- package/dist/{swirl-option-list-section.entry.55e9c211.js → swirl-option-list-section.entry.9543515c.js} +1 -1
- package/dist/{swirl-pagination.entry.48a00ad0.js → swirl-pagination.entry.f1135409.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.07991f74.js → swirl-pdf-reader.entry.e86edfae.js} +1 -1
- package/dist/{swirl-popover.entry.c0a0eabd.js → swirl-popover.entry.e895c730.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.cc47fa2d.js → swirl-progress-indicator.entry.0d4d4b88.js} +1 -1
- package/dist/{swirl-radio-group.entry.9ad2ba4f.js → swirl-radio-group.entry.86ca2eac.js} +1 -1
- package/dist/{swirl-radio.entry.fe0998a2.js → swirl-radio.entry.373a99e9.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.6910d24f.js → swirl-resource-list-file-item.entry.331bbfa8.js} +1 -1
- package/dist/{swirl-search.entry.ea746f65.js → swirl-search.entry.9f197a97.js} +1 -1
- package/dist/{swirl-select.entry.1adbf6c0.js → swirl-select.entry.a5ca6d48.js} +1 -1
- package/dist/{swirl-shell-layout.entry.9f4dbe84.js → swirl-shell-layout.entry.4e51718e.js} +4 -4
- package/dist/swirl-shell-navigation-item.entry.cdd574d2.js +133 -0
- package/dist/{swirl-skeleton-box.entry.59eb1950.js → swirl-skeleton-box.entry.c227b826.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.6750d525.js → swirl-skeleton-text.entry.1c28e605.js} +1 -1
- package/dist/{swirl-stack.entry.4cf78ebb.js → swirl-stack.entry.b7bb489b.js} +1 -1
- package/dist/{swirl-switch.entry.b89e892f.js → swirl-switch.entry.0e3b2bb2.js} +1 -1
- package/dist/{swirl-tab.entry.4fc442ef.js → swirl-tab.entry.154dbb6d.js} +1 -1
- package/dist/{swirl-table-cell.entry.8e04dcde.js → swirl-table-cell.entry.1d197676.js} +1 -1
- package/dist/{swirl-table-column.entry.a1a48877.js → swirl-table-column.entry.cc69e02f.js} +1 -1
- package/dist/{swirl-table-row-group.entry.2908f880.js → swirl-table-row-group.entry.a02b1bef.js} +1 -1
- package/dist/{swirl-table-row.entry.bc9e4f31.js → swirl-table-row.entry.ce540cc4.js} +1 -1
- package/dist/{swirl-table.entry.2d6f377f.js → swirl-table.entry.c802553a.js} +1 -1
- package/dist/{swirl-tabs.entry.dcce7fa1.js → swirl-tabs.entry.386f71cb.js} +1 -1
- package/dist/{swirl-tag.entry.209bfb45.js → swirl-tag.entry.f4b3687d.js} +1 -1
- package/dist/{swirl-text-input.entry.6ab8bc43.js → swirl-text-input.entry.4cc15eeb.js} +1 -1
- package/dist/{swirl-text.entry.345e1169.js → swirl-text.entry.e98101bd.js} +1 -1
- package/dist/{swirl-theme-provider.entry.049a49a2.js → swirl-theme-provider.entry.2b071352.js} +1 -1
- package/dist/{swirl-toast-provider.entry.6c20b2a5.js → swirl-toast-provider.entry.2585c128.js} +1 -1
- package/dist/{swirl-toast.entry.e51348a1.js → swirl-toast.entry.6d86b7dd.js} +1 -1
- package/dist/{swirl-tooltip.entry.417f3c45.js → swirl-tooltip.entry.ce71c3dd.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.a6839b2c.js → swirl-tree-navigation-item.entry.cc144e7b.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.bc92ca90.js → swirl-video-thumbnail.entry.718f8048.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.0da7caaf.js → swirl-visually-hidden.entry.cb626ec5.js} +1 -1
- package/dist/{wc-datepicker.entry.ca456578.js → wc-datepicker.entry.9b18ef4d.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-shell-navigation-item.entry.0b901c7d.js +0 -34
|
@@ -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.f2d42269.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.f2d42269.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.f2d42269.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.f2d42269.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.f2d42269.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.f2d42269.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.f2d42269.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.f2d42269.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.f2d42269.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as h } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as r, h as e, H as c, g as d } from "./index.
|
|
1
|
+
import { r as a, c as r, h as e, H as c, g as d } from "./index.f2d42269.js";
|
|
2
2
|
import { c as h } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as p } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as o, h as e, H as t } from "./index.
|
|
1
|
+
import { r as o, h as e, H as t } from "./index.f2d42269.js";
|
|
2
2
|
import { c as i } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as r, g as d } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const n = `:host{--extended-sidebar-width:
|
|
6
|
+
const n = `:host{--extended-sidebar-width:17rem;--collapsed-sidebar-width:4rem;display:flex;width:100%;height:100%}:host *{box-sizing:border-box}.shell-layout{display:grid;width:100%;min-height:100%;transition:grid-template-columns 0.2s;grid-template-columns:0 1fr;grid-template-rows:auto 1fr;grid-template-areas:"banner banner"
|
|
7
7
|
"sidebar main"}@media (min-width: 992px){.shell-layout{grid-template-columns:var(--extended-sidebar-width) 1fr}}.shell-layout--collapsed-sidebar{grid-template-columns:0 1fr}@media (min-width: 992px){.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper.shell-layout__sidebar-wrapper--hovered .shell-layout__sidebar,.shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper:focus-within .shell-layout__sidebar{width:var(--extended-sidebar-width);box-shadow:0 0.75rem 2rem rgba(25, 26, 28, 0.12),
|
|
8
|
-
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{transform:translate3d(-100%, 0, 0)}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper .shell-layout__sidebar{width:100%;box-shadow:none}@media (min-width: 992px){.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{max-width:var(--collapsed-sidebar-width);flex-basis:var(--collapsed-sidebar-width);transform:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__sidebar{box-shadow:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__collapsed-logo{display:
|
|
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{
|
|
8
|
+
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{transform:translate3d(-100%, 0, 0)}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper .shell-layout__sidebar{width:100%;box-shadow:none}@media (min-width: 992px){.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{max-width:var(--collapsed-sidebar-width);flex-basis:var(--collapsed-sidebar-width);transform:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__sidebar{box-shadow:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__collapsed-logo{display:inline-flex;justify-content:center;align-items:center}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__expanded-logo{display:none}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__toggle{display:none}}@media (min-width: 992px){.shell-layout--collapsed-sidebar{grid-template-columns:var(--collapsed-sidebar-width) 1fr}}.shell-layout__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{flex-shrink:0;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.shell-layout__logo-bar{display:flex;overflow:hidden;align-items:center;height:4.5rem}.shell-layout__expanded-logo{padding-right:var(--s-space-12);padding-left:var(--s-space-12);flex-grow:1}.shell-layout__collapsed-logo{display:none;padding-right:var(--s-space-12);padding-left:var(--s-space-12);flex-grow:1}.shell-layout__toggle{padding-right:var(--s-space-16);padding-left:var(--s-space-12);flex-grow:0;flex-shrink:0}.shell-layout__mobile-toggle{position:absolute;z-index:2;top:var(--s-space-12);left:calc(100% + var(--s-space-16))}@media (min-width: 992px){.shell-layout__mobile-toggle{display:none}}.shell-layout__main-navigation{overflow:auto;flex-grow:1;background-color:var(--s-background-default)}.shell-layout__main{min-height:0;background-color:var(--s-background-default);grid-area:main}.shell-layout__main>*,.shell-layout__main ::slotted(*){height:100%}.shell-layout__backdrop{position:fixed;z-index:1;background-color:rgba(0, 0, 0, 0.4);-webkit-animation:shell-layout-backdrop-fade-in 0.1s;animation:shell-layout-backdrop-fade-in 0.1s;inset:0}@media (min-width: 992px){.shell-layout__backdrop{display:none}}.shell-layout__backdrop--fading{-webkit-animation:shell-layout-backdrop-fade-out 0.2s;animation:shell-layout-backdrop-fade-out 0.2s}@-webkit-keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes shell-layout-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes shell-layout-backdrop-fade-out{from{opacity:1}to{opacity:0}}@keyframes shell-layout-backdrop-fade-out{from{opacity:1}to{opacity:0}}`, h = class {
|
|
10
10
|
constructor(l) {
|
|
11
11
|
o(this, l), this.desktopMediaQuery = r(), this.desktopMediaQueryHandler = (a) => {
|
|
12
12
|
a.matches ? this.showSidebar() : this.hideSidebar();
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { r as t, h as n, H as a, g as s } from "./index.f2d42269.js";
|
|
2
|
+
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const r = `/**
|
|
6
|
+
* seems the container query does not work as expected
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
:host {
|
|
10
|
+
container-type: inline-size;
|
|
11
|
+
position: relative;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 3.5rem;
|
|
15
|
+
padding-right: var(--s-space-12);
|
|
16
|
+
padding-left: var(--s-space-12);
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
align-items: center;
|
|
20
|
+
color: var(--s-text-default);
|
|
21
|
+
background-color: var(--s-surface-default);
|
|
22
|
+
font-size: var(--s-font-size-sm);
|
|
23
|
+
font-weight: var(--s-font-weight-medium);
|
|
24
|
+
line-height: var(--s-line-height-sm);
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
gap: var(--s-space-12);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(:hover) {
|
|
30
|
+
background-color: var(--s-surface-hovered);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(:active) {
|
|
34
|
+
background-color: var(--s-surface-pressed);
|
|
35
|
+
color: var(--s-text-highlight);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host(:focus) {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host(:focus-visible) .shell-navigation-item__label {
|
|
43
|
+
border-radius: var(--s-border-radius-xs);
|
|
44
|
+
box-shadow: 0 0 0 0.125rem var(--s-focus-default);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host(.shell-navigation-item--active) {
|
|
48
|
+
color: var(--s-text-highlight);
|
|
49
|
+
background-color: var(--s-surface-raised-default);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host(.shell-navigation-item--active:hover) {
|
|
53
|
+
background-color: var(--s-surface-raised-hovered);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host(.shell-navigation-item--active:active) {
|
|
57
|
+
background-color: var(--s-surface-raised-pressed);
|
|
58
|
+
color: var(--s-text-highlight);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host * {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host:before {
|
|
66
|
+
content: "";
|
|
67
|
+
display: none;
|
|
68
|
+
position: absolute;
|
|
69
|
+
left: 0;
|
|
70
|
+
height: 2.5rem;
|
|
71
|
+
width: 4px;
|
|
72
|
+
background-color: var(--s-icon-highlight);
|
|
73
|
+
border-top-right-radius: 4px;
|
|
74
|
+
border-bottom-right-radius: 4px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host(.shell-navigation-item--active):before {
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.shell-navigation-item__icon {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
align-items: center;
|
|
85
|
+
min-width: 2.5rem;
|
|
86
|
+
min-height: 2.5rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.shell-navigation-item__label {
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
min-width: 0;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
text-overflow: ellipsis;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@container (max-width: 4rem) {
|
|
97
|
+
.shell-navigation-item__label {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.shell-navigation-item__badge {
|
|
102
|
+
position: absolute;
|
|
103
|
+
bottom: 0;
|
|
104
|
+
right: var(--s-space-4);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@container (min-width: 14rem) {
|
|
109
|
+
.shell-navigation-item__badge {
|
|
110
|
+
margin-left: auto;
|
|
111
|
+
padding-right: var(--s-space-4);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`, l = class {
|
|
115
|
+
constructor(e) {
|
|
116
|
+
t(this, e), this.onKeyDown = (i) => {
|
|
117
|
+
i.code === "Enter" && (i.preventDefault(), this.el.click());
|
|
118
|
+
}, this.active = void 0, this.badgeLabel = void 0, this.label = void 0;
|
|
119
|
+
}
|
|
120
|
+
render() {
|
|
121
|
+
const e = o("shell-navigation-item", {
|
|
122
|
+
"shell-navigation-item--active": this.active
|
|
123
|
+
});
|
|
124
|
+
return n(a, { class: e, onKeyDown: this.onKeyDown, role: "link", tabIndex: 0 }, n("span", { class: "shell-navigation-item__icon" }, n("slot", { name: "icon" })), n("span", { class: "shell-navigation-item__label" }, this.label), this.badgeLabel && n("swirl-badge", { class: "shell-navigation-item__badge", size: "s", "aria-label": this.badgeLabel, label: this.badgeLabel }));
|
|
125
|
+
}
|
|
126
|
+
get el() {
|
|
127
|
+
return s(this);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
l.style = r;
|
|
131
|
+
export {
|
|
132
|
+
l as swirl_shell_navigation_item
|
|
133
|
+
};
|
|
@@ -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.f2d42269.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.f2d42269.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.2908f880.js → swirl-table-row-group.entry.a02b1bef.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.f2d42269.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.f2d42269.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.f2d42269.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.0da7caaf.js → swirl-visually-hidden.entry.cb626ec5.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.f2d42269.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.25.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.26.1",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as o, h as s, H as t, g as a } from "./index.d7895c25.js";
|
|
2
|
-
import { c as n } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
const r = ":host{display:inline-flex;width:100%;height:3rem;padding-right:var(--s-space-12);padding-left:calc(var(--s-space-12) + var(--s-space-2));flex-shrink:0;justify-content:flex-start;align-items:center;border-radius:var(--s-border-radius-sm);color:var(--s-text-default);background-color:var(--s-surface-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);cursor:pointer;gap:var(--s-space-12)}:host(:hover){background-color:var(--s-surface-hovered)}:host(:active){background-color:var(--s-surface-pressed)}:host(:focus){outline:none}:host(:focus-visible) .shell-navigation-item__label{border-radius:var(--s-border-radius-xs);box-shadow:0 0 0 0.125rem var(--s-focus-default)}:host(.shell-navigation-item--active){color:var(--s-text-highlight);background-color:var(--s-surface-raised-default)}:host(.shell-navigation-item--active) ::part(icon){color:var(--s-icon-highlight)}:host(.shell-navigation-item--active:hover){background-color:var(--s-surface-raised-hovered)}:host(.shell-navigation-item--active:active){background-color:var(--s-surface-raised-pressed)}:host *{box-sizing:border-box}.shell-navigation-item__icon{display:inline-flex}.shell-navigation-item__icon ::part(icon){color:var(--s-icon-default)}.shell-navigation-item__label{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis}", l = class {
|
|
6
|
-
constructor(e) {
|
|
7
|
-
o(this, e), this.onKeyDown = (i) => {
|
|
8
|
-
i.code === "Enter" && (i.preventDefault(), this.el.click());
|
|
9
|
-
}, this.active = void 0, this.icon = void 0, this.label = void 0;
|
|
10
|
-
}
|
|
11
|
-
componentDidLoad() {
|
|
12
|
-
this.forceIconProps();
|
|
13
|
-
}
|
|
14
|
-
forceIconProps() {
|
|
15
|
-
if (!Boolean(this.iconEl))
|
|
16
|
-
return;
|
|
17
|
-
const e = this.iconEl.children[0];
|
|
18
|
-
e == null || e.setAttribute("size", "20");
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
const e = n("shell-navigation-item", {
|
|
22
|
-
"shell-navigation-item--active": this.active,
|
|
23
|
-
"shell-navigation-item--has-icon": Boolean(this.icon)
|
|
24
|
-
});
|
|
25
|
-
return s(t, { class: e, onKeyDown: this.onKeyDown, role: "link", tabIndex: 0 }, s("span", { class: "shell-navigation-item__icon", innerHTML: this.icon, ref: (i) => this.iconEl = i }), s("span", { class: "shell-navigation-item__label" }, this.label));
|
|
26
|
-
}
|
|
27
|
-
get el() {
|
|
28
|
-
return a(this);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
l.style = r;
|
|
32
|
-
export {
|
|
33
|
-
l as swirl_shell_navigation_item
|
|
34
|
-
};
|