@getflip/swirl-components-react 0.2.0 → 0.3.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/{flip-action-list-item.entry.66f33805.js → flip-action-list-item.entry.bfe816d0.js} +2 -2
- package/dist/{flip-action-list-section.entry.2927ba41.js → flip-action-list-section.entry.8072859c.js} +1 -1
- package/dist/{flip-action-list.entry.66352b19.js → flip-action-list.entry.07c4e8cb.js} +1 -1
- package/dist/{flip-avatar-group.entry.be7886a3.js → flip-avatar-group.entry.f987aa8b.js} +18 -9
- package/dist/{flip-avatar.entry.f95286a1.js → flip-avatar.entry.7be29e5c.js} +19 -10
- package/dist/{flip-badge.entry.3f2d34e9.js → flip-badge.entry.bb0eb78d.js} +1 -1
- package/dist/{flip-banner.entry.32f2ef57.js → flip-banner.entry.50b72a3f.js} +1 -1
- package/dist/flip-button-group.entry.9261c585.js +20 -0
- package/dist/flip-button.entry.98440a9e.js +35 -0
- package/dist/{flip-checkbox.entry.9768035f.js → flip-checkbox.entry.56d1e132.js} +2 -2
- package/dist/{flip-chip.entry.5ebbf411.js → flip-chip.entry.e2be5143.js} +1 -1
- package/dist/{flip-date-input.entry.7bf9efc5.js → flip-date-input.entry.2d5088ea.js} +1 -1
- package/dist/{flip-date-picker_3.entry.54e0b84d.js → flip-date-picker_3.entry.d61d1842.js} +84 -77
- package/dist/{flip-description-list-item.entry.f4e6faf7.js → flip-description-list-item.entry.ebdd7136.js} +1 -1
- package/dist/{flip-description-list.entry.2b1d4579.js → flip-description-list.entry.48a4d48b.js} +1 -1
- package/dist/{flip-dialog.entry.2bbc3bff.js → flip-dialog.entry.bec58ff3.js} +2 -2
- package/dist/{flip-empty-state.entry.376592fa.js → flip-empty-state.entry.d125feea.js} +1 -1
- package/dist/{flip-file-uploader.entry.c0ddf5a7.js → flip-file-uploader.entry.d8919920.js} +2 -2
- package/dist/{flip-file-viewer-audio_6.entry.d60d1099.js → flip-file-viewer-audio_6.entry.6ac11dbe.js} +697 -697
- package/dist/{flip-file-viewer.entry.0c2922e5.js → flip-file-viewer.entry.66629b65.js} +3 -3
- package/dist/{flip-form-control.entry.71c275f5.js → flip-form-control.entry.c45d4428.js} +1 -1
- package/dist/{flip-form-group.entry.ad2385d5.js → flip-form-group.entry.52e6ee89.js} +4 -4
- package/dist/{flip-heading.entry.1245bdda.js → flip-heading.entry.b20bb368.js} +1 -1
- package/dist/{flip-icon-add-photo.entry.c3178433.js → flip-icon-add-photo.entry.897fe115.js} +1 -1
- package/dist/{flip-icon-add.entry.708a8c7c.js → flip-icon-add.entry.a04d115d.js} +1 -1
- package/dist/{flip-icon-admin-panel-settings.entry.88af777a.js → flip-icon-admin-panel-settings.entry.d1c445fd.js} +1 -1
- package/dist/{flip-icon-arrow-back.entry.abd86e13.js → flip-icon-arrow-back.entry.e054a0e8.js} +1 -1
- package/dist/{flip-icon-arrow-forward.entry.ef6e8b77.js → flip-icon-arrow-forward.entry.ceea49fe.js} +1 -1
- package/dist/flip-icon-arrow-left_3.entry.ec0b28c1.js +35 -0
- package/dist/{flip-icon-arrow-right-small.entry.d342c71f.js → flip-icon-arrow-right-small.entry.88470f4b.js} +1 -1
- package/dist/{flip-icon-attachment.entry.898243d2.js → flip-icon-attachment.entry.c141c860.js} +1 -1
- package/dist/{flip-icon-cancel.entry.fac41df2.js → flip-icon-cancel.entry.07a0efa7.js} +1 -1
- package/dist/{flip-icon-chat-bubble.entry.016c1f0d.js → flip-icon-chat-bubble.entry.13a6899b.js} +1 -1
- package/dist/{flip-icon-check-circle.entry.330f4038.js → flip-icon-check-circle.entry.4c134688.js} +1 -1
- package/dist/{flip-icon-check-small.entry.590b928f.js → flip-icon-check-small.entry.1da0f061.js} +1 -1
- package/dist/{flip-icon-check-strong.entry.8fb90e69.js → flip-icon-check-strong.entry.819065e2.js} +1 -1
- package/dist/{flip-icon-check.entry.bf4892a9.js → flip-icon-check.entry.e9e18ec0.js} +1 -1
- package/dist/{flip-icon-chevron-left.entry.8a5cd7ef.js → flip-icon-chevron-left.entry.8b4f8813.js} +1 -1
- package/dist/{flip-icon-chevron-right.entry.ba87bdc8.js → flip-icon-chevron-right.entry.d32eba9e.js} +1 -1
- package/dist/{flip-icon-close-small.entry.d3ca39fb.js → flip-icon-close-small.entry.e18fcac6.js} +1 -1
- package/dist/{flip-icon-close.entry.ebcf0fe6.js → flip-icon-close.entry.30a8abc3.js} +1 -1
- package/dist/{flip-icon-cloud-upload.entry.bf4e840b.js → flip-icon-cloud-upload.entry.6412d35e.js} +1 -1
- package/dist/{flip-icon-comment.entry.dd07b7a4.js → flip-icon-comment.entry.731b5907.js} +1 -1
- package/dist/{flip-icon-copy.entry.796dcb43.js → flip-icon-copy.entry.c29519f3.js} +1 -1
- package/dist/{flip-icon-date-range.entry.53c670dc.js → flip-icon-date-range.entry.d6dea969.js} +1 -1
- package/dist/{flip-icon-delete.entry.df480685.js → flip-icon-delete.entry.e99d814a.js} +1 -1
- package/dist/{flip-icon-description.entry.da40cecc.js → flip-icon-description.entry.8448b398.js} +1 -1
- package/dist/{flip-icon-edit.entry.0f50ba4c.js → flip-icon-edit.entry.3ae910b7.js} +1 -1
- package/dist/{flip-icon-emoji-mood.entry.4fa27f13.js → flip-icon-emoji-mood.entry.89308bc3.js} +1 -1
- package/dist/{flip-icon-emoji-satisfied.entry.9246c39b.js → flip-icon-emoji-satisfied.entry.5a9bca01.js} +1 -1
- package/dist/{flip-icon-error_3.entry.4e8dcd9e.js → flip-icon-error_3.entry.f44ffe60.js} +1 -1
- package/dist/{flip-icon-expand-less_3.entry.f191352f.js → flip-icon-expand-less_3.entry.6e9d656c.js} +1 -1
- package/dist/{flip-icon-expand-more.entry.5dbcc3e3.js → flip-icon-expand-more.entry.d0acac42.js} +1 -1
- package/dist/{flip-icon-file.entry.64c3e030.js → flip-icon-file.entry.24508e1d.js} +1 -1
- package/dist/{flip-icon-folder-shared.entry.87cd72cd.js → flip-icon-folder-shared.entry.c829f971.js} +1 -1
- package/dist/{flip-icon-fullscreen-exit.entry.b274fc5c.js → flip-icon-fullscreen-exit.entry.4f7369df.js} +1 -1
- package/dist/{flip-icon-fullscreen.entry.a0a70cc8.js → flip-icon-fullscreen.entry.fe6d6998.js} +1 -1
- package/dist/{flip-icon-group-assign.entry.17e70921.js → flip-icon-group-assign.entry.ba88a447.js} +1 -1
- package/dist/{flip-icon-groups-custom.entry.ed78b313.js → flip-icon-groups-custom.entry.eeaaa045.js} +1 -1
- package/dist/{flip-icon-groups.entry.ff8a5e63.js → flip-icon-groups.entry.fb62ee22.js} +1 -1
- package/dist/{flip-icon-image.entry.b010afb8.js → flip-icon-image.entry.75eebbb0.js} +1 -1
- package/dist/{flip-icon-info.entry.61351d50.js → flip-icon-info.entry.e30b9669.js} +1 -1
- package/dist/{flip-icon-inventory.entry.f0ffd90a.js → flip-icon-inventory.entry.39ebc534.js} +1 -1
- package/dist/{flip-icon-like.entry.6b0034de.js → flip-icon-like.entry.80e5f8b9.js} +1 -1
- package/dist/{flip-icon-link.entry.9229312e.js → flip-icon-link.entry.c99a2106.js} +1 -1
- package/dist/{flip-icon-lock.entry.03e5fa85.js → flip-icon-lock.entry.5957290a.js} +1 -1
- package/dist/{flip-icon-logout.entry.8b073a7d.js → flip-icon-logout.entry.c6240d44.js} +1 -1
- package/dist/{flip-icon-mail.entry.91482af2.js → flip-icon-mail.entry.65b32c8b.js} +1 -1
- package/dist/{flip-icon-manage-accounts.entry.5de8be6f.js → flip-icon-manage-accounts.entry.73cd3a27.js} +1 -1
- package/dist/{flip-icon-mention.entry.ef803509.js → flip-icon-mention.entry.088e8573.js} +1 -1
- package/dist/{flip-icon-message.entry.20ae73fb.js → flip-icon-message.entry.e7306c78.js} +1 -1
- package/dist/{flip-icon-more-horizontal.entry.9a2357f0.js → flip-icon-more-horizontal.entry.9b6c4ab4.js} +1 -1
- package/dist/{flip-icon-more-vertikal.entry.0447fdab.js → flip-icon-more-vertikal.entry.43a77373.js} +1 -1
- package/dist/{flip-icon-notifications-active.entry.3aa487b9.js → flip-icon-notifications-active.entry.b48ff150.js} +1 -1
- package/dist/{flip-icon-notifications-off.entry.285c2bb6.js → flip-icon-notifications-off.entry.b60ef6aa.js} +1 -1
- package/dist/{flip-icon-notifications.entry.e60fed91.js → flip-icon-notifications.entry.e2d0f244.js} +1 -1
- package/dist/{flip-icon-open-in-new.entry.9de4d7c0.js → flip-icon-open-in-new.entry.bdcb5f7e.js} +1 -1
- package/dist/{flip-icon-people-alt.entry.dd840fb1.js → flip-icon-people-alt.entry.4c0917f0.js} +1 -1
- package/dist/{flip-icon-person-off.entry.df6c63b6.js → flip-icon-person-off.entry.4dba1b98.js} +1 -1
- package/dist/{flip-icon-person.entry.37939889.js → flip-icon-person.entry.57042a58.js} +1 -1
- package/dist/{flip-icon-phone.entry.08245320.js → flip-icon-phone.entry.3ad46317.js} +1 -1
- package/dist/{flip-icon-poll.entry.e0ff1d9f.js → flip-icon-poll.entry.c14b718c.js} +1 -1
- package/dist/{flip-icon-print.entry.f5fbd804.js → flip-icon-print.entry.42bc6751.js} +1 -1
- package/dist/{flip-icon-recieved.entry.5b4e2a50.js → flip-icon-recieved.entry.35cc64fd.js} +1 -1
- package/dist/{flip-icon-remove.entry.98d516c6.js → flip-icon-remove.entry.7ce5335b.js} +1 -1
- package/dist/{flip-icon-search-strong.entry.afcf6af9.js → flip-icon-search-strong.entry.d6722aba.js} +1 -1
- package/dist/{flip-icon-search.entry.0f103075.js → flip-icon-search.entry.c2c88135.js} +1 -1
- package/dist/{flip-icon-send.entry.fd3001a2.js → flip-icon-send.entry.6d3ed0a4.js} +1 -1
- package/dist/{flip-icon-settings.entry.2b1e4bb0.js → flip-icon-settings.entry.3ab04c76.js} +1 -1
- package/dist/{flip-icon-time-filled.entry.7fa814d7.js → flip-icon-time-filled.entry.050c61d7.js} +1 -1
- package/dist/{flip-icon-time-outlined.entry.e3f601ce.js → flip-icon-time-outlined.entry.195df6e9.js} +1 -1
- package/dist/{flip-icon-user-assign.entry.4951e82f.js → flip-icon-user-assign.entry.60316828.js} +1 -1
- package/dist/{flip-icon-video-camera.entry.74f8a7b6.js → flip-icon-video-camera.entry.d376e2da.js} +1 -1
- package/dist/{flip-icon-warning.entry.76ebfb1e.js → flip-icon-warning.entry.7484d16e.js} +1 -1
- package/dist/flip-lightbox.entry.cdffd089.js +110 -0
- package/dist/{flip-link.entry.f67e488c.js → flip-link.entry.145e89bf.js} +1 -1
- package/dist/{flip-list.entry.5cc5b288.js → flip-list.entry.fcece197.js} +1 -1
- package/dist/flip-modal.entry.f20fd032.js +63 -0
- package/dist/{flip-option-list-item.entry.fd1d85dd.js → flip-option-list-item.entry.ed931c3c.js} +1 -1
- package/dist/{flip-option-list-section.entry.5509895e.js → flip-option-list-section.entry.c0084261.js} +1 -1
- package/dist/{flip-option-list.entry.efe97de9.js → flip-option-list.entry.a07fd2d3.js} +1 -1
- package/dist/{flip-pagination.entry.b109c35d.js → flip-pagination.entry.a8a4c1bf.js} +1 -1
- package/dist/{flip-progress-indicator.entry.b7cf2985.js → flip-progress-indicator.entry.8069914b.js} +1 -1
- package/dist/{flip-radio-group.entry.dfc6ef8e.js → flip-radio-group.entry.4046ee83.js} +2 -2
- package/dist/{flip-radio.entry.f153fc92.js → flip-radio.entry.941e407b.js} +2 -2
- package/dist/{flip-resource-list-file-item.entry.26beeeee.js → flip-resource-list-file-item.entry.678596e2.js} +1 -1
- package/dist/{flip-resource-list-item.entry.7cac7a7c.js → flip-resource-list-item.entry.3ba2f6c5.js} +1 -1
- package/dist/{flip-resource-list.entry.75d10224.js → flip-resource-list.entry.b5f4d108.js} +1 -1
- package/dist/{flip-search.entry.eccdd9b5.js → flip-search.entry.05617d72.js} +1 -1
- package/dist/{flip-stack.entry.2448bd6b.js → flip-stack.entry.60b7e7d8.js} +1 -1
- package/dist/{flip-switch.entry.71d04383.js → flip-switch.entry.51a1856d.js} +1 -1
- package/dist/{flip-tab.entry.184626dd.js → flip-tab.entry.fd12f894.js} +1 -1
- package/dist/flip-tabs.entry.9462dbaa.js +67 -0
- package/dist/{flip-tag.entry.5df8a6b4.js → flip-tag.entry.923d754e.js} +1 -1
- package/dist/{flip-text-input.entry.55decf50.js → flip-text-input.entry.09a6024a.js} +4 -4
- package/dist/{flip-text.entry.2b6e3f56.js → flip-text.entry.634f95b3.js} +1 -1
- package/dist/{flip-theme-provider.entry.1570cb6b.js → flip-theme-provider.entry.ab641668.js} +1 -1
- package/dist/{flip-thumbnail.entry.54ea67cf.js → flip-thumbnail.entry.9d00d2f8.js} +1 -1
- package/dist/{flip-toast-provider.entry.0ee21f8b.js → flip-toast-provider.entry.d0391c9a.js} +1 -1
- package/dist/{flip-toast.entry.29ea2ead.js → flip-toast.entry.fac8df58.js} +4 -4
- package/dist/{flip-tooltip.entry.e6a904e4.js → flip-tooltip.entry.f7d80b92.js} +1 -1
- package/dist/{flip-video-thumbnail.entry.f3cf1c28.js → flip-video-thumbnail.entry.f45c61bc.js} +1 -1
- package/dist/{flip-visually-hidden.entry.47d25a46.js → flip-visually-hidden.entry.1099adf3.js} +1 -1
- package/dist/{index.b6e7bb76.js → index.0ccdd659.js} +231 -230
- package/dist/stencil-generated/index.d.ts +1 -0
- package/dist/swirl-components-react.js +44 -43
- package/dist/swirl-components-react.umd.cjs +31 -29
- package/package.json +2 -2
- package/dist/flip-button-group.entry.ed86679b.js +0 -15
- package/dist/flip-button.entry.555b8fd4.js +0 -33
- package/dist/flip-icon-arrow-left.entry.70be0607.js +0 -15
- package/dist/flip-icon-arrow-right.entry.bd9eae8e.js +0 -15
- package/dist/flip-icon-download.entry.3926477e.js +0 -15
- package/dist/flip-modal.entry.4921d0b4.js +0 -61
- package/dist/flip-tabs.entry.9434fd96.js +0 -92
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.4.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r, h as t, H as s } from "./index.b6e7bb76.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const i = ":host{display:block}:host *{box-sizing:border-box}", n = class {
|
|
5
|
-
constructor(o) {
|
|
6
|
-
r(this, o), this.orientation = "horizontal";
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return t(s, null, t("flip-stack", { align: this.orientation === "vertical" && this.stretch ? "stretch" : "start", class: "button-group", justify: this.orientation === "horizontal" && this.stretch ? "stretch" : "start", orientation: this.orientation, role: "group", spacing: "8", wrap: this.wrap }, t("slot", null)));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
n.style = i;
|
|
13
|
-
export {
|
|
14
|
-
n as flip_button_group
|
|
15
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { r as e, h as o, H as l } from "./index.b6e7bb76.js";
|
|
2
|
-
import { c as s } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const c = `.sc-flip-button-h{display:inline-block;max-width:100%}.sc-flip-button-h *.sc-flip-button{box-sizing:border-box}.button.sc-flip-button{display:inline-flex;width:100%;padding:var(--s-space-8) var(--s-space-16);justify-content:center;align-items:center;border:none;border-radius:var(--s-border-radius-base);color:var(--s-text-subdued);background-color:var(--flip-ghost-button-background-default);font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-lg);text-decoration:none;cursor:pointer;gap:var(--s-space-8)}.button.sc-flip-button:hover{background-color:var(--flip-ghost-button-background-hovered)}.button.sc-flip-button:active{background-color:var(--flip-ghost-button-background-pressed)}.button.sc-flip-button:disabled{color:var(--s-text-disabled);background-color:var(--flip-ghost-button-background-default);cursor:default}.button.sc-flip-button:disabled .button__icon.sc-flip-button{color:var(--s-icon-disabled)}.button.sc-flip-button:focus{outline-color:var(--s-focus-default)}.button--variant-ghost.button--intent-primary.sc-flip-button:not(:disabled){color:var(--s-text-highlight)}.button--variant-ghost.button--intent-primary.sc-flip-button:not(:disabled) .button__icon.sc-flip-button{color:var(--s-icon-highlight)}.button--variant-ghost.button--intent-critical.sc-flip-button:not(:disabled){color:var(--s-text-critical)}.button--variant-ghost.button--intent-critical.sc-flip-button:not(:disabled) .button__icon.sc-flip-button{color:var(--s-icon-critical)}.button--variant-ghost.button--size-l.sc-flip-button{padding:var(--s-space-12) var(--s-space-20)}.button--variant-ghost.button--size-l.button--icon-only.sc-flip-button{padding:var(--s-space-12)}.button--variant-flat.sc-flip-button{color:var(--s-text-default);background-color:var(--s-action-neutral-default)}.button--variant-flat.sc-flip-button:hover{background-color:var(--s-action-neutral-hovered)}.button--variant-flat.sc-flip-button:active{background-color:var(--s-action-neutral-pressed)}.button--variant-flat.sc-flip-button:disabled{background-color:var(--s-action-neutral-disabled)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled){color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled):hover{background-color:var(--s-action-primary-hovered)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled):active{background-color:var(--s-action-primary-pressed)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled) .button__icon.sc-flip-button{color:var(--s-icon-on-action-primary)}.button--variant-flat.sc-flip-button .button__icon.sc-flip-button{color:var(--s-icon-strong)}.button--variant-plain.sc-flip-button{padding:0;border-radius:0;color:var(--s-interactive-neutral-default);background-color:transparent}.button--variant-plain.sc-flip-button:hover:not(:disabled){color:var(--s-interactive-neutral-default);background-color:transparent;text-decoration:underline;text-underline-offset:var(--s-space-4)}.button--variant-plain.sc-flip-button:hover:not(:disabled) .button__icon.sc-flip-button{color:var(--s-interactive-neutral-default)}.button--variant-plain.sc-flip-button:active:not(:disabled){color:var(--s-interactive-neutral-hovered);background-color:transparent}.button--variant-plain.sc-flip-button:active:not(:disabled) .button__icon.sc-flip-button{color:var(--s-interactive-neutral-hovered)}.button--variant-plain.sc-flip-button:disabled{color:var(--s-interactive-neutral-disabled);background-color:transparent}.button--variant-plain.sc-flip-button:disabled .button__icon.sc-flip-button{color:var(--s-interactive-neutral-disabled)}.button--variant-plain.button--intent-primary.sc-flip-button{color:var(--s-interactive-primary-default)}.button--variant-plain.button--intent-primary.sc-flip-button:hover{color:var(--s-interactive-primary-default)}.button--variant-plain.button--intent-primary.sc-flip-button:hover .button__icon.sc-flip-button{color:var(--s-interactive-primary-default)}.button--variant-plain.button--intent-primary.sc-flip-button:active{color:var(--s-interactive-primary-hovered)}.button--variant-plain.button--intent-primary.sc-flip-button:active .button__icon.sc-flip-button{color:var(--s-interactive-primary-hovered)}.button--variant-plain.button--intent-primary.sc-flip-button:disabled{color:var(--s-interactive-primary-disabled)}.button--variant-plain.button--intent-primary.sc-flip-button:disabled .button__icon.sc-flip-button{color:var(--s-interactive-primary-disabled)}.button--variant-plain.button--intent-primary.sc-flip-button .button__icon.sc-flip-button{color:var(--s-interactive-primary-default)}.button--variant-plain.sc-flip-button .button__icon.sc-flip-button{color:var(--s-interactive-neutral-default)}.button--variant-on-image.sc-flip-button{color:var(--s-text-on-image);background:linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
|
|
7
|
-
rgba(255, 255, 255, 0.3)}.button--variant-on-image.sc-flip-button:hover{background:linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
|
|
8
|
-
rgba(255, 255, 255, 0.4)}.button--variant-on-image.sc-flip-button:active{background:linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
|
|
9
|
-
rgba(255, 255, 255, 0.5)}.button--variant-on-image.sc-flip-button:disabled{color:var(--s-text-on-image);background:linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
|
|
10
|
-
rgba(255, 255, 255, 0.3)}.button--variant-on-image.sc-flip-button:disabled .button__icon.sc-flip-button{color:var(--s-icon-on-image)}.button--variant-on-image.sc-flip-button .button__icon.sc-flip-button{color:var(--s-icon-on-image)}.button--variant-floating.sc-flip-button{color:var(--s-text-default);background-color:var(--s-surface-overlay-default);box-shadow:0.125rem 0.25rem 2.5rem rgba(0, 0, 0, 0.14)}.button--variant-floating.sc-flip-button:hover{color:var(--s-text-on-action-primary);background-color:var(--s-surface-overlay-hovered)}.button--variant-floating.sc-flip-button:active{color:var(--s-text-on-action-primary);background-color:var(--s-surface-overlay-pressed)}.button--variant-floating.button--icon-only.sc-flip-button{padding:var(--s-space-4)}.button--variant-floating.button--intent-primary.sc-flip-button{padding:var(--s-space-12) var(--s-space-20);border-radius:1.5rem;color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.button--variant-floating.button--intent-primary.sc-flip-button:hover:not(:disabled){color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-hovered)}.button--variant-floating.button--intent-primary.sc-flip-button:active:not(:disabled){color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-pressed)}.button--variant-floating.button--intent-primary.sc-flip-button:disabled{color:var(--s-text-on-action-primary)}.button--variant-floating.button--intent-primary.sc-flip-button:disabled .button__icon.sc-flip-button{color:var(--s-icon-on-action-primary)}.button--variant-floating.button--intent-primary.sc-flip-button .button__icon.sc-flip-button{color:var(--s-icon-on-action-primary)}.button--variant-floating.sc-flip-button .button__icon.sc-flip-button{color:var(--s-icon-strong)}.button--icon-position-end.sc-flip-button .button__icon.sc-flip-button{margin-right:calc(-1 * var(--s-space-4));margin-left:0;order:2}.button--icon-only.sc-flip-button{padding:var(--s-space-8);border-radius:50%}.button--icon-only.sc-flip-button .button__icon.sc-flip-button{margin-right:0;margin-left:0}.button__icon.sc-flip-button{display:inline-flex;margin-left:calc(-1 * var(--s-space-4));color:var(--s-icon-default);order:0}.button__label.sc-flip-button{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis;order:1}`, b = class {
|
|
11
|
-
constructor(t) {
|
|
12
|
-
e(this, t), this.iconPosition = "start", this.intent = "default", this.size = "m", this.type = "button", this.variant = "ghost";
|
|
13
|
-
}
|
|
14
|
-
componentDidLoad() {
|
|
15
|
-
this.forceIconProps();
|
|
16
|
-
}
|
|
17
|
-
forceIconProps() {
|
|
18
|
-
if (!Boolean(this.iconEl))
|
|
19
|
-
return;
|
|
20
|
-
const t = this.iconEl.children[0];
|
|
21
|
-
t == null || t.setAttribute("size", "24");
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
const t = this.hideLabel && Boolean(this.icon) || this.variant === "floating" && this.intent === "default", n = Boolean(this.href), i = Boolean(this.flipAriaLabel) ? this.flipAriaLabel : t ? this.label : void 0, a = s("button", `button--icon-position-${this.iconPosition}`, `button--intent-${this.intent}`, `button--size-${this.size}`, `button--variant-${this.variant}`, {
|
|
25
|
-
"button--icon-only": t
|
|
26
|
-
});
|
|
27
|
-
return o(l, null, o(n ? "a" : "button", { "aria-describedby": this.flipAriaDescribedby, "aria-disabled": this.disabled && !n ? "true" : void 0, "aria-label": i, class: a, disabled: n ? void 0 : this.disabled, download: n ? void 0 : this.download, form: n ? void 0 : this.form, href: this.href, name: n ? void 0 : this.name, target: n ? this.target : void 0, type: n ? void 0 : this.type, value: n ? void 0 : this.value }, this.icon && o("span", { class: "button__icon", innerHTML: this.icon, ref: (r) => this.iconEl = r }), !t && o("span", { class: "button__label" }, this.label)));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
b.style = c;
|
|
31
|
-
export {
|
|
32
|
-
b as flip_button
|
|
33
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t, h as C, F as i } from "./index.b6e7bb76.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const r = ":host{display:inline-flex}", l = class {
|
|
5
|
-
constructor(s) {
|
|
6
|
-
t(this, s), this.size = 24;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return C("svg", { class: "flip-icon", fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${this.size} ${this.size}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && C(i, null, C("path", { d: "M7.15 12.8666L2.81667 8.53327C2.73889 8.45549 2.68333 8.37216 2.65 8.28327C2.61667 8.19438 2.6 8.09993 2.6 7.99993C2.6 7.89993 2.61667 7.80549 2.65 7.7166C2.68333 7.62771 2.73889 7.54438 2.81667 7.4666L7.15 3.13327C7.29444 2.99993 7.46955 2.93038 7.67533 2.9246C7.88066 2.91927 8.06111 2.98882 8.21666 3.13327C8.37222 3.27771 8.45289 3.45549 8.45867 3.6666C8.464 3.87771 8.38889 4.05549 8.23333 4.19993L5.2 7.23327H12.3167C12.5278 7.23327 12.7084 7.30838 12.8587 7.4586C13.0084 7.60838 13.0833 7.78882 13.0833 7.99993C13.0833 8.21105 13.0084 8.39149 12.8587 8.54127C12.7084 8.69149 12.5278 8.7666 12.3167 8.7666H5.2L8.23333 11.7999C8.37778 11.9333 8.45289 12.1084 8.45867 12.3253C8.464 12.5417 8.38889 12.7222 8.23333 12.8666C8.08889 13.011 7.91111 13.0833 7.7 13.0833C7.48889 13.0833 7.30555 13.011 7.15 12.8666V12.8666Z", fill: "currentColor" })), this.size === 24 && C(i, null, C("path", { d: "M10.725 19.2999L4.225 12.7999C4.10833 12.6832 4.025 12.5582 3.975 12.4249C3.925 12.2916 3.9 12.1499 3.9 11.9999C3.9 11.8499 3.925 11.7082 3.975 11.5749C4.025 11.4416 4.10833 11.3166 4.225 11.1999L10.725 4.6999C10.9417 4.4999 11.2043 4.39557 11.513 4.3869C11.821 4.3789 12.0917 4.48323 12.325 4.6999C12.5583 4.91657 12.6793 5.18324 12.688 5.4999C12.696 5.81657 12.5833 6.08324 12.35 6.2999L7.8 10.8499H18.475C18.7917 10.8499 19.0627 10.9626 19.288 11.1879C19.5127 11.4126 19.625 11.6832 19.625 11.9999C19.625 12.3166 19.5127 12.5872 19.288 12.8119C19.0627 13.0372 18.7917 13.1499 18.475 13.1499H7.8L12.35 17.6999C12.5667 17.8999 12.6793 18.1626 12.688 18.4879C12.696 18.8126 12.5833 19.0832 12.35 19.2999C12.1333 19.5166 11.8667 19.6249 11.55 19.6249C11.2333 19.6249 10.9583 19.5166 10.725 19.2999V19.2999Z", fill: "currentColor" })), this.size === 28 && C(i, null, C("path", { d: "M12.5125 22.5167L4.92917 14.9333C4.79306 14.7972 4.69584 14.6514 4.6375 14.4958C4.57917 14.3403 4.55 14.175 4.55 14C4.55 13.825 4.57917 13.6597 4.6375 13.5042C4.69584 13.3486 4.79306 13.2028 4.92917 13.0667L12.5125 5.48334C12.7653 5.25001 13.0717 5.12829 13.4318 5.11817C13.7912 5.10884 14.1069 5.23056 14.3792 5.48334C14.6514 5.73612 14.7926 6.04723 14.8027 6.41667C14.812 6.78612 14.6806 7.09723 14.4083 7.35001L9.1 12.6583H21.5542C21.9236 12.6583 22.2398 12.7898 22.5027 13.0527C22.7648 13.3148 22.8958 13.6306 22.8958 14C22.8958 14.3695 22.7648 14.6852 22.5027 14.9473C22.2398 15.2102 21.9236 15.3417 21.5542 15.3417H9.1L14.4083 20.65C14.6611 20.8833 14.7926 21.1898 14.8027 21.5693C14.812 21.9481 14.6806 22.2639 14.4083 22.5167C14.1556 22.7695 13.8444 22.8958 13.475 22.8958C13.1056 22.8958 12.7847 22.7695 12.5125 22.5167V22.5167Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
l.style = r;
|
|
13
|
-
export {
|
|
14
|
-
l as flip_icon_arrow_left
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t, h as C, F as i } from "./index.b6e7bb76.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const r = ":host{display:inline-flex}", l = class {
|
|
5
|
-
constructor(s) {
|
|
6
|
-
t(this, s), this.size = 24;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return C("svg", { class: "flip-icon", fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${this.size} ${this.size}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && C(i, null, C("path", { d: "M7.46667 12.8667C7.32222 12.7222 7.24733 12.5445 7.242 12.3333C7.23622 12.1222 7.30555 11.9445 7.45 11.8L10.4833 8.76668H3.36667C3.15555 8.76668 2.97511 8.69157 2.82533 8.54135C2.67511 8.39157 2.6 8.21113 2.6 8.00002C2.6 7.7889 2.67511 7.60846 2.82533 7.45868C2.97511 7.30846 3.15555 7.23335 3.36667 7.23335H10.4833L7.45 4.20002C7.30555 4.05557 7.23622 3.87779 7.242 3.66668C7.24733 3.45557 7.32222 3.27779 7.46667 3.13335C7.61111 3.00002 7.78889 2.93335 8 2.93335C8.21111 2.93335 8.38889 3.00002 8.53333 3.13335L12.8667 7.46668C12.9444 7.53335 13 7.61379 13.0333 7.70802C13.0667 7.80268 13.0833 7.90002 13.0833 8.00002C13.0833 8.10002 13.0667 8.19446 13.0333 8.28335C13 8.37224 12.9444 8.45557 12.8667 8.53335L8.53333 12.8667C8.38889 13.0111 8.21111 13.0807 8 13.0753C7.78889 13.0696 7.61111 13 7.46667 12.8667V12.8667Z", fill: "currentColor" })), this.size === 24 && C(i, null, C("path", { d: "M11.2 19.2999C10.9833 19.0832 10.871 18.8166 10.863 18.4999C10.8543 18.1832 10.9583 17.9166 11.175 17.6999L15.725 13.1499H5.05C4.73333 13.1499 4.46267 13.0372 4.238 12.8119C4.01267 12.5872 3.9 12.3166 3.9 11.9999C3.9 11.6832 4.01267 11.4126 4.238 11.1879C4.46267 10.9626 4.73333 10.8499 5.05 10.8499H15.725L11.175 6.2999C10.9583 6.08324 10.8543 5.81657 10.863 5.4999C10.871 5.18324 10.9833 4.91657 11.2 4.6999C11.4167 4.4999 11.6833 4.3999 12 4.3999C12.3167 4.3999 12.5833 4.4999 12.8 4.6999L19.3 11.1999C19.4167 11.2999 19.5 11.4206 19.55 11.5619C19.6 11.7039 19.625 11.8499 19.625 11.9999C19.625 12.1499 19.6 12.2916 19.55 12.4249C19.5 12.5582 19.4167 12.6832 19.3 12.7999L12.8 19.2999C12.5833 19.5166 12.3167 19.6209 12 19.6129C11.6833 19.6042 11.4167 19.4999 11.2 19.2999V19.2999Z", fill: "currentColor" })), this.size === 28 && C(i, null, C("path", { d: "M13.0667 22.5166C12.8139 22.2639 12.6828 21.9527 12.6735 21.5833C12.6634 21.2139 12.7847 20.9027 13.0375 20.65L18.3458 15.3416H5.89167C5.52223 15.3416 5.20645 15.2102 4.94434 14.9473C4.68145 14.6852 4.55 14.3694 4.55 14C4.55 13.6305 4.68145 13.3147 4.94434 13.0526C5.20645 12.7897 5.52223 12.6583 5.89167 12.6583H18.3458L13.0375 7.34997C12.7847 7.09719 12.6634 6.78608 12.6735 6.41663C12.6828 6.04719 12.8139 5.73608 13.0667 5.4833C13.3194 5.24997 13.6306 5.1333 14 5.1333C14.3694 5.1333 14.6806 5.24997 14.9333 5.4833L22.5167 13.0666C22.6528 13.1833 22.75 13.3241 22.8083 13.489C22.8667 13.6546 22.8958 13.825 22.8958 14C22.8958 14.175 22.8667 14.3402 22.8083 14.4958C22.75 14.6514 22.6528 14.7972 22.5167 14.9333L14.9333 22.5166C14.6806 22.7694 14.3694 22.8911 14 22.8818C13.6306 22.8717 13.3194 22.75 13.0667 22.5166V22.5166Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
l.style = r;
|
|
13
|
-
export {
|
|
14
|
-
l as flip_icon_arrow_right
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t, h as C, F as i } from "./index.b6e7bb76.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const l = ":host{display:inline-flex}", o = class {
|
|
5
|
-
constructor(s) {
|
|
6
|
-
t(this, s), this.size = 24;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return C("svg", { class: "flip-icon", fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${this.size} ${this.size}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && C(i, null, C("path", { d: "M7.99999 10.2333C7.89999 10.2333 7.80555 10.2167 7.71666 10.1833C7.62777 10.15 7.54444 10.0944 7.46666 10.0167L5.01666 7.56665C4.87222 7.42221 4.79999 7.24443 4.79999 7.03332C4.79999 6.82221 4.87222 6.64443 5.01666 6.49999C5.14999 6.36665 5.32488 6.29732 5.54133 6.29199C5.75822 6.28621 5.93888 6.34999 6.08333 6.48332L7.23333 7.64999V3.04999C7.23333 2.83888 7.30844 2.6611 7.45866 2.51665C7.60844 2.37221 7.78888 2.29999 7.99999 2.29999C8.2111 2.29999 8.39155 2.37221 8.54133 2.51665C8.69155 2.6611 8.76666 2.83888 8.76666 3.04999V7.64999L9.91666 6.48332C10.0611 6.34999 10.2418 6.28621 10.4587 6.29199C10.6751 6.29732 10.85 6.36665 10.9833 6.49999C11.1278 6.64443 11.2 6.82221 11.2 7.03332C11.2 7.24443 11.1278 7.42221 10.9833 7.56665L8.53333 10.0167C8.45555 10.0944 8.37222 10.15 8.28333 10.1833C8.19444 10.2167 8.09999 10.2333 7.99999 10.2333ZM3.91666 13.5833C3.49444 13.5833 3.13622 13.436 2.84199 13.1413C2.54733 12.8471 2.39999 12.4889 2.39999 12.0667V10.5833C2.39999 10.3722 2.47511 10.1944 2.62533 10.05C2.77511 9.90554 2.95555 9.83332 3.16666 9.83332C3.37777 9.83332 3.55555 9.90554 3.69999 10.05C3.84444 10.1944 3.91666 10.3722 3.91666 10.5833V12.0667H12.0667V10.5833C12.0667 10.3722 12.1418 10.1944 12.292 10.05C12.4418 9.90554 12.6222 9.83332 12.8333 9.83332C13.0444 9.83332 13.2222 9.90554 13.3667 10.05C13.5111 10.1944 13.5833 10.3722 13.5833 10.5833V12.0667C13.5833 12.4889 13.436 12.8471 13.1413 13.1413C12.8471 13.436 12.4889 13.5833 12.0667 13.5833H3.91666Z", fill: "currentColor" })), this.size === 24 && C(i, null, C("path", { d: "M12 15.35C11.85 15.35 11.7083 15.325 11.575 15.275C11.4417 15.225 11.3167 15.1417 11.2 15.025L7.52501 11.35C7.30834 11.1333 7.20001 10.8667 7.20001 10.55C7.20001 10.2333 7.30834 9.96668 7.52501 9.75001C7.72501 9.55001 7.98734 9.44601 8.31201 9.43801C8.63734 9.42935 8.90834 9.52501 9.12501 9.72501L10.85 11.475V4.57501C10.85 4.25835 10.9627 3.99168 11.188 3.77501C11.4127 3.55835 11.6833 3.45001 12 3.45001C12.3167 3.45001 12.5873 3.55835 12.812 3.77501C13.0373 3.99168 13.15 4.25835 13.15 4.57501V11.475L14.875 9.72501C15.0917 9.52501 15.3627 9.42935 15.688 9.43801C16.0127 9.44601 16.275 9.55001 16.475 9.75001C16.6917 9.96668 16.8 10.2333 16.8 10.55C16.8 10.8667 16.6917 11.1333 16.475 11.35L12.8 15.025C12.6833 15.1417 12.5583 15.225 12.425 15.275C12.2917 15.325 12.15 15.35 12 15.35ZM5.87501 20.375C5.24167 20.375 4.70434 20.154 4.26301 19.712C3.82101 19.2707 3.60001 18.7333 3.60001 18.1V15.875C3.60001 15.5583 3.71267 15.2917 3.93801 15.075C4.16267 14.8583 4.43334 14.75 4.75001 14.75C5.06667 14.75 5.33334 14.8583 5.55001 15.075C5.76667 15.2917 5.87501 15.5583 5.87501 15.875V18.1H18.1V15.875C18.1 15.5583 18.2127 15.2917 18.438 15.075C18.6627 14.8583 18.9333 14.75 19.25 14.75C19.5667 14.75 19.8333 14.8583 20.05 15.075C20.2667 15.2917 20.375 15.5583 20.375 15.875V18.1C20.375 18.7333 20.154 19.2707 19.712 19.712C19.2707 20.154 18.7333 20.375 18.1 20.375H5.87501Z", fill: "currentColor" })), this.size === 28 && C(i, null, C("path", { d: "M14 17.9084C13.825 17.9084 13.6597 17.8792 13.5042 17.8209C13.3486 17.7625 13.2028 17.6653 13.0667 17.5292L8.77918 13.2417C8.5264 12.9889 8.40001 12.6778 8.40001 12.3084C8.40001 11.9389 8.5264 11.6278 8.77918 11.375C9.01251 11.1417 9.31857 11.0204 9.69735 11.011C10.0769 11.0009 10.3931 11.1125 10.6458 11.3459L12.6583 13.3875V5.33752C12.6583 4.96808 12.7898 4.65697 13.0527 4.40419C13.3148 4.15141 13.6306 4.02502 14 4.02502C14.3695 4.02502 14.6852 4.15141 14.9473 4.40419C15.2102 4.65697 15.3417 4.96808 15.3417 5.33752V13.3875L17.3542 11.3459C17.607 11.1125 17.9231 11.0009 18.3027 11.011C18.6815 11.0204 18.9875 11.1417 19.2208 11.375C19.4736 11.6278 19.6 11.9389 19.6 12.3084C19.6 12.6778 19.4736 12.9889 19.2208 13.2417L14.9333 17.5292C14.7972 17.6653 14.6514 17.7625 14.4958 17.8209C14.3403 17.8792 14.175 17.9084 14 17.9084ZM6.85418 23.7709C6.11529 23.7709 5.4884 23.513 4.97351 22.9974C4.45785 22.4825 4.20001 21.8556 4.20001 21.1167V18.5209C4.20001 18.1514 4.33146 17.8403 4.59435 17.5875C4.85646 17.3347 5.17223 17.2084 5.54168 17.2084C5.91112 17.2084 6.22223 17.3347 6.47501 17.5875C6.72779 17.8403 6.85418 18.1514 6.85418 18.5209V21.1167H21.1167V18.5209C21.1167 18.1514 21.2481 17.8403 21.511 17.5875C21.7731 17.3347 22.0889 17.2084 22.4583 17.2084C22.8278 17.2084 23.1389 17.3347 23.3917 17.5875C23.6445 17.8403 23.7708 18.1514 23.7708 18.5209V21.1167C23.7708 21.8556 23.513 22.4825 22.9973 22.9974C22.4825 23.513 21.8556 23.7709 21.1167 23.7709H6.85418Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
o.style = l;
|
|
13
|
-
export {
|
|
14
|
-
o as flip_icon_download
|
|
15
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { r as s, c as t, h as a, H as l } from "./index.b6e7bb76.js";
|
|
2
|
-
import { A as d } from "./a11y-dialog.esm-d7a94c8c.bd6ae411.js";
|
|
3
|
-
import { d as r, e as n } from "./bodyScrollLock.esm-ce6356d8.2c600fb9.js";
|
|
4
|
-
import { c } from "./index-6d2e18c6.289636d4.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
8
|
-
const m = ':host{--flip-ghost-button-background-default:var(--s-surface-overlay-default);--flip-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--flip-ghost-button-background-pressed:var(--s-surface-overlay-pressed);display:block}:host *{box-sizing:border-box}.modal{position:fixed;z-index:var(--s-z-40);display:flex;justify-content:center;align-items:center;inset:0}.modal[aria-hidden="true"]{display:none}.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:0.15s modal-backdrop-fade-in;animation:0.15s modal-backdrop-fade-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__backdrop{-webkit-animation:none;animation:none}}.modal:not(.modal--closing) .modal__body{-webkit-animation:0.15s modal-scale-in;animation:0.15s modal-scale-in}@media (prefers-reduced-motion){.modal:not(.modal--closing) .modal__body{-webkit-animation:none;animation:none}}.modal--closing{-webkit-animation:0.15s modal-fade-out;animation:0.15s modal-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.modal--closing{-webkit-animation:none;animation:none}}@media (min-width: 768px){.modal--scrolled .modal__header{border-bottom:var(--s-border-width-default) solid var(--s-border-default)}}.modal__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.modal__body{position:relative;z-index:var(--s-z-40);display:flex;width:100vw;height:100vh;background-color:var(--s-surface-overlay-default);flex-direction:column}@media (min-width: 768px){.modal__body{width:90vw;max-width:33.75rem;height:auto;max-height:90vh;border-radius:var(--s-border-radius-xl);box-shadow:0.125rem 0.25rem 1rem rgba(0, 0, 0, 0.14)}}.modal__close-button{position:absolute;top:var(--s-space-8);left:var(--s-space-8)}@media (min-width: 768px){.modal__close-button{top:var(--s-space-16);right:var(--s-space-16);left:auto}}.modal__header{display:flex;height:3.5rem;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-8) + 2.5rem + var(--s-space-8));flex-shrink:0;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-16)}@media (min-width: 768px){.modal__header{padding-top:var(--s-space-24);padding-right:calc(var(--s-space-16) + 2.5rem + var(--s-space-8));padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);border-bottom:none}}.modal__heading{overflow:hidden}.modal__heading::part(heading){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal__content{overflow-x:hidden;overflow-y:auto;padding-top:var(--s-space-24);padding-right:var(--s-space-16);padding-bottom:var(--s-space-24);padding-left:var(--s-space-16);flex-grow:1;line-height:var(--s-line-height-base)}.modal__content ::slotted(*){margin:0}@media (min-width: 768px){.modal__content{padding-top:0;padding-right:var(--s-space-24);padding-bottom:var(--s-space-32);padding-left:var(--s-space-24)}}.modal__controls{display:flex;padding-top:var(--s-space-16);padding-right:var(--s-space-24);padding-bottom:var(--s-space-16);padding-left:var(--s-space-24);flex-shrink:0;justify-content:flex-end;border-top:var(--s-border-width-default) solid var(--s-border-default)}@-webkit-keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes modal-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{from{opacity:1}to{opacity:0}}@keyframes modal-fade-out{from{opacity:1}to{opacity:0}}', p = class {
|
|
9
|
-
constructor(e) {
|
|
10
|
-
s(this, e), this.primaryAction = t(this, "primaryAction", 7), this.secondaryAction = t(this, "secondaryAction", 7), this.closeButtonLabel = "Close modal", this.closing = !1, this.scrolled = !1, this.onKeyDown = (o) => {
|
|
11
|
-
o.code === "Escape" && this.close();
|
|
12
|
-
}, this.onBackdropClick = () => {
|
|
13
|
-
this.close();
|
|
14
|
-
}, this.onCloseButtonClick = () => {
|
|
15
|
-
this.close();
|
|
16
|
-
}, this.onPrimaryAction = (o) => {
|
|
17
|
-
this.primaryAction.emit(o), this.close();
|
|
18
|
-
}, this.onSecondaryAction = (o) => {
|
|
19
|
-
this.secondaryAction.emit(o), this.close();
|
|
20
|
-
}, this.determineScrollStatus = () => {
|
|
21
|
-
var o;
|
|
22
|
-
const i = ((o = this.scrollContainer) === null || o === void 0 ? void 0 : o.scrollTop) > 0;
|
|
23
|
-
i !== this.scrolled && (this.scrolled = i);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
componentDidLoad() {
|
|
27
|
-
this.modal = new d(this.modalEl), this.determineScrollStatus();
|
|
28
|
-
}
|
|
29
|
-
disconnectedCallback() {
|
|
30
|
-
var e;
|
|
31
|
-
(e = this.modal) === null || e === void 0 || e.destroy(), this.unlockBodyScroll();
|
|
32
|
-
}
|
|
33
|
-
onWindowResize() {
|
|
34
|
-
this.determineScrollStatus();
|
|
35
|
-
}
|
|
36
|
-
async open() {
|
|
37
|
-
this.modal.show(), this.lockBodyScroll(), this.determineScrollStatus();
|
|
38
|
-
}
|
|
39
|
-
async close() {
|
|
40
|
-
this.closing || (this.closing = !0, this.unlockBodyScroll(), setTimeout(() => {
|
|
41
|
-
this.modal.hide(), this.closing = !1;
|
|
42
|
-
}, 150));
|
|
43
|
-
}
|
|
44
|
-
lockBodyScroll() {
|
|
45
|
-
r(this.scrollContainer);
|
|
46
|
-
}
|
|
47
|
-
unlockBodyScroll() {
|
|
48
|
-
n(this.scrollContainer);
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
const e = c("modal", {
|
|
52
|
-
"modal--closing": this.closing,
|
|
53
|
-
"modal--scrolled": this.scrolled
|
|
54
|
-
});
|
|
55
|
-
return a(l, null, a("section", { "aria-hidden": "true", "aria-label": this.label, class: e, id: "modal", onKeyDown: this.onKeyDown, ref: (o) => this.modalEl = o }, a("div", { class: "modal__backdrop", onClick: this.onBackdropClick }), a("div", { class: "modal__body", role: "document" }, a("flip-button", { class: "modal__close-button", hideLabel: !0, icon: "<flip-icon-close></flip-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), a("header", { class: "modal__header" }, a("flip-heading", { as: "h2", class: "modal__heading", level: 3, text: this.label })), a("div", { class: "modal__content", onScroll: this.determineScrollStatus, ref: (o) => this.scrollContainer = o }, a("slot", null)), a("footer", { class: "modal__controls" }, a("flip-button-group", { wrap: !0 }, this.secondaryActionLabel && a("flip-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && a("flip-button", { intent: "primary", label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: "flat" }))))));
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
p.style = m;
|
|
59
|
-
export {
|
|
60
|
-
p as flip_modal
|
|
61
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { r as o, c as r, h as s, H as n, g as b } from "./index.b6e7bb76.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-tabs-h{display:block;width:100%}.sc-flip-tabs-h *.sc-flip-tabs{box-sizing:border-box}.tabs.sc-flip-tabs{width:100%}.tabs__tab-bar.sc-flip-tabs{position:relative;display:flex;width:100%;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:flex-start;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}@media (--from-tablet){.tabs__tab-bar.sc-flip-tabs{padding-right:0;padding-left:0}}.tabs__tab.sc-flip-tabs{display:block;min-width:0;margin:0;padding:var(--s-space-4) 0;border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);cursor:pointer}.tabs__tab.sc-flip-tabs:focus-visible{outline:none}.tabs__tab.sc-flip-tabs:focus-visible .tabs__tab-label.sc-flip-tabs{border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.125rem var(--s-focus-default)}.tabs__tab.sc-flip-tabs:not(:first-of-type){padding-left:var(--s-space-8)}.tabs__tab.sc-flip-tabs:not(:last-of-type){padding-right:var(--s-space-8)}.tabs__tab-label.sc-flip-tabs{display:block;overflow:hidden;width:100%;padding:var(--s-space-8) var(--s-space-8);text-align:center;white-space:nowrap;text-overflow:ellipsis}.tabs__tab--active.sc-flip-tabs{color:var(--s-text-highlight)}.tabs__indicator.sc-flip-tabs{position:absolute;bottom:0;left:0;width:0;height:0.125rem;border-radius:0.0625rem;background-color:var(--s-border-highlight);transition:background-color 0.15s, transform 0.15s, width 0.15s;transform:translate3d(0, 0, 0);pointer-events:none}@media (prefers-reduced-motion){.tabs__indicator.sc-flip-tabs{transition:none}}", c = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
o(this, t), this.tabActivated = r(this, "tabActivated", 7), this.tabs = [], this.onKeyDown = (i) => {
|
|
9
|
-
i.code === "ArrowLeft" ? (i.preventDefault(), this.activatePreviousTab()) : i.code === "ArrowRight" && (i.preventDefault(), this.activateNextTab());
|
|
10
|
-
}, this.onMouseEnter = (i, a) => {
|
|
11
|
-
if (a.tabId === this.activeTab) {
|
|
12
|
-
this.highlightedTab = void 0;
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
this.highlightedTab = i.target.closest(".tabs__tab") || void 0;
|
|
16
|
-
}, this.onMouseLeave = () => {
|
|
17
|
-
this.highlightedTab = void 0;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
componentWillLoad() {
|
|
21
|
-
this.collectTabs();
|
|
22
|
-
}
|
|
23
|
-
componentDidRender() {
|
|
24
|
-
this.updateIndicatorPosition();
|
|
25
|
-
}
|
|
26
|
-
onWindowResize() {
|
|
27
|
-
this.updateIndicatorPosition();
|
|
28
|
-
}
|
|
29
|
-
async activateTab(t) {
|
|
30
|
-
if (this.activeTab === t)
|
|
31
|
-
return;
|
|
32
|
-
this.activeTab = t, this.tabs.forEach((a) => a.active = !1);
|
|
33
|
-
const i = this.tabs.find((a) => a.tabId === t);
|
|
34
|
-
!Boolean(i) || (this.highlightedTab = void 0, i.active = !0, this.tabActivated.emit(i));
|
|
35
|
-
}
|
|
36
|
-
activateNextTab() {
|
|
37
|
-
const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = Math.min(this.tabs.length - 1, t + 1);
|
|
38
|
-
this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
|
|
39
|
-
var a;
|
|
40
|
-
(a = this.el.querySelector(".tabs__tab--active")) === null || a === void 0 || a.focus();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
activatePreviousTab() {
|
|
44
|
-
const t = this.tabs.findIndex((a) => a.tabId === this.activeTab), i = Math.max(0, t - 1);
|
|
45
|
-
this.activateTab(this.tabs[i].tabId), requestAnimationFrame(() => {
|
|
46
|
-
var a;
|
|
47
|
-
(a = this.el.querySelector(".tabs__tab--active")) === null || a === void 0 || a.focus();
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
collectTabs() {
|
|
51
|
-
if (this.tabs = Array.from(this.el.querySelectorAll("flip-tab")), this.tabs.length === 0)
|
|
52
|
-
return;
|
|
53
|
-
const t = this.tabs.find((i) => i.tabId === this.initialTab);
|
|
54
|
-
this.activateTab(Boolean(t) ? t.tabId : this.tabs[0].tabId);
|
|
55
|
-
}
|
|
56
|
-
updateIndicatorPosition() {
|
|
57
|
-
const t = this.tabs.find((e) => e.tabId === this.activeTab);
|
|
58
|
-
if (!Boolean(t) && !Boolean(this.highlightedTab)) {
|
|
59
|
-
this.indicatorEl.style.width = "", this.indicatorEl.style.transform = "", this.indicatorEl.style.backgroundColor = "";
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
const a = (this.highlightedTab || this.el.querySelector(`#tab-${t.tabId}`)).querySelector(".tabs__tab-label");
|
|
63
|
-
this.indicatorEl.style.width = `${a.getBoundingClientRect().width / 16}rem`, this.indicatorEl.style.transform = `translate3d(${a.offsetLeft / 16}rem, 0, 0)`, this.indicatorEl.style.backgroundColor = Boolean(this.highlightedTab) ? "var(--s-border-default)" : "";
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return s(n, null, s("div", { class: "tabs" }, s("div", { "aria-label": this.label, class: "tabs__tab-bar", onKeyDown: this.onKeyDown, role: "tablist" }, this.tabs.map((t) => {
|
|
67
|
-
const i = t.tabId === this.activeTab, a = l("tabs__tab", {
|
|
68
|
-
"tabs__tab--active": i
|
|
69
|
-
});
|
|
70
|
-
return s("button", {
|
|
71
|
-
"aria-controls": t.tabId,
|
|
72
|
-
"aria-selected": i ? "true" : "false",
|
|
73
|
-
class: a,
|
|
74
|
-
id: `tab-${t.tabId}`,
|
|
75
|
-
key: t.tabId,
|
|
76
|
-
onClick: () => this.activateTab(t.tabId),
|
|
77
|
-
onMouseEnter: (e) => this.onMouseEnter(e, t),
|
|
78
|
-
onMouseLeave: this.onMouseLeave,
|
|
79
|
-
role: "tab",
|
|
80
|
-
tabIndex: i ? 0 : -1,
|
|
81
|
-
type: "button"
|
|
82
|
-
}, s("span", { class: "tabs__tab-label" }, t.label));
|
|
83
|
-
}), s("span", { class: "tabs__indicator", ref: (t) => this.indicatorEl = t })), s("slot", null)));
|
|
84
|
-
}
|
|
85
|
-
get el() {
|
|
86
|
-
return b(this);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
c.style = d;
|
|
90
|
-
export {
|
|
91
|
-
c as flip_tabs
|
|
92
|
-
};
|