@getflip/swirl-components-react 0.38.1 → 0.39.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.a402b337.js → file-manager.entry.bcb1423b.js} +1 -1
- package/dist/{index.74ec8752.js → index.f12232c8.js} +139 -139
- package/dist/{swirl-action-list-section.entry.55619ae9.js → swirl-action-list-section.entry.95776fec.js} +1 -1
- package/dist/{swirl-action-list_3.entry.218b0716.js → swirl-action-list_3.entry.46917980.js} +1 -1
- package/dist/{swirl-app-bar.entry.eb620ddc.js → swirl-app-bar.entry.7797f7af.js} +1 -1
- package/dist/{swirl-app-icon.entry.edb78a6d.js → swirl-app-icon.entry.18a779f4.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.7e2f582a.js → swirl-app-layout_7.entry.47f17fd9.js} +1 -1
- package/dist/{swirl-autocomplete.entry.b908ba7b.js → swirl-autocomplete.entry.57b60e16.js} +1 -1
- package/dist/{swirl-avatar-group.entry.9c85c596.js → swirl-avatar-group.entry.6db49fc7.js} +1 -1
- package/dist/{swirl-avatar.entry.f6026a56.js → swirl-avatar.entry.e43349d9.js} +1 -1
- package/dist/{swirl-badge.entry.cfba4294.js → swirl-badge.entry.36570f4f.js} +1 -1
- package/dist/{swirl-banner.entry.bbc9eca1.js → swirl-banner.entry.59b2d94c.js} +1 -1
- package/dist/{swirl-button-group.entry.27cbc9d8.js → swirl-button-group.entry.d12dc1fe.js} +1 -1
- package/dist/{swirl-button.entry.286c8417.js → swirl-button.entry.1b89b5dc.js} +1 -1
- package/dist/{swirl-card.entry.5a41b61b.js → swirl-card.entry.7956b7e0.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.2cbea664.js → swirl-carousel-slide.entry.d519bd53.js} +1 -1
- package/dist/{swirl-carousel.entry.64c395e4.js → swirl-carousel.entry.26cc5ac6.js} +1 -1
- package/dist/{swirl-checkbox.entry.c27a4435.js → swirl-checkbox.entry.f82cd636.js} +1 -1
- package/dist/{swirl-chip.entry.5e5eafd2.js → swirl-chip.entry.2cb86f2e.js} +1 -1
- package/dist/{swirl-columns.entry.e2655463.js → swirl-columns.entry.00e56437.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +2 -2
- package/dist/{swirl-console-layout.entry.6157bca9.js → swirl-console-layout.entry.4efd8643.js} +1 -1
- package/dist/{swirl-date-input.entry.1930e533.js → swirl-date-input.entry.5a040628.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.0706c951.js → swirl-date-picker_2.entry.98a94535.js} +1 -1
- package/dist/{swirl-description-list-item.entry.e18f2817.js → swirl-description-list-item.entry.76263932.js} +1 -1
- package/dist/{swirl-description-list.entry.7feb0e0c.js → swirl-description-list.entry.83830e74.js} +1 -1
- package/dist/{swirl-dialog.entry.e86ac979.js → swirl-dialog.entry.d730b1d3.js} +1 -1
- package/dist/{swirl-file-uploader.entry.77280bcd.js → swirl-file-uploader.entry.43576ccb.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.463bf704.js → swirl-file-viewer_7.entry.5c08bcfc.js} +1 -1
- package/dist/{swirl-form-control.entry.e0a98144.js → swirl-form-control.entry.481b3d1b.js} +1 -1
- package/dist/{swirl-form-group.entry.5787e657.js → swirl-form-group.entry.12d17637.js} +1 -1
- package/dist/{swirl-heading.entry.f7ea0327.js → swirl-heading.entry.06880699.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.426d0eb7.js → swirl-icon-add-photo.entry.e47d9a01.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.3f530fa5.js → swirl-icon-add_6.entry.eac22853.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.d476c2aa.js → swirl-icon-admin-panel-settings.entry.8a0e88b3.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.334cbf76.js → swirl-icon-arrow-back.entry.9dc93d9b.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.fd366272.js → swirl-icon-arrow-downward_2.entry.30fd68f6.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.ec9926e7.js → swirl-icon-arrow-forward.entry.5e2d7a73.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.7cb68672.js → swirl-icon-arrow-left_4.entry.915de825.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.aa13a945.js → swirl-icon-arrow-right-small.entry.c64257ad.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.7aa8d8c7.js → swirl-icon-attachment.entry.aa57d2c0.js} +1 -1
- package/dist/{swirl-icon-block.entry.37bdcebc.js → swirl-icon-block.entry.5650bd0f.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.999308e5.js → swirl-icon-bookmark.entry.72a671e7.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.5ac98b0a.js → swirl-icon-cancel_4.entry.0eea4ace.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.d424a005.js → swirl-icon-chat-bubble.entry.6d8e10ae.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.3e88362f.js → swirl-icon-chats-filled.entry.72aa1715.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.75b2c3b6.js → swirl-icon-chats-outlined.entry.03154817.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.7804a6ca.js → swirl-icon-check-circle_3.entry.722cacbf.js} +1 -1
- package/dist/{swirl-icon-check-small_4.entry.1f90f310.js → swirl-icon-check-small_4.entry.f43ba1db.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.17a6a29d.js → swirl-icon-check-strong.entry.9b718348.js} +1 -1
- package/dist/{swirl-icon-check.entry.c35d9f4a.js → swirl-icon-check.entry.45d4f950.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.98b3e64d.js → swirl-icon-chevron-left.entry.7f5eb251.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.a5c7816d.js → swirl-icon-chevron-right.entry.61a3eac9.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.2d33deb2.js → swirl-icon-close-small.entry.cee0348e.js} +1 -1
- package/dist/{swirl-icon-close.entry.294834a9.js → swirl-icon-close.entry.664b4ba4.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.395345cd.js → swirl-icon-cloud-upload.entry.4fb1bd5f.js} +1 -1
- package/dist/{swirl-icon-column.entry.7a3149cd.js → swirl-icon-column.entry.6ead0e2e.js} +1 -1
- package/dist/{swirl-icon-comment.entry.4930b4b3.js → swirl-icon-comment.entry.8859fd0b.js} +1 -1
- package/dist/{swirl-icon-copy.entry.1a83607b.js → swirl-icon-copy.entry.1a4ba01b.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.b05d6ea9.js → swirl-icon-date-range.entry.2c4474ae.js} +1 -1
- package/dist/{swirl-icon-delete.entry.c6cf0638.js → swirl-icon-delete.entry.81a1bad0.js} +1 -1
- package/dist/{swirl-icon-description.entry.16dd6f61.js → swirl-icon-description.entry.9e17d01c.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.0c2ce15e.js → swirl-icon-double-arrow-left.entry.55523c4d.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.71ead219.js → swirl-icon-double-arrow-right.entry.7eeb398e.js} +1 -1
- package/dist/{swirl-icon-download.entry.86a4840a.js → swirl-icon-download.entry.dc675be2.js} +1 -1
- package/dist/{swirl-icon-edit.entry.53865f1d.js → swirl-icon-edit.entry.613667b9.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.fcb75220.js → swirl-icon-emoji-mood.entry.6ac89daa.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.805fcbcd.js → swirl-icon-emoji-satisfied.entry.2f447a69.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.97704790.js → swirl-icon-error_3.entry.798823fb.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.833a147b.js → swirl-icon-expand-more.entry.c1bbb009.js} +1 -1
- package/dist/{swirl-icon-filter.entry.79db5315.js → swirl-icon-filter.entry.81a82f52.js} +1 -1
- package/dist/{swirl-icon-folder.entry.97f382ce.js → swirl-icon-folder.entry.5253752d.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.945b16a8.js → swirl-icon-group-assign.entry.3942539a.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.660bc0db.js → swirl-icon-groups-custom.entry.9c29786c.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.12213fdc.js → swirl-icon-groups-filled.entry.a3cbc04a.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.3272aa88.js → swirl-icon-groups-outlined.entry.8b708766.js} +1 -1
- package/dist/{swirl-icon-groups.entry.178ce58d.js → swirl-icon-groups.entry.5c5c39da.js} +1 -1
- package/dist/{swirl-icon-help.entry.51c73f99.js → swirl-icon-help.entry.397fdba3.js} +1 -1
- package/dist/{swirl-icon-image.entry.0e17d3f0.js → swirl-icon-image.entry.0e1db2f5.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.9b5c9822.js → swirl-icon-inventory.entry.9234ac32.js} +1 -1
- package/dist/{swirl-icon-like.entry.1fe19c11.js → swirl-icon-like.entry.88a2fd0e.js} +1 -1
- package/dist/{swirl-icon-link.entry.05650361.js → swirl-icon-link.entry.0463054f.js} +1 -1
- package/dist/{swirl-icon-lock.entry.47e087ad.js → swirl-icon-lock.entry.882f7e42.js} +1 -1
- package/dist/{swirl-icon-logout.entry.b92a4ae8.js → swirl-icon-logout.entry.56c39f3b.js} +1 -1
- package/dist/{swirl-icon-mail.entry.43a5d2d9.js → swirl-icon-mail.entry.1d43f9ac.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.cf34f7bf.js → swirl-icon-manage-accounts.entry.857ce08b.js} +1 -1
- package/dist/{swirl-icon-mention.entry.b2336575.js → swirl-icon-mention.entry.401d6e2c.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.5b83bab5.js → swirl-icon-menu-filled.entry.cb870657.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.a011de2f.js → swirl-icon-menu-outlined.entry.ad85dcc5.js} +1 -1
- package/dist/{swirl-icon-menu.entry.d9808592.js → swirl-icon-menu.entry.50cb51b5.js} +1 -1
- package/dist/{swirl-icon-message.entry.3909cdbb.js → swirl-icon-message.entry.31bb6b6a.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.f33062b6.js → swirl-icon-more-horizontal.entry.7e2f8f68.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.1cc5782e.js → swirl-icon-news-filled.entry.a4c2e260.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.97a6c14c.js → swirl-icon-news-outlined.entry.9e652c78.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.96fa0dec.js → swirl-icon-notifications-active.entry.a47d41c0.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.6440ff8f.js → swirl-icon-notifications-off.entry.d66b3547.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.70a8d456.js → swirl-icon-notifications.entry.180d21bd.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.d08e2b2e.js → swirl-icon-open-in-new.entry.13759661.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.9b0adecc.js → swirl-icon-people-alt.entry.6f878b6e.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.65edf384.js → swirl-icon-person-off.entry.2df8e32a.js} +1 -1
- package/dist/{swirl-icon-person.entry.c70640d8.js → swirl-icon-person.entry.d2baa53f.js} +1 -1
- package/dist/{swirl-icon-phone.entry.8c7d33e3.js → swirl-icon-phone.entry.56e219c1.js} +1 -1
- package/dist/{swirl-icon-poll.entry.ab190a2a.js → swirl-icon-poll.entry.60089939.js} +1 -1
- package/dist/{swirl-icon-print.entry.415a3842.js → swirl-icon-print.entry.e8254e49.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.3e733dc4.js → swirl-icon-recieved.entry.cdb67c9a.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.967842f8.js → swirl-icon-search-strong.entry.f1449db0.js} +1 -1
- package/dist/{swirl-icon-search.entry.5d619f83.js → swirl-icon-search.entry.c2db1aaa.js} +1 -1
- package/dist/{swirl-icon-send.entry.b3e218d9.js → swirl-icon-send.entry.b9d9db4e.js} +1 -1
- package/dist/{swirl-icon-settings.entry.c23be89c.js → swirl-icon-settings.entry.a83b542a.js} +1 -1
- package/dist/{swirl-icon-sync.entry.887f27ca.js → swirl-icon-sync.entry.dc6bb457.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.6be29066.js → swirl-icon-tasks-filled.entry.ac01a945.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.3af62e93.js → swirl-icon-tasks-outlined.entry.3cae8e47.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.3ded8df3.js → swirl-icon-time-filled.entry.3bf3a149.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.2bd62c2a.js → swirl-icon-time-outlined.entry.3573ddfd.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.6d93292e.js → swirl-icon-user-assign.entry.c9d3192b.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.501bf853.js → swirl-icon-video-camera.entry.ae5ec81d.js} +1 -1
- package/dist/{swirl-inline-notification.entry.4b1031ec.js → swirl-inline-notification.entry.d3850353.js} +1 -1
- package/dist/{swirl-lightbox.entry.2056c848.js → swirl-lightbox.entry.3851daa0.js} +1 -1
- package/dist/{swirl-link.entry.54cc2b97.js → swirl-link.entry.9eb2b843.js} +1 -1
- package/dist/{swirl-list.entry.8dc8b8aa.js → swirl-list.entry.25650044.js} +1 -1
- package/dist/{swirl-modal.entry.44c8fd66.js → swirl-modal.entry.87ed0227.js} +1 -1
- package/dist/{swirl-option-list-section.entry.7b22c3c3.js → swirl-option-list-section.entry.1b1188bc.js} +1 -1
- package/dist/{swirl-pagination.entry.ff40e376.js → swirl-pagination.entry.3a09b7f4.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.92b66cc5.js → swirl-pdf-reader.entry.9e514b79.js} +1 -1
- package/dist/{swirl-popover.entry.dffb37e5.js → swirl-popover.entry.3fb9a5da.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.14bd1f94.js → swirl-progress-indicator.entry.15e52a83.js} +1 -1
- package/dist/{swirl-radio-group.entry.84564d8a.js → swirl-radio-group.entry.2f653f24.js} +1 -1
- package/dist/{swirl-radio.entry.8c20f66b.js → swirl-radio.entry.90cb4fe2.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.d505d9f0.js → swirl-resource-list-file-item.entry.829304ac.js} +1 -1
- package/dist/{swirl-search.entry.57c8dd95.js → swirl-search.entry.c03ca61f.js} +1 -1
- package/dist/{swirl-select.entry.6953f3fd.js → swirl-select.entry.48ffd591.js} +1 -1
- package/dist/{swirl-shell-layout.entry.0ec3b52e.js → swirl-shell-layout.entry.7a8c889f.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.3c4b4c1a.js → swirl-shell-navigation-item.entry.5499791d.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.cc639554.js → swirl-skeleton-box.entry.768a41d0.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.b2b8e5e0.js → swirl-skeleton-text.entry.9d5dae33.js} +1 -1
- package/dist/{swirl-stack.entry.ccfb7f93.js → swirl-stack.entry.0667878b.js} +1 -1
- package/dist/{swirl-switch.entry.7e48960b.js → swirl-switch.entry.b418cc0c.js} +1 -1
- package/dist/{swirl-tab.entry.2e5358ca.js → swirl-tab.entry.ac86fb77.js} +1 -1
- package/dist/{swirl-table-cell.entry.cef16b5c.js → swirl-table-cell.entry.a6acad38.js} +1 -1
- package/dist/{swirl-table-column.entry.ee001480.js → swirl-table-column.entry.7b03a8f6.js} +1 -1
- package/dist/{swirl-table-row-group.entry.f5f11a28.js → swirl-table-row-group.entry.9938a7c2.js} +1 -1
- package/dist/{swirl-table-row.entry.549437fc.js → swirl-table-row.entry.ec7bfee7.js} +1 -1
- package/dist/{swirl-table.entry.da7cfe4e.js → swirl-table.entry.cdb4e76b.js} +1 -1
- package/dist/{swirl-tabs.entry.382dbc9e.js → swirl-tabs.entry.31bdb645.js} +1 -1
- package/dist/{swirl-tag.entry.892fd4f8.js → swirl-tag.entry.5450bd51.js} +1 -1
- package/dist/swirl-text-input.entry.cb68f467.js +75 -0
- package/dist/{swirl-text.entry.045d95df.js → swirl-text.entry.12cb10fc.js} +1 -1
- package/dist/{swirl-theme-provider.entry.80d08654.js → swirl-theme-provider.entry.01543340.js} +1 -1
- package/dist/{swirl-toast-provider.entry.f4f172e8.js → swirl-toast-provider.entry.8d211cb5.js} +1 -1
- package/dist/{swirl-toast.entry.c5c08897.js → swirl-toast.entry.4b9cd215.js} +1 -1
- package/dist/{swirl-tooltip.entry.19db18e4.js → swirl-tooltip.entry.4cf89451.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.ee14f40f.js → swirl-tree-navigation-item.entry.15b4c989.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.6731a511.js → swirl-video-thumbnail.entry.5f128857.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.8dc884e5.js → swirl-visually-hidden.entry.b2169f15.js} +1 -1
- package/dist/{wc-datepicker.entry.ef7a854f.js → wc-datepicker.entry.991107d2.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-text-input.entry.b2ec8476.js +0 -74
|
@@ -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.f12232c8.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.f12232c8.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.f12232c8.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 oe, c as N, h as p, H as ne, g as se } from "./index.
|
|
1
|
+
import { r as oe, c as N, h as p, H as ne, g as se } from "./index.f12232c8.js";
|
|
2
2
|
import { d as le, e as ce } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
3
3
|
import { c as de } from "./index-d280dafb.186cdb0e.js";
|
|
4
4
|
import "react";
|
|
@@ -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.f12232c8.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ":host{display:block}:host *{box-sizing:border-box}.option-list-section{background-color:var(--s-surface-overlay-default)}.option-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-section__label{padding:var(--s-space-8) var(--s-space-12);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", l = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, h as e, H as n, g as d } from "./index.
|
|
1
|
+
import { r as l, h as e, H as n, g as d } from "./index.f12232c8.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.f12232c8.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.f12232c8.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.f12232c8.js";
|
|
2
2
|
import { c as d } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { a as h } from "./utils-61f188cc.4a43deab.js";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as r, h as e, H as c, g as d } from "./index.
|
|
1
|
+
import { r as a, c as r, h as e, H as c, g as d } from "./index.f12232c8.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.f12232c8.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.f12232c8.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.f5f11a28.js → swirl-table-row-group.entry.9938a7c2.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.f12232c8.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,75 @@
|
|
|
1
|
+
import { r as h, c as n, h as i, H as d } from "./index.f12232c8.js";
|
|
2
|
+
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
+
import { a as x } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
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--auto-grow.sc-swirl-text-input .text-input__input.sc-swirl-text-input{max-height:none}.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 {
|
|
7
|
+
constructor(e) {
|
|
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) => {
|
|
9
|
+
this.updateIconSize(t.matches);
|
|
10
|
+
}, this.clear = () => {
|
|
11
|
+
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
12
|
+
}, this.onChange = (t) => {
|
|
13
|
+
const s = t.target;
|
|
14
|
+
this.value = s.value, this.valueChange.emit(s.value);
|
|
15
|
+
}, this.onBlur = (t) => {
|
|
16
|
+
this.inputBlur.emit(t);
|
|
17
|
+
}, this.onFocus = (t) => {
|
|
18
|
+
this.inputFocus.emit(t), this.handleAutoSelect(t);
|
|
19
|
+
}, this.onInput = (t) => {
|
|
20
|
+
this.onChange(t);
|
|
21
|
+
}, this.onKeyPress = (t) => {
|
|
22
|
+
this.type === "number" && ["+", "-", "e"].includes(t.key) && t.preventDefault();
|
|
23
|
+
}, this.decreaseValue = () => {
|
|
24
|
+
if (this.type !== "number")
|
|
25
|
+
return;
|
|
26
|
+
const t = this.step || 1;
|
|
27
|
+
let s = this.inputEl.valueAsNumber;
|
|
28
|
+
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min + 1 : 1), this.value = String(Math.max(this.min || -1 / 0, s - t)), this.valueChange.emit(this.value);
|
|
29
|
+
}, this.increaseValue = () => {
|
|
30
|
+
if (this.type !== "number")
|
|
31
|
+
return;
|
|
32
|
+
const t = this.step || 1;
|
|
33
|
+
let s = this.inputEl.valueAsNumber;
|
|
34
|
+
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, s + t)), this.valueChange.emit(this.value);
|
|
35
|
+
}, this.togglePassword = () => {
|
|
36
|
+
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
37
|
+
}, this.autoComplete = "on", this.autoFocus = void 0, this.autoGrow = void 0, this.autoSelect = void 0, this.clearable = void 0, this.clearButtonLabel = "Clear input", this.disabled = void 0, this.disableDynamicWidth = void 0, this.swirlAriaAutocomplete = void 0, this.swirlAriaControls = void 0, this.swirlAriaDescribedby = void 0, this.swirlAriaExpanded = void 0, this.swirlRole = void 0, this.inline = void 0, this.invalid = void 0, this.maxLength = void 0, this.max = void 0, this.min = void 0, this.mode = void 0, this.prefixLabel = void 0, this.required = void 0, this.rows = 1, this.showCharacterCounter = void 0, this.spellCheck = void 0, this.suffixLabel = void 0, this.step = void 0, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.value = void 0, this.iconSize = 24, this.showPassword = !1;
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
var e, t;
|
|
41
|
+
this.updateIconSize(this.desktopMediaQuery.matches), (t = (e = this.desktopMediaQuery).addEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
42
|
+
}
|
|
43
|
+
componentDidRender() {
|
|
44
|
+
this.adjustInputSize();
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
var e, t;
|
|
48
|
+
(t = (e = this.desktopMediaQuery).removeEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
49
|
+
}
|
|
50
|
+
updateIconSize(e) {
|
|
51
|
+
this.iconSize = e ? 20 : 24;
|
|
52
|
+
}
|
|
53
|
+
adjustInputSize() {
|
|
54
|
+
(this.rows > 1 || this.autoGrow) && (this.inputEl.style.width = "", this.inputEl.style.height = "", this.inputEl.style.height = this.inputEl.scrollHeight / 16 + "rem"), this.rows === 1 && !this.autoGrow && (this.inputEl.style.height = "", this.inputEl.style.width = "", this.type !== "password" && !this.disableDynamicWidth && (this.inputEl.style.width = this.inputEl.scrollWidth / 16 + "rem"));
|
|
55
|
+
}
|
|
56
|
+
handleAutoSelect(e) {
|
|
57
|
+
!this.autoSelect || e.target.select();
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
var e;
|
|
61
|
+
const t = this.rows === 1 && !this.autoGrow ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, r = this.type === "number" && !this.disabled, a = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !a && !r && !this.showCharacterCounter, o = this.type === "password" && this.showPassword ? "text" : this.type, l = c("text-input", `text-input--type-${this.type}`, {
|
|
62
|
+
"text-input--auto-grow": this.autoGrow,
|
|
63
|
+
"text-input--clearable": this.clearable,
|
|
64
|
+
"text-input--disabled": this.disabled,
|
|
65
|
+
"text-input--disable-dynamic-width": this.disableDynamicWidth,
|
|
66
|
+
"text-input--inline": this.inline,
|
|
67
|
+
"text-input--show-password": this.type === "password" && this.showPassword
|
|
68
|
+
});
|
|
69
|
+
return i(d, null, i("div", { class: l }, 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 : this.autoGrow ? 1 : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: o, 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, part: "text-input__clear-button", 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
|
+
}
|
|
71
|
+
};
|
|
72
|
+
b.style = w;
|
|
73
|
+
export {
|
|
74
|
+
b as swirl_text_input
|
|
75
|
+
};
|
|
@@ -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.f12232c8.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.f12232c8.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.8dc884e5.js → swirl-visually-hidden.entry.b2169f15.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.f12232c8.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.39.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.40.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { r as h, c as n, h as i, H as d } from "./index.74ec8752.js";
|
|
2
|
-
import { c } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
-
import { a as x } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
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 {
|
|
7
|
-
constructor(e) {
|
|
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) => {
|
|
9
|
-
this.updateIconSize(t.matches);
|
|
10
|
-
}, this.clear = () => {
|
|
11
|
-
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
12
|
-
}, this.onChange = (t) => {
|
|
13
|
-
const s = t.target;
|
|
14
|
-
this.value = s.value, this.valueChange.emit(s.value);
|
|
15
|
-
}, this.onBlur = (t) => {
|
|
16
|
-
this.inputBlur.emit(t);
|
|
17
|
-
}, this.onFocus = (t) => {
|
|
18
|
-
this.inputFocus.emit(t), this.handleAutoSelect(t);
|
|
19
|
-
}, this.onInput = (t) => {
|
|
20
|
-
this.onChange(t);
|
|
21
|
-
}, this.onKeyPress = (t) => {
|
|
22
|
-
this.type === "number" && ["+", "-", "e"].includes(t.key) && t.preventDefault();
|
|
23
|
-
}, this.decreaseValue = () => {
|
|
24
|
-
if (this.type !== "number")
|
|
25
|
-
return;
|
|
26
|
-
const t = this.step || 1;
|
|
27
|
-
let s = this.inputEl.valueAsNumber;
|
|
28
|
-
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min + 1 : 1), this.value = String(Math.max(this.min || -1 / 0, s - t)), this.valueChange.emit(this.value);
|
|
29
|
-
}, this.increaseValue = () => {
|
|
30
|
-
if (this.type !== "number")
|
|
31
|
-
return;
|
|
32
|
-
const t = this.step || 1;
|
|
33
|
-
let s = this.inputEl.valueAsNumber;
|
|
34
|
-
isNaN(this.inputEl.valueAsNumber) && (s = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, s + t)), this.valueChange.emit(this.value);
|
|
35
|
-
}, this.togglePassword = () => {
|
|
36
|
-
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
37
|
-
}, this.autoComplete = "on", this.autoFocus = void 0, this.autoSelect = void 0, this.clearable = void 0, this.clearButtonLabel = "Clear input", this.disabled = void 0, this.disableDynamicWidth = void 0, this.swirlAriaAutocomplete = void 0, this.swirlAriaControls = void 0, this.swirlAriaDescribedby = void 0, this.swirlAriaExpanded = void 0, this.swirlRole = void 0, this.inline = void 0, this.invalid = void 0, this.maxLength = void 0, this.max = void 0, this.min = void 0, this.mode = void 0, this.prefixLabel = void 0, this.required = void 0, this.rows = 1, this.showCharacterCounter = void 0, this.spellCheck = void 0, this.suffixLabel = void 0, this.step = void 0, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.value = void 0, this.iconSize = 24, this.showPassword = !1;
|
|
38
|
-
}
|
|
39
|
-
componentDidLoad() {
|
|
40
|
-
var e, t;
|
|
41
|
-
this.updateIconSize(this.desktopMediaQuery.matches), (t = (e = this.desktopMediaQuery).addEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
42
|
-
}
|
|
43
|
-
componentDidRender() {
|
|
44
|
-
this.adjustInputSize();
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
var e, t;
|
|
48
|
-
(t = (e = this.desktopMediaQuery).removeEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
49
|
-
}
|
|
50
|
-
updateIconSize(e) {
|
|
51
|
-
this.iconSize = e ? 20 : 24;
|
|
52
|
-
}
|
|
53
|
-
adjustInputSize() {
|
|
54
|
-
this.rows > 1 && (this.inputEl.style.width = "", this.inputEl.style.height = "", this.inputEl.style.height = this.inputEl.scrollHeight / 16 + "rem"), this.rows === 1 && (this.inputEl.style.height = "", this.inputEl.style.width = "", this.type !== "password" && !this.disableDynamicWidth && (this.inputEl.style.width = this.inputEl.scrollWidth / 16 + "rem"));
|
|
55
|
-
}
|
|
56
|
-
handleAutoSelect(e) {
|
|
57
|
-
!this.autoSelect || e.target.select();
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
var e;
|
|
61
|
-
const t = this.rows === 1 ? "input" : "textarea", s = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, r = this.type === "number" && !this.disabled, a = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !a && !r && !this.showCharacterCounter, l = this.type === "password" && this.showPassword ? "text" : this.type, o = c("text-input", `text-input--type-${this.type}`, {
|
|
62
|
-
"text-input--clearable": this.clearable,
|
|
63
|
-
"text-input--disabled": this.disabled,
|
|
64
|
-
"text-input--disable-dynamic-width": this.disableDynamicWidth,
|
|
65
|
-
"text-input--inline": this.inline,
|
|
66
|
-
"text-input--show-password": this.type === "password" && this.showPassword
|
|
67
|
-
});
|
|
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, part: "text-input__clear-button", 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}` : "")));
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
b.style = w;
|
|
72
|
-
export {
|
|
73
|
-
b as swirl_text_input
|
|
74
|
-
};
|