@getflip/swirl-components-react 0.9.0 → 0.11.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.7f94c2d2.js +58 -0
- package/dist/{index-6d2e18c6.289636d4.js → index-c3028f7d.557956d2.js} +0 -0
- package/dist/index.9489626d.js +1393 -0
- package/dist/stencil-generated/index.d.ts +168 -147
- package/dist/swirl-action-list-item.entry.447b2688.js +34 -0
- package/dist/swirl-action-list-section.entry.e84808c9.js +15 -0
- package/dist/{flip-action-list.entry.6018f4b6.js → swirl-action-list.entry.2fb802dc.js} +3 -3
- package/dist/{flip-app-layout_5.entry.3d4528f7.js → swirl-app-layout_5.entry.875542b9.js} +27 -23
- package/dist/swirl-autocomplete.entry.7be53f33.js +70 -0
- package/dist/{flip-avatar-group.entry.80f797ba.js → swirl-avatar-group.entry.38bafbf0.js} +7 -7
- package/dist/{flip-avatar.entry.19eb0d66.js → swirl-avatar.entry.6107d926.js} +7 -7
- package/dist/swirl-badge.entry.1f4d89cf.js +20 -0
- package/dist/swirl-banner.entry.2d29edfc.js +49 -0
- package/dist/swirl-button-group.entry.8ce93c3c.js +20 -0
- package/dist/swirl-button.entry.42b57f80.js +52 -0
- package/dist/{flip-card.entry.3a6a8462.js → swirl-card.entry.a09d5cdf.js} +3 -3
- package/dist/swirl-checkbox.entry.58064458.js +30 -0
- package/dist/{flip-chip.entry.fcfecaac.js → swirl-chip.entry.b6b676d6.js} +22 -14
- package/dist/swirl-components-react.js +170 -149
- package/dist/swirl-components-react.umd.cjs +69 -46
- package/dist/{flip-console-layout.entry.1df3e6c4.js → swirl-console-layout.entry.88cca8db.js} +21 -21
- package/dist/{flip-date-input.entry.672a5f90.js → swirl-date-input.entry.1ff3f34d.js} +680 -673
- package/dist/{flip-date-picker_2.entry.e34761be.js → swirl-date-picker_2.entry.e9905308.js} +79 -77
- package/dist/{flip-description-list-item.entry.2038c81f.js → swirl-description-list-item.entry.e5e7327a.js} +18 -3
- package/dist/{flip-description-list.entry.1fd450a5.js → swirl-description-list.entry.b451e1b2.js} +5 -5
- package/dist/swirl-dialog.entry.27d08ab3.js +45 -0
- package/dist/swirl-file-uploader.entry.6c075751.js +32 -0
- package/dist/{flip-file-viewer_7.entry.64afff8f.js → swirl-file-viewer_7.entry.2d664fd5.js} +19 -19
- package/dist/swirl-form-control.entry.89293c5d.js +65 -0
- package/dist/swirl-form-group.entry.f58b5fda.js +18 -0
- package/dist/swirl-heading.entry.1761ccaf.js +18 -0
- package/dist/swirl-icon-add-photo.entry.2be32855.js +18 -0
- package/dist/swirl-icon-add_4.entry.54bb7e89.js +51 -0
- package/dist/swirl-icon-admin-panel-settings.entry.a43bcc7d.js +18 -0
- package/dist/swirl-icon-arrow-back.entry.ee4ddf1e.js +18 -0
- package/dist/swirl-icon-arrow-downward_2.entry.74231d7a.js +29 -0
- package/dist/swirl-icon-arrow-forward.entry.a895e898.js +18 -0
- package/dist/swirl-icon-arrow-left_3.entry.6ea8dad5.js +40 -0
- package/dist/swirl-icon-arrow-right-small.entry.daf39424.js +18 -0
- package/dist/swirl-icon-attachment.entry.2cb8c35f.js +18 -0
- package/dist/swirl-icon-block.entry.0d7f0e2b.js +18 -0
- package/dist/swirl-icon-cancel_4.entry.2943f0c0.js +51 -0
- package/dist/swirl-icon-chat-bubble.entry.66624624.js +18 -0
- package/dist/swirl-icon-chats-filled.entry.83e0eeb7.js +18 -0
- package/dist/swirl-icon-chats-outlined.entry.f768aca8.js +18 -0
- package/dist/swirl-icon-check-circle.entry.03a596c7.js +18 -0
- package/dist/swirl-icon-check-small_3.entry.b2362b00.js +153 -0
- package/dist/swirl-icon-check-strong.entry.88cfb7b3.js +18 -0
- package/dist/swirl-icon-check.entry.360c5b8c.js +18 -0
- package/dist/swirl-icon-chevron-left.entry.d6f5077d.js +18 -0
- package/dist/swirl-icon-chevron-right.entry.4cbdaed5.js +18 -0
- package/dist/swirl-icon-close-small.entry.d223e192.js +18 -0
- package/dist/swirl-icon-close.entry.eee59783.js +18 -0
- package/dist/swirl-icon-cloud-upload.entry.b50d30c3.js +18 -0
- package/dist/swirl-icon-column.entry.07e869e3.js +18 -0
- package/dist/swirl-icon-comment.entry.221fe61a.js +18 -0
- package/dist/swirl-icon-copy.entry.d113e5bb.js +18 -0
- package/dist/swirl-icon-date-range.entry.a1eb0554.js +18 -0
- package/dist/swirl-icon-delete.entry.ebcf7073.js +18 -0
- package/dist/swirl-icon-description.entry.fb0d88a1.js +18 -0
- package/dist/swirl-icon-edit.entry.c6cf867f.js +18 -0
- package/dist/swirl-icon-emoji-mood.entry.bf9ee6c2.js +18 -0
- package/dist/swirl-icon-emoji-satisfied.entry.df8c1d60.js +18 -0
- package/dist/swirl-icon-error_3.entry.c21fbb54.js +58 -0
- package/dist/swirl-icon-expand-more.entry.bbde4949.js +18 -0
- package/dist/swirl-icon-file.entry.7ab04321.js +18 -0
- package/dist/swirl-icon-filter.entry.95211f5f.js +18 -0
- package/dist/swirl-icon-folder-shared.entry.052229e9.js +18 -0
- package/dist/swirl-icon-group-assign.entry.bb3ba16d.js +18 -0
- package/dist/swirl-icon-groups-custom.entry.89cb31bf.js +18 -0
- package/dist/swirl-icon-groups-filled.entry.8e4dd776.js +18 -0
- package/dist/swirl-icon-groups-outlined.entry.d257fa35.js +18 -0
- package/dist/swirl-icon-groups.entry.eb164fa2.js +18 -0
- package/dist/swirl-icon-help.entry.95af80fe.js +18 -0
- package/dist/swirl-icon-image.entry.ac7fce8a.js +18 -0
- package/dist/swirl-icon-info.entry.7bea6932.js +18 -0
- package/dist/swirl-icon-inventory.entry.7bb8c552.js +18 -0
- package/dist/swirl-icon-like.entry.ec92b9fd.js +18 -0
- package/dist/swirl-icon-link.entry.f3d5937c.js +18 -0
- package/dist/swirl-icon-lock.entry.807d8a95.js +18 -0
- package/dist/swirl-icon-logout.entry.4f31d257.js +18 -0
- package/dist/swirl-icon-mail.entry.54c49af9.js +18 -0
- package/dist/swirl-icon-manage-accounts.entry.8bc3721c.js +18 -0
- package/dist/swirl-icon-mention.entry.5cf61986.js +18 -0
- package/dist/swirl-icon-menu-filled.entry.1597fcdc.js +18 -0
- package/dist/swirl-icon-menu-outlined.entry.05c230c7.js +18 -0
- package/dist/swirl-icon-menu.entry.eb38317a.js +18 -0
- package/dist/swirl-icon-message.entry.3f3b0ee6.js +18 -0
- package/dist/swirl-icon-more-horizontal.entry.746bde39.js +18 -0
- package/dist/swirl-icon-more-vertikal.entry.bf9342ef.js +18 -0
- package/dist/swirl-icon-news-filled.entry.1c1d78f8.js +18 -0
- package/dist/swirl-icon-news-outlined.entry.76c94ea9.js +18 -0
- package/dist/swirl-icon-notifications-active.entry.d8c49de6.js +18 -0
- package/dist/swirl-icon-notifications-off.entry.2c8866a8.js +18 -0
- package/dist/swirl-icon-notifications.entry.a5c7b275.js +18 -0
- package/dist/swirl-icon-open-in-new.entry.128350f5.js +18 -0
- package/dist/swirl-icon-people-alt.entry.7ac6d23a.js +18 -0
- package/dist/swirl-icon-person-off.entry.fda1c4d4.js +18 -0
- package/dist/swirl-icon-person.entry.19fc5367.js +18 -0
- package/dist/swirl-icon-phone.entry.73cfee35.js +18 -0
- package/dist/swirl-icon-poll.entry.4ab05380.js +18 -0
- package/dist/swirl-icon-print.entry.cd89ebc5.js +18 -0
- package/dist/swirl-icon-recieved.entry.56d93432.js +18 -0
- package/dist/swirl-icon-search-strong.entry.904a6694.js +18 -0
- package/dist/swirl-icon-search.entry.cf65f83f.js +18 -0
- package/dist/swirl-icon-send.entry.56297757.js +18 -0
- package/dist/swirl-icon-settings.entry.1c988cf1.js +18 -0
- package/dist/swirl-icon-sync.entry.b88dd7b8.js +18 -0
- package/dist/swirl-icon-tasks-filled.entry.b2bf1c6e.js +18 -0
- package/dist/swirl-icon-tasks-outlined.entry.09551261.js +18 -0
- package/dist/swirl-icon-time-filled.entry.4954d002.js +18 -0
- package/dist/swirl-icon-time-outlined.entry.697e9656.js +18 -0
- package/dist/swirl-icon-user-assign.entry.fe5b582b.js +18 -0
- package/dist/swirl-icon-video-camera.entry.d4707dde.js +18 -0
- package/dist/swirl-icon-warning.entry.69762f5b.js +18 -0
- package/dist/{flip-lightbox.entry.f625cb0b.js → swirl-lightbox.entry.bae60d38.js} +12 -12
- package/dist/swirl-link.entry.3d52e8ef.js +15 -0
- package/dist/swirl-list.entry.53688da6.js +18 -0
- package/dist/swirl-modal.entry.4bf5e6c3.js +63 -0
- package/dist/swirl-option-list-section.entry.898ea907.js +15 -0
- package/dist/swirl-pagination.entry.b892dbdb.js +27 -0
- package/dist/{flip-pdf-reader.entry.7b555d84.js → swirl-pdf-reader.entry.28aa5b27.js} +7 -7
- package/dist/{flip-popover.entry.8e6f4db6.js → swirl-popover.entry.3e96f1d7.js} +8 -8
- package/dist/{flip-progress-indicator.entry.854165f5.js → swirl-progress-indicator.entry.30f3d224.js} +3 -3
- package/dist/swirl-radio-group.entry.9cbdf732.js +35 -0
- package/dist/swirl-radio.entry.7a24ed80.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.c7c3d567.js +37 -0
- package/dist/swirl-search.entry.19702179.js +48 -0
- package/dist/swirl-select.entry.3ff36072.js +48 -0
- package/dist/swirl-separator.entry.6dfbb1a4.js +15 -0
- package/dist/{flip-stack.entry.a2f43d7d.js → swirl-stack.entry.43f00bc0.js} +3 -3
- package/dist/swirl-switch.entry.eaba1cc3.js +56 -0
- package/dist/swirl-tab.entry.982c6bc3.js +18 -0
- package/dist/swirl-table-cell.entry.5cacafda.js +15 -0
- package/dist/swirl-table-column.entry.d66cfcf5.js +23 -0
- package/dist/swirl-table-row-group.entry.4273e651.js +19 -0
- package/dist/swirl-table-row.entry.1f98e36b.js +20 -0
- package/dist/swirl-table.entry.5a37f233.js +141 -0
- package/dist/{flip-tabs.entry.6c282205.js → swirl-tabs.entry.a932c6b9.js} +7 -7
- package/dist/swirl-tag.entry.2fd7c670.js +21 -0
- package/dist/swirl-text-input.entry.c1eb2d9c.js +74 -0
- package/dist/swirl-text.entry.ec8c8813.js +18 -0
- package/dist/{flip-theme-provider.entry.22f08b73.js → swirl-theme-provider.entry.5bf11693.js} +18 -18
- package/dist/swirl-thumbnail.entry.3b230d52.js +18 -0
- package/dist/{flip-toast-provider.entry.dd3a0d33.js → swirl-toast-provider.entry.da18eaab.js} +3 -3
- package/dist/swirl-toast.entry.d0f32449.js +52 -0
- package/dist/{flip-tooltip.entry.abe84c62.js → swirl-tooltip.entry.e444ef8c.js} +7 -7
- package/dist/{flip-tree-navigation-item.entry.a16661ed.js → swirl-tree-navigation-item.entry.49118257.js} +3 -3
- package/dist/{flip-video-thumbnail.entry.d79c4343.js → swirl-video-thumbnail.entry.786a3d11.js} +3 -3
- package/dist/{flip-visually-hidden.entry.08ca947f.js → swirl-visually-hidden.entry.1da622ab.js} +4 -4
- package/dist/utils-7efaa1c6.4a9c3721.js +42 -0
- package/package.json +2 -2
- package/dist/file-manager.entry.bede5c37.js +0 -58
- package/dist/flip-action-list-item.entry.41c8d63b.js +0 -18
- package/dist/flip-action-list-section.entry.6e34b5f7.js +0 -15
- package/dist/flip-autocomplete.entry.d20013f6.js +0 -70
- package/dist/flip-badge.entry.a59ca5a5.js +0 -20
- package/dist/flip-banner.entry.c3203c46.js +0 -33
- package/dist/flip-button-group.entry.3d29e0ac.js +0 -20
- package/dist/flip-button.entry.33e2201f.js +0 -41
- package/dist/flip-checkbox.entry.ddf308bf.js +0 -30
- package/dist/flip-dialog.entry.7f4c27e9.js +0 -45
- package/dist/flip-file-uploader.entry.e8da0073.js +0 -32
- package/dist/flip-form-control.entry.ff10d48c.js +0 -65
- package/dist/flip-form-group.entry.4c6ac05a.js +0 -18
- package/dist/flip-heading_2.entry.f760c2b5.js +0 -29
- package/dist/flip-icon-add-photo.entry.de2582b9.js +0 -15
- package/dist/flip-icon-add_4.entry.cce36b0c.js +0 -45
- package/dist/flip-icon-admin-panel-settings.entry.6bc9a42f.js +0 -15
- package/dist/flip-icon-arrow-back.entry.916b0e36.js +0 -15
- package/dist/flip-icon-arrow-forward.entry.39ab6142.js +0 -15
- package/dist/flip-icon-arrow-left_3.entry.310686ac.js +0 -35
- package/dist/flip-icon-arrow-right-small.entry.c4e9e875.js +0 -15
- package/dist/flip-icon-attachment.entry.3848b7a4.js +0 -15
- package/dist/flip-icon-block.entry.389473d7.js +0 -15
- package/dist/flip-icon-cancel_4.entry.a4bbda31.js +0 -45
- package/dist/flip-icon-chat-bubble.entry.0d4b3747.js +0 -15
- package/dist/flip-icon-check-circle.entry.3428bc41.js +0 -15
- package/dist/flip-icon-check-small_3.entry.eb576a3d.js +0 -143
- package/dist/flip-icon-check-strong.entry.97f4349e.js +0 -15
- package/dist/flip-icon-check.entry.1a597b0d.js +0 -15
- package/dist/flip-icon-chevron-left.entry.00896455.js +0 -15
- package/dist/flip-icon-chevron-right.entry.dcdcbee6.js +0 -15
- package/dist/flip-icon-close-small.entry.c2355ce0.js +0 -15
- package/dist/flip-icon-close.entry.d2aec443.js +0 -15
- package/dist/flip-icon-cloud-upload.entry.3272f7e8.js +0 -15
- package/dist/flip-icon-comment.entry.a28d8cc2.js +0 -15
- package/dist/flip-icon-copy.entry.c41f3167.js +0 -15
- package/dist/flip-icon-date-range.entry.4efa4fa3.js +0 -15
- package/dist/flip-icon-delete.entry.6fa067d1.js +0 -15
- package/dist/flip-icon-description.entry.a039a26d.js +0 -15
- package/dist/flip-icon-edit.entry.917df1fe.js +0 -15
- package/dist/flip-icon-emoji-mood.entry.65524fcf.js +0 -15
- package/dist/flip-icon-emoji-satisfied.entry.d9f472ec.js +0 -15
- package/dist/flip-icon-error_3.entry.215b6df6.js +0 -39
- package/dist/flip-icon-expand-more.entry.51dd745e.js +0 -15
- package/dist/flip-icon-file.entry.38f93b79.js +0 -15
- package/dist/flip-icon-folder-shared.entry.8e9ea6e2.js +0 -15
- package/dist/flip-icon-group-assign.entry.9d1eedd9.js +0 -15
- package/dist/flip-icon-groups-custom.entry.2d3148a4.js +0 -15
- package/dist/flip-icon-groups.entry.5c6b5c95.js +0 -15
- package/dist/flip-icon-help.entry.dcdc07dc.js +0 -15
- package/dist/flip-icon-image.entry.5b1fa36d.js +0 -15
- package/dist/flip-icon-info.entry.545e2af7.js +0 -15
- package/dist/flip-icon-inventory.entry.0e96ffdc.js +0 -15
- package/dist/flip-icon-like.entry.87e16892.js +0 -15
- package/dist/flip-icon-link.entry.7f3e7c44.js +0 -15
- package/dist/flip-icon-lock.entry.9e57f50a.js +0 -15
- package/dist/flip-icon-logout.entry.c397765a.js +0 -15
- package/dist/flip-icon-mail.entry.9bc58364.js +0 -15
- package/dist/flip-icon-manage-accounts.entry.301e10da.js +0 -15
- package/dist/flip-icon-mention.entry.19eb1429.js +0 -15
- package/dist/flip-icon-menu.entry.ff9a123c.js +0 -15
- package/dist/flip-icon-message.entry.c12b6d91.js +0 -15
- package/dist/flip-icon-more-horizontal.entry.fb3132c1.js +0 -15
- package/dist/flip-icon-more-vertikal.entry.b87650d8.js +0 -15
- package/dist/flip-icon-notifications-active.entry.1ab05b95.js +0 -15
- package/dist/flip-icon-notifications-off.entry.e981e732.js +0 -15
- package/dist/flip-icon-notifications.entry.f8debc87.js +0 -15
- package/dist/flip-icon-open-in-new.entry.38a8052c.js +0 -15
- package/dist/flip-icon-people-alt.entry.f1202425.js +0 -15
- package/dist/flip-icon-person-off.entry.e45593d5.js +0 -15
- package/dist/flip-icon-person.entry.44a57c3c.js +0 -15
- package/dist/flip-icon-phone.entry.ca432695.js +0 -15
- package/dist/flip-icon-poll.entry.610041fd.js +0 -15
- package/dist/flip-icon-print.entry.9581b90b.js +0 -15
- package/dist/flip-icon-recieved.entry.b9ca0680.js +0 -15
- package/dist/flip-icon-search-strong.entry.aef21ad5.js +0 -15
- package/dist/flip-icon-search.entry.e3a7afd0.js +0 -15
- package/dist/flip-icon-send.entry.6341b770.js +0 -15
- package/dist/flip-icon-settings.entry.0b198166.js +0 -15
- package/dist/flip-icon-time-filled.entry.7d79933a.js +0 -15
- package/dist/flip-icon-time-outlined.entry.bb5da3a9.js +0 -15
- package/dist/flip-icon-user-assign.entry.b680ffd6.js +0 -15
- package/dist/flip-icon-video-camera.entry.88264d49.js +0 -15
- package/dist/flip-icon-warning.entry.cb35b329.js +0 -15
- package/dist/flip-link.entry.1cd804c2.js +0 -15
- package/dist/flip-list.entry.914a8023.js +0 -18
- package/dist/flip-modal.entry.816373ed.js +0 -63
- package/dist/flip-option-list-section.entry.b40143ef.js +0 -15
- package/dist/flip-pagination.entry.0d081e12.js +0 -27
- package/dist/flip-radio-group.entry.0d83a19b.js +0 -35
- package/dist/flip-radio.entry.e10201cd.js +0 -29
- package/dist/flip-resource-list-file-item.entry.73fd8ba3.js +0 -20
- package/dist/flip-search.entry.365ec7f8.js +0 -31
- package/dist/flip-select.entry.0f48829d.js +0 -48
- package/dist/flip-switch.entry.3d9906ae.js +0 -56
- package/dist/flip-tab.entry.42e1241c.js +0 -18
- package/dist/flip-tag.entry.ae1b5da7.js +0 -21
- package/dist/flip-text-input.entry.50675c4c.js +0 -60
- package/dist/flip-thumbnail.entry.d4e5fe61.js +0 -18
- package/dist/flip-toast.entry.f193091c.js +0 -39
- package/dist/index.bf386a84.js +0 -1372
- package/dist/utils-39b2afe8.37b54ba4.js +0 -40
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { r as c, c as r, h as a, H as i } from "./index.bf386a84.js";
|
|
2
|
-
import { c as t } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const l = ".sc-flip-search-h{display:flex;width:100%}.sc-flip-search-h *.sc-flip-search{box-sizing:border-box}.search.sc-flip-search{position:relative;display:flex;width:100%}.search--disabled.sc-flip-search .search__icon.sc-flip-search{color:var(--s-icon-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::placeholder{color:var(--s-text-disabled)}.search__icon.sc-flip-search{position:absolute;top:50%;left:var(--s-space-12);display:inline-flex;color:var(--s-icon-default);transform:translateY(-50%)}.search__input.sc-flip-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-flip-search:focus:not(:focus-visible){outline:none}.search__input.sc-flip-search:focus-visible{outline-color:var(--s-focus-default)}.search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::-webkit-search-decoration,.search__input.sc-flip-search::-webkit-search-cancel-button,.search__input.sc-flip-search::-webkit-search-results-button,.search__input.sc-flip-search::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.search__input.sc-flip-search:not(:-moz-placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__input.sc-flip-search:not(:placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__clear-button.sc-flip-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%)}", o = class {
|
|
7
|
-
constructor(s) {
|
|
8
|
-
c(this, s), this.inputBlur = r(this, "inputBlur", 7), this.inputFocus = r(this, "inputFocus", 7), this.valueChange = r(this, "valueChange", 7), this.clearButtonLabel = "Clear search term", this.placeholder = "Search \u2026", this.clear = () => {
|
|
9
|
-
this.input.value = "", this.input.focus();
|
|
10
|
-
}, this.onBlur = (e) => {
|
|
11
|
-
this.inputBlur.emit(e);
|
|
12
|
-
}, this.onChange = (e) => {
|
|
13
|
-
this.valueChange.emit(e.target.value);
|
|
14
|
-
}, this.onFocus = (e) => {
|
|
15
|
-
this.inputFocus.emit(e);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
onKeyDown(s) {
|
|
19
|
-
(s.code === "KeyK" || s.code === "Slash") && (s.ctrlKey || s.metaKey) && this.input.focus();
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const s = t("search", {
|
|
23
|
-
"search--disabled": this.disabled
|
|
24
|
-
});
|
|
25
|
-
return a(i, null, a("span", { class: s }, a("flip-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: (e) => this.input = e, type: "search", value: this.value }), !this.disabled && a("button", { "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, a("flip-icon-cancel", null))));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
o.style = l;
|
|
29
|
-
export {
|
|
30
|
-
o as flip_search
|
|
31
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { r as n, c, h as e, H as r, g as p } from "./index.bf386a84.js";
|
|
2
|
-
import { c as d } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import { q as h } from "./utils-39b2afe8.37b54ba4.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
7
|
-
const u = ".sc-flip-select-h{display:block;width:100%}.sc-flip-select-h *.sc-flip-select{box-sizing:border-box}.select.sc-flip-select{position:relative;display:flex;width:100%}.select--disabled.sc-flip-select .select__label.sc-flip-select{color:var(--s-text-disabled)}.select--disabled.sc-flip-select .select__indicator.sc-flip-select{color:var(--s-icon-disabled)}.select__label.sc-flip-select{display:block;overflow:hidden;width:100%;height:1.375rem;margin:0;padding:0;padding-right:calc(1.5rem + var(--s-space-8));border:none;background-color:transparent;font:inherit;line-height:var(--s-line-height-base);text-align:left;white-space:nowrap;text-overflow:ellipsis;cursor:default}.select__label.sc-flip-select:focus{outline:none}.select__indicator.sc-flip-select{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;color:var(--s-icon-default)}", f = class {
|
|
8
|
-
constructor(t) {
|
|
9
|
-
n(this, t), this.valueChange = c(this, "valueChange", 7), this.options = [], this.select = (i) => {
|
|
10
|
-
this.value = i.detail, this.valueChange.emit(this.value), this.multiSelect || this.popover.close();
|
|
11
|
-
}, this.onSlotChange = () => {
|
|
12
|
-
this.updateOptions();
|
|
13
|
-
}, this.onOpen = () => {
|
|
14
|
-
this.open = !0;
|
|
15
|
-
}, this.onClose = () => {
|
|
16
|
-
this.open = !1;
|
|
17
|
-
}, this.onKeyDown = (i) => {
|
|
18
|
-
(i.code === "Space" || i.code === "Enter") && (i.preventDefault(), this.popover.open());
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
queueMicrotask(() => {
|
|
23
|
-
this.updateOptions();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
onWindowFocusIn(t) {
|
|
27
|
-
t.target === this.el.querySelector("input") && t.stopImmediatePropagation();
|
|
28
|
-
}
|
|
29
|
-
updateOptions() {
|
|
30
|
-
this.options = h(this.el, "flip-option-list-item");
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const t = Boolean(this.value) ? this.value.map((s) => {
|
|
34
|
-
var l;
|
|
35
|
-
return (l = this.options.find((a) => a.value === s)) === null || l === void 0 ? void 0 : l.label;
|
|
36
|
-
}).join(", ") : "", i = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, o = d("select", {
|
|
37
|
-
"select--disabled": this.disabled
|
|
38
|
-
});
|
|
39
|
-
return e(r, { onKeyDown: this.onKeyDown }, e("div", { class: o }, e("input", { "aria-describedby": this.flipAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-invalid": i, class: "select__label", disabled: this.disabled, id: "trigger", readOnly: !0, type: "text", value: t }), e("span", { class: "select__indicator" }, this.open ? e("flip-icon-expand-less", null) : e("flip-icon-expand-more", null)), e("flip-popover", { animation: "scale-in-y", class: "select__popover", enableFlip: !1, label: this.label, offset: [16, -16], onPopoverClose: this.onClose, onPopoverOpen: this.onOpen, popoverId: "select-options", ref: (s) => this.popover = s, trigger: "trigger", useContainerWidth: "flip-form-control" }, e("flip-option-list", { onValueChange: this.select, multiSelect: this.multiSelect, value: this.value }, e("slot", { onSlotchange: this.onSlotChange })))));
|
|
40
|
-
}
|
|
41
|
-
get el() {
|
|
42
|
-
return p(this);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
f.style = u;
|
|
46
|
-
export {
|
|
47
|
-
f as flip_select
|
|
48
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { r as n, c as r, h as e, H as a, g as o } from "./index.bf386a84.js";
|
|
2
|
-
import { c as l } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const d = `.sc-flip-switch-h{display:inline-flex}.sc-flip-switch-h *.sc-flip-switch{box-sizing:border-box}.switch.sc-flip-switch{display:inline-flex;align-items:center;touch-action:none}.switch.sc-flip-switch:focus-within .switch__control.sc-flip-switch{box-shadow:0 0 0 0.0625rem var(--s-background-default),
|
|
7
|
-
0 0 0 0.1875rem var(--s-focus-default)}.switch--size-m.sc-flip-switch .switch__control.sc-flip-switch{width:2.75rem;height:1.5rem;border-radius:calc(1.5rem / 2)}.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{width:1.25rem;height:1.25rem}.switch--on.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 1.25rem - var(--s-space-2))}.switch--on.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-default)}.switch--on.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 0.875rem - var(--s-space-2))}.switch--disabled.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-disabled);cursor:default}.switch--disabled.sc-flip-switch .switch__thumb.sc-flip-switch{background-color:var(--s-interactive-neutral-default)}.switch--disabled.sc-flip-switch .switch__label.sc-flip-switch{color:var(--s-text-disabled)}.switch__control.sc-flip-switch{position:relative;width:1.875rem;height:1.125rem;flex-shrink:0;border-radius:calc(1.125rem / 2);background-color:var(--s-interactive-primary-disabled);cursor:pointer;transition:background-color 0.2s}@media (prefers-reduced-motion){.switch__control.sc-flip-switch{transition:none}}.switch__thumb.sc-flip-switch{position:absolute;top:var(--s-space-2);left:var(--s-space-2);width:0.875rem;height:0.875rem;border-radius:50%;background-color:var(--s-surface-default);transition:left 0.2s;pointer-events:none}@media (prefers-reduced-motion){.switch__thumb.sc-flip-switch{transition:none}}.switch__label.sc-flip-switch{position:relative;z-index:1;margin-left:var(--s-space-12);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base)}`, f = class {
|
|
8
|
-
constructor(h) {
|
|
9
|
-
n(this, h), this.valueChange = r(this, "valueChange", 7), this.checked = !1, this.disabled = !1, this.size = "m", this.dragging = !1, this.recentlyDragged = !1, this.onChange = () => {
|
|
10
|
-
if (!this.dragging) {
|
|
11
|
-
if (this.recentlyDragged) {
|
|
12
|
-
this.recentlyDragged = !1;
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
this.checked = !this.checked, this.valueChange.emit(this.checked);
|
|
16
|
-
}
|
|
17
|
-
}, this.onStartDrag = () => {
|
|
18
|
-
this.disabled || (this.dragging = !0, this.thumb.style.transition = "none");
|
|
19
|
-
}, this.onEndDrag = () => {
|
|
20
|
-
if (!this.disabled) {
|
|
21
|
-
if (this.recentlyDragged) {
|
|
22
|
-
const s = this.control.getBoundingClientRect(), c = this.thumb.getBoundingClientRect(), t = this.thumb.offsetLeft + c.width / 2 > s.width / 2;
|
|
23
|
-
this.checked !== t && (this.checked = t, this.valueChange.emit(t));
|
|
24
|
-
}
|
|
25
|
-
this.thumb.style.left = "", this.thumb.style.transition = "", this.dragging = !1, setTimeout(() => {
|
|
26
|
-
this.recentlyDragged = !1;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}, this.onDrag = (s) => {
|
|
30
|
-
if (!this.dragging)
|
|
31
|
-
return;
|
|
32
|
-
this.recentlyDragged = !0;
|
|
33
|
-
const c = this.control.getBoundingClientRect(), t = this.thumb.getBoundingClientRect();
|
|
34
|
-
let i = Math.round(s.offsetX - t.width / 2);
|
|
35
|
-
i < 0 && (i = 0), i > Math.round(c.width - t.width) && (i = Math.round(c.width - t.width)), this.thumb.style.left = `${i}px`;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
onWindowPointerUp() {
|
|
39
|
-
this.onEndDrag();
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
const h = !this.checked, s = this.checked, c = s ? "true" : "false", t = l("switch", `switch--size-${this.size}`, {
|
|
43
|
-
"switch--off": h,
|
|
44
|
-
"switch--on": s,
|
|
45
|
-
"switch--disabled": this.disabled
|
|
46
|
-
});
|
|
47
|
-
return e(a, null, e("label", { class: t, htmlFor: this.inputId }, e("span", { class: "switch__control", onPointerDown: this.onStartDrag, onPointerMove: this.onDrag, onPointerUp: this.onEndDrag, ref: (i) => this.control = i }, e("flip-visually-hidden", null, e("input", { "aria-checked": c, checked: s, class: "switch__input", disabled: this.disabled, id: this.inputId, name: this.inputName, onChange: this.onChange, role: "switch", type: "checkbox", value: this.value })), e("span", { "aria-hidden": "true", class: "switch__thumb", ref: (i) => this.thumb = i })), this.label && e("span", { class: "switch__label" }, this.label)));
|
|
48
|
-
}
|
|
49
|
-
get el() {
|
|
50
|
-
return o(this);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
f.style = d;
|
|
54
|
-
export {
|
|
55
|
-
f as flip_switch
|
|
56
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as s, h as a, H as i } from "./index.bf386a84.js";
|
|
2
|
-
import { c as o } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const e = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{display:none;width:100%;padding:var(--s-space-8)}.tab--active{display:block}", r = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
s(this, t);
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const t = o("tab", { "tab--active": this.active });
|
|
12
|
-
return a(i, { "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 }, a("div", { class: t }, a("slot", null)));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
r.style = e;
|
|
16
|
-
export {
|
|
17
|
-
r as flip_tab
|
|
18
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { r as e, c as s, h as t, H as n } from "./index.bf386a84.js";
|
|
2
|
-
import { c as i } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tag{display:inline-flex;padding:var(--s-space-2) var(--s-space-8);align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--s-surface-neutral-subdued);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);gap:var(--s-space-4)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--icon-info)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--icon-critical)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--icon-warning)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--icon-success)}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer}.tag__removal-button:focus:not(:focus-visible){outline:none}.tag__removal-button:focus-visible{outline-color:var(--s-focus-default)}", l = class {
|
|
7
|
-
constructor(o) {
|
|
8
|
-
e(this, o), this.remove = s(this, "remove", 7), this.intent = "default", this.removalButtonLabel = "Remove", this.onRemove = (r) => {
|
|
9
|
-
var a;
|
|
10
|
-
(a = this.remove) === null || a === void 0 || a.emit(r);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
const o = i("tag", `tag--intent-${this.intent}`);
|
|
15
|
-
return t(n, null, t("span", { class: o }, this.label, this.removable && t("button", { "aria-label": this.removalButtonLabel, class: "tag__removal-button", onClick: this.onRemove, type: "button" }, t("flip-icon-close", { size: 16 }))));
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
l.style = c;
|
|
19
|
-
export {
|
|
20
|
-
l as flip_tag
|
|
21
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { r as h, c as n, h as i, H as c } from "./index.bf386a84.js";
|
|
2
|
-
import { c as d } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const x = '.sc-flip-text-input-h{display:block;width:100%}.sc-flip-text-input-h *.sc-flip-text-input{box-sizing:border-box}.text-input.sc-flip-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-flip-text-input,.text-input--type-number.sc-flip-text-input,.text-input--type-password.sc-flip-text-input{padding-right:calc(1.5rem + var(--s-space-8))}.text-input--show-password.sc-flip-text-input .text-input__input.sc-flip-text-input{width:100%}.text-input--disabled.sc-flip-text-input .text-input__character-counter.sc-flip-text-input{color:var(--s-text-disabled)}.text-input__input.sc-flip-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-flip-text-input:focus{outline:none}.text-input__input.sc-flip-text-input:disabled{color:var(--s-text-disabled);background-color:transparent}.text-input__input.sc-flip-text-input::-webkit-outer-spin-button,.text-input__input.sc-flip-text-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.text-input__input[type="number"].sc-flip-text-input{-moz-appearance:textfield}input.text-input__input.sc-flip-text-input:not([type="password"]){width:0.25rem;min-width:0.25rem}.text-input--disable-dynamic-width.sc-flip-text-input input.text-input__input.sc-flip-text-input:not([type="password"]){width:100%;min-width:0}.text-input__clear-button.sc-flip-text-input,.text-input__password-toggle.sc-flip-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-flip-text-input:focus:not(:focus-visible),.text-input__password-toggle.sc-flip-text-input:focus:not(:focus-visible){outline:none}.text-input__clear-button.sc-flip-text-input:focus-visible,.text-input__password-toggle.sc-flip-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__stepper.sc-flip-text-input{position:absolute;top:-1.4375rem;right:0;display:flex;flex-direction:column}.text-input__step-button.sc-flip-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-flip-text-input:focus:not(:focus-visible){outline:none}.text-input__step-button.sc-flip-text-input:focus-visible{outline-color:var(--s-focus-default)}.text-input__character-counter.sc-flip-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}.text-input__prefix.sc-flip-text-input{padding-right:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}.text-input__suffix.sc-flip-text-input{padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-base)}', f = class {
|
|
7
|
-
constructor(s) {
|
|
8
|
-
h(this, s), this.inputBlur = n(this, "inputBlur", 7), this.inputFocus = n(this, "inputFocus", 7), this.valueChange = n(this, "valueChange", 7), this.autoComplete = "on", this.clearButtonLabel = "Clear input", this.rows = 1, this.passwordToggleLabel = "Toggle password display", this.type = "text", this.showPassword = !1, this.clear = () => {
|
|
9
|
-
this.inputEl.value = "", this.value = "", this.valueChange.emit(""), this.inputEl.focus();
|
|
10
|
-
}, this.onChange = (t) => {
|
|
11
|
-
const e = t.target;
|
|
12
|
-
this.value = e.value, this.valueChange.emit(e.value);
|
|
13
|
-
}, this.onBlur = (t) => {
|
|
14
|
-
this.inputBlur.emit(t);
|
|
15
|
-
}, this.onFocus = (t) => {
|
|
16
|
-
this.inputFocus.emit(t), this.handleAutoSelect(t);
|
|
17
|
-
}, this.onInput = (t) => {
|
|
18
|
-
this.onChange(t);
|
|
19
|
-
}, this.onKeyPress = (t) => {
|
|
20
|
-
this.type === "number" && ["+", "-", "e"].includes(t.key) && t.preventDefault();
|
|
21
|
-
}, this.decreaseValue = () => {
|
|
22
|
-
if (this.type !== "number")
|
|
23
|
-
return;
|
|
24
|
-
const t = this.step || 1;
|
|
25
|
-
let e = this.inputEl.valueAsNumber;
|
|
26
|
-
isNaN(this.inputEl.valueAsNumber) && (e = this.min !== void 0 ? this.min + 1 : 1), this.value = String(Math.max(this.min || -1 / 0, e - t)), this.valueChange.emit(this.value);
|
|
27
|
-
}, this.increaseValue = () => {
|
|
28
|
-
if (this.type !== "number")
|
|
29
|
-
return;
|
|
30
|
-
const t = this.step || 1;
|
|
31
|
-
let e = this.inputEl.valueAsNumber;
|
|
32
|
-
isNaN(this.inputEl.valueAsNumber) && (e = this.min !== void 0 ? this.min - 1 : -1), this.value = String(Math.min(this.max || 1 / 0, e + t)), this.valueChange.emit(this.value);
|
|
33
|
-
}, this.togglePassword = () => {
|
|
34
|
-
this.type === "password" && (this.showPassword = !this.showPassword);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
componentDidRender() {
|
|
38
|
-
this.adjustInputSize();
|
|
39
|
-
}
|
|
40
|
-
adjustInputSize() {
|
|
41
|
-
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"));
|
|
42
|
-
}
|
|
43
|
-
handleAutoSelect(s) {
|
|
44
|
-
!this.autoSelect || s.target.select();
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
var s;
|
|
48
|
-
const t = this.rows === 1 ? "input" : "textarea", e = this.invalid === !0 || this.invalid === !1 ? String(this.invalid) : void 0, a = this.type === "number" && !this.disabled, l = this.type === "password" && !this.disabled, u = this.clearable && !this.disabled && Boolean(this.value) && !l && !a && !this.showCharacterCounter, p = this.type === "password" && this.showPassword ? "text" : this.type, o = d("text-input", `text-input--type-${this.type}`, {
|
|
49
|
-
"text-input--clearable": this.clearable,
|
|
50
|
-
"text-input--disabled": this.disabled,
|
|
51
|
-
"text-input--disable-dynamic-width": this.disableDynamicWidth,
|
|
52
|
-
"text-input--show-password": this.type === "password" && this.showPassword
|
|
53
|
-
});
|
|
54
|
-
return i(c, null, i("div", { class: o }, this.prefixLabel && i("span", { class: "text-input__prefix" }, this.prefixLabel), i(t, { "aria-autocomplete": this.flipAriaAutocomplete, "aria-controls": this.flipAriaControls, "aria-describedby": this.flipAriaDescribedby, "aria-disabled": this.disabled ? "true" : void 0, "aria-expanded": this.flipAriaExpanded, "aria-invalid": e, 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: (r) => this.inputEl = r, required: this.required, role: this.flipRole, rows: this.rows > 1 ? this.rows : void 0, spellcheck: this.spellCheck, step: this.type === "number" ? this.step : void 0, type: p, value: this.rows === 1 ? this.value : void 0 }, this.rows > 1 && this.value), this.suffixLabel && i("span", { class: "text-input__suffix" }, this.suffixLabel), u && i("button", { "aria-label": this.clearButtonLabel, class: "text-input__clear-button", onClick: this.clear, type: "button" }, i("flip-icon-cancel", null)), l && i("button", { "aria-label": this.passwordToggleLabel, class: "text-input__password-toggle", onClick: this.togglePassword, type: "button" }, this.showPassword ? i("flip-icon-visibility-off", null) : i("flip-icon-visibility", null)), a && i("span", { class: "text-input__stepper" }, i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.increaseValue, tabIndex: -1, type: "button" }, i("flip-icon-expand-less", null)), i("button", { "aria-hidden": "true", class: "text-input__step-button", onClick: this.decreaseValue, tabIndex: -1, type: "button" }, i("flip-icon-expand-more", null))), this.showCharacterCounter && i("span", { class: "text-input__character-counter" }, ((s = this.value) === null || s === void 0 ? void 0 : s.length) || 0, " ", Boolean(this.maxLength) ? `/ ${this.maxLength}` : "")));
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
f.style = x;
|
|
58
|
-
export {
|
|
59
|
-
f as flip_text_input
|
|
60
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as t, h as a, H as s } from "./index.bf386a84.js";
|
|
2
|
-
import { c as l } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const m = ":host{display:inline-flex}:host *{box-sizing:border-box}.thumbnail{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.03125rem rgba(0, 0, 0, 0.1)}.thumbnail--size-s{--flip-thumbnail-size:2.5rem}.thumbnail--size-m{--flip-thumbnail-size:3rem}.thumbnail--size-l{--flip-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--flip-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--flip-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--flip-thumbnail-size);height:var(--flip-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", r = class {
|
|
7
|
-
constructor(i) {
|
|
8
|
-
t(this, i), this.format = "landscape", this.size = "m";
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const i = l("thumbnail", `thumbnail--format-${this.format}`, `thumbnail--size-${this.size}`);
|
|
12
|
-
return a(s, null, a("span", { class: i }, a("img", { alt: this.alt, class: "thumbnail__image", loading: "lazy", src: this.src })));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
r.style = m;
|
|
16
|
-
export {
|
|
17
|
-
r as flip_thumbnail
|
|
18
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { r as i, c as a, h as t, H as e } from "./index.bf386a84.js";
|
|
2
|
-
import { c as o } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const r = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);box-shadow:var(--s-shadow-level-2)}.toast--intent-critical{background-color:var(--s-surface-critical-default)}.toast--intent-success{background-color:var(--s-surface-success-default)}.toast__icon{display:inline-flex;margin-top:calc(-1 * var(--s-space-2));margin-right:0.625rem;flex-shrink:0}.toast__icon ::part(icon){color:var(--s-icon-on-status)}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left}.toast__dismiss-button{display:inline-flex;min-width:1.5rem;height:1.5rem;margin-top:calc(-1 * var(--s-space-2));margin-left:var(--s-space-16);padding:0;flex-shrink:0;justify-content:center;align-items:center;border:none;color:var(--s-text-on-status);background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);cursor:pointer}.toast__dismiss-button ::part(icon){color:var(--s-icon-on-status)}", n = class {
|
|
7
|
-
constructor(s) {
|
|
8
|
-
i(this, s), this.dismiss = a(this, "dismiss", 7), this.accessibleDismissLabel = "Dismiss", this.intent = "default", this.onDismiss = () => {
|
|
9
|
-
this.dismiss.emit(this.toastId);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
watchDuration() {
|
|
13
|
-
this.startTimer();
|
|
14
|
-
}
|
|
15
|
-
componentDidLoad() {
|
|
16
|
-
this.startTimer();
|
|
17
|
-
}
|
|
18
|
-
startTimer() {
|
|
19
|
-
this.clearTimer(), this.duration !== void 0 && (this.timeout = setTimeout(() => {
|
|
20
|
-
this.dismiss.emit(this.toastId);
|
|
21
|
-
}, this.duration));
|
|
22
|
-
}
|
|
23
|
-
clearTimer() {
|
|
24
|
-
!Boolean(this.timeout) || (clearTimeout(this.timeout), this.timeout = void 0);
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const s = o("toast", `toast--intent-${this.intent}`);
|
|
28
|
-
return t(e, null, t("div", { class: s }, this.icon && t("span", { class: "toast__icon", innerHTML: this.icon }), t("span", { class: "toast__content" }, this.content), t("button", { "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && t("flip-icon-close", null))));
|
|
29
|
-
}
|
|
30
|
-
static get watchers() {
|
|
31
|
-
return {
|
|
32
|
-
duration: ["watchDuration"]
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
n.style = r;
|
|
37
|
-
export {
|
|
38
|
-
n as flip_toast
|
|
39
|
-
};
|