@getflip/swirl-components-react 0.1.0 → 0.2.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/_commonjsHelpers-44457d8d.ba94af77.js +37 -0
- package/dist/a11y-dialog.esm-d7a94c8c.bd6ae411.js +99 -0
- package/dist/bodyScrollLock.esm-ce6356d8.2c600fb9.js +93 -0
- package/dist/{flip-action-list-item.entry.1b728e6a.js → flip-action-list-item.entry.66f33805.js} +3 -2
- package/dist/{flip-action-list-section.entry.da3e6186.js → flip-action-list-section.entry.2927ba41.js} +1 -1
- package/dist/{flip-action-list.entry.400a309a.js → flip-action-list.entry.66352b19.js} +2 -2
- package/dist/flip-avatar-group.entry.be7886a3.js +20 -0
- package/dist/{flip-avatar.entry.2eb3242e.js → flip-avatar.entry.f95286a1.js} +3 -2
- package/dist/flip-badge.entry.3f2d34e9.js +20 -0
- package/dist/{flip-banner.entry.b3012465.js → flip-banner.entry.32f2ef57.js} +3 -2
- package/dist/flip-button-group.entry.ed86679b.js +15 -0
- package/dist/flip-button.entry.555b8fd4.js +33 -0
- package/dist/{flip-checkbox.entry.2f740fb8.js → flip-checkbox.entry.9768035f.js} +10 -9
- package/dist/{flip-chip.entry.e9729ac7.js → flip-chip.entry.5ebbf411.js} +3 -2
- package/dist/flip-date-input.entry.7bf9efc5.js +5473 -0
- package/dist/flip-date-picker_3.entry.54e0b84d.js +1270 -0
- package/dist/{flip-description-list-item.entry.c789511e.js → flip-description-list-item.entry.f4e6faf7.js} +1 -1
- package/dist/{flip-description-list.entry.3b158436.js → flip-description-list.entry.2b1d4579.js} +1 -1
- package/dist/flip-dialog.entry.2bbc3bff.js +45 -0
- package/dist/flip-empty-state.entry.376592fa.js +15 -0
- package/dist/flip-file-uploader.entry.c0ddf5a7.js +32 -0
- package/dist/flip-file-viewer-audio_6.entry.d60d1099.js +16174 -0
- package/dist/flip-file-viewer.entry.0c2922e5.js +95 -0
- package/dist/flip-form-control.entry.71c275f5.js +58 -0
- package/dist/flip-form-group.entry.ad2385d5.js +18 -0
- package/dist/flip-heading.entry.1245bdda.js +18 -0
- package/dist/{flip-icon-add-photo.entry.a1003bdf.js → flip-icon-add-photo.entry.c3178433.js} +1 -1
- package/dist/{flip-icon-add.entry.7103fbe7.js → flip-icon-add.entry.708a8c7c.js} +1 -1
- package/dist/{flip-icon-admin-panel-settings.entry.36a12e47.js → flip-icon-admin-panel-settings.entry.88af777a.js} +1 -1
- package/dist/{flip-icon-arrow-back.entry.e35ba078.js → flip-icon-arrow-back.entry.abd86e13.js} +1 -1
- package/dist/{flip-icon-arrow-forward.entry.5138c404.js → flip-icon-arrow-forward.entry.ef6e8b77.js} +1 -1
- package/dist/flip-icon-arrow-left.entry.70be0607.js +15 -0
- package/dist/{flip-icon-arrow-right-small.entry.d1eeb150.js → flip-icon-arrow-right-small.entry.d342c71f.js} +1 -1
- package/dist/flip-icon-arrow-right.entry.bd9eae8e.js +15 -0
- package/dist/{flip-icon-attachment.entry.594b602b.js → flip-icon-attachment.entry.898243d2.js} +1 -1
- package/dist/flip-icon-cancel.entry.fac41df2.js +15 -0
- package/dist/{flip-icon-chat-bubble.entry.f56fcdc4.js → flip-icon-chat-bubble.entry.016c1f0d.js} +1 -1
- package/dist/{flip-icon-check-circle.entry.e4f8169d.js → flip-icon-check-circle.entry.330f4038.js} +1 -1
- package/dist/{flip-icon-check-small.entry.308d57d1.js → flip-icon-check-small.entry.590b928f.js} +1 -1
- package/dist/{flip-icon-check-strong.entry.b61365d2.js → flip-icon-check-strong.entry.8fb90e69.js} +1 -1
- package/dist/{flip-icon-check.entry.f2c6b547.js → flip-icon-check.entry.bf4892a9.js} +1 -1
- package/dist/{flip-icon-chevron-left.entry.dbe9b291.js → flip-icon-chevron-left.entry.8a5cd7ef.js} +1 -1
- package/dist/{flip-icon-chevron-right.entry.9565c0f1.js → flip-icon-chevron-right.entry.ba87bdc8.js} +1 -1
- package/dist/{flip-icon-close-small.entry.8bfcf1b1.js → flip-icon-close-small.entry.d3ca39fb.js} +1 -1
- package/dist/{flip-icon-close.entry.41992748.js → flip-icon-close.entry.ebcf0fe6.js} +1 -1
- package/dist/flip-icon-cloud-upload.entry.bf4e840b.js +15 -0
- package/dist/{flip-icon-comment.entry.2aac2c10.js → flip-icon-comment.entry.dd07b7a4.js} +1 -1
- package/dist/{flip-icon-copy.entry.8e59bf1d.js → flip-icon-copy.entry.796dcb43.js} +1 -1
- package/dist/{flip-icon-date-range.entry.c1dd2730.js → flip-icon-date-range.entry.53c670dc.js} +1 -1
- package/dist/{flip-icon-delete.entry.bc0b61ff.js → flip-icon-delete.entry.df480685.js} +1 -1
- package/dist/{flip-icon-description.entry.e01b2d40.js → flip-icon-description.entry.da40cecc.js} +1 -1
- package/dist/{flip-icon-download.entry.a512f353.js → flip-icon-download.entry.3926477e.js} +1 -1
- package/dist/{flip-icon-edit.entry.7e3cd472.js → flip-icon-edit.entry.0f50ba4c.js} +1 -1
- package/dist/{flip-icon-emoji-mood.entry.df7b536f.js → flip-icon-emoji-mood.entry.4fa27f13.js} +1 -1
- package/dist/{flip-icon-emoji-satisfied.entry.e3e5352b.js → flip-icon-emoji-satisfied.entry.9246c39b.js} +1 -1
- package/dist/{flip-icon-error.entry.96c3c29b.js → flip-icon-error_3.entry.4e8dcd9e.js} +30 -6
- package/dist/flip-icon-expand-less_3.entry.f191352f.js +35 -0
- package/dist/{flip-icon-expand-more.entry.4c1fa160.js → flip-icon-expand-more.entry.5dbcc3e3.js} +1 -1
- package/dist/{flip-icon-file.entry.3a18cce8.js → flip-icon-file.entry.64c3e030.js} +1 -1
- package/dist/{flip-icon-folder-shared.entry.38b22cd2.js → flip-icon-folder-shared.entry.87cd72cd.js} +1 -1
- package/dist/flip-icon-fullscreen-exit.entry.b274fc5c.js +15 -0
- package/dist/flip-icon-fullscreen.entry.a0a70cc8.js +15 -0
- package/dist/{flip-icon-group-assign.entry.a640254f.js → flip-icon-group-assign.entry.17e70921.js} +1 -1
- package/dist/{flip-icon-groups-custom.entry.d77901cd.js → flip-icon-groups-custom.entry.ed78b313.js} +1 -1
- package/dist/{flip-icon-groups.entry.80196d79.js → flip-icon-groups.entry.ff8a5e63.js} +1 -1
- package/dist/{flip-icon-image.entry.601bf2ae.js → flip-icon-image.entry.b010afb8.js} +1 -1
- package/dist/{flip-icon-info.entry.b480a255.js → flip-icon-info.entry.61351d50.js} +1 -1
- package/dist/{flip-icon-inventory.entry.bb8a5615.js → flip-icon-inventory.entry.f0ffd90a.js} +1 -1
- package/dist/{flip-icon-like.entry.af8b36e2.js → flip-icon-like.entry.6b0034de.js} +1 -1
- package/dist/{flip-icon-link.entry.be72688c.js → flip-icon-link.entry.9229312e.js} +1 -1
- package/dist/{flip-icon-lock.entry.440459fe.js → flip-icon-lock.entry.03e5fa85.js} +1 -1
- package/dist/{flip-icon-logout.entry.dde0bfc8.js → flip-icon-logout.entry.8b073a7d.js} +1 -1
- package/dist/{flip-icon-mail.entry.b57a0093.js → flip-icon-mail.entry.91482af2.js} +1 -1
- package/dist/{flip-icon-manage-accounts.entry.11cc3149.js → flip-icon-manage-accounts.entry.5de8be6f.js} +1 -1
- package/dist/{flip-icon-mention.entry.32771810.js → flip-icon-mention.entry.ef803509.js} +1 -1
- package/dist/{flip-icon-message.entry.636088c3.js → flip-icon-message.entry.20ae73fb.js} +1 -1
- package/dist/{flip-icon-more-horizontal.entry.38f14508.js → flip-icon-more-horizontal.entry.9a2357f0.js} +1 -1
- package/dist/{flip-icon-more-vertikal.entry.8a4c613a.js → flip-icon-more-vertikal.entry.0447fdab.js} +1 -1
- package/dist/{flip-icon-notifications-active.entry.5658308d.js → flip-icon-notifications-active.entry.3aa487b9.js} +1 -1
- package/dist/{flip-icon-notifications-off.entry.8d3b11ff.js → flip-icon-notifications-off.entry.285c2bb6.js} +1 -1
- package/dist/{flip-icon-notifications.entry.91f77dd2.js → flip-icon-notifications.entry.e60fed91.js} +1 -1
- package/dist/flip-icon-open-in-new.entry.9de4d7c0.js +15 -0
- package/dist/{flip-icon-people-alt.entry.b0b2e20c.js → flip-icon-people-alt.entry.dd840fb1.js} +1 -1
- package/dist/{flip-icon-person-off.entry.e79df0e6.js → flip-icon-person-off.entry.df6c63b6.js} +1 -1
- package/dist/{flip-icon-person.entry.1bc59e68.js → flip-icon-person.entry.37939889.js} +1 -1
- package/dist/{flip-icon-phone.entry.03e81177.js → flip-icon-phone.entry.08245320.js} +1 -1
- package/dist/{flip-icon-poll.entry.4e059f77.js → flip-icon-poll.entry.e0ff1d9f.js} +1 -1
- package/dist/flip-icon-print.entry.f5fbd804.js +15 -0
- package/dist/{flip-icon-recieved.entry.e3410f9e.js → flip-icon-recieved.entry.5b4e2a50.js} +1 -1
- package/dist/flip-icon-remove.entry.98d516c6.js +15 -0
- package/dist/{flip-icon-search-strong.entry.ec0849a6.js → flip-icon-search-strong.entry.afcf6af9.js} +1 -1
- package/dist/{flip-icon-cancel_2.entry.eb8d1a8c.js → flip-icon-search.entry.0f103075.js} +3 -13
- package/dist/{flip-icon-send.entry.3f80869c.js → flip-icon-send.entry.fd3001a2.js} +1 -1
- package/dist/{flip-icon-settings.entry.c86a7bca.js → flip-icon-settings.entry.2b1e4bb0.js} +1 -1
- package/dist/{flip-icon-time-filled.entry.ad86a08f.js → flip-icon-time-filled.entry.7fa814d7.js} +1 -1
- package/dist/{flip-icon-time-outlined.entry.75a29f76.js → flip-icon-time-outlined.entry.e3f601ce.js} +1 -1
- package/dist/{flip-icon-user-assign.entry.1f331180.js → flip-icon-user-assign.entry.4951e82f.js} +1 -1
- package/dist/{flip-icon-video-camera.entry.40ea3d7d.js → flip-icon-video-camera.entry.74f8a7b6.js} +1 -1
- package/dist/{flip-icon-warning.entry.1c1540b8.js → flip-icon-warning.entry.76ebfb1e.js} +1 -1
- package/dist/{flip-link.entry.fe817ab1.js → flip-link.entry.f67e488c.js} +1 -1
- package/dist/flip-list.entry.5cc5b288.js +18 -0
- package/dist/flip-modal.entry.4921d0b4.js +61 -0
- package/dist/flip-option-list-item.entry.fd1d85dd.js +30 -0
- package/dist/flip-option-list-section.entry.5509895e.js +15 -0
- package/dist/flip-option-list.entry.efe97de9.js +95 -0
- package/dist/flip-pagination.entry.b109c35d.js +27 -0
- package/dist/flip-progress-indicator.entry.b7cf2985.js +18 -0
- package/dist/flip-radio-group.entry.dfc6ef8e.js +35 -0
- package/dist/{flip-radio.entry.817d976d.js → flip-radio.entry.f153fc92.js} +6 -5
- package/dist/flip-resource-list-file-item.entry.26beeeee.js +20 -0
- package/dist/flip-resource-list-item.entry.7cac7a7c.js +41 -0
- package/dist/flip-resource-list.entry.75d10224.js +49 -0
- package/dist/{flip-search.entry.6717d77a.js → flip-search.entry.eccdd9b5.js} +3 -2
- package/dist/{flip-stack.entry.50d88d6f.js → flip-stack.entry.2448bd6b.js} +3 -2
- package/dist/{flip-switch.entry.ef96875e.js → flip-switch.entry.71d04383.js} +3 -2
- package/dist/flip-tab.entry.184626dd.js +18 -0
- package/dist/flip-tabs.entry.9434fd96.js +92 -0
- package/dist/{flip-tag.entry.31a7d0f7.js → flip-tag.entry.5df8a6b4.js} +3 -2
- package/dist/flip-text-input.entry.55decf50.js +55 -0
- package/dist/flip-text.entry.2b6e3f56.js +18 -0
- package/dist/{flip-theme-provider.entry.9c054d33.js → flip-theme-provider.entry.1570cb6b.js} +1 -1
- package/dist/{flip-thumbnail.entry.449e93ef.js → flip-thumbnail.entry.54ea67cf.js} +3 -2
- package/dist/{flip-toast-provider.entry.59025e1a.js → flip-toast-provider.entry.0ee21f8b.js} +1 -1
- package/dist/{flip-toast.entry.78522d59.js → flip-toast.entry.29ea2ead.js} +3 -2
- package/dist/flip-tooltip.entry.e6a904e4.js +94 -0
- package/dist/flip-video-thumbnail.entry.f3cf1c28.js +83 -0
- package/dist/{flip-visually-hidden.entry.ae0ff292.js → flip-visually-hidden.entry.47d25a46.js} +1 -1
- package/dist/floating-ui.dom.esm-1a4e8b8a.87557233.js +752 -0
- package/dist/index-6d2e18c6.289636d4.js +37 -0
- package/dist/index.b6e7bb76.js +1359 -0
- package/dist/index.d.ts +1 -0
- package/dist/stencil-generated/index.d.ts +136 -0
- package/dist/stencil-generated/react-component-lib/createComponent.d.ts +10 -0
- package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/dist/stencil-generated/react-component-lib/index.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/interfaces.d.ts +29 -0
- package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +12 -0
- package/dist/stencil-generated/react-component-lib/utils/case.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/utils/index.d.ts +10 -0
- package/dist/swirl-components-react.js +133 -96
- package/dist/swirl-components-react.umd.cjs +137 -17
- package/dist/utils-b46bcd4f.79126bb2.js +30 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +5 -3
- package/dist/flip-avatar-group.entry.71bf1f2a.js +0 -19
- package/dist/flip-badge.entry.ebda6058.js +0 -19
- package/dist/flip-button_2.entry.a323451d.js +0 -42
- package/dist/flip-dialog.entry.f2be9a9c.js +0 -139
- package/dist/flip-icon-expand-less.entry.3e970433.js +0 -15
- package/dist/flip-icon-today.entry.ab272990.js +0 -15
- package/dist/flip-icon-visibility-off.entry.ed4db3b5.js +0 -15
- package/dist/flip-icon-visibility.entry.1a7dfd44.js +0 -15
- package/dist/flip-inline-error.entry.38c26d13.js +0 -17
- package/dist/flip-popover.entry.18c5ead6.js +0 -878
- package/dist/flip-radio-group.entry.187f29ee.js +0 -35
- package/dist/flip-spinner.entry.f8f179be.js +0 -17
- package/dist/flip-tooltip.entry.8b5f35c7.js +0 -102
- package/dist/index-3c78bcaf.2675909b.js +0 -48
- package/dist/main.7e7363a7.js +0 -1322
- package/dist/utils-03e3261c.f5223801.js +0 -16
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { r as t, h as a, H as s } from "./
|
|
2
|
-
import { c as l } from "./index-
|
|
1
|
+
import { r as t, h as a, H as s } from "./index.b6e7bb76.js";
|
|
2
|
+
import { c as l } from "./index-6d2e18c6.289636d4.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
5
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 {
|
|
6
7
|
constructor(i) {
|
|
7
8
|
t(this, i), this.format = "landscape", this.size = "m";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { r as i, c as a, h as t, H as e } from "./
|
|
2
|
-
import { c as o } from "./index-
|
|
1
|
+
import { r as i, c as a, h as t, H as e } from "./index.b6e7bb76.js";
|
|
2
|
+
import { c as o } from "./index-6d2e18c6.289636d4.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
+
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
5
6
|
const n = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:0.75rem;color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default)}.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)}", r = class {
|
|
6
7
|
constructor(s) {
|
|
7
8
|
i(this, s), this.dismiss = a(this, "dismiss", 7), this.accessibleDismissLabel = "Dismiss", this.intent = "default", this.onDismiss = () => {
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { r as n, h as o, H as l } from "./index.b6e7bb76.js";
|
|
2
|
+
import { c as r, o as p, s as h, f as d } from "./floating-ui.dom.esm-1a4e8b8a.87557233.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const c = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);-webkit-animation:tooltip-fade-in 0.1s;animation:tooltip-fade-in 0.1s;backgrund-color:red}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}@-webkit-keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}", u = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
n(this, e), this.delay = 300, this.position = "top", this.visible = !1, this.onKeydown = (t) => {
|
|
8
|
+
t.code === "Escape" && this.hide();
|
|
9
|
+
}, this.reposition = async () => {
|
|
10
|
+
!Boolean(this.referenceEl) || !Boolean(this.popperEl) || (this.actualPosition = await r(this.referenceEl, this.popperEl, this.options));
|
|
11
|
+
}, this.show = () => {
|
|
12
|
+
this.visible = !0, requestAnimationFrame(() => {
|
|
13
|
+
this.reposition();
|
|
14
|
+
});
|
|
15
|
+
}, this.showWithDelay = () => {
|
|
16
|
+
Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.showTimeout = setTimeout(() => {
|
|
17
|
+
this.show();
|
|
18
|
+
}, this.delay);
|
|
19
|
+
}, this.hide = () => {
|
|
20
|
+
Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.visible = !1;
|
|
21
|
+
}, this.updateOptions = () => {
|
|
22
|
+
const t = +getComputedStyle(document.documentElement).getPropertyValue("--s-space-12").replace("rem", "") * 16;
|
|
23
|
+
this.options = {
|
|
24
|
+
middleware: [p(t), h(), d()],
|
|
25
|
+
placement: this.position,
|
|
26
|
+
strategy: "fixed"
|
|
27
|
+
};
|
|
28
|
+
}, this.getArrowStyles = () => {
|
|
29
|
+
var t, s, i, a;
|
|
30
|
+
if (((t = this.actualPosition) === null || t === void 0 ? void 0 : t.placement) === "top")
|
|
31
|
+
return {
|
|
32
|
+
top: "100%",
|
|
33
|
+
left: "50%",
|
|
34
|
+
transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
|
|
35
|
+
};
|
|
36
|
+
if (((s = this.actualPosition) === null || s === void 0 ? void 0 : s.placement) === "bottom")
|
|
37
|
+
return {
|
|
38
|
+
bottom: "100%",
|
|
39
|
+
left: "50%",
|
|
40
|
+
transform: "translate3d(-50%, 50%, 0) rotate(45deg)"
|
|
41
|
+
};
|
|
42
|
+
if (((i = this.actualPosition) === null || i === void 0 ? void 0 : i.placement) === "right")
|
|
43
|
+
return {
|
|
44
|
+
top: "50%",
|
|
45
|
+
right: "100%",
|
|
46
|
+
transform: "translate3d(50%, -50%, 0) rotate(45deg)"
|
|
47
|
+
};
|
|
48
|
+
if (((a = this.actualPosition) === null || a === void 0 ? void 0 : a.placement) === "left")
|
|
49
|
+
return {
|
|
50
|
+
top: "50%",
|
|
51
|
+
left: "100%",
|
|
52
|
+
transform: "translate3d(-50%, -50%, 0) rotate(45deg)"
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
watchPosition() {
|
|
57
|
+
this.updateOptions();
|
|
58
|
+
}
|
|
59
|
+
onMouseEnter() {
|
|
60
|
+
this.showWithDelay();
|
|
61
|
+
}
|
|
62
|
+
onMouseLeave() {
|
|
63
|
+
this.hide();
|
|
64
|
+
}
|
|
65
|
+
onWindowResize() {
|
|
66
|
+
this.reposition();
|
|
67
|
+
}
|
|
68
|
+
onWindowScroll() {
|
|
69
|
+
this.reposition();
|
|
70
|
+
}
|
|
71
|
+
componentWillLoad() {
|
|
72
|
+
this.reposition();
|
|
73
|
+
}
|
|
74
|
+
componentDidLoad() {
|
|
75
|
+
this.updateOptions();
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
var e, t;
|
|
79
|
+
const s = this.getArrowStyles();
|
|
80
|
+
return o(l, { onKeydown: this.onKeydown }, o("span", { class: "tooltip" }, o("span", { class: "tooltip__reference", "aria-describedby": "tooltip", onBlur: this.hide, onClick: this.hide, onFocus: this.show, ref: (i) => this.referenceEl = i, tabIndex: 0 }, o("slot", null)), o("span", { class: "tooltip__popper", ref: (i) => this.popperEl = i, style: {
|
|
81
|
+
top: Boolean(this.actualPosition) ? `${(e = this.actualPosition) === null || e === void 0 ? void 0 : e.y}px` : "",
|
|
82
|
+
left: Boolean(this.actualPosition) ? `${(t = this.actualPosition) === null || t === void 0 ? void 0 : t.x}px` : ""
|
|
83
|
+
} }, this.visible && o("span", { class: "tooltip__bubble", id: "tooltip", role: "tooltip" }, o("span", { class: "tooltip__content", innerHTML: this.content }), o("span", { class: "tooltip__arrow", style: s })))));
|
|
84
|
+
}
|
|
85
|
+
static get watchers() {
|
|
86
|
+
return {
|
|
87
|
+
position: ["watchPosition"]
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
u.style = c;
|
|
92
|
+
export {
|
|
93
|
+
u as flip_tooltip
|
|
94
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { r as t, h as n, H as a } from "./index.b6e7bb76.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const e = `:host {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host * {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.video-thumbnail {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
border: none;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
container-type: inline-size;
|
|
23
|
+
container-name: video-thumbnail;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.video-thumbnail:after {
|
|
27
|
+
position: absolute;
|
|
28
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
29
|
+
content: "";
|
|
30
|
+
inset: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.video-thumbnail:focus {
|
|
34
|
+
outline-color: var(--s-focus-default);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.video-thumbnail__image {
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.video-thumbnail__duration {
|
|
42
|
+
position: absolute;
|
|
43
|
+
bottom: var(--s-space-8);
|
|
44
|
+
left: var(--s-space-8);
|
|
45
|
+
padding: var(--s-space-2) var(--s-space-8);
|
|
46
|
+
border-radius: var(--s-border-radius-sm);
|
|
47
|
+
color: var(--s-text-on-image);
|
|
48
|
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
|
|
49
|
+
rgba(255, 255, 255, 0.1);
|
|
50
|
+
font-size: var(--s-font-size-sm);
|
|
51
|
+
font-weight: var(--s-font-weight-medium);
|
|
52
|
+
line-height: var(--s-line-height-sm);
|
|
53
|
+
letter-spacing: var(--s-letter-spacing-tighter);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.video-thumbnail__play-icon {
|
|
57
|
+
position: absolute;
|
|
58
|
+
z-index: 1;
|
|
59
|
+
top: 50%;
|
|
60
|
+
left: 50%;
|
|
61
|
+
width: 2.5rem;
|
|
62
|
+
height: 2.5rem;
|
|
63
|
+
transform: translate3d(-50%, -50%, 0);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@container video-thumbnail (min-width: 448px) {
|
|
67
|
+
.video-thumbnail__play-icon {
|
|
68
|
+
width: 3.5rem;
|
|
69
|
+
height: 4.5rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`, o = class {
|
|
73
|
+
constructor(i) {
|
|
74
|
+
t(this, i), this.durationLabel = "Duration";
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
return n(a, null, n("button", { "aria-describedby": this.duration !== void 0 ? "duration" : void 0, "aria-label": this.label, class: "video-thumbnail", type: "button" }, n("img", { alt: "", class: "video-thumbnail__image", loading: "lazy", src: this.src }), this.duration && n("span", { class: "video-thumbnail__duration", id: "duration" }, n("flip-visually-hidden", null, this.durationLabel), this.duration), n("svg", { class: "video-thumbnail__play-icon", fill: "none", viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg" }, n("path", { d: "M15 14.65V25.35C15 26.1167 15.35 26.7 16.05 27.1C16.75 27.5 17.4333 27.4667 18.1 27L26.4 21.7C27.0333 21.3 27.35 20.7333 27.35 20C27.35 19.2667 27.0333 18.7 26.4 18.3L18.1 13C17.4333 12.5333 16.75 12.5 16.05 12.9C15.35 13.3 15 13.8833 15 14.65ZM20 40C17.2333 40 14.6333 39.4747 12.2 38.424C9.76667 37.3747 7.65 35.95 5.85 34.15C4.05 32.35 2.62533 30.2333 1.576 27.8C0.525334 25.3667 0 22.7667 0 20C0 17.2333 0.525334 14.6333 1.576 12.2C2.62533 9.76667 4.05 7.65 5.85 5.85C7.65 4.05 9.76667 2.62467 12.2 1.574C14.6333 0.524667 17.2333 0 20 0C22.7667 0 25.3667 0.524667 27.8 1.574C30.2333 2.62467 32.35 4.05 34.15 5.85C35.95 7.65 37.3747 9.76667 38.424 12.2C39.4747 14.6333 40 17.2333 40 20C40 22.7667 39.4747 25.3667 38.424 27.8C37.3747 30.2333 35.95 32.35 34.15 34.15C32.35 35.95 30.2333 37.3747 27.8 38.424C25.3667 39.4747 22.7667 40 20 40Z", fill: "white", "fill-opacity": "0.95" }))));
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
o.style = e;
|
|
81
|
+
export {
|
|
82
|
+
o as flip_video_thumbnail
|
|
83
|
+
};
|
package/dist/{flip-visually-hidden.entry.ae0ff292.js → flip-visually-hidden.entry.47d25a46.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as i, H as l } from "./
|
|
1
|
+
import { r, h as i, H as l } from "./index.b6e7bb76.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const t = ":host{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}", o = class {
|