@getflip/swirl-components-react 0.42.2 → 0.43.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.ddf5b8ee.js → file-manager.entry.8354dc2e.js} +1 -1
- package/dist/{index.050f274b.js → index.bac4db77.js} +2 -2
- package/dist/{swirl-action-list-section.entry.12e1e193.js → swirl-action-list-section.entry.a38cc6ed.js} +1 -1
- package/dist/{swirl-action-list_3.entry.61bf26ba.js → swirl-action-list_3.entry.f1f79ab4.js} +1 -1
- package/dist/{swirl-app-bar.entry.e67f72a6.js → swirl-app-bar.entry.c58ec8ce.js} +1 -1
- package/dist/{swirl-app-icon.entry.edf1e5e3.js → swirl-app-icon.entry.7f269b5c.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.182542ac.js → swirl-app-layout_7.entry.0d24034f.js} +1 -1
- package/dist/{swirl-autocomplete.entry.3ebfe0f7.js → swirl-autocomplete.entry.2a88372b.js} +1 -1
- package/dist/{swirl-avatar-group.entry.5d08d0f7.js → swirl-avatar-group.entry.5ab71ea8.js} +1 -1
- package/dist/{swirl-avatar.entry.18bf86d4.js → swirl-avatar.entry.4e15832f.js} +1 -1
- package/dist/{swirl-badge.entry.a5e6e81b.js → swirl-badge.entry.45fc1143.js} +1 -1
- package/dist/{swirl-banner.entry.7bb318df.js → swirl-banner.entry.7749075a.js} +1 -1
- package/dist/{swirl-button-group.entry.6774c45e.js → swirl-button-group.entry.04d69e18.js} +1 -1
- package/dist/{swirl-button.entry.68d81b66.js → swirl-button.entry.e07e9ab6.js} +1 -1
- package/dist/{swirl-card.entry.303babb7.js → swirl-card.entry.bf9fbd5d.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.bab60b49.js → swirl-carousel-slide.entry.5b9f68ad.js} +1 -1
- package/dist/{swirl-carousel.entry.2f2ce8db.js → swirl-carousel.entry.5103ebca.js} +1 -1
- package/dist/{swirl-checkbox.entry.da5392f9.js → swirl-checkbox.entry.880ca7cf.js} +1 -1
- package/dist/{swirl-chip.entry.ee1da515.js → swirl-chip.entry.161cd0a2.js} +1 -1
- package/dist/{swirl-columns.entry.c91ace70.js → swirl-columns.entry.1a4d7c21.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +32 -32
- package/dist/{swirl-console-layout.entry.0bf2d489.js → swirl-console-layout.entry.ca6e7e59.js} +1 -1
- package/dist/{swirl-date-input.entry.52333745.js → swirl-date-input.entry.50e09854.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.6fed37a6.js → swirl-date-picker_2.entry.709a2301.js} +1 -1
- package/dist/{swirl-description-list-item.entry.9942d98d.js → swirl-description-list-item.entry.26dfc5a5.js} +1 -1
- package/dist/{swirl-description-list.entry.12535ff5.js → swirl-description-list.entry.00ed1cfa.js} +1 -1
- package/dist/{swirl-dialog.entry.8ec8a3c1.js → swirl-dialog.entry.c090aee2.js} +1 -1
- package/dist/{swirl-file-uploader.entry.c5b60f86.js → swirl-file-uploader.entry.a7576c8c.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.dfe92b3d.js → swirl-file-viewer_7.entry.11855cb3.js} +1 -1
- package/dist/{swirl-form-control.entry.20f4ab75.js → swirl-form-control.entry.2c12a79f.js} +1 -1
- package/dist/{swirl-form-group.entry.a5b3c272.js → swirl-form-group.entry.259b48e4.js} +1 -1
- package/dist/{swirl-heading.entry.38e09b19.js → swirl-heading.entry.f8a4ae93.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.d5f64ec8.js → swirl-icon-add-photo.entry.34c8ab56.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.c72b3897.js → swirl-icon-add_6.entry.ad76b182.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.0704c9eb.js → swirl-icon-admin-panel-settings.entry.0c708162.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.5a37def3.js → swirl-icon-arrow-back.entry.a6dd6d5d.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.128a384c.js → swirl-icon-arrow-downward_2.entry.e54df08a.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.fbb3b2d0.js → swirl-icon-arrow-forward.entry.22c50fbf.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.a19f6dd3.js → swirl-icon-arrow-left_4.entry.425d8243.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.e2e36d49.js → swirl-icon-arrow-right-small.entry.9b24e24f.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.0cad8857.js → swirl-icon-attachment.entry.a6cec6f7.js} +1 -1
- package/dist/{swirl-icon-block.entry.d6fabf9a.js → swirl-icon-block.entry.f2cc0169.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.f3966b23.js → swirl-icon-bookmark.entry.b0fafe5d.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.f5d61372.js → swirl-icon-cancel_4.entry.c266b36f.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.3fd7dcf3.js → swirl-icon-chat-bubble.entry.6e363565.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.320029b5.js → swirl-icon-chats-filled.entry.89471380.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.a70975fc.js → swirl-icon-chats-outlined.entry.25f898ce.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.7acea032.js → swirl-icon-check-circle_3.entry.b5d231f9.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.dbd1603d.js → swirl-icon-check-small_4.entry.34ba824e.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.74467e39.js → swirl-icon-check-strong.entry.9669d7d5.js} +1 -1
- package/dist/{swirl-icon-check.entry.3a78d635.js → swirl-icon-check.entry.b9faeab6.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.4a906947.js → swirl-icon-chevron-left.entry.53d4079c.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.d1c4f2bf.js → swirl-icon-chevron-right.entry.b4898d0f.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.decb0b9c.js → swirl-icon-close-small.entry.daab11d9.js} +1 -1
- package/dist/{swirl-icon-close.entry.ad6d8fbf.js → swirl-icon-close.entry.7c16a604.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.404cd922.js → swirl-icon-cloud-upload.entry.b3f3e112.js} +1 -1
- package/dist/{swirl-icon-column.entry.1b3b3154.js → swirl-icon-column.entry.f3b71e5a.js} +1 -1
- package/dist/{swirl-icon-comment.entry.dd53686c.js → swirl-icon-comment.entry.77c9ed04.js} +1 -1
- package/dist/{swirl-icon-copy.entry.3f0b463e.js → swirl-icon-copy.entry.f48a1ed4.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.927de7f3.js → swirl-icon-date-range.entry.bf70f6df.js} +1 -1
- package/dist/{swirl-icon-delete.entry.6900a6f1.js → swirl-icon-delete.entry.20100afa.js} +1 -1
- package/dist/{swirl-icon-description.entry.f55cabb1.js → swirl-icon-description.entry.25c644cf.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.4b3ff78d.js → swirl-icon-double-arrow-left.entry.3e7ec4de.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.6f137e13.js → swirl-icon-double-arrow-right.entry.13430d4d.js} +1 -1
- package/dist/{swirl-icon-download.entry.dee7a39f.js → swirl-icon-download.entry.3abe3070.js} +1 -1
- package/dist/{swirl-icon-edit.entry.fb92f6ce.js → swirl-icon-edit.entry.9d67bfa0.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.c8cd4166.js → swirl-icon-emoji-mood.entry.6fc2269b.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.0b05fb15.js → swirl-icon-emoji-satisfied.entry.de76ae8b.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.d5d49509.js → swirl-icon-error_3.entry.ecac46c9.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.69e07f85.js → swirl-icon-expand-more.entry.a273af5e.js} +1 -1
- package/dist/{swirl-icon-filter.entry.f9a88489.js → swirl-icon-filter.entry.674f3c42.js} +1 -1
- package/dist/{swirl-icon-folder.entry.f2dc1cd8.js → swirl-icon-folder.entry.9840bbce.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.999f7ace.js → swirl-icon-group-assign.entry.3e729d96.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.1dc35aa2.js → swirl-icon-groups-custom.entry.cb361939.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.9714443e.js → swirl-icon-groups-filled.entry.8b82cd38.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.84d62fb7.js → swirl-icon-groups-outlined.entry.c87405fa.js} +1 -1
- package/dist/{swirl-icon-groups.entry.39b3c4b1.js → swirl-icon-groups.entry.920499f4.js} +1 -1
- package/dist/{swirl-icon-help.entry.d4412328.js → swirl-icon-help.entry.1507f692.js} +1 -1
- package/dist/{swirl-icon-image.entry.75e35483.js → swirl-icon-image.entry.973f160f.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.fe80f5fb.js → swirl-icon-inventory.entry.dcf674cc.js} +1 -1
- package/dist/{swirl-icon-like.entry.1ce7471a.js → swirl-icon-like.entry.23ea3b03.js} +1 -1
- package/dist/{swirl-icon-link.entry.94bef29a.js → swirl-icon-link.entry.bd090bb6.js} +1 -1
- package/dist/{swirl-icon-lock.entry.06cbde20.js → swirl-icon-lock.entry.8400f85e.js} +1 -1
- package/dist/{swirl-icon-logout.entry.3a56127d.js → swirl-icon-logout.entry.9ab0be28.js} +1 -1
- package/dist/{swirl-icon-mail.entry.73b21fc3.js → swirl-icon-mail.entry.02b68003.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.cd9f9654.js → swirl-icon-manage-accounts.entry.4ec14793.js} +1 -1
- package/dist/{swirl-icon-mention.entry.9d0fd534.js → swirl-icon-mention.entry.98d0bb3b.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.59362a89.js → swirl-icon-menu-filled.entry.077d5bd7.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.bdd7973a.js → swirl-icon-menu-outlined.entry.2303ab54.js} +1 -1
- package/dist/{swirl-icon-menu.entry.958afcc7.js → swirl-icon-menu.entry.f975419a.js} +1 -1
- package/dist/{swirl-icon-message.entry.376573ac.js → swirl-icon-message.entry.cd564578.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.e60a0dde.js → swirl-icon-more-horizontal.entry.cc7a4089.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.56751f9f.js → swirl-icon-news-filled.entry.d4c33731.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.5f99dae0.js → swirl-icon-news-outlined.entry.054c51f5.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.24bdd5f0.js → swirl-icon-notifications-active.entry.702037b0.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.2fcbb274.js → swirl-icon-notifications-off.entry.225fdcc7.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.0b4d0602.js → swirl-icon-notifications.entry.92695d97.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.eb7a85b0.js → swirl-icon-open-in-new.entry.d2f1fb76.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.ec41825f.js → swirl-icon-people-alt.entry.9597077c.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.863a5560.js → swirl-icon-person-off.entry.564b7abd.js} +1 -1
- package/dist/{swirl-icon-person.entry.2e4c894b.js → swirl-icon-person.entry.6673a992.js} +1 -1
- package/dist/{swirl-icon-phone.entry.be23de8f.js → swirl-icon-phone.entry.55c79d6c.js} +1 -1
- package/dist/{swirl-icon-poll.entry.cc8e2b69.js → swirl-icon-poll.entry.763f5bd1.js} +1 -1
- package/dist/{swirl-icon-print.entry.f89bf131.js → swirl-icon-print.entry.f8034378.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.e73413a6.js → swirl-icon-recieved.entry.4e8d5ed1.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.b04b2c6e.js → swirl-icon-search-strong.entry.2de67345.js} +1 -1
- package/dist/{swirl-icon-search.entry.6186ceb9.js → swirl-icon-search.entry.5807dc9d.js} +1 -1
- package/dist/{swirl-icon-send.entry.f2e898e7.js → swirl-icon-send.entry.6bcbd9ce.js} +1 -1
- package/dist/{swirl-icon-settings.entry.5af010db.js → swirl-icon-settings.entry.4388cf66.js} +1 -1
- package/dist/{swirl-icon-sync.entry.e245bc5f.js → swirl-icon-sync.entry.c0c5eebe.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.366cc34d.js → swirl-icon-tasks-filled.entry.9782833b.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.6023ad48.js → swirl-icon-tasks-outlined.entry.2b600178.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.27bd3e31.js → swirl-icon-time-filled.entry.56b06943.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.2da70575.js → swirl-icon-time-outlined.entry.1f571c8f.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.a6e9f0b2.js → swirl-icon-user-assign.entry.a09b4791.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.a6376e16.js → swirl-icon-video-camera.entry.75cb3f08.js} +1 -1
- package/dist/{swirl-inline-notification.entry.e64f8800.js → swirl-inline-notification.entry.ff061e6c.js} +1 -1
- package/dist/{swirl-lightbox.entry.a39808fc.js → swirl-lightbox.entry.155c84cc.js} +1 -1
- package/dist/{swirl-link.entry.ac5931db.js → swirl-link.entry.8bbaee55.js} +1 -1
- package/dist/{swirl-list.entry.d28f1b9e.js → swirl-list.entry.2ac96091.js} +1 -1
- package/dist/swirl-modal.entry.2a319eb2.js +532 -0
- package/dist/{swirl-option-list-section.entry.e4f09f77.js → swirl-option-list-section.entry.1a0a01f7.js} +1 -1
- package/dist/{swirl-pagination.entry.6cb9a968.js → swirl-pagination.entry.e6349323.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.987a3cc2.js → swirl-pdf-reader.entry.c6773edd.js} +1 -1
- package/dist/{swirl-popover.entry.80124ff8.js → swirl-popover.entry.084ec2f7.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.2dce55b4.js → swirl-progress-indicator.entry.bfe02d3c.js} +1 -1
- package/dist/{swirl-radio-group.entry.c9e58817.js → swirl-radio-group.entry.524522c1.js} +1 -1
- package/dist/{swirl-radio.entry.7d40dfd2.js → swirl-radio.entry.81c965fd.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.0488a7d1.js → swirl-resource-list-file-item.entry.7da40636.js} +1 -1
- package/dist/{swirl-search.entry.c37c94c7.js → swirl-search.entry.ccefc879.js} +1 -1
- package/dist/{swirl-select.entry.29601a7c.js → swirl-select.entry.f0611d29.js} +1 -1
- package/dist/{swirl-shell-layout.entry.c4a9d5cd.js → swirl-shell-layout.entry.89ee0bbe.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.2dad2451.js → swirl-shell-navigation-item.entry.5fa2dda6.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.6d944e75.js → swirl-skeleton-box.entry.11e0e848.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.4869b679.js → swirl-skeleton-text.entry.c7c34f82.js} +1 -1
- package/dist/{swirl-stack.entry.432f1e14.js → swirl-stack.entry.1e3c492e.js} +1 -1
- package/dist/{swirl-switch.entry.083b1ab2.js → swirl-switch.entry.9cc1c46f.js} +1 -1
- package/dist/{swirl-tab-bar.entry.151a05d4.js → swirl-tab-bar.entry.5b08734c.js} +1 -1
- package/dist/{swirl-tab.entry.26e8bf1f.js → swirl-tab.entry.0a2bfba6.js} +1 -1
- package/dist/{swirl-table-cell.entry.1801d440.js → swirl-table-cell.entry.5a552068.js} +1 -1
- package/dist/{swirl-table-column.entry.2beaf629.js → swirl-table-column.entry.e76cfabd.js} +9 -4
- package/dist/{swirl-table-row-group.entry.0b84f9e4.js → swirl-table-row-group.entry.25502d9f.js} +1 -1
- package/dist/swirl-table-row.entry.109b197c.js +27 -0
- package/dist/swirl-table.entry.d360da64.js +131 -0
- package/dist/{swirl-tabs.entry.fc9867f7.js → swirl-tabs.entry.c6f2d5bc.js} +1 -1
- package/dist/{swirl-tag.entry.6da1b1a3.js → swirl-tag.entry.037aa101.js} +1 -1
- package/dist/{swirl-text-input.entry.740221bb.js → swirl-text-input.entry.21cc16c1.js} +1 -1
- package/dist/{swirl-text.entry.16b12c73.js → swirl-text.entry.a2d4ade8.js} +1 -1
- package/dist/{swirl-theme-provider.entry.d85716ea.js → swirl-theme-provider.entry.e101f366.js} +1 -1
- package/dist/{swirl-toast-provider.entry.e3c4b577.js → swirl-toast-provider.entry.3e4245e6.js} +1 -1
- package/dist/{swirl-toast.entry.87ccd241.js → swirl-toast.entry.ea3eb59c.js} +1 -1
- package/dist/{swirl-tooltip.entry.aeee4d70.js → swirl-tooltip.entry.e23c89fd.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.5905545a.js → swirl-tree-navigation-item.entry.25363225.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.716c5d54.js → swirl-video-thumbnail.entry.dde0f6dd.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.fc6f61cd.js → swirl-visually-hidden.entry.86bfeb76.js} +1 -1
- package/dist/{wc-datepicker.entry.8ad23683.js → wc-datepicker.entry.a349b6d8.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-modal.entry.ecd74412.js +0 -531
- package/dist/swirl-table-row.entry.0dd4a2de.js +0 -19
- package/dist/swirl-table.entry.f093c201.js +0 -153
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as s, H as l } from "./index.
|
|
1
|
+
import { r as e, h as s, H as l } from "./index.bac4db77.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":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 *{box-sizing:border-box}", t = class {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { r as e, h as t, H as i, g as r } from "./index.
|
|
1
|
+
import { r as e, h as t, H as i, g as r } from "./index.bac4db77.js";
|
|
2
|
+
import { c as o } from "./utils-61f188cc.4a43deab.js";
|
|
2
3
|
import "react";
|
|
3
4
|
import "react-dom";
|
|
4
|
-
const a = ":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-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(.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}",
|
|
5
|
+
const a = ":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-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(.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}", n = class {
|
|
5
6
|
constructor(s) {
|
|
6
7
|
e(this, s), this.sort = void 0, this.sortable = void 0, this.maxWidth = void 0, this.minWidth = "fit-content", this.sticky = void 0, this.width = void 0;
|
|
7
8
|
}
|
|
9
|
+
componentDidRender() {
|
|
10
|
+
const s = o(this.el, "swirl-table");
|
|
11
|
+
s == null || s.rerender();
|
|
12
|
+
}
|
|
8
13
|
render() {
|
|
9
14
|
const s = {
|
|
10
15
|
flex: Boolean(this.width) ? `0 0 ${this.width}` : "",
|
|
@@ -17,7 +22,7 @@ const a = ":host{display:flex;overflow:hidden;padding-top:var(--s-space-12);padd
|
|
|
17
22
|
return r(this);
|
|
18
23
|
}
|
|
19
24
|
};
|
|
20
|
-
|
|
25
|
+
n.style = a;
|
|
21
26
|
export {
|
|
22
|
-
|
|
27
|
+
n as swirl_table_column
|
|
23
28
|
};
|
package/dist/{swirl-table-row-group.entry.0b84f9e4.js → swirl-table-row-group.entry.25502d9f.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.bac4db77.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 {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as o, h as e, H as s, g as r } from "./index.bac4db77.js";
|
|
2
|
+
import { c as l } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { c as i } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const a = ":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}", d = class {
|
|
7
|
+
constructor(t) {
|
|
8
|
+
o(this, t), this.highlighted = void 0, this.index = void 0;
|
|
9
|
+
}
|
|
10
|
+
componentDidLoad() {
|
|
11
|
+
const t = i(this.el, "swirl-table");
|
|
12
|
+
t == null || t.rerender();
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = l("table-row", {
|
|
16
|
+
"table-row--highlighted": this.highlighted
|
|
17
|
+
});
|
|
18
|
+
return e(s, { "aria-rowindex": this.index, class: t, role: "row" }, e("slot", null));
|
|
19
|
+
}
|
|
20
|
+
get el() {
|
|
21
|
+
return r(this);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
d.style = a;
|
|
25
|
+
export {
|
|
26
|
+
d as swirl_table_row
|
|
27
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { r as g, h as r, H as v, g as _ } from "./index.bac4db77.js";
|
|
2
|
+
import { i as S } from "./utils-61f188cc.4a43deab.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
var R = function(t) {
|
|
6
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = void 0, s = void 0, n = void 0, a = [];
|
|
7
|
+
return function() {
|
|
8
|
+
var m = x(l), p = new Date().getTime(), w = !i || p - i > m;
|
|
9
|
+
i = p;
|
|
10
|
+
for (var b = arguments.length, d = Array(b), c = 0; c < b; c++)
|
|
11
|
+
d[c] = arguments[c];
|
|
12
|
+
if (w && o.leading)
|
|
13
|
+
return o.accumulate ? Promise.resolve(t.call(this, [d])).then(function(u) {
|
|
14
|
+
return u[0];
|
|
15
|
+
}) : Promise.resolve(t.call.apply(t, [this].concat(d)));
|
|
16
|
+
if (s ? clearTimeout(n) : s = C(), a.push(d), n = setTimeout(y.bind(this), m), o.accumulate) {
|
|
17
|
+
var f = a.length - 1;
|
|
18
|
+
return s.promise.then(function(u) {
|
|
19
|
+
return u[f];
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return s.promise;
|
|
23
|
+
};
|
|
24
|
+
function y() {
|
|
25
|
+
var h = s;
|
|
26
|
+
clearTimeout(n), Promise.resolve(o.accumulate ? t.call(this, a) : t.apply(this, a[a.length - 1])).then(h.resolve, h.reject), a = [], s = null;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function x(e) {
|
|
30
|
+
return typeof e == "function" ? e() : e;
|
|
31
|
+
}
|
|
32
|
+
function C() {
|
|
33
|
+
var e = {};
|
|
34
|
+
return e.promise = new Promise(function(t, l) {
|
|
35
|
+
e.resolve = t, e.reject = l;
|
|
36
|
+
}), e;
|
|
37
|
+
}
|
|
38
|
+
const E = `:host{position:relative;display:block}:host *{box-sizing:border-box}.table__container{position:relative;overflow:auto;width:100%}.table__container--scrolled{--swirl-table-sticky-right-shadow:0.0625rem 0 0 0 var(--s-border-default),
|
|
39
|
+
-0.0625rem 0 0 0 var(--s-border-default),
|
|
40
|
+
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
41
|
+
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__container--scrollable:not(.table__container--scrolled-to-end){--swirl-table-sticky-left-shadow:0.0625rem 0 0 0 var(--s-border-default),
|
|
42
|
+
-0.0625rem 0 0 0 var(--s-border-default),
|
|
43
|
+
0 0.25rem 1rem rgba(25, 26, 28, 0.04),
|
|
44
|
+
0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header ::slotted(*){display:flex}.table__empty-row{display:flex}.table__empty-row-cell{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-right:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);border-left:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.table__empty-row-cell>*{flex-grow:1}`, L = class {
|
|
45
|
+
constructor(e) {
|
|
46
|
+
g(this, e), this.updateLayout = R(async () => {
|
|
47
|
+
this.resetCellStyles(), this.resetColumnStyles(), this.resetEmptyRowStyles(), this.resetRowGroupStyles(), this.layoutEmptyRow(), this.layoutRowGroups(), this.layOutCells();
|
|
48
|
+
}, 16, { leading: !0 }), this.onScroll = () => {
|
|
49
|
+
this.updateScrolledState();
|
|
50
|
+
}, this.onSlotChange = async () => {
|
|
51
|
+
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
52
|
+
}, this.caption = void 0, this.emptyStateLabel = "No results found.", this.label = void 0, this.empty = void 0, this.scrollable = void 0, this.scrolled = void 0, this.scrolledToEnd = void 0;
|
|
53
|
+
}
|
|
54
|
+
async componentDidRender() {
|
|
55
|
+
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
56
|
+
}
|
|
57
|
+
async onWindowResize() {
|
|
58
|
+
await this.updateLayout(), this.updateScrolledState();
|
|
59
|
+
}
|
|
60
|
+
async rerender() {
|
|
61
|
+
await this.updateLayout(), this.updateScrolledState(), this.updateEmptyState();
|
|
62
|
+
}
|
|
63
|
+
resetEmptyRowStyles() {
|
|
64
|
+
const e = this.el.shadowRoot.querySelector(".table__empty-row");
|
|
65
|
+
!Boolean(e) || (e.style.width = "");
|
|
66
|
+
}
|
|
67
|
+
resetRowGroupStyles() {
|
|
68
|
+
Array.from(this.el.querySelectorAll("swirl-table-row-group")).forEach((t) => {
|
|
69
|
+
const l = t.shadowRoot.querySelector(".table-row-group__header-row");
|
|
70
|
+
!Boolean(l) || (t.shadowRoot.querySelector(".table-row-group__header-row").style.width = "");
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
resetColumnStyles() {
|
|
74
|
+
this.getColumns().forEach((t) => {
|
|
75
|
+
t.classList.remove("table-column--has-shadow"), t.style.right = "", t.style.left = "", t.style.position = "", t.style.zIndex = "";
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
resetCellStyles() {
|
|
79
|
+
this.getCells().forEach((t) => {
|
|
80
|
+
t.classList.remove("table-cell--has-shadow"), t.style.flex = "", t.style.left = "", t.style.right = "", t.style.position = "", t.style.zIndex = "";
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
updateScrolledState() {
|
|
84
|
+
const e = S(), t = this.container.scrollWidth > this.container.clientWidth, l = this.container.scrollLeft > 0, o = Math.ceil(this.container.clientWidth + this.container.scrollLeft) >= Math.floor(this.container.scrollWidth);
|
|
85
|
+
t !== this.scrollable && (t && !e ? this.container.classList.add("table__container--scrollable") : this.container.classList.remove("table__container--scrollable")), l !== this.scrolled && (l && !e ? this.container.classList.add("table__container--scrolled") : this.container.classList.remove("table__container--scrolled")), o !== this.scrolledToEnd && (o && !e ? this.container.classList.add("table__container--scrolled-to-end") : this.container.classList.remove("table__container--scrolled-to-end"));
|
|
86
|
+
}
|
|
87
|
+
getColumns() {
|
|
88
|
+
return Array.from(this.el.querySelectorAll("swirl-table-column"));
|
|
89
|
+
}
|
|
90
|
+
getCells() {
|
|
91
|
+
return Array.from(this.el.querySelectorAll("swirl-table-cell"));
|
|
92
|
+
}
|
|
93
|
+
layoutEmptyRow() {
|
|
94
|
+
const e = this.el.shadowRoot.querySelector(".table__empty-row");
|
|
95
|
+
if (!Boolean(e))
|
|
96
|
+
return;
|
|
97
|
+
const t = `${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;
|
|
98
|
+
e.style.width = t;
|
|
99
|
+
}
|
|
100
|
+
layoutRowGroups() {
|
|
101
|
+
var e;
|
|
102
|
+
const t = Array.from(this.el.querySelectorAll("swirl-table-row-group")), l = `${(e = this.el.shadowRoot.querySelector(".table__container")) === null || e === void 0 ? void 0 : e.scrollWidth}px`;
|
|
103
|
+
t.forEach((o) => {
|
|
104
|
+
const i = o.shadowRoot.querySelector(".table-row-group__header-row");
|
|
105
|
+
!Boolean(i) || (o.shadowRoot.querySelector(".table-row-group__header-row").style.width = l);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
layOutCells() {
|
|
109
|
+
const e = this.getColumns(), t = this.getCells();
|
|
110
|
+
e.forEach((l, o) => {
|
|
111
|
+
const i = t.filter((n, a) => (o - a) % e.length === 0), s = l.width || `${l.getBoundingClientRect().width}px`;
|
|
112
|
+
i.forEach((n) => {
|
|
113
|
+
n.style.flex = Boolean(s) ? `0 0 ${s}` : "";
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
updateEmptyState() {
|
|
118
|
+
const e = this.el.querySelector('[slot="rows"]');
|
|
119
|
+
this.empty = !Boolean(e) || e.children.length === 0;
|
|
120
|
+
}
|
|
121
|
+
render() {
|
|
122
|
+
return r(v, null, r("div", { class: "table" }, r("div", { class: "table__container", onScroll: this.onScroll, ref: (e) => this.container = e }, r("div", { "aria-describedby": Boolean(this.caption) ? "caption" : void 0, "aria-label": this.label, role: "table", class: "table__table" }, this.caption && r("swirl-visually-hidden", null, r("div", { id: "caption" }, this.caption)), r("div", { role: "rowgroup" }, r("div", { class: "table__header", role: "row" }, r("slot", { name: "columns", onSlotchange: this.onSlotChange }))), r("div", { class: "table__body" }, r("slot", { name: "rows", onSlotchange: this.onSlotChange }), this.empty && r("div", { class: "table__empty-row", role: "row" }, r("div", { "aria-colspan": this.getColumns().length, class: "table__empty-row-cell", role: "cell" }, r("swirl-text", { align: "center", size: "sm" }, this.emptyStateLabel))))))));
|
|
123
|
+
}
|
|
124
|
+
get el() {
|
|
125
|
+
return _(this);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
L.style = E;
|
|
129
|
+
export {
|
|
130
|
+
L as swirl_table
|
|
131
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, c as b, h as s, H as r, g as n } from "./index.
|
|
1
|
+
import { r as e, c as b, h as s, H as r, g as n } from "./index.bac4db77.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const c = ".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%}", h = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as J, h as y, H as T, g as V } from "./index.
|
|
1
|
+
import { r as J, h as y, H as T, g as V } from "./index.bac4db77.js";
|
|
2
2
|
import { c as F } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { b as G } 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.bac4db77.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.fc6f61cd.js → swirl-visually-hidden.entry.86bfeb76.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.bac4db77.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.43.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.44.1",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|