@getflip/swirl-components-react 0.36.0 → 0.37.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/{file-manager.entry.22549b6e.js → file-manager.entry.c985f415.js} +1 -1
- package/dist/{index.bd28426e.js → index.f17ef3a1.js} +218 -218
- package/dist/{swirl-action-list-section.entry.93af999f.js → swirl-action-list-section.entry.2a38163d.js} +1 -1
- package/dist/{swirl-action-list_3.entry.3d0463da.js → swirl-action-list_3.entry.1c481122.js} +1 -1
- package/dist/{swirl-app-bar.entry.34596809.js → swirl-app-bar.entry.3a25f4a0.js} +1 -1
- package/dist/{swirl-app-icon.entry.ad91502c.js → swirl-app-icon.entry.bf11cbc7.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.9d8d72f6.js → swirl-app-layout_7.entry.28c2b4de.js} +26 -22
- package/dist/{swirl-autocomplete.entry.be731941.js → swirl-autocomplete.entry.f0fdb5bc.js} +1 -1
- package/dist/{swirl-avatar-group.entry.81ab4113.js → swirl-avatar-group.entry.f7087e94.js} +1 -1
- package/dist/{swirl-avatar.entry.66b1f663.js → swirl-avatar.entry.eef43ae5.js} +1 -1
- package/dist/{swirl-badge.entry.5d2eacc5.js → swirl-badge.entry.f72244f7.js} +1 -1
- package/dist/{swirl-banner.entry.5d0cf5e3.js → swirl-banner.entry.4276994b.js} +1 -1
- package/dist/{swirl-button-group.entry.0da1601d.js → swirl-button-group.entry.64d5a32e.js} +1 -1
- package/dist/{swirl-button.entry.6d8e83fa.js → swirl-button.entry.e315dd7d.js} +1 -1
- package/dist/{swirl-card.entry.5b436ca8.js → swirl-card.entry.36f66851.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.024dbe84.js → swirl-carousel-slide.entry.fddbb981.js} +1 -1
- package/dist/{swirl-carousel.entry.f4f8918c.js → swirl-carousel.entry.06b994ec.js} +1 -1
- package/dist/{swirl-checkbox.entry.db9b2ec9.js → swirl-checkbox.entry.a8b01cff.js} +1 -1
- package/dist/{swirl-chip.entry.5e0bced5.js → swirl-chip.entry.33850745.js} +1 -1
- package/dist/{swirl-columns.entry.65defe84.js → swirl-columns.entry.f3e96252.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +41 -41
- package/dist/{swirl-console-layout.entry.24a923f8.js → swirl-console-layout.entry.044b5ac8.js} +2 -2
- package/dist/{swirl-date-input.entry.7bf0348d.js → swirl-date-input.entry.3f2ae86d.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.ce8b7a47.js → swirl-date-picker_2.entry.76a72f5c.js} +1 -1
- package/dist/{swirl-description-list-item.entry.b9b592df.js → swirl-description-list-item.entry.715dc40c.js} +1 -1
- package/dist/{swirl-description-list.entry.7d1a904d.js → swirl-description-list.entry.afe80573.js} +1 -1
- package/dist/{swirl-dialog.entry.026521c1.js → swirl-dialog.entry.10636a92.js} +1 -1
- package/dist/{swirl-file-uploader.entry.d2c9577d.js → swirl-file-uploader.entry.95bdbabd.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.f408c7c3.js → swirl-file-viewer_7.entry.26143284.js} +1 -1
- package/dist/{swirl-form-control.entry.eb803f58.js → swirl-form-control.entry.418fd19b.js} +1 -1
- package/dist/{swirl-form-group.entry.b2b968bd.js → swirl-form-group.entry.b1a56c1c.js} +1 -1
- package/dist/{swirl-heading.entry.1687784a.js → swirl-heading.entry.b7bf9a1e.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.6c30d8b3.js → swirl-icon-add-photo.entry.60ee5470.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.1955b359.js → swirl-icon-add_6.entry.05a17e5f.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.64e00d98.js → swirl-icon-admin-panel-settings.entry.1e76fe8a.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.d6c3224c.js → swirl-icon-arrow-back.entry.98c7d0ce.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.59681244.js → swirl-icon-arrow-downward_2.entry.af9497a3.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.6892d88c.js → swirl-icon-arrow-forward.entry.a2adf580.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.add8d4df.js → swirl-icon-arrow-left_4.entry.eb96a997.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.f8d6180e.js → swirl-icon-arrow-right-small.entry.f15e9d29.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.4031d1ca.js → swirl-icon-attachment.entry.8ad7b74e.js} +1 -1
- package/dist/{swirl-icon-block.entry.e07f2bbb.js → swirl-icon-block.entry.57271189.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.66844e8b.js → swirl-icon-bookmark.entry.085f1efc.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.d536549c.js → swirl-icon-cancel_4.entry.e3f2c0ae.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.ae31bd14.js → swirl-icon-chat-bubble.entry.b6f5da70.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.fde53775.js → swirl-icon-chats-filled.entry.8dc7f80f.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.652f187f.js → swirl-icon-chats-outlined.entry.08356d67.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.0e040cb3.js → swirl-icon-check-circle_3.entry.551bdfa3.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.ccbf3f9c.js → swirl-icon-check-small_4.entry.2c31b9d6.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.ba5be855.js → swirl-icon-check-strong.entry.d3724ec5.js} +1 -1
- package/dist/{swirl-icon-check.entry.fe079866.js → swirl-icon-check.entry.657757b6.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.d82e521e.js → swirl-icon-chevron-left.entry.1cf7b7a1.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.2b5ab1d3.js → swirl-icon-chevron-right.entry.a6af02b7.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.90d342a2.js → swirl-icon-close-small.entry.8394392c.js} +1 -1
- package/dist/{swirl-icon-close.entry.3330d052.js → swirl-icon-close.entry.a2508394.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.e2db0498.js → swirl-icon-cloud-upload.entry.a87772ad.js} +1 -1
- package/dist/{swirl-icon-column.entry.ea7ac5de.js → swirl-icon-column.entry.61662992.js} +1 -1
- package/dist/{swirl-icon-comment.entry.17170379.js → swirl-icon-comment.entry.80aec319.js} +1 -1
- package/dist/{swirl-icon-copy.entry.5f8e3888.js → swirl-icon-copy.entry.11a63df6.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.098f5ecc.js → swirl-icon-date-range.entry.66bf614b.js} +1 -1
- package/dist/{swirl-icon-delete.entry.c7ed4ade.js → swirl-icon-delete.entry.e2187736.js} +1 -1
- package/dist/{swirl-icon-description.entry.a66ddeec.js → swirl-icon-description.entry.817ec825.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.b714b9b2.js → swirl-icon-double-arrow-left.entry.882f14d7.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.4351e80d.js → swirl-icon-double-arrow-right.entry.ff9a65ba.js} +1 -1
- package/dist/{swirl-icon-download.entry.32e505d6.js → swirl-icon-download.entry.04e853f2.js} +1 -1
- package/dist/{swirl-icon-edit.entry.d57eacdb.js → swirl-icon-edit.entry.483458eb.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.ba949877.js → swirl-icon-emoji-mood.entry.66533ec1.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.9928ef7d.js → swirl-icon-emoji-satisfied.entry.9f10f699.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.55fc6aeb.js → swirl-icon-error_3.entry.e60e387b.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.cf4b489b.js → swirl-icon-expand-more.entry.2a755508.js} +1 -1
- package/dist/{swirl-icon-filter.entry.cd86cb94.js → swirl-icon-filter.entry.205d7d2e.js} +1 -1
- package/dist/{swirl-icon-folder.entry.df034687.js → swirl-icon-folder.entry.48a6fc28.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.acf25db9.js → swirl-icon-group-assign.entry.0468862b.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.5e615472.js → swirl-icon-groups-custom.entry.f944c844.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.832e1b31.js → swirl-icon-groups-filled.entry.40c82a04.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.21c5ccb0.js → swirl-icon-groups-outlined.entry.af587a7b.js} +1 -1
- package/dist/{swirl-icon-groups.entry.fb6da3b3.js → swirl-icon-groups.entry.ad092fed.js} +1 -1
- package/dist/{swirl-icon-help.entry.c5a6a9be.js → swirl-icon-help.entry.b3ca1361.js} +1 -1
- package/dist/{swirl-icon-image.entry.1d5ff06f.js → swirl-icon-image.entry.67ab00eb.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.21426167.js → swirl-icon-inventory.entry.96bc8527.js} +1 -1
- package/dist/{swirl-icon-like.entry.20ee00a6.js → swirl-icon-like.entry.77318448.js} +1 -1
- package/dist/{swirl-icon-link.entry.501cedec.js → swirl-icon-link.entry.afb83ae4.js} +1 -1
- package/dist/{swirl-icon-lock.entry.05045c6f.js → swirl-icon-lock.entry.b87c3113.js} +1 -1
- package/dist/{swirl-icon-logout.entry.b7d0238b.js → swirl-icon-logout.entry.d3a067bc.js} +1 -1
- package/dist/{swirl-icon-mail.entry.0505817a.js → swirl-icon-mail.entry.32fe59f6.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.c71a594c.js → swirl-icon-manage-accounts.entry.346f58f9.js} +1 -1
- package/dist/{swirl-icon-mention.entry.7db32fb4.js → swirl-icon-mention.entry.2fa32813.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.bf1bbe16.js → swirl-icon-menu-filled.entry.467faff9.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.58daad0c.js → swirl-icon-menu-outlined.entry.dd47cd11.js} +1 -1
- package/dist/{swirl-icon-menu.entry.9e89f69e.js → swirl-icon-menu.entry.8f8d7029.js} +1 -1
- package/dist/{swirl-icon-message.entry.7a95902c.js → swirl-icon-message.entry.6f88ba01.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.f4164fd5.js → swirl-icon-more-horizontal.entry.9ecfd251.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.4de44069.js → swirl-icon-news-filled.entry.9559f453.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.343899b1.js → swirl-icon-news-outlined.entry.ec976701.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.2dba4082.js → swirl-icon-notifications-active.entry.a7863e3c.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.2223c66b.js → swirl-icon-notifications-off.entry.76fa2a35.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.694ae5d7.js → swirl-icon-notifications.entry.f0daa1c7.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.b56c577c.js → swirl-icon-open-in-new.entry.47527ea3.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.b5564a63.js → swirl-icon-people-alt.entry.4eb63b58.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.8572c4f7.js → swirl-icon-person-off.entry.4529927c.js} +1 -1
- package/dist/{swirl-icon-person.entry.dc84620f.js → swirl-icon-person.entry.007afec3.js} +1 -1
- package/dist/{swirl-icon-phone.entry.c2fa47c3.js → swirl-icon-phone.entry.1d85536d.js} +1 -1
- package/dist/{swirl-icon-poll.entry.e2705a1e.js → swirl-icon-poll.entry.79f25ffb.js} +1 -1
- package/dist/{swirl-icon-print.entry.12e35355.js → swirl-icon-print.entry.1a52b513.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.f84650e5.js → swirl-icon-recieved.entry.9295b682.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.e965a509.js → swirl-icon-search-strong.entry.fbb2383d.js} +1 -1
- package/dist/{swirl-icon-search.entry.f4aee483.js → swirl-icon-search.entry.f62d0700.js} +1 -1
- package/dist/{swirl-icon-send.entry.d361c0bf.js → swirl-icon-send.entry.1a695ca8.js} +1 -1
- package/dist/{swirl-icon-settings.entry.61a0fafd.js → swirl-icon-settings.entry.a47d2624.js} +1 -1
- package/dist/{swirl-icon-sync.entry.36897e9b.js → swirl-icon-sync.entry.dcbd66dc.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.b94a9469.js → swirl-icon-tasks-filled.entry.73883af7.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.889ea68c.js → swirl-icon-tasks-outlined.entry.dc96f4c9.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.63ed64f2.js → swirl-icon-time-filled.entry.567f4b28.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.d28f190b.js → swirl-icon-time-outlined.entry.f7943376.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.020a6087.js → swirl-icon-user-assign.entry.eedd2efe.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.808eb587.js → swirl-icon-video-camera.entry.7ec95f49.js} +1 -1
- package/dist/{swirl-inline-notification.entry.a21a0c57.js → swirl-inline-notification.entry.e59250b1.js} +1 -1
- package/dist/{swirl-lightbox.entry.cac18236.js → swirl-lightbox.entry.f6f37d7d.js} +1 -1
- package/dist/{swirl-link.entry.81d1776b.js → swirl-link.entry.6ec1362d.js} +1 -1
- package/dist/{swirl-list.entry.0956f5a7.js → swirl-list.entry.e05d745e.js} +1 -1
- package/dist/{swirl-modal.entry.235ba0de.js → swirl-modal.entry.2c7fab2e.js} +1 -1
- package/dist/{swirl-option-list-section.entry.8a9dcbc6.js → swirl-option-list-section.entry.c9f49f45.js} +1 -1
- package/dist/swirl-pagination.entry.dbfae56d.js +30 -0
- package/dist/{swirl-pdf-reader.entry.de60c48a.js → swirl-pdf-reader.entry.e61f8d0a.js} +1 -1
- package/dist/{swirl-popover.entry.c662e2b7.js → swirl-popover.entry.01c8cfa8.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.bcd01dab.js → swirl-progress-indicator.entry.c8682716.js} +1 -1
- package/dist/{swirl-radio-group.entry.5ed31416.js → swirl-radio-group.entry.edb31077.js} +1 -1
- package/dist/{swirl-radio.entry.c61015eb.js → swirl-radio.entry.b4cad3fb.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.ea1b401d.js → swirl-resource-list-file-item.entry.c0e15d70.js} +1 -1
- package/dist/{swirl-search.entry.9c2a8e9f.js → swirl-search.entry.c82fb513.js} +4 -4
- package/dist/{swirl-select.entry.06fc7ef6.js → swirl-select.entry.dc5ac018.js} +1 -1
- package/dist/{swirl-shell-layout.entry.d1b71fda.js → swirl-shell-layout.entry.5a293d34.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.2e4afcb2.js → swirl-shell-navigation-item.entry.fb5b36c2.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.f55ce42b.js → swirl-skeleton-box.entry.7b8d592d.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.0a64c820.js → swirl-skeleton-text.entry.79797ebb.js} +1 -1
- package/dist/{swirl-stack.entry.7a5c66cd.js → swirl-stack.entry.a36ed3e9.js} +1 -1
- package/dist/{swirl-switch.entry.23b4ba58.js → swirl-switch.entry.889627e2.js} +1 -1
- package/dist/{swirl-tab.entry.9c39db1c.js → swirl-tab.entry.99c8d72a.js} +1 -1
- package/dist/{swirl-table-cell.entry.f8eab1f3.js → swirl-table-cell.entry.909d70fe.js} +1 -1
- package/dist/{swirl-table-column.entry.376ebc5c.js → swirl-table-column.entry.364e5761.js} +1 -1
- package/dist/{swirl-table-row-group.entry.614be4a6.js → swirl-table-row-group.entry.03ef98eb.js} +1 -1
- package/dist/{swirl-table-row.entry.8a69e0af.js → swirl-table-row.entry.894c70ef.js} +1 -1
- package/dist/{swirl-table.entry.6eac46b0.js → swirl-table.entry.87551bf6.js} +1 -1
- package/dist/{swirl-tabs.entry.ab96aed5.js → swirl-tabs.entry.2143d57f.js} +1 -1
- package/dist/{swirl-tag.entry.240e7a68.js → swirl-tag.entry.1e044eaa.js} +1 -1
- package/dist/{swirl-text-input.entry.4daf266e.js → swirl-text-input.entry.bcc13c5b.js} +1 -1
- package/dist/{swirl-text.entry.7860aadb.js → swirl-text.entry.5cf8969c.js} +1 -1
- package/dist/{swirl-theme-provider.entry.77d13c75.js → swirl-theme-provider.entry.c2358ec9.js} +1 -1
- package/dist/{swirl-toast-provider.entry.0b06a111.js → swirl-toast-provider.entry.fe5d6803.js} +1 -1
- package/dist/{swirl-toast.entry.f4f8aa46.js → swirl-toast.entry.2ca20137.js} +1 -1
- package/dist/{swirl-tooltip.entry.aebae5f6.js → swirl-tooltip.entry.e13f91c0.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.2b1d8ddf.js → swirl-tree-navigation-item.entry.c88b78a2.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.1a8925b9.js → swirl-video-thumbnail.entry.13b96ac2.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.d56160c9.js → swirl-visually-hidden.entry.81b95d55.js} +1 -1
- package/dist/{wc-datepicker.entry.947617b4.js → wc-datepicker.entry.272026bd.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-pagination.entry.3946d93f.js +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as c, h as e, H as u, g } from "./index.
|
|
1
|
+
import { r as c, h as e, H as u, g } from "./index.f17ef3a1.js";
|
|
2
2
|
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as m, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as x } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as i, H as t } from "./index.
|
|
1
|
+
import { r, h as i, H as t } from "./index.f17ef3a1.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ":host{display:inline-flex}:host *{box-sizing:border-box}.link{color:var(--s-interactive-primary-default);line-height:var(--s-line-height-base);text-underline-offset:var(--s-space-4)}.link:hover{color:var(--s-interactive-primary-hovered)}.link:active{color:var(--s-interactive-primary-pressed)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.link{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as t, H as r } from "./index.
|
|
1
|
+
import { r as l, h as t, H as r } from "./index.f17ef3a1.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const s = ':host{display:block}:host *{box-sizing:border-box}.swirl-list{line-height:var(--s-line-height-base)}.swirl-list ul,.swirl-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.swirl-list ul li{padding-left:1.5rem}.swirl-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.swirl-list ol{counter-reset:item}.swirl-list ol ol{counter-reset:letter}.swirl-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.swirl-list ol li{padding-left:1.5rem}.swirl-list ol li:before{display:inline-block;min-width:1.5rem;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item;font-variant-numeric:tabular-nums}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.swirl-list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}', n = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as s, h as o, H as p } from "./index.
|
|
1
|
+
import { r as h, c as s, h as o, H as p } from "./index.f17ef3a1.js";
|
|
2
2
|
import { A as b } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as f, e as u } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as v } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as t, H as e } from "./index.
|
|
1
|
+
import { r as s, h as t, H as e } from "./index.f17ef3a1.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:block}:host *{box-sizing:border-box}.option-list-section{background-color:var(--s-surface-overlay-default)}.option-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-section__label{padding:var(--s-space-8) var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", l = class {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { r as o, c as r, h as i, H as p } from "./index.f17ef3a1.js";
|
|
2
|
+
import { c as g } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const h = ":host{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host *{box-sizing:border-box}.pagination{display:block;width:100%}.pagination--variant-simple .pagination__list{gap:0}.pagination__list{display:flex;margin:0;padding:0;justify-content:flex-start;align-items:center;line-height:var(--s-line-height-base);list-style:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.pagination__list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.pagination__page-label{padding-right:var(--s-space-8);padding-left:var(--s-space-8)}.pagination__advanced-label{display:flex;align-items:center;white-space:nowrap;gap:var(--s-space-8)}.pagination__page-select-container{position:relative}.pagination__page-select{display:inline-flex;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);border:none;border-radius:var(--s-border-radius-sm);background-color:transparent;font:inherit;line-height:var(--s-line-height-base);text-align:center;cursor:pointer;box-shadow:inset 0 0 0 var(--s-border-width-default) var(--s-border-strong);-webkit-appearance:none;-moz-appearance:none;appearance:none}.pagination__page-select:focus:not(:focus-visible){outline:none}.pagination__page-select:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.pagination__page-select{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", c = class {
|
|
6
|
+
constructor(n) {
|
|
7
|
+
o(this, n), this.setPage = r(this, "setPage", 7), this.onFirstPageButtonClick = () => {
|
|
8
|
+
this.page !== 1 && this.setPage.emit(1);
|
|
9
|
+
}, this.onLastPageButtonClick = () => {
|
|
10
|
+
this.page !== this.pages && this.setPage.emit(this.pages);
|
|
11
|
+
}, this.onPrevButtonClick = () => {
|
|
12
|
+
const t = Math.max(this.page - 1, 1);
|
|
13
|
+
this.page !== t && this.setPage.emit(t);
|
|
14
|
+
}, this.onNextButtonClick = () => {
|
|
15
|
+
const t = Math.min(this.page + 1, this.pages);
|
|
16
|
+
this.page !== t && this.setPage.emit(t);
|
|
17
|
+
}, this.onSelect = (t) => {
|
|
18
|
+
const a = +t.target.value;
|
|
19
|
+
this.page !== a && this.setPage.emit(a);
|
|
20
|
+
}, this.firstPageButtonLabel = "First page", this.lastPageButtonLabel = "Last page", this.label = void 0, this.nextButtonLabel = "Next page", this.page = void 0, this.pageLabel = "out of", this.pages = void 0, this.pageSelectLabel = "Select a page", this.prevButtonLabel = "Previous page", this.variant = "default";
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
const n = this.variant !== "simple", t = this.variant === "advanced", a = `${this.page} ${this.pageLabel} ${this.pages}`, s = g("pagination", `pagination--variant-${this.variant}`);
|
|
24
|
+
return i(p, null, i("nav", { "aria-label": this.label, class: s }, i("ul", { class: "pagination__list", part: "pagination__list" }, i("li", { class: "pagination__list-item" }, i("swirl-button", { class: "pagination__first-page-button", disabled: this.page <= 1, hideLabel: !0, icon: "<swirl-icon-double-arrow-left></swirl-icon-double-arrow-left>", intent: "primary", label: this.firstPageButtonLabel, onClick: this.onFirstPageButtonClick })), i("li", { class: "pagination__list-item" }, i("swirl-button", { class: "pagination__prev-button", disabled: this.page <= 1, hideLabel: !0, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", intent: "primary", label: this.prevButtonLabel, onClick: this.onPrevButtonClick })), n ? i("li", { class: "pagination__list-item pagination__page-label" }, i("span", null, t ? i("span", { "aria-current": "page", class: "pagination__advanced-label" }, i("span", { class: "pagination__page-select-container" }, i("select", { "aria-label": this.pageSelectLabel, class: "pagination__page-select", onChange: this.onSelect }, new Array(this.pages).fill(void 0).map((e, l) => l + 1).map((e) => i("option", { selected: this.page === e, value: String(e) }, e)))), i("span", { "aria-hidden": "true" }, this.pageLabel, " ", this.pages)) : i("span", { "aria-current": "page" }, a))) : i("li", { class: "pagination__list-item" }, i("swirl-visually-hidden", null, i("span", { "aria-current": "page" }, a))), i("li", { class: "pagination__list-item" }, i("swirl-button", { class: "pagination__next-button", disabled: this.page >= this.pages, hideLabel: !0, icon: "<swirl-icon-chevron-right></swirl-icon-chevron-right>", iconPosition: "end", intent: "primary", label: this.nextButtonLabel, onClick: this.onNextButtonClick })), i("li", { class: "pagination__list-item" }, i("swirl-button", { class: "pagination__last-page-button", disabled: this.page >= this.pages, hideLabel: !0, icon: "<swirl-icon-double-arrow-right></swirl-icon-double-arrow-right>", intent: "primary", label: this.lastPageButtonLabel, onClick: this.onLastPageButtonClick })))));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
c.style = h;
|
|
28
|
+
export {
|
|
29
|
+
c as swirl_pagination
|
|
30
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as n, g as d } from "./index.
|
|
1
|
+
import { r as l, h as e, H as n, g as d } from "./index.f17ef3a1.js";
|
|
2
2
|
import { A as c } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
3
|
import { d as h, e as p } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as r } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as r, h as n, H as m, g as v } from "./index.
|
|
1
|
+
import { r as h, c as r, h as n, H as m, g as v } from "./index.f17ef3a1.js";
|
|
2
2
|
import { o as p, s as l, f, c as u, a as g } from "./floating-ui.dom.esm-b9f28f6d.15013ef7.js";
|
|
3
3
|
import { d as b, e as y } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
4
|
import { c as k } from "./index-d280dafb.186cdb0e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as o, h as i, H as l, g as n } from "./index.
|
|
1
|
+
import { r as a, c as o, h as i, H as l, g as n } from "./index.f17ef3a1.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const u = ".sc-swirl-radio-group-h{display:block}.sc-swirl-radio-group-h *.sc-swirl-radio-group{box-sizing:border-box}.radio-group.sc-swirl-radio-group{display:flex;flex-direction:column;gap:var(--s-space-12)}", d = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as a, h as s, H as c } from "./index.
|
|
1
|
+
import { r as n, c as a, h as s, H as c } from "./index.f17ef3a1.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as h } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as i, c as r, h as a, H as t } from "./index.
|
|
1
|
+
import { r as i, c as r, h as a, H as t } from "./index.f17ef3a1.js";
|
|
2
2
|
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as l } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const o = ".sc-swirl-search-h{display:flex;width:100%}.sc-swirl-search-h *.sc-swirl-search{box-sizing:border-box}.search.sc-swirl-search{position:relative;display:flex;width:100%}.search--disabled.sc-swirl-search .search__icon.sc-swirl-search{color:var(--s-icon-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search{color:var(--s-text-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search::-moz-placeholder{color:var(--s-text-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search::placeholder{color:var(--s-text-disabled)}.search__icon.sc-swirl-search{position:absolute;top:50%;left:var(--s-space-12);display:inline-flex;color:var(--s-icon-default);transform:translateY(-50%)}.search__input.sc-swirl-search{width:100%;height:2.5rem;padding-top:var(--s-space-8);padding-right:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));border:none;border-radius:var(--s-border-radius-base);color:var(--s-text-default);background-color:var(--s-surface-raised-default);font:inherit;line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.search__input.sc-swirl-search:focus:not(:focus-visible){outline:none}.search__input.sc-swirl-search:focus-visible{outline-color:var(--s-focus-default)}.search__input.sc-swirl-search::-moz-placeholder{color:var(--s-text-subdued)}.search__input.sc-swirl-search::placeholder{color:var(--s-text-subdued)}.search__input.sc-swirl-search::-webkit-search-decoration,.search__input.sc-swirl-search::-webkit-search-cancel-button,.search__input.sc-swirl-search::-webkit-search-results-button,.search__input.sc-swirl-search::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.search__input.sc-swirl-search:not(:-moz-placeholder-shown)+.search__clear-button.sc-swirl-search{display:inline-flex}.search__input.sc-swirl-search:not(:placeholder-shown)+.search__clear-button.sc-swirl-search{display:inline-flex}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.search__input.sc-swirl-search{
|
|
6
|
+
const o = ".sc-swirl-search-h{display:flex;width:100%}.sc-swirl-search-h *.sc-swirl-search{box-sizing:border-box}.search.sc-swirl-search{position:relative;display:flex;width:100%}.search--variant-outline.sc-swirl-search .search__input.sc-swirl-search{background-color:transparent;box-shadow:inset 0 0 0 var(--s-border-width-default) var(--s-border-strong)}.search--disabled.sc-swirl-search .search__icon.sc-swirl-search{color:var(--s-icon-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search{color:var(--s-text-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search::-moz-placeholder{color:var(--s-text-disabled)}.search--disabled.sc-swirl-search .search__input.sc-swirl-search::placeholder{color:var(--s-text-disabled)}.search__icon.sc-swirl-search{position:absolute;top:50%;left:var(--s-space-12);display:inline-flex;color:var(--s-icon-default);transform:translateY(-50%)}.search__input.sc-swirl-search{width:100%;height:2.5rem;padding-top:var(--s-space-8);padding-right:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));border:none;border-radius:var(--s-border-radius-base);color:var(--s-text-default);background-color:var(--s-surface-raised-default);font:inherit;line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.search__input.sc-swirl-search:focus:not(:focus-visible){outline:none}.search__input.sc-swirl-search:focus-visible{outline-color:var(--s-focus-default)}.search__input.sc-swirl-search::-moz-placeholder{color:var(--s-text-subdued)}.search__input.sc-swirl-search::placeholder{color:var(--s-text-subdued)}.search__input.sc-swirl-search::-webkit-search-decoration,.search__input.sc-swirl-search::-webkit-search-cancel-button,.search__input.sc-swirl-search::-webkit-search-results-button,.search__input.sc-swirl-search::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.search__input.sc-swirl-search:not(:-moz-placeholder-shown)+.search__clear-button.sc-swirl-search{display:inline-flex}.search__input.sc-swirl-search:not(:placeholder-shown)+.search__clear-button.sc-swirl-search{display:inline-flex}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.search__input.sc-swirl-search{height:2.25rem;padding-left:calc(var(--s-space-8) + 1.5rem + var(--s-space-8));font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.search__clear-button.sc-swirl-search{position:absolute;top:50%;right:var(--s-space-12);display:none;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer;transform:translateY(-50%)}", n = class {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
i(this, e), this.inputBlur = r(this, "inputBlur", 7), this.inputFocus = r(this, "inputFocus", 7), this.valueChange = r(this, "valueChange", 7), this.desktopMediaQuery = l(), this.desktopMediaQueryHandler = (s) => {
|
|
9
9
|
this.forceIconProps(s.matches);
|
|
@@ -15,7 +15,7 @@ const o = ".sc-swirl-search-h{display:flex;width:100%}.sc-swirl-search-h *.sc-sw
|
|
|
15
15
|
this.valueChange.emit(s.target.value);
|
|
16
16
|
}, this.onFocus = (s) => {
|
|
17
17
|
this.inputFocus.emit(s);
|
|
18
|
-
}, this.autoFocus = void 0, this.clearButtonLabel = "Clear search term", this.disabled = void 0, this.inputName = void 0, this.inputId = void 0, this.label = void 0, this.placeholder = "Search \u2026", this.value = void 0;
|
|
18
|
+
}, this.autoFocus = void 0, this.clearButtonLabel = "Clear search term", this.disabled = void 0, this.inputName = void 0, this.inputId = void 0, this.label = void 0, this.placeholder = "Search \u2026", this.value = void 0, this.variant = "filled";
|
|
19
19
|
}
|
|
20
20
|
componentDidLoad() {
|
|
21
21
|
var e, s;
|
|
@@ -35,7 +35,7 @@ const o = ".sc-swirl-search-h{display:flex;width:100%}.sc-swirl-search-h *.sc-sw
|
|
|
35
35
|
(e.code === "KeyK" || e.code === "Slash") && (e.ctrlKey || e.metaKey) && this.input.focus();
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
const e = c("search", {
|
|
38
|
+
const e = c("search", `search--variant-${this.variant}`, {
|
|
39
39
|
"search--disabled": this.disabled
|
|
40
40
|
});
|
|
41
41
|
return a(t, null, a("span", { class: e, ref: (s) => this.iconEl = s }, a("swirl-icon-search", { class: "search__icon" }), a("input", { "aria-disabled": this.disabled ? "true" : void 0, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, placeholder: this.placeholder, ref: (s) => this.input = s, type: "search", value: this.value }), !this.disabled && a("button", { "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, a("swirl-icon-cancel", null))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as r, h as e, H as c, g as d } from "./index.
|
|
1
|
+
import { r as a, c as r, h as e, H as c, g as d } from "./index.f17ef3a1.js";
|
|
2
2
|
import { c as h } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { q as p } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,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.f17ef3a1.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,4 +1,4 @@
|
|
|
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.f17ef3a1.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
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}", o = class {
|
package/dist/{swirl-table-row-group.entry.614be4a6.js → swirl-table-row-group.entry.03ef98eb.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.f17ef3a1.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ":host{position:relative;z-index:1;display:block}:host *{box-sizing:border-box}.table-row-group__header-row{padding:var(--s-space-12) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-surface-raised-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}@media (min-width: 768px){.table-row-group__label{position:sticky;left:var(--s-space-16)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as 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.f17ef3a1.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.f17ef3a1.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.d56160c9.js → swirl-visually-hidden.entry.81b95d55.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.f17ef3a1.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.37.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.38.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { r, c as p, h as a, H as c } from "./index.bd28426e.js";
|
|
2
|
-
import { c as g } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
const h = ":host{display:block;width:100%}:host *{box-sizing:border-box}.pagination{display:block;width:100%}.pagination--variant-simple .pagination__list{gap:0}.pagination__list{display:flex;margin:0;padding:0;justify-content:flex-start;align-items:center;line-height:var(--s-line-height-base);list-style:none;gap:var(--s-space-16)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.pagination__list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);gap:var(--s-space-8)}}.pagination__advanced-label{display:flex;align-items:center;white-space:nowrap;gap:var(--s-space-8)}.pagination__page-select-container{position:relative}.pagination__page-select{display:inline-flex;padding-right:var(--s-space-16);border:none;background-color:transparent;font:inherit;line-height:var(--s-line-height-base);text-align:center;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.pagination__page-select:focus:not(:focus-visible){outline:none}.pagination__page-select:focus-visible{outline-color:var(--s-focus-default)}.pagination__page-select-icon{position:absolute;top:50%;right:0;transform:translateY(-50%);pointer-events:none}", d = class {
|
|
6
|
-
constructor(i) {
|
|
7
|
-
r(this, i), this.setPage = p(this, "setPage", 7), this.onPrevButtonClick = () => {
|
|
8
|
-
const e = Math.max(this.page - 1, 1);
|
|
9
|
-
this.page !== e && this.setPage.emit(e);
|
|
10
|
-
}, this.onNextButtonClick = () => {
|
|
11
|
-
const e = Math.min(this.page + 1, this.pages);
|
|
12
|
-
this.page !== e && this.setPage.emit(e);
|
|
13
|
-
}, this.onSelect = (e) => {
|
|
14
|
-
const t = +e.target.value;
|
|
15
|
-
this.page !== t && this.setPage.emit(t);
|
|
16
|
-
}, this.accessibleNextButtonLabel = "Next page", this.accessiblePrevButtonLabel = "Previous page", this.nextButtonLabel = "Next", this.pageLabel = "out of", this.prevButtonLabel = "Prev", this.label = void 0, this.page = void 0, this.pages = void 0, this.pageSelectLabel = "Select a page", this.variant = "default";
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
const i = this.variant !== "advanced", e = this.variant !== "simple", t = this.variant === "advanced", s = `${this.page} ${this.pageLabel} ${this.pages}`, l = g("pagination", `pagination--variant-${this.variant}`);
|
|
20
|
-
return a(c, null, a("nav", { "aria-label": this.label, class: l }, a("ul", { class: "pagination__list", part: "pagination__list" }, a("li", { class: "pagination__list-item" }, a("swirl-button", { class: "pagination__prev-button", disabled: this.page <= 1, swirlAriaLabel: this.accessiblePrevButtonLabel, hideLabel: i, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", intent: "primary", label: this.prevButtonLabel, onClick: this.onPrevButtonClick })), e ? a("li", { class: "pagination__list-item" }, a("span", null, t ? a("span", { "aria-current": "page", class: "pagination__advanced-label" }, a("span", { class: "pagination__page-select-container" }, a("select", { "aria-label": this.pageSelectLabel, class: "pagination__page-select", onChange: this.onSelect }, new Array(this.pages).fill(void 0).map((n, o) => o + 1).map((n) => a("option", { selected: this.page === n, value: String(n) }, n))), a("swirl-icon-expand-more", { "aria-hidden": "true", class: "pagination__page-select-icon", size: 16 })), a("span", { "aria-hidden": "true" }, this.pageLabel, " ", this.pages)) : a("span", { "aria-current": "page" }, s))) : a("li", { class: "pagination__list-item" }, a("swirl-visually-hidden", null, a("span", { "aria-current": "page" }, s))), a("li", { class: "pagination__list-item" }, a("swirl-button", { class: "pagination__next-button", disabled: this.page >= this.pages, swirlAriaLabel: this.accessibleNextButtonLabel, hideLabel: i, icon: "<swirl-icon-chevron-right></swirl-icon-chevron-right>", iconPosition: "end", intent: "primary", label: this.nextButtonLabel, onClick: this.onNextButtonClick })))));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
d.style = h;
|
|
24
|
-
export {
|
|
25
|
-
d as swirl_pagination
|
|
26
|
-
};
|