@getflip/swirl-components-react 0.14.0 → 0.16.0
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/{balancetext-31f1ec68.bd1c1b2d.js → balancetext-fa49c64f.754e913c.js} +1 -1
- package/dist/{file-manager.entry.313b8c7c.js → file-manager.entry.20ffe74a.js} +1 -1
- package/dist/index-d280dafb.186cdb0e.js +71 -0
- package/dist/index.771fb0bd.js +1424 -0
- package/dist/stencil-generated/index.d.ts +7 -0
- package/dist/{swirl-action-list-section.entry.d256aaab.js → swirl-action-list-section.entry.5552aa20.js} +1 -1
- package/dist/swirl-action-list_3.entry.4f943f70.js +89 -0
- package/dist/{swirl-app-layout_5.entry.e95b5db4.js → swirl-app-layout_5.entry.05c5b705.js} +15 -16
- package/dist/{swirl-autocomplete.entry.5dd8a0f2.js → swirl-autocomplete.entry.97b5c640.js} +3 -4
- package/dist/{swirl-avatar-group.entry.8a9e1a7a.js → swirl-avatar-group.entry.3a2a9e5a.js} +4 -5
- package/dist/{swirl-avatar.entry.d9305778.js → swirl-avatar.entry.c43f4681.js} +2 -3
- package/dist/{swirl-badge.entry.343617d0.js → swirl-badge.entry.7be0934d.js} +2 -3
- package/dist/{swirl-banner.entry.b456e6bc.js → swirl-banner.entry.1597d14a.js} +3 -4
- package/dist/{swirl-button-group.entry.e333895b.js → swirl-button-group.entry.dafcab95.js} +2 -3
- package/dist/{swirl-button.entry.2a618b68.js → swirl-button.entry.199c6a8a.js} +10 -8
- package/dist/{swirl-card.entry.9d9aa2af.js → swirl-card.entry.e5ed3c77.js} +2 -3
- package/dist/{swirl-checkbox.entry.4fb05d65.js → swirl-checkbox.entry.0600cd6f.js} +2 -3
- package/dist/{swirl-chip.entry.2acd5392.js → swirl-chip.entry.4f576f76.js} +3 -4
- package/dist/swirl-components-react.js +126 -119
- package/dist/swirl-components-react.umd.cjs +47 -44
- package/dist/{swirl-console-layout.entry.70af7d3d.js → swirl-console-layout.entry.ff15c1d4.js} +3 -4
- package/dist/{swirl-date-input.entry.74baafc1.js → swirl-date-input.entry.e5eb360e.js} +5 -6
- package/dist/{swirl-date-picker_2.entry.047e3cba.js → swirl-date-picker_2.entry.5f9e31e4.js} +2 -3
- package/dist/{swirl-description-list-item.entry.b0f47248.js → swirl-description-list-item.entry.f0c4e608.js} +1 -1
- package/dist/{swirl-description-list.entry.2a45d3ab.js → swirl-description-list.entry.0340fc1d.js} +1 -1
- package/dist/{swirl-dialog.entry.5d3e1fc6.js → swirl-dialog.entry.fab32668.js} +2 -3
- package/dist/{swirl-file-uploader.entry.dfc1d331.js → swirl-file-uploader.entry.ff6a732f.js} +2 -3
- package/dist/{swirl-file-viewer_7.entry.8582dc5b.js → swirl-file-viewer_7.entry.47672c19.js} +369 -348
- package/dist/{swirl-form-control.entry.9016a12e.js → swirl-form-control.entry.67eebaa3.js} +2 -3
- package/dist/{swirl-form-group.entry.acd21d5a.js → swirl-form-group.entry.695465dd.js} +2 -3
- package/dist/{swirl-heading.entry.d5f3f196.js → swirl-heading.entry.5a244e67.js} +3 -4
- package/dist/{swirl-icon-add-photo.entry.b6b8d145.js → swirl-icon-add-photo.entry.d7a58326.js} +2 -3
- package/dist/swirl-icon-add_6.entry.03d1eaf1.js +72 -0
- package/dist/{swirl-icon-admin-panel-settings.entry.cbf77079.js → swirl-icon-admin-panel-settings.entry.cdce67c5.js} +4 -5
- package/dist/{swirl-icon-arrow-back.entry.e1a7bbc0.js → swirl-icon-arrow-back.entry.64d10729.js} +6 -7
- package/dist/{swirl-icon-arrow-downward_2.entry.6e12407d.js → swirl-icon-arrow-downward_2.entry.b7a7d6cf.js} +2 -3
- package/dist/{swirl-icon-arrow-forward.entry.5e09833d.js → swirl-icon-arrow-forward.entry.1b3d6314.js} +5 -6
- package/dist/swirl-icon-arrow-left_4.entry.9e3544d8.js +50 -0
- package/dist/{swirl-icon-arrow-right-small.entry.e383ffa6.js → swirl-icon-arrow-right-small.entry.3b9ae0a5.js} +5 -6
- package/dist/{swirl-icon-attachment.entry.455a7bfe.js → swirl-icon-attachment.entry.f49c7730.js} +5 -6
- package/dist/{swirl-icon-block.entry.9f333c93.js → swirl-icon-block.entry.fa877db4.js} +7 -8
- package/dist/{swirl-icon-bookmark.entry.1e272909.js → swirl-icon-bookmark.entry.54962d28.js} +2 -3
- package/dist/{swirl-icon-cancel_4.entry.4f7ca0aa.js → swirl-icon-cancel_4.entry.50b58fee.js} +2 -3
- package/dist/{swirl-icon-chat-bubble.entry.52e69d49.js → swirl-icon-chat-bubble.entry.c2a076f7.js} +4 -5
- package/dist/{swirl-icon-chats-filled.entry.39ff452c.js → swirl-icon-chats-filled.entry.cd642800.js} +2 -3
- package/dist/{swirl-icon-chats-outlined.entry.5cb1eefb.js → swirl-icon-chats-outlined.entry.bd1131ca.js} +4 -5
- package/dist/{swirl-icon-check-circle.entry.6fa2ef87.js → swirl-icon-check-circle.entry.c190d70f.js} +2 -3
- package/dist/{swirl-icon-check-small_4.entry.1845bf2b.js → swirl-icon-check-small_4.entry.02540bd9.js} +3 -4
- package/dist/{swirl-icon-check-strong.entry.b623e034.js → swirl-icon-check-strong.entry.3591ce92.js} +6 -7
- package/dist/{swirl-icon-check.entry.4cf18b55.js → swirl-icon-check.entry.bba18e6f.js} +2 -3
- package/dist/{swirl-icon-chevron-left.entry.95060d93.js → swirl-icon-chevron-left.entry.fa824265.js} +5 -6
- package/dist/{swirl-icon-chevron-right.entry.b182e3e5.js → swirl-icon-chevron-right.entry.57bc9371.js} +2 -3
- package/dist/{swirl-icon-close-small.entry.22aaa0c5.js → swirl-icon-close-small.entry.8fff42b6.js} +2 -3
- package/dist/{swirl-icon-close.entry.49f6e45d.js → swirl-icon-close.entry.b9322bbe.js} +5 -6
- package/dist/{swirl-icon-cloud-upload.entry.7c482ec2.js → swirl-icon-cloud-upload.entry.0aab63e7.js} +2 -3
- package/dist/{swirl-icon-column.entry.9136436c.js → swirl-icon-column.entry.2f445faa.js} +7 -8
- package/dist/{swirl-icon-comment.entry.a632ad32.js → swirl-icon-comment.entry.aac07110.js} +2 -3
- package/dist/{swirl-icon-copy.entry.52c46124.js → swirl-icon-copy.entry.de91c57e.js} +5 -6
- package/dist/{swirl-icon-date-range.entry.fb774376.js → swirl-icon-date-range.entry.a806737d.js} +2 -3
- package/dist/{swirl-icon-delete.entry.5c80a345.js → swirl-icon-delete.entry.fe6cc703.js} +8 -9
- package/dist/{swirl-icon-description.entry.2cf0dc3c.js → swirl-icon-description.entry.f049a0cd.js} +2 -3
- package/dist/swirl-icon-double-arrow-left.entry.4a2f4dda.js +17 -0
- package/dist/swirl-icon-double-arrow-right.entry.6a34eb2b.js +17 -0
- package/dist/swirl-icon-download.entry.c41e4266.js +17 -0
- package/dist/{swirl-icon-edit.entry.bb5d32ba.js → swirl-icon-edit.entry.e9a07a85.js} +5 -6
- package/dist/{swirl-icon-emoji-mood.entry.367cc80a.js → swirl-icon-emoji-mood.entry.b74812b6.js} +5 -6
- package/dist/{swirl-icon-emoji-satisfied.entry.64f15ba2.js → swirl-icon-emoji-satisfied.entry.2e784849.js} +2 -3
- package/dist/{swirl-icon-error_3.entry.83dd8d6a.js → swirl-icon-error_3.entry.86558ef6.js} +7 -8
- package/dist/{swirl-icon-expand-more.entry.05277173.js → swirl-icon-expand-more.entry.857ce700.js} +5 -6
- package/dist/{swirl-icon-file.entry.3487ba9f.js → swirl-icon-file.entry.41af312e.js} +4 -5
- package/dist/{swirl-icon-filter.entry.66f49bc7.js → swirl-icon-filter.entry.40c17edf.js} +2 -3
- package/dist/{swirl-icon-folder-shared.entry.1e4cc5ed.js → swirl-icon-folder-shared.entry.f57cd35d.js} +2 -3
- package/dist/swirl-icon-folder.entry.7304ddef.js +17 -0
- package/dist/{swirl-icon-group-assign.entry.e546a3bc.js → swirl-icon-group-assign.entry.8fed9b9c.js} +5 -6
- package/dist/{swirl-icon-groups-custom.entry.714c1fde.js → swirl-icon-groups-custom.entry.edb72334.js} +2 -3
- package/dist/{swirl-icon-groups-filled.entry.d1324828.js → swirl-icon-groups-filled.entry.28994fb5.js} +6 -7
- package/dist/{swirl-icon-groups-outlined.entry.87201dd1.js → swirl-icon-groups-outlined.entry.a0514ed1.js} +2 -3
- package/dist/{swirl-icon-groups.entry.65eb994a.js → swirl-icon-groups.entry.79f63ae8.js} +5 -6
- package/dist/{swirl-icon-help.entry.b5a8b568.js → swirl-icon-help.entry.36866dc4.js} +5 -6
- package/dist/{swirl-icon-image.entry.978e1d21.js → swirl-icon-image.entry.b4d50f81.js} +2 -3
- package/dist/{swirl-icon-info.entry.e92e4c16.js → swirl-icon-info.entry.895b53ab.js} +6 -7
- package/dist/{swirl-icon-inventory.entry.969153d5.js → swirl-icon-inventory.entry.52b6a01e.js} +5 -6
- package/dist/{swirl-icon-like.entry.71c22713.js → swirl-icon-like.entry.8595b4ab.js} +6 -7
- package/dist/{swirl-icon-link.entry.2c60c940.js → swirl-icon-link.entry.19691045.js} +5 -6
- package/dist/{swirl-icon-lock.entry.9e0161e3.js → swirl-icon-lock.entry.c5baddde.js} +7 -8
- package/dist/{swirl-icon-logout.entry.c5381645.js → swirl-icon-logout.entry.589c9f3e.js} +2 -3
- package/dist/{swirl-icon-mail.entry.6c984822.js → swirl-icon-mail.entry.aa3a8071.js} +8 -9
- package/dist/{swirl-icon-manage-accounts.entry.f8fd3559.js → swirl-icon-manage-accounts.entry.5a3ac2bc.js} +2 -3
- package/dist/{swirl-icon-mention.entry.93d4f40c.js → swirl-icon-mention.entry.b3828dbe.js} +5 -6
- package/dist/{swirl-icon-menu-filled.entry.0c02b1e2.js → swirl-icon-menu-filled.entry.15601920.js} +2 -3
- package/dist/{swirl-icon-menu-outlined.entry.c5da01e4.js → swirl-icon-menu-outlined.entry.0ff1bcda.js} +6 -7
- package/dist/{swirl-icon-menu.entry.503c141a.js → swirl-icon-menu.entry.6b73dde5.js} +5 -6
- package/dist/{swirl-icon-message.entry.6db2caf8.js → swirl-icon-message.entry.6fb71047.js} +2 -3
- package/dist/{swirl-icon-more-horizontal.entry.b12378ac.js → swirl-icon-more-horizontal.entry.1546f87d.js} +2 -3
- package/dist/{swirl-icon-news-filled.entry.ad14a8c7.js → swirl-icon-news-filled.entry.693bbe99.js} +2 -3
- package/dist/{swirl-icon-news-outlined.entry.d98b0e06.js → swirl-icon-news-outlined.entry.c604bace.js} +4 -5
- package/dist/{swirl-icon-notifications-active.entry.1bf7fd92.js → swirl-icon-notifications-active.entry.d4f603a6.js} +4 -5
- package/dist/{swirl-icon-notifications-off.entry.58c97e94.js → swirl-icon-notifications-off.entry.dc93820a.js} +2 -3
- package/dist/{swirl-icon-notifications.entry.d2565cf0.js → swirl-icon-notifications.entry.b8238ff0.js} +2 -3
- package/dist/{swirl-icon-open-in-new.entry.086d5e74.js → swirl-icon-open-in-new.entry.03ae2b7f.js} +6 -7
- package/dist/{swirl-icon-people-alt.entry.265732c1.js → swirl-icon-people-alt.entry.125b2063.js} +2 -3
- package/dist/{swirl-icon-person-off.entry.9a6117a5.js → swirl-icon-person-off.entry.c43cbf3f.js} +2 -3
- package/dist/{swirl-icon-person.entry.d44bd845.js → swirl-icon-person.entry.08fda345.js} +2 -3
- package/dist/{swirl-icon-phone.entry.0e51e77d.js → swirl-icon-phone.entry.50dcf41d.js} +2 -3
- package/dist/{swirl-icon-poll.entry.645ec904.js → swirl-icon-poll.entry.26d3ba7d.js} +5 -6
- package/dist/{swirl-icon-print.entry.57381444.js → swirl-icon-print.entry.7fb7220a.js} +5 -6
- package/dist/{swirl-icon-recieved.entry.a54a0cca.js → swirl-icon-recieved.entry.16b6593b.js} +6 -7
- package/dist/{swirl-icon-search-strong.entry.13523840.js → swirl-icon-search-strong.entry.9520c399.js} +2 -3
- package/dist/{swirl-icon-search.entry.cd0e2efa.js → swirl-icon-search.entry.41f267f4.js} +2 -3
- package/dist/{swirl-icon-send.entry.92965ef4.js → swirl-icon-send.entry.33278242.js} +7 -8
- package/dist/{swirl-icon-settings.entry.647b9b9a.js → swirl-icon-settings.entry.e6005ffc.js} +2 -3
- package/dist/{swirl-icon-sync.entry.d8686f6d.js → swirl-icon-sync.entry.df437327.js} +5 -6
- package/dist/{swirl-icon-tasks-filled.entry.a0078629.js → swirl-icon-tasks-filled.entry.83c10995.js} +2 -3
- package/dist/{swirl-icon-tasks-outlined.entry.4d4692cd.js → swirl-icon-tasks-outlined.entry.087d7d78.js} +2 -3
- package/dist/{swirl-icon-time-filled.entry.9a53309f.js → swirl-icon-time-filled.entry.03f26736.js} +2 -3
- package/dist/{swirl-icon-time-outlined.entry.3ee9922f.js → swirl-icon-time-outlined.entry.d543c31e.js} +5 -6
- package/dist/{swirl-icon-user-assign.entry.25374fd6.js → swirl-icon-user-assign.entry.2c92778c.js} +5 -6
- package/dist/{swirl-icon-video-camera.entry.87e4d0f1.js → swirl-icon-video-camera.entry.8ede1b5a.js} +2 -3
- package/dist/{swirl-icon-warning.entry.84b2b545.js → swirl-icon-warning.entry.c20f10f2.js} +2 -3
- package/dist/swirl-lightbox.entry.38465d54.js +131 -0
- package/dist/{swirl-link.entry.68a6d594.js → swirl-link.entry.0fa816a4.js} +1 -1
- package/dist/{swirl-list.entry.5fbb2b14.js → swirl-list.entry.d0ba2cd0.js} +1 -1
- package/dist/{swirl-modal.entry.7206d1a3.js → swirl-modal.entry.ceaae69a.js} +2 -3
- package/dist/{swirl-option-list-section.entry.18baecf3.js → swirl-option-list-section.entry.04a3275e.js} +1 -1
- package/dist/{swirl-pagination.entry.c7542c36.js → swirl-pagination.entry.89c76bc8.js} +2 -3
- package/dist/swirl-pdf-reader.entry.afa81425.js +98 -0
- package/dist/{swirl-popover.entry.8d4ec220.js → swirl-popover.entry.06394ecc.js} +26 -27
- package/dist/{swirl-progress-indicator.entry.a4126e3f.js → swirl-progress-indicator.entry.3e6a995f.js} +2 -3
- package/dist/{swirl-radio-group.entry.15357364.js → swirl-radio-group.entry.87584edf.js} +1 -1
- package/dist/{swirl-radio.entry.4d612329.js → swirl-radio.entry.217a708e.js} +2 -3
- package/dist/{swirl-resource-list-file-item.entry.d49f71df.js → swirl-resource-list-file-item.entry.366c3ba6.js} +3 -4
- package/dist/{swirl-search.entry.64731720.js → swirl-search.entry.54eb832f.js} +3 -4
- package/dist/{swirl-select.entry.9eb2a7df.js → swirl-select.entry.cfed617a.js} +3 -4
- package/dist/swirl-shell-layout.entry.5235baf4.js +56 -0
- package/dist/swirl-shell-navigation-item.entry.18d99f7e.js +34 -0
- package/dist/{swirl-skeleton-box.entry.881f1103.js → swirl-skeleton-box.entry.f4774a3d.js} +2 -3
- package/dist/{swirl-skeleton-text.entry.d47af665.js → swirl-skeleton-text.entry.9f12dd3d.js} +2 -3
- package/dist/{swirl-stack.entry.1bf0bb6c.js → swirl-stack.entry.84603ec1.js} +2 -3
- package/dist/{swirl-switch.entry.20435526.js → swirl-switch.entry.c8a6a7af.js} +9 -10
- package/dist/{swirl-tab.entry.87ba443d.js → swirl-tab.entry.c69b60b9.js} +5 -6
- package/dist/{swirl-table-cell.entry.7e6ba90a.js → swirl-table-cell.entry.8ca65c35.js} +1 -1
- package/dist/{swirl-table-column.entry.8e52b72f.js → swirl-table-column.entry.3caaa152.js} +1 -1
- package/dist/{swirl-table-row-group.entry.0f0f8e4a.js → swirl-table-row-group.entry.bd156d99.js} +1 -1
- package/dist/{swirl-table-row.entry.1daca0eb.js → swirl-table-row.entry.104fd930.js} +5 -6
- package/dist/{swirl-table.entry.d064fe93.js → swirl-table.entry.14249ab1.js} +2 -2
- package/dist/{swirl-tabs.entry.accd4a02.js → swirl-tabs.entry.f76be575.js} +2 -3
- package/dist/{swirl-tag.entry.ad79f86e.js → swirl-tag.entry.5f83ab8e.js} +2 -3
- package/dist/{swirl-text-input.entry.bfcf4c41.js → swirl-text-input.entry.7a89bf47.js} +6 -7
- package/dist/{swirl-text.entry.733d285b.js → swirl-text.entry.4a39f34f.js} +5 -6
- package/dist/{swirl-theme-provider.entry.c1d97194.js → swirl-theme-provider.entry.ce1908b8.js} +1 -1
- package/dist/{swirl-toast-provider.entry.4caa1cfc.js → swirl-toast-provider.entry.0083a6ab.js} +1 -1
- package/dist/{swirl-toast.entry.3dcdd51a.js → swirl-toast.entry.6880e619.js} +6 -7
- package/dist/{swirl-tooltip.entry.eec54ec3.js → swirl-tooltip.entry.bc886575.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.2fc51541.js → swirl-tree-navigation-item.entry.69bb84fc.js} +2 -3
- package/dist/{swirl-video-thumbnail.entry.45c89279.js → swirl-video-thumbnail.entry.70cf2d94.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.8d718043.js → swirl-visually-hidden.entry.fa652e44.js} +1 -1
- package/dist/utils-61f188cc.4a43deab.js +52 -0
- package/dist/{wc-datepicker.entry.4ad085ad.js → wc-datepicker.entry.d8406594.js} +1 -1
- package/package.json +2 -2
- package/dist/_commonjsHelpers-10467d11.b7d83301.js +0 -37
- package/dist/index-47862d62.75c2fcf1.js +0 -37
- package/dist/index.6fe614c0.js +0 -1417
- package/dist/swirl-action-list-item.entry.fa699b60.js +0 -34
- package/dist/swirl-action-list.entry.fecb516a.js +0 -38
- package/dist/swirl-icon-add_4.entry.5d7cb42a.js +0 -51
- package/dist/swirl-icon-arrow-left_3.entry.dea508c8.js +0 -40
- package/dist/swirl-icon-more-vertikal.entry.590b40db.js +0 -18
- package/dist/swirl-lightbox.entry.50e168f2.js +0 -119
- package/dist/swirl-pdf-reader.entry.5736dbbf.js +0 -79
- package/dist/swirl-separator.entry.ac3a46cc.js +0 -15
- package/dist/swirl-thumbnail.entry.682af2ec.js +0 -18
- package/dist/utils-33d31b58.1488fcfe.js +0 -46
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r as i, h as e, H as t } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as s } 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 h = `:host{--extended-sidebar-width:17.5rem;--collapsed-sidebar-width:4rem;display:flex;width:100%;height:100%}:host *{box-sizing:border-box}.shell-layout{display:flex;width:100%;min-height:100%;background-color:var(--s-border-default);gap:var(--s-border-width-default)}@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),
|
|
7
|
+
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08)}}.shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper{min-height:100%;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}}.shell-layout__sidebar-wrapper{position:absolute;z-index:2;top:0;bottom:0;left:0;width:100%;max-width:var(--extended-sidebar-width);flex-basis:var(--extended-sidebar-width);flex-shrink:0;transition:max-width 0.2s, transform 0.2s}@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);background-color: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),
|
|
8
|
+
0 0.25rem 0.75rem rgba(25, 26, 28, 0.08);gap:var(--s-border-width-default)}@media (min-width: 992px){.shell-layout__sidebar{border-right:none;box-shadow:none}}.shell-layout__header{padding:var(--s-space-8);flex-shrink:0;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{flex-grow:1;background-color:var(--s-background-default)}.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}}`, n = class {
|
|
9
|
+
constructor(l) {
|
|
10
|
+
i(this, l), this.desktopMediaQuery = r(), this.desktopMediaQueryHandler = (a) => {
|
|
11
|
+
a.matches ? this.showSidebar() : this.hideSidebar();
|
|
12
|
+
}, this.hideSidebar = () => {
|
|
13
|
+
this.collapsedSidebar = !0, this.collapsing = !0, setTimeout(() => {
|
|
14
|
+
this.collapsing = !1, this.sidebarHovered = !1;
|
|
15
|
+
}, 200);
|
|
16
|
+
}, this.showSidebar = () => {
|
|
17
|
+
this.collapsedSidebar = !1;
|
|
18
|
+
}, this.toggleSidebar = () => {
|
|
19
|
+
this.collapsedSidebar ? this.showSidebar() : this.hideSidebar();
|
|
20
|
+
}, this.onBackdropClick = () => {
|
|
21
|
+
this.collapsedSidebar || this.hideSidebar();
|
|
22
|
+
}, this.onSidebarClick = () => {
|
|
23
|
+
var a;
|
|
24
|
+
this.collapsedSidebar && ((a = d()) === null || a === void 0 || a.blur());
|
|
25
|
+
}, this.onSidebarMouseEnter = () => {
|
|
26
|
+
this.sidebarHovered = !0;
|
|
27
|
+
}, this.onSidebarMouseLeave = () => {
|
|
28
|
+
this.sidebarHovered = !1;
|
|
29
|
+
}, this.mainNavigationLabel = "Main", this.sidebarToggleLabel = "Toggle sidebar", this.collapsedSidebar = void 0, this.collapsing = void 0, this.sidebarHovered = void 0;
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
var l, a;
|
|
33
|
+
this.desktopMediaQuery.matches || this.hideSidebar(), (a = (l = this.desktopMediaQuery).addEventListener) === null || a === void 0 || a.call(l, "change", this.desktopMediaQueryHandler);
|
|
34
|
+
}
|
|
35
|
+
async collapseSidebar() {
|
|
36
|
+
this.hideSidebar();
|
|
37
|
+
}
|
|
38
|
+
async extendSidebar() {
|
|
39
|
+
this.showSidebar();
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const l = s("shell-layout", {
|
|
43
|
+
"shell-layout--collapsed-sidebar": this.collapsedSidebar,
|
|
44
|
+
"shell-layout--collapsing": this.collapsing
|
|
45
|
+
}), a = s("shell-layout__sidebar-wrapper", {
|
|
46
|
+
"shell-layout__sidebar-wrapper--hovered": this.sidebarHovered
|
|
47
|
+
}), o = s("shell-layout__backdrop", {
|
|
48
|
+
"shell-layout__backdrop--fading": this.collapsing
|
|
49
|
+
});
|
|
50
|
+
return e(t, null, e("div", { class: l }, 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" })), this.collapsedSidebar && !this.collapsing && e("div", { class: "shell-layout__mobile-toggle" }, e("swirl-button", { swirlAriaExpanded: String(!this.collapsedSidebar), hideLabel: !0, icon: "<swirl-icon-menu></swirl-icon-menu>", label: this.sidebarToggleLabel, onClick: this.showSidebar })))), e("main", { class: "shell-layout__main" }, e("slot", { name: "main" })), (!this.collapsedSidebar || this.collapsing) && e("div", { class: o, onClick: this.onBackdropClick })));
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
n.style = h;
|
|
54
|
+
export {
|
|
55
|
+
n as swirl_shell_layout
|
|
56
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as o, h as s, H as t, g as a } from "./index.771fb0bd.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
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as t, h as s, H as i } from "./index.
|
|
2
|
-
import { c as o } from "./index-
|
|
1
|
+
import { r as t, h as s, H as i } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
const r = `:host{display:block}:host *{box-sizing:border-box}.skeleton-box{position:relative;overflow:hidden;min-height:var(--s-font-size-sm);background-color:var(--s-surface-raised-hovered)}.skeleton-box:before{position:relative;z-index:1;display:block;width:100%;height:100%;background-image:linear-gradient(
|
|
7
6
|
90deg,
|
|
8
7
|
rgba(255, 255, 255, 0) 0,
|
package/dist/{swirl-skeleton-text.entry.d47af665.js → swirl-skeleton-text.entry.9f12dd3d.js}
RENAMED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as l, h as t, H as a } from "./index.
|
|
2
|
-
import { c as s } from "./index-
|
|
1
|
+
import { r as l, h as t, H as a } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as s } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
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
6
|
(var(--s-line-height-sm) - var(--s-font-size-sm)) / 2
|
|
8
7
|
)}.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(
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as i, h as s, H as e } from "./index.
|
|
2
|
-
import { c as n } from "./index-
|
|
1
|
+
import { r as i, h as s, H as e } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as n } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
const c = ":host{display:block;width:100%}:host *{box-sizing:border-box}.stack{display:flex;width:100%;max-width:100%}.stack ::slotted(*){min-width:0;max-width:100%;flex-basis:auto;flex-grow:0;flex-shrink:1}.stack--align-start{align-items:flex-start}.stack--align-center{align-items:center}.stack--align-end{align-items:flex-end}.stack--align-stretch{align-items:stretch}.stack--justify-start{justify-content:flex-start}.stack--justify-center{justify-content:center}.stack--justify-end{justify-content:flex-end}.stack--justify-space-between{justify-content:space-between}.stack--justify-space-around{justify-content:space-around}.stack--justify-space-evenly{justify-content:space-evenly}.stack--justify-stretch{justify-content:stretch}.stack--justify-stretch ::slotted(*){flex-grow:1}.stack--orientation-vertical{flex-direction:column}.stack--orientation-horizontal{flex-direction:row}.stack--wrap{flex-wrap:wrap}", r = class {
|
|
7
6
|
constructor(t) {
|
|
8
7
|
i(this, t), this.align = "start", this.as = "div", this.justify = "start", this.orientation = "vertical", this.spacing = "0", this.wrap = !1;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as h, c as n, h as e, H as a, g as l } from "./index.
|
|
2
|
-
import { c as o } from "./index-
|
|
1
|
+
import { r as h, c as n, h as e, H as a, g as l } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
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
6
|
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
7
|
constructor(c) {
|
|
@@ -19,8 +18,8 @@ const d = `.sc-swirl-switch-h{display:inline-flex}.sc-swirl-switch-h *.sc-swirl-
|
|
|
19
18
|
}, this.onEndDrag = () => {
|
|
20
19
|
if (!this.disabled) {
|
|
21
20
|
if (this.recentlyDragged) {
|
|
22
|
-
const i = this.control.getBoundingClientRect(), r = this.thumb.getBoundingClientRect(),
|
|
23
|
-
this.checked !==
|
|
21
|
+
const i = this.control.getBoundingClientRect(), r = this.thumb.getBoundingClientRect(), s = this.thumb.offsetLeft + r.width / 2 > i.width / 2;
|
|
22
|
+
this.checked !== s && (this.checked = s, this.valueChange.emit(s));
|
|
24
23
|
}
|
|
25
24
|
this.thumb.style.left = "", this.thumb.style.transition = "", this.dragging = !1, setTimeout(() => {
|
|
26
25
|
this.recentlyDragged = !1;
|
|
@@ -30,21 +29,21 @@ const d = `.sc-swirl-switch-h{display:inline-flex}.sc-swirl-switch-h *.sc-swirl-
|
|
|
30
29
|
if (!this.dragging)
|
|
31
30
|
return;
|
|
32
31
|
this.recentlyDragged = !0;
|
|
33
|
-
const r = this.control.getBoundingClientRect(),
|
|
34
|
-
let
|
|
35
|
-
|
|
32
|
+
const r = this.control.getBoundingClientRect(), s = this.thumb.getBoundingClientRect();
|
|
33
|
+
let t = Math.round(i.offsetX - s.width / 2);
|
|
34
|
+
t < 0 && (t = 0), t > Math.round(r.width - s.width) && (t = Math.round(r.width - s.width)), this.thumb.style.left = `${t}px`;
|
|
36
35
|
}, 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
36
|
}
|
|
38
37
|
onWindowPointerUp() {
|
|
39
38
|
this.onEndDrag();
|
|
40
39
|
}
|
|
41
40
|
render() {
|
|
42
|
-
const c = !this.checked, i = this.checked, r = i ? "true" : "false",
|
|
41
|
+
const c = !this.checked, i = this.checked, r = i ? "true" : "false", s = o("switch", `switch--size-${this.size}`, {
|
|
43
42
|
"switch--off": c,
|
|
44
43
|
"switch--on": i,
|
|
45
44
|
"switch--disabled": this.disabled
|
|
46
45
|
});
|
|
47
|
-
return e(a, null, e("label", { class:
|
|
46
|
+
return e(a, null, e("label", { class: s, htmlFor: this.inputId }, e("span", { class: "switch__control", onPointerDown: this.onStartDrag, onPointerMove: this.onDrag, onPointerUp: this.onEndDrag, ref: (t) => this.control = t }, 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: (t) => this.thumb = t })), this.label && e("span", { class: "switch__label" }, this.label)));
|
|
48
47
|
}
|
|
49
48
|
get el() {
|
|
50
49
|
return l(this);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as a, h as s, H as i } from "./index.
|
|
2
|
-
import { c as e } from "./index-
|
|
1
|
+
import { r as a, h as s, H as i } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as e } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
|
|
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 {
|
|
5
|
+
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}", l = class {
|
|
7
6
|
constructor(t) {
|
|
8
7
|
a(this, t), this.active = void 0, this.label = void 0, this.tabId = void 0;
|
|
9
8
|
}
|
|
@@ -12,7 +11,7 @@ const r = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{dis
|
|
|
12
11
|
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
12
|
}
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
l.style = r;
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
l as swirl_tab
|
|
18
17
|
};
|
|
@@ -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.771fb0bd.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.771fb0bd.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.0f0f8e4a.js → swirl-table-row-group.entry.bd156d99.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.771fb0bd.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,17 +1,16 @@
|
|
|
1
|
-
import { r, h as o, H as
|
|
2
|
-
import { c as
|
|
1
|
+
import { r as s, h as o, H as e } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as r } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
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
6
|
constructor(t) {
|
|
8
|
-
|
|
7
|
+
s(this, t), this.highlighted = void 0, this.index = void 0;
|
|
9
8
|
}
|
|
10
9
|
render() {
|
|
11
|
-
const t =
|
|
10
|
+
const t = r("table-row", {
|
|
12
11
|
"table-row--highlighted": this.highlighted
|
|
13
12
|
});
|
|
14
|
-
return o(
|
|
13
|
+
return o(e, { "aria-rowindex": this.index, class: t, role: "row" }, o("slot", null));
|
|
15
14
|
}
|
|
16
15
|
};
|
|
17
16
|
i.style = l;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as g, h as i, H as _, g as S } from "./index.
|
|
2
|
-
import { i as v } from "./utils-
|
|
1
|
+
import { r as g, h as i, H as _, g as S } from "./index.771fb0bd.js";
|
|
2
|
+
import { i as v } from "./utils-61f188cc.4a43deab.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
var C = function(e) {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as i, c as r, h as e, H as o, g as b } from "./index.
|
|
2
|
-
import { c as n } from "./index-
|
|
1
|
+
import { r as i, c as r, h as e, H as o, g as b } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as n } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
const l = '.sc-swirl-tabs-h{display:block;width:100%}.sc-swirl-tabs-h *.sc-swirl-tabs{box-sizing:border-box}.tabs.sc-swirl-tabs{width:100%}.tabs__tab-bar.sc-swirl-tabs{position:relative;display:flex;width:100%;justify-content:flex-start;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.tabs__tab.sc-swirl-tabs{position:relative;display:block;min-width:0;margin:0;padding:var(--s-space-4) var(--s-space-8);border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);cursor:pointer}.tabs__tab.sc-swirl-tabs:focus{outline:none}.tabs__tab.sc-swirl-tabs:focus-visible .tabs__tab-label.sc-swirl-tabs{border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.125rem var(--s-focus-default)}.tabs__tab.sc-swirl-tabs:not(.tabs__tab--active):hover:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-default);content:"";transform:translateX(-50%);pointer-events:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tabs__tab.sc-swirl-tabs{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tabs__tab-label.sc-swirl-tabs{display:block;overflow:hidden;width:100%;padding:var(--s-space-8) var(--s-space-8);text-align:center;white-space:nowrap;text-overflow:ellipsis}.tabs__tab--active.sc-swirl-tabs{color:var(--s-text-highlight)}.tabs__tab--active.sc-swirl-tabs:after{position:absolute;bottom:0;left:50%;width:calc(100% - var(--s-space-8));height:0.1875rem;border-radius:0.125rem;background-color:var(--s-border-highlight);content:"";transform:translateX(-50%);pointer-events:none}', c = class {
|
|
7
6
|
constructor(t) {
|
|
8
7
|
i(this, t), this.tabActivated = r(this, "tabActivated", 7), this.tabs = [], this.onKeyDown = (a) => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r, c as s, h as t, H as n } from "./index.
|
|
2
|
-
import { c as i } from "./index-
|
|
1
|
+
import { r, c as s, h as t, H as n } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as i } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
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
6
|
constructor(a) {
|
|
8
7
|
r(this, a), this.remove = s(this, "remove", 7), this.onRemove = (e) => {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { r as h, c as n, h as i, H as d } from "./index.
|
|
2
|
-
import { c } from "./index-
|
|
3
|
-
import {
|
|
1
|
+
import { r as h, c as n, h as i, H as d } from "./index.771fb0bd.js";
|
|
2
|
+
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { a as x } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
|
|
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 {
|
|
6
|
+
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)}', b = class {
|
|
8
7
|
constructor(e) {
|
|
9
8
|
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
9
|
this.updateIconSize(t.matches);
|
|
@@ -69,7 +68,7 @@ const w = '.sc-swirl-text-input-h{display:block;width:100%}.sc-swirl-text-input-
|
|
|
69
68
|
return i(d, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.swirlAriaAutocomplete, "aria-controls": this.swirlAriaControls, "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.swirlAriaExpanded, "aria-invalid": s, autoComplete: this.autoComplete, autoFocus: this.autoFocus, class: "text-input__input", disabled: this.disabled, inputMode: this.mode, maxLength: this.maxLength, max: this.type === "number" ? this.max : void 0, min: this.type === "number" ? this.min : void 0, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, onKeyPress: this.onKeyPress, ref: (p) => this.inputEl = p, required: this.required, role: this.swirlRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: l, value: this.rows === 1 ? this.value : void 0 }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), u && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, type: "button" }, i("swirl-icon-cancel", { size: this.iconSize })), a && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("swirl-icon-visibility-off", { size: this.iconSize }) : i("swirl-icon-visibility", { size: this.iconSize })), r && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-less", { size: this.iconSize })), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("swirl-icon-expand-more", { size: this.iconSize }))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((e = this.value) === null || e === void 0 ? void 0 : e.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
70
69
|
}
|
|
71
70
|
};
|
|
72
|
-
|
|
71
|
+
b.style = w;
|
|
73
72
|
export {
|
|
74
|
-
|
|
73
|
+
b as swirl_text_input
|
|
75
74
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { r, h as e, H as
|
|
2
|
-
import { c as a } from "./index-
|
|
3
|
-
import { b as o } from "./balancetext-
|
|
1
|
+
import { r as l, h as e, H as r, g as n } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as a } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { b as o } from "./balancetext-fa49c64f.754e913c.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
6
|
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
7
|
constructor(t) {
|
|
9
|
-
|
|
8
|
+
l(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
9
|
}
|
|
11
10
|
componentDidRender() {
|
|
12
11
|
this.rebalance();
|
|
@@ -19,7 +18,7 @@ const x = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-s
|
|
|
19
18
|
}
|
|
20
19
|
render() {
|
|
21
20
|
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
|
-
return e(
|
|
21
|
+
return e(r, null, e(t, { class: s, ref: (i) => this.textEl = i }, e("slot", null)));
|
|
23
22
|
}
|
|
24
23
|
get el() {
|
|
25
24
|
return n(this);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { c as d } from "./index-
|
|
3
|
-
import {
|
|
1
|
+
import { r as o, c as n, h as i, H as r } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { a as c } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
7
6
|
const l = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);box-shadow:var(--s-shadow-level-2)}.toast--intent-critical{background-color:var(--s-surface-critical-default)}.toast--intent-success{background-color:var(--s-surface-success-default)}.toast__icon{display:inline-flex;margin-top:calc(-1 * var(--s-space-2));margin-right:0.625rem;flex-shrink:0}.toast__icon ::part(icon){color:var(--s-icon-on-status)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__icon{margin-top:0}}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left;align-self:flex-start}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.toast__content{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.toast__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
7
|
constructor(s) {
|
|
9
|
-
|
|
8
|
+
o(this, s), this.dismiss = n(this, "dismiss", 7), this.desktopMediaQuery = c(), this.desktopMediaQueryHandler = (t) => {
|
|
10
9
|
this.forceIconProps(t.matches);
|
|
11
10
|
}, this.onDismiss = () => {
|
|
12
11
|
this.dismiss.emit(this.toastId);
|
|
@@ -25,8 +24,8 @@ const l = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;
|
|
|
25
24
|
}
|
|
26
25
|
forceIconProps(s) {
|
|
27
26
|
var t;
|
|
28
|
-
const e = (t = this.iconEl) === null || t === void 0 ? void 0 : t.children[0],
|
|
29
|
-
e == null || e.setAttribute("size", s ? "20" : "24"),
|
|
27
|
+
const e = (t = this.iconEl) === null || t === void 0 ? void 0 : t.children[0], a = this.dismissIconEl;
|
|
28
|
+
e == null || e.setAttribute("size", s ? "20" : "24"), a == null || a.setAttribute("size", s ? "20" : "24");
|
|
30
29
|
}
|
|
31
30
|
startTimer() {
|
|
32
31
|
this.clearTimer(), this.duration !== void 0 && (this.timeout = setTimeout(() => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as t, h as i, H as s, g as r } from "./index.
|
|
2
|
-
import { c as o } from "./index-
|
|
1
|
+
import { r as t, h as i, H as s, g as r } from "./index.771fb0bd.js";
|
|
2
|
+
import { c as o } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-10467d11.b7d83301.js";
|
|
6
5
|
const n = ":host{display:inline-flex;width:100%;height:2.5rem;padding-right:var(--s-space-16);padding-left:calc(var(--s-space-16) + 1.5rem + var(--s-space-8));flex-shrink:0;justify-content:flex-start;align-items:center;color:var(--s-text-default);background-color: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
6
|
constructor(e) {
|
|
8
7
|
t(this, e), this.onKeyDown = (a) => {
|
package/dist/{swirl-visually-hidden.entry.8d718043.js → swirl-visually-hidden.entry.fa652e44.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.771fb0bd.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 {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
function u(t, e) {
|
|
2
|
+
return t ? t instanceof ShadowRoot ? u(t.host, e) : t instanceof HTMLElement && t.matches(e) ? t : u(t.parentNode, e) : null;
|
|
3
|
+
}
|
|
4
|
+
function d(t = document) {
|
|
5
|
+
const e = t.activeElement;
|
|
6
|
+
if (!!Boolean(e))
|
|
7
|
+
return Boolean(e.shadowRoot) ? d(e.shadowRoot) : e;
|
|
8
|
+
}
|
|
9
|
+
const p = () => document.documentElement.classList.contains("disable-desktop-style-tweaks") ? window.matchMedia(null) : window.matchMedia("(min-width: 992px) and (max-width: 1439px) and (hover: hover), (min-width: 1440px)");
|
|
10
|
+
function w(t, e, o = !1) {
|
|
11
|
+
let c;
|
|
12
|
+
return async function() {
|
|
13
|
+
const n = this, a = arguments, i = function() {
|
|
14
|
+
c = null, o || t.apply(n, a);
|
|
15
|
+
}, l = o && !Boolean(c);
|
|
16
|
+
clearTimeout(c), c = setTimeout(i, e), l && t.apply(n, a);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function g(t, e) {
|
|
20
|
+
const o = e.scrollTop, c = o + e.clientHeight, s = e.getBoundingClientRect(), n = t.getBoundingClientRect(), i = {
|
|
21
|
+
top: n.top - s.top,
|
|
22
|
+
right: n.right - s.right,
|
|
23
|
+
bottom: n.bottom - s.bottom,
|
|
24
|
+
left: n.left - s.left
|
|
25
|
+
}.top + o, l = i + t.offsetHeight, r = i < o ? o : i;
|
|
26
|
+
return (l > c ? c : l) - r;
|
|
27
|
+
}
|
|
28
|
+
function b() {
|
|
29
|
+
return !window.matchMedia("(min-width: 768px)").matches;
|
|
30
|
+
}
|
|
31
|
+
function B(t, e) {
|
|
32
|
+
function o(s, n) {
|
|
33
|
+
if (!Boolean(n))
|
|
34
|
+
return [];
|
|
35
|
+
const a = Array.from(n.querySelectorAll(s)), i = Boolean(window.HTMLSlotElement) && n instanceof HTMLSlotElement ? n.assignedElements() : [], l = [...Array.from(n.children), ...i], r = n.shadowRoot, h = o(s, r);
|
|
36
|
+
return [
|
|
37
|
+
...a,
|
|
38
|
+
...l.map((m) => o(s, m)).flat(),
|
|
39
|
+
...h
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
return o(e, t).filter((s, n, a) => !a.some((i, l) => i.isSameNode(s) && l > n));
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
p as a,
|
|
46
|
+
g as b,
|
|
47
|
+
u as c,
|
|
48
|
+
w as d,
|
|
49
|
+
d as g,
|
|
50
|
+
b as i,
|
|
51
|
+
B as q
|
|
52
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
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.17.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function s(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
function f(e, r, t) {
|
|
6
|
-
return t = {
|
|
7
|
-
path: r,
|
|
8
|
-
exports: {},
|
|
9
|
-
require: function(o, u) {
|
|
10
|
-
return n();
|
|
11
|
-
}
|
|
12
|
-
}, e(t, t.exports), t.exports;
|
|
13
|
-
}
|
|
14
|
-
function i(e) {
|
|
15
|
-
if (e.__esModule)
|
|
16
|
-
return e;
|
|
17
|
-
var r = Object.defineProperty({}, "__esModule", { value: !0 });
|
|
18
|
-
return Object.keys(e).forEach(function(t) {
|
|
19
|
-
var o = Object.getOwnPropertyDescriptor(e, t);
|
|
20
|
-
Object.defineProperty(r, t, o.get ? o : {
|
|
21
|
-
enumerable: !0,
|
|
22
|
-
get: function() {
|
|
23
|
-
return e[t];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}), r;
|
|
27
|
-
}
|
|
28
|
-
function n() {
|
|
29
|
-
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
a,
|
|
33
|
-
n as b,
|
|
34
|
-
f as c,
|
|
35
|
-
i as d,
|
|
36
|
-
s as g
|
|
37
|
-
};
|