@getflip/swirl-components-react 0.3.0 → 0.5.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.5df78d98.js +58 -0
- package/dist/{flip-action-list-item.entry.bfe816d0.js → flip-action-list-item.entry.080e14b7.js} +1 -1
- package/dist/{flip-action-list-section.entry.8072859c.js → flip-action-list-section.entry.59cc892d.js} +1 -1
- package/dist/{flip-action-list.entry.07c4e8cb.js → flip-action-list.entry.34dd165b.js} +2 -2
- package/dist/flip-app-layout_5.entry.20b263f5.js +215 -0
- package/dist/flip-autocomplete.entry.a63ad331.js +70 -0
- package/dist/{flip-avatar-group.entry.f987aa8b.js → flip-avatar-group.entry.e00bcff1.js} +1 -1
- package/dist/flip-avatar.entry.32cb98bf.js +57 -0
- package/dist/flip-badge.entry.63e2d414.js +20 -0
- package/dist/{flip-banner.entry.50b72a3f.js → flip-banner.entry.a2f5eef8.js} +1 -1
- package/dist/{flip-button-group.entry.9261c585.js → flip-button-group.entry.7856eb4f.js} +1 -1
- package/dist/{flip-button.entry.98440a9e.js → flip-button.entry.82de4159.js} +13 -7
- package/dist/{flip-checkbox.entry.56d1e132.js → flip-checkbox.entry.4af2f2b4.js} +10 -7
- package/dist/{flip-chip.entry.e2be5143.js → flip-chip.entry.9e153968.js} +1 -1
- package/dist/flip-console-layout.entry.940ff9f8.js +22 -0
- package/dist/{flip-date-input.entry.2d5088ea.js → flip-date-input.entry.dce529bc.js} +6 -4
- package/dist/{flip-date-picker_3.entry.d61d1842.js → flip-date-picker_2.entry.177499d7.js} +276 -367
- package/dist/{flip-description-list-item.entry.ebdd7136.js → flip-description-list-item.entry.efd60d4e.js} +1 -1
- package/dist/{flip-description-list.entry.48a4d48b.js → flip-description-list.entry.28fc026b.js} +1 -1
- package/dist/{flip-dialog.entry.bec58ff3.js → flip-dialog.entry.1f35195b.js} +1 -1
- package/dist/{flip-file-uploader.entry.d8919920.js → flip-file-uploader.entry.3888ef19.js} +1 -1
- package/dist/{flip-file-viewer-audio_6.entry.6ac11dbe.js → flip-file-viewer_7.entry.098a3dac.js} +4964 -4794
- package/dist/flip-form-control.entry.8a1150c0.js +65 -0
- package/dist/{flip-form-group.entry.52e6ee89.js → flip-form-group.entry.42d83af8.js} +1 -1
- package/dist/flip-heading_2.entry.36e0c785.js +29 -0
- package/dist/{flip-icon-add-photo.entry.897fe115.js → flip-icon-add-photo.entry.4a5cdf22.js} +1 -1
- package/dist/flip-icon-add_4.entry.890da8d3.js +45 -0
- package/dist/{flip-icon-admin-panel-settings.entry.d1c445fd.js → flip-icon-admin-panel-settings.entry.29420ba1.js} +1 -1
- package/dist/{flip-icon-arrow-back.entry.e054a0e8.js → flip-icon-arrow-back.entry.c75093f3.js} +1 -1
- package/dist/{flip-icon-arrow-forward.entry.ceea49fe.js → flip-icon-arrow-forward.entry.a5ba53d2.js} +1 -1
- package/dist/{flip-icon-arrow-left_3.entry.ec0b28c1.js → flip-icon-arrow-left_3.entry.492c928f.js} +1 -1
- package/dist/{flip-icon-arrow-right-small.entry.88470f4b.js → flip-icon-arrow-right-small.entry.d977647f.js} +1 -1
- package/dist/{flip-icon-attachment.entry.c141c860.js → flip-icon-attachment.entry.33509693.js} +1 -1
- package/dist/{flip-icon-expand-less_3.entry.6e9d656c.js → flip-icon-cancel_4.entry.c7533bde.js} +23 -13
- package/dist/{flip-icon-chat-bubble.entry.13a6899b.js → flip-icon-chat-bubble.entry.796b792b.js} +1 -1
- package/dist/{flip-icon-check-circle.entry.4c134688.js → flip-icon-check-circle.entry.942c13d5.js} +1 -1
- package/dist/flip-icon-check-small_3.entry.0b74d78c.js +143 -0
- package/dist/{flip-icon-check-strong.entry.819065e2.js → flip-icon-check-strong.entry.f072021d.js} +1 -1
- package/dist/{flip-icon-check.entry.e9e18ec0.js → flip-icon-check.entry.e4c5c94a.js} +1 -1
- package/dist/{flip-icon-chevron-left.entry.8b4f8813.js → flip-icon-chevron-left.entry.65b612e3.js} +1 -1
- package/dist/{flip-icon-chevron-right.entry.d32eba9e.js → flip-icon-chevron-right.entry.0ea10200.js} +1 -1
- package/dist/{flip-icon-close-small.entry.e18fcac6.js → flip-icon-close-small.entry.cccd694a.js} +1 -1
- package/dist/{flip-icon-close.entry.30a8abc3.js → flip-icon-close.entry.cf4afdfd.js} +1 -1
- package/dist/{flip-icon-cloud-upload.entry.6412d35e.js → flip-icon-cloud-upload.entry.8f2ba9c7.js} +1 -1
- package/dist/{flip-icon-comment.entry.731b5907.js → flip-icon-comment.entry.bd9871c6.js} +1 -1
- package/dist/{flip-icon-copy.entry.c29519f3.js → flip-icon-copy.entry.1b311d2c.js} +1 -1
- package/dist/{flip-icon-date-range.entry.d6dea969.js → flip-icon-date-range.entry.20ae3be8.js} +1 -1
- package/dist/{flip-icon-delete.entry.e99d814a.js → flip-icon-delete.entry.91cce4b6.js} +1 -1
- package/dist/{flip-icon-description.entry.8448b398.js → flip-icon-description.entry.1e861585.js} +1 -1
- package/dist/{flip-icon-edit.entry.3ae910b7.js → flip-icon-edit.entry.6ce0adc0.js} +1 -1
- package/dist/{flip-icon-emoji-mood.entry.89308bc3.js → flip-icon-emoji-mood.entry.26ff5f4c.js} +1 -1
- package/dist/{flip-icon-emoji-satisfied.entry.5a9bca01.js → flip-icon-emoji-satisfied.entry.c5964eb2.js} +1 -1
- package/dist/{flip-icon-error_3.entry.f44ffe60.js → flip-icon-error_3.entry.ed9ea2ba.js} +1 -1
- package/dist/{flip-icon-expand-more.entry.d0acac42.js → flip-icon-expand-more.entry.dfe65dc1.js} +1 -1
- package/dist/{flip-icon-file.entry.24508e1d.js → flip-icon-file.entry.1337f4a3.js} +1 -1
- package/dist/{flip-icon-folder-shared.entry.c829f971.js → flip-icon-folder-shared.entry.d729af99.js} +1 -1
- package/dist/{flip-icon-group-assign.entry.ba88a447.js → flip-icon-group-assign.entry.1b26fbcc.js} +1 -1
- package/dist/{flip-icon-groups-custom.entry.eeaaa045.js → flip-icon-groups-custom.entry.f1691911.js} +1 -1
- package/dist/{flip-icon-groups.entry.fb62ee22.js → flip-icon-groups.entry.8ee2103f.js} +1 -1
- package/dist/flip-icon-help.entry.258ffe77.js +15 -0
- package/dist/{flip-icon-image.entry.75eebbb0.js → flip-icon-image.entry.ed9e7cea.js} +1 -1
- package/dist/{flip-icon-info.entry.e30b9669.js → flip-icon-info.entry.7ecf555e.js} +1 -1
- package/dist/{flip-icon-inventory.entry.39ebc534.js → flip-icon-inventory.entry.3dfdaf9f.js} +1 -1
- package/dist/{flip-icon-like.entry.80e5f8b9.js → flip-icon-like.entry.0cc26e51.js} +1 -1
- package/dist/{flip-icon-link.entry.c99a2106.js → flip-icon-link.entry.4a62a637.js} +1 -1
- package/dist/{flip-icon-lock.entry.5957290a.js → flip-icon-lock.entry.de97d106.js} +1 -1
- package/dist/{flip-icon-logout.entry.c6240d44.js → flip-icon-logout.entry.551dbbfc.js} +1 -1
- package/dist/{flip-icon-mail.entry.65b32c8b.js → flip-icon-mail.entry.8f23d662.js} +1 -1
- package/dist/{flip-icon-manage-accounts.entry.73cd3a27.js → flip-icon-manage-accounts.entry.587cc1f2.js} +1 -1
- package/dist/{flip-icon-mention.entry.088e8573.js → flip-icon-mention.entry.dea7e9bd.js} +1 -1
- package/dist/{flip-icon-message.entry.e7306c78.js → flip-icon-message.entry.661d3f8b.js} +1 -1
- package/dist/{flip-icon-more-horizontal.entry.9b6c4ab4.js → flip-icon-more-horizontal.entry.e1b56167.js} +1 -1
- package/dist/{flip-icon-more-vertikal.entry.43a77373.js → flip-icon-more-vertikal.entry.c8c2faf5.js} +1 -1
- package/dist/{flip-icon-notifications-active.entry.b48ff150.js → flip-icon-notifications-active.entry.17e2db26.js} +1 -1
- package/dist/{flip-icon-notifications-off.entry.b60ef6aa.js → flip-icon-notifications-off.entry.fccd2c17.js} +1 -1
- package/dist/{flip-icon-notifications.entry.e2d0f244.js → flip-icon-notifications.entry.fd6974d0.js} +1 -1
- package/dist/{flip-icon-open-in-new.entry.bdcb5f7e.js → flip-icon-open-in-new.entry.377230e7.js} +1 -1
- package/dist/{flip-icon-people-alt.entry.4c0917f0.js → flip-icon-people-alt.entry.ff8dcfad.js} +1 -1
- package/dist/{flip-icon-person-off.entry.4dba1b98.js → flip-icon-person-off.entry.c1046231.js} +1 -1
- package/dist/{flip-icon-person.entry.57042a58.js → flip-icon-person.entry.a8e33281.js} +1 -1
- package/dist/{flip-icon-phone.entry.3ad46317.js → flip-icon-phone.entry.b13cd9db.js} +1 -1
- package/dist/{flip-icon-poll.entry.c14b718c.js → flip-icon-poll.entry.d4d7ab35.js} +1 -1
- package/dist/{flip-icon-print.entry.42bc6751.js → flip-icon-print.entry.e22c899f.js} +1 -1
- package/dist/{flip-icon-recieved.entry.35cc64fd.js → flip-icon-recieved.entry.42365f6e.js} +1 -1
- package/dist/{flip-icon-search-strong.entry.d6722aba.js → flip-icon-search-strong.entry.3e2df830.js} +1 -1
- package/dist/{flip-icon-search.entry.c2c88135.js → flip-icon-search.entry.307ecf81.js} +1 -1
- package/dist/{flip-icon-send.entry.6d3ed0a4.js → flip-icon-send.entry.d821277c.js} +1 -1
- package/dist/{flip-icon-settings.entry.3ab04c76.js → flip-icon-settings.entry.39d549e4.js} +1 -1
- package/dist/{flip-icon-time-filled.entry.050c61d7.js → flip-icon-time-filled.entry.59391c42.js} +1 -1
- package/dist/{flip-icon-time-outlined.entry.195df6e9.js → flip-icon-time-outlined.entry.7828e49b.js} +1 -1
- package/dist/{flip-icon-user-assign.entry.60316828.js → flip-icon-user-assign.entry.d015d6d1.js} +1 -1
- package/dist/{flip-icon-video-camera.entry.d376e2da.js → flip-icon-video-camera.entry.08b245ec.js} +1 -1
- package/dist/{flip-icon-warning.entry.7484d16e.js → flip-icon-warning.entry.6646b827.js} +1 -1
- package/dist/{flip-lightbox.entry.cdffd089.js → flip-lightbox.entry.89522005.js} +2 -2
- package/dist/{flip-link.entry.145e89bf.js → flip-link.entry.21826dcf.js} +1 -1
- package/dist/{flip-list.entry.fcece197.js → flip-list.entry.28ca3e9a.js} +1 -1
- package/dist/{flip-modal.entry.f20fd032.js → flip-modal.entry.9dc00a89.js} +10 -10
- package/dist/{flip-option-list-section.entry.c0084261.js → flip-option-list-section.entry.8016c860.js} +1 -1
- package/dist/{flip-pagination.entry.a8a4c1bf.js → flip-pagination.entry.5c31f8e5.js} +1 -1
- package/dist/flip-pdf-reader.entry.79fd6e1f.js +79 -0
- package/dist/flip-popover.entry.712ebb5b.js +115 -0
- package/dist/{flip-progress-indicator.entry.8069914b.js → flip-progress-indicator.entry.342c1c4c.js} +1 -1
- package/dist/{flip-radio-group.entry.4046ee83.js → flip-radio-group.entry.ab35d743.js} +1 -1
- package/dist/{flip-radio.entry.941e407b.js → flip-radio.entry.35aa66f2.js} +8 -5
- package/dist/{flip-resource-list-file-item.entry.678596e2.js → flip-resource-list-file-item.entry.b56f8795.js} +1 -1
- package/dist/{flip-search.entry.05617d72.js → flip-search.entry.cb0d0faa.js} +1 -1
- package/dist/flip-select.entry.67d74a11.js +48 -0
- package/dist/{flip-stack.entry.60b7e7d8.js → flip-stack.entry.b7e0326d.js} +1 -1
- package/dist/{flip-switch.entry.51a1856d.js → flip-switch.entry.a5b1c2c6.js} +1 -1
- package/dist/{flip-tab.entry.fd12f894.js → flip-tab.entry.97e217ad.js} +1 -1
- package/dist/{flip-tabs.entry.9462dbaa.js → flip-tabs.entry.ad810ab3.js} +1 -1
- package/dist/{flip-tag.entry.923d754e.js → flip-tag.entry.8d4916e7.js} +1 -1
- package/dist/flip-text-input.entry.b963e731.js +60 -0
- package/dist/{flip-theme-provider.entry.ab641668.js → flip-theme-provider.entry.d5dd8213.js} +1 -1
- package/dist/{flip-thumbnail.entry.9d00d2f8.js → flip-thumbnail.entry.5f5e44d2.js} +1 -1
- package/dist/{flip-toast-provider.entry.d0391c9a.js → flip-toast-provider.entry.4c55da45.js} +5 -3
- package/dist/{flip-toast.entry.fac8df58.js → flip-toast.entry.c306c0f6.js} +1 -1
- package/dist/{flip-tooltip.entry.f7d80b92.js → flip-tooltip.entry.4544c9e8.js} +2 -2
- package/dist/{flip-video-thumbnail.entry.f45c61bc.js → flip-video-thumbnail.entry.7e6a70de.js} +1 -1
- package/dist/{flip-visually-hidden.entry.1099adf3.js → flip-visually-hidden.entry.59b6f888.js} +1 -1
- package/dist/index.ac96d2b2.js +1368 -0
- package/dist/stencil-generated/index.d.ts +8 -0
- package/dist/swirl-components-react.js +145 -137
- package/dist/swirl-components-react.umd.cjs +56 -37
- package/dist/utils-39b2afe8.37b54ba4.js +40 -0
- package/package.json +2 -2
- package/dist/flip-avatar.entry.7be29e5c.js +0 -57
- package/dist/flip-badge.entry.bb0eb78d.js +0 -20
- package/dist/flip-empty-state.entry.d125feea.js +0 -15
- package/dist/flip-file-viewer.entry.66629b65.js +0 -95
- package/dist/flip-form-control.entry.c45d4428.js +0 -58
- package/dist/flip-heading.entry.b20bb368.js +0 -18
- package/dist/flip-icon-add.entry.a04d115d.js +0 -15
- package/dist/flip-icon-cancel.entry.07a0efa7.js +0 -15
- package/dist/flip-icon-check-small.entry.1da0f061.js +0 -15
- package/dist/flip-icon-fullscreen-exit.entry.4f7369df.js +0 -15
- package/dist/flip-icon-fullscreen.entry.fe6d6998.js +0 -15
- package/dist/flip-icon-remove.entry.7ce5335b.js +0 -15
- package/dist/flip-option-list-item.entry.ed931c3c.js +0 -30
- package/dist/flip-option-list.entry.a07fd2d3.js +0 -95
- package/dist/flip-resource-list-item.entry.3ba2f6c5.js +0 -41
- package/dist/flip-resource-list.entry.b5f4d108.js +0 -49
- package/dist/flip-text-input.entry.09a6024a.js +0 -55
- package/dist/flip-text.entry.634f95b3.js +0 -18
- package/dist/index.0ccdd659.js +0 -1360
- package/dist/utils-b46bcd4f.79126bb2.js +0 -30
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function f(c, i, e = !1) {
|
|
2
|
+
let l;
|
|
3
|
+
return function() {
|
|
4
|
+
const t = this, r = arguments, n = function() {
|
|
5
|
+
l = null, e || c.apply(t, r);
|
|
6
|
+
}, s = e && !Boolean(l);
|
|
7
|
+
clearTimeout(l), l = setTimeout(n, i), s && c.apply(t, r);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function p(c, i) {
|
|
11
|
+
const e = i.scrollTop, l = e + i.clientHeight, o = i.getBoundingClientRect(), t = c.getBoundingClientRect(), n = {
|
|
12
|
+
top: t.top - o.top,
|
|
13
|
+
right: t.right - o.right,
|
|
14
|
+
bottom: t.bottom - o.bottom,
|
|
15
|
+
left: t.left - o.left
|
|
16
|
+
}.top + e, s = n + c.offsetHeight, a = n < e ? e : n;
|
|
17
|
+
return (s > l ? l : s) - a;
|
|
18
|
+
}
|
|
19
|
+
function d() {
|
|
20
|
+
return !window.matchMedia("(min-width: 768px)").matches;
|
|
21
|
+
}
|
|
22
|
+
function g(c, i) {
|
|
23
|
+
function e(o, t) {
|
|
24
|
+
if (!Boolean(t))
|
|
25
|
+
return [];
|
|
26
|
+
const r = Array.from(t.querySelectorAll(o)), n = Boolean(window.HTMLSlotElement) && t instanceof HTMLSlotElement ? t.assignedElements() : [], s = [...Array.from(t.children), ...n], a = t.shadowRoot, u = e(o, a);
|
|
27
|
+
return [
|
|
28
|
+
...r,
|
|
29
|
+
...s.map((h) => e(o, h)).flat(),
|
|
30
|
+
...u
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
return e(i, c).filter((o, t, r) => !r.some((n, s) => n.isSameNode(o) && s > t));
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
f as d,
|
|
37
|
+
p as g,
|
|
38
|
+
d as i,
|
|
39
|
+
g as q
|
|
40
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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.6.0",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { r as c, h as t, H as g, g as m } from "./index.0ccdd659.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 p = ":host{display:inline-flex;align-items:center;flex-direction:column}:host *{box-sizing:border-box}.avatar{position:relative;display:inline-flex;justify-content:center;align-items:center;border-radius:50%}.avatar--has-icon{color:var(--s-icon-default);background-color:var(--s-surface-raised-default)}.avatar--has-initials{padding-right:0;padding-left:0;color:#fff}.avatar--interactive{cursor:pointer}.avatar--interactive:focus{outline-color:var(--s-focus-default)}.avatar--size-xs{width:1.75rem;height:1.75rem;font-size:0.75rem}.avatar--size-xs.avatar--has-icon{padding-right:0.4375rem;padding-left:0.4375rem}.avatar--size-xs.avatar--variant-square,.avatar--size-xs.avatar--variant-square .avatar__image,.avatar--size-xs.avatar--variant-square .avatar__initials{border-radius:0.5rem}.avatar--size-s{width:2rem;height:2rem;font-size:0.75rem}.avatar--size-s.avatar--has-icon{padding-right:var(--s-space-8);padding-left:var(--s-space-8)}.avatar--size-s.avatar--variant-square,.avatar--size-s.avatar--variant-square .avatar__image,.avatar--size-s.avatar--variant-square .avatar__initials{border-radius:0.5rem}.avatar--size-m{width:2.5rem;height:2.5rem;font-size:var(--s-font-size-base)}.avatar--size-m.avatar--has-icon{padding-right:0.625rem;padding-left:0.625rem}.avatar--size-m.avatar--variant-square,.avatar--size-m.avatar--variant-square .avatar__image,.avatar--size-m.avatar--variant-square .avatar__initials{border-radius:0.625rem}.avatar--size-l{width:3rem;height:3rem;font-size:var(--s-font-size-lg)}.avatar--size-l.avatar--has-icon{padding-right:var(--s-space-12);padding-left:var(--s-space-12)}.avatar--size-l.avatar--variant-square,.avatar--size-l.avatar--variant-square .avatar__image,.avatar--size-l.avatar--variant-square .avatar__initials{border-radius:0.75rem}.avatar--size-xl{width:4rem;height:4rem;font-size:var(--s-font-size-xl)}.avatar--size-xl.avatar--has-icon{padding-right:var(--s-space-16);padding-left:var(--s-space-16)}.avatar--size-xl.avatar--variant-square,.avatar--size-xl.avatar--variant-square .avatar__image,.avatar--size-xl.avatar--variant-square .avatar__initials{border-radius:1rem}.avatar--size-2xl{width:9rem;height:9rem;font-size:3.375rem}.avatar--size-2xl.avatar--has-icon{padding-right:var(--s-space-32);padding-left:var(--s-space-32)}.avatar--size-2xl.avatar--variant-square,.avatar--size-2xl.avatar--variant-square .avatar__image,.avatar--size-2xl.avatar--variant-square .avatar__initials{border-radius:2.25rem}.avatar__image{overflow:hidden;width:100%;height:100%;border-radius:50%}.avatar__image>img{width:100%;height:100%}.avatar__icon{display:inline-flex;width:100%;height:100%}.avatar__icon>*{width:100%;height:100%}.avatar__icon>*::part(icon){width:100%;height:100%}.avatar__initials{display:inline-flex;width:100%;min-width:0;height:100%;padding-right:0.0625rem;padding-left:0.0625rem;justify-content:center;align-items:center;border-radius:50%;background-color:var(--s-decorative-6-default)}.avatar__initials>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avatar__badge{position:absolute;bottom:0;left:55%;display:inline-flex;min-width:1.5rem;height:1.5rem;transform:translate3d(0, 25%, 0)}.avatar__badge--position-top{top:0;bottom:auto;transform:translate3d(0, -25%, 0)}.avatar__label{margin-top:var(--s-space-4);color:var(--s-icon-default);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);text-align:center}", n = {
|
|
7
|
-
xs: 28,
|
|
8
|
-
s: 32,
|
|
9
|
-
m: 40,
|
|
10
|
-
l: 48,
|
|
11
|
-
xl: 64,
|
|
12
|
-
"2xl": 144
|
|
13
|
-
}, f = class {
|
|
14
|
-
constructor(i) {
|
|
15
|
-
c(this, i), this.badgePosition = "bottom", this.interactive = !1, this.showLabel = !1, this.size = "m", this.variant = "round", this.setImageAvailable = () => {
|
|
16
|
-
this.imageAvailable = !0;
|
|
17
|
-
}, this.setImageUnavailable = () => {
|
|
18
|
-
this.imageAvailable = !1;
|
|
19
|
-
}, this.onKeydown = (a) => {
|
|
20
|
-
a.code === "Space" ? a.preventDefault() : a.code === "Enter" && (a.preventDefault(), this.element.click());
|
|
21
|
-
}, this.onKeyup = (a) => {
|
|
22
|
-
a.code === "Space" && (a.preventDefault(), this.element.click());
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
componentDidLoad() {
|
|
26
|
-
this.forceBadgeProps();
|
|
27
|
-
}
|
|
28
|
-
watchSrcProp() {
|
|
29
|
-
this.imageAvailable = void 0;
|
|
30
|
-
}
|
|
31
|
-
forceBadgeProps() {
|
|
32
|
-
if (!Boolean(this.badge))
|
|
33
|
-
return;
|
|
34
|
-
const i = this.badgeEl.querySelector("flip-badge");
|
|
35
|
-
i == null || i.setAttribute("size", "m");
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
const i = Boolean(this.src) && (this.imageAvailable || this.imageAvailable === void 0), a = !i && Boolean(this.initials), e = !i && !a && Boolean(this.icon), r = !i && !a && !e, o = Boolean(this.badge) && this.size === "m", l = this.interactive ? "button" : "img", v = s("avatar", `avatar--size-${this.size}`, `avatar--variant-${this.variant}`, {
|
|
39
|
-
"avatar--has-icon": e || r,
|
|
40
|
-
"avatar--has-initials": a,
|
|
41
|
-
"avatar--interactive": this.interactive
|
|
42
|
-
}), h = s("avatar__badge", `avatar__badge--position-${this.badgePosition}`);
|
|
43
|
-
return t(g, { "aria-label": this.label, onKeydown: this.interactive ? this.onKeydown : void 0, onKeyup: this.interactive ? this.onKeyup : void 0, role: l, tabIndex: this.interactive ? 0 : void 0 }, t("span", { class: v, part: "avatar" }, i && t("span", { class: "avatar__image" }, t("img", { alt: "", height: n[this.size], onError: this.setImageUnavailable, onLoad: this.setImageAvailable, src: this.src, width: n[this.size] })), a && t("span", { class: "avatar__initials" }, t("span", null, this.initials)), e && t("span", { class: "avatar__icon", innerHTML: this.icon }), r && t("span", { class: "avatar__icon" }, t("flip-icon-person", null)), o && t("span", { class: h, innerHTML: this.badge, ref: (d) => this.badgeEl = d })), this.showLabel && t("span", { "aria-hidden": !0, class: "avatar__label" }, this.label));
|
|
44
|
-
}
|
|
45
|
-
get element() {
|
|
46
|
-
return m(this);
|
|
47
|
-
}
|
|
48
|
-
static get watchers() {
|
|
49
|
-
return {
|
|
50
|
-
src: ["watchSrcProp"]
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
f.style = p;
|
|
55
|
-
export {
|
|
56
|
-
f as flip_avatar
|
|
57
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { r as t, h as e, H as i } from "./index.0ccdd659.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 r = ":host{display:inline-flex;min-width:0;max-width:100%;justify-content:center;align-items:center}:host *{box-sizing:border-box}.badge{display:inline-flex;max-width:100%;justify-content:center;align-items:center;border:0.25rem solid var(--flip-badge-border-color);border-radius:2rem;color:var(--s-text-on-status);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium)}.badge--size-s{min-width:1.5rem;height:1.5rem;font-size:0.75rem}.badge--size-s .badge__label{padding-right:0.1875rem;padding-left:0.1875rem}.badge--size-s .badge__icon>*::part(icon){width:0.75rem;height:0.75rem}.badge--size-m{min-width:2rem;height:2rem}.badge--size-m .badge__label{padding-right:0.375rem;padding-left:0.375rem}.badge--has-icon{padding-right:0;padding-left:0}.badge--intent-critical{background-color:var(--s-surface-critical-default)}.badge--intent-decorative-1{background-color:var(--s-decorative-1-default)}.badge--intent-decorative-2{background-color:var(--s-decorative-2-default)}.badge--intent-decorative-3{color:var(--s-text-default);background-color:var(--s-decorative-3-default)}.badge--intent-decorative-4{color:var(--s-text-default);background-color:var(--s-decorative-4-default)}.badge--intent-decorative-5{background-color:var(--s-decorative-5-default)}.badge--intent-decorative-6{background-color:var(--s-decorative-6-default)}.badge--intent-decorative-7{background-color:var(--s-decorative-7-default)}.badge--variant-dot{width:1.25rem;min-width:0;height:1.25rem}.badge--variant-dot .badge__label{padding-right:0;padding-left:0}.badge--variant-dot .badge__label,.badge--variant-dot .badge__icon{display:none}.badge__icon{display:inline-flex}.badge__icon>*::part(icon){width:1rem;height:1rem}.badge__label{display:inline-flex;overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}", n = class {
|
|
7
|
-
constructor(a) {
|
|
8
|
-
t(this, a), this.intent = "critical", this.size = "m", this.variant = "default";
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const a = d("badge", `badge--intent-${this.intent}`, `badge--size-${this.size}`, `badge--variant-${this.variant}`, {
|
|
12
|
-
"badge--has-icon": this.icon
|
|
13
|
-
});
|
|
14
|
-
return e(i, { role: "status" }, e("span", { class: a }, this.icon && e("span", { class: "badge__icon", innerHTML: this.icon }), this.icon === void 0 && e("span", { class: "badge__label" }, this.label)));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
n.style = r;
|
|
18
|
-
export {
|
|
19
|
-
n as flip_badge
|
|
20
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as e, h as t, H as i } from "./index.0ccdd659.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const a = ":host{display:block}:host *{box-sizing:border-box}.empty-state{display:flex;max-width:28rem;align-items:center;flex-direction:column;gap:var(--s-space-16)}.empty-state__illustration{max-width:16rem}.empty-state__body{display:flex;align-items:center;flex-direction:column;gap:var(--s-space-8)}", l = class {
|
|
5
|
-
constructor(s) {
|
|
6
|
-
e(this, s);
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return t(i, null, t("div", { class: "empty-state" }, this.illustration && t("img", { alt: "", class: "empty-state__illustration", src: this.illustration }), t("div", { class: "empty-state__body" }, this.heading && t("flip-heading", { align: "center", as: "p", text: this.heading }), t("div", { class: "empty-state__content" }, t("flip-text", { align: "center", color: "subdued" }, t("slot", null))))));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
l.style = a;
|
|
13
|
-
export {
|
|
14
|
-
l as flip_empty_state
|
|
15
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { r as x, h as a, H as j } from "./index.0ccdd659.js";
|
|
2
|
-
import { c as E, a as f } from "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
var L = E(function(l, s) {
|
|
6
|
-
(function(w, p) {
|
|
7
|
-
p();
|
|
8
|
-
})(f, function() {
|
|
9
|
-
function w(e, t) {
|
|
10
|
-
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
11
|
-
}
|
|
12
|
-
function p(e, t, r) {
|
|
13
|
-
var i = new XMLHttpRequest();
|
|
14
|
-
i.open("GET", e), i.responseType = "blob", i.onload = function() {
|
|
15
|
-
h(i.response, t, r);
|
|
16
|
-
}, i.onerror = function() {
|
|
17
|
-
console.error("could not download file");
|
|
18
|
-
}, i.send();
|
|
19
|
-
}
|
|
20
|
-
function y(e) {
|
|
21
|
-
var t = new XMLHttpRequest();
|
|
22
|
-
t.open("HEAD", e, !1);
|
|
23
|
-
try {
|
|
24
|
-
t.send();
|
|
25
|
-
} catch {
|
|
26
|
-
}
|
|
27
|
-
return 200 <= t.status && 299 >= t.status;
|
|
28
|
-
}
|
|
29
|
-
function d(e) {
|
|
30
|
-
try {
|
|
31
|
-
e.dispatchEvent(new MouseEvent("click"));
|
|
32
|
-
} catch {
|
|
33
|
-
var t = document.createEvent("MouseEvents");
|
|
34
|
-
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
var n = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof f == "object" && f.global === f ? f : void 0, m = n.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), h = n.saveAs || (typeof window != "object" || window !== n ? function() {
|
|
38
|
-
} : "download" in HTMLAnchorElement.prototype && !m ? function(e, t, r) {
|
|
39
|
-
var i = n.URL || n.webkitURL, o = document.createElement("a");
|
|
40
|
-
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? d(o) : y(o.href) ? p(e, t, r) : d(o, o.target = "_blank")) : (o.href = i.createObjectURL(e), setTimeout(function() {
|
|
41
|
-
i.revokeObjectURL(o.href);
|
|
42
|
-
}, 4e4), setTimeout(function() {
|
|
43
|
-
d(o);
|
|
44
|
-
}, 0));
|
|
45
|
-
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
46
|
-
if (t = t || e.name || "download", typeof e != "string")
|
|
47
|
-
navigator.msSaveOrOpenBlob(w(e, r), t);
|
|
48
|
-
else if (y(e))
|
|
49
|
-
p(e, t, r);
|
|
50
|
-
else {
|
|
51
|
-
var i = document.createElement("a");
|
|
52
|
-
i.href = e, i.target = "_blank", setTimeout(function() {
|
|
53
|
-
d(i);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
} : function(e, t, r, i) {
|
|
57
|
-
if (i = i || open("", "_blank"), i && (i.document.title = i.document.body.innerText = "downloading..."), typeof e == "string")
|
|
58
|
-
return p(e, t, r);
|
|
59
|
-
var o = e.type === "application/octet-stream", b = /constructor/i.test(n.HTMLElement) || n.safari, g = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
60
|
-
if ((g || o && b || m) && typeof FileReader < "u") {
|
|
61
|
-
var u = new FileReader();
|
|
62
|
-
u.onloadend = function() {
|
|
63
|
-
var c = u.result;
|
|
64
|
-
c = g ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), i ? i.location.href = c : location = c, i = null;
|
|
65
|
-
}, u.readAsDataURL(e);
|
|
66
|
-
} else {
|
|
67
|
-
var M = n.URL || n.webkitURL, v = M.createObjectURL(e);
|
|
68
|
-
i ? i.location = v : location.href = v, i = null, setTimeout(function() {
|
|
69
|
-
M.revokeObjectURL(v);
|
|
70
|
-
}, 4e4);
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
n.saveAs = h.saveAs = h, l.exports = h;
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
const R = ":host{display:block;width:100%;height:100%}:host *{box-sizing:border-box}.file-viewer{display:flex;width:100%;height:100%;justify-content:center;align-items:center}.file-viewer__file{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}", A = class {
|
|
77
|
-
constructor(l) {
|
|
78
|
-
x(this, l), this.active = !0, this.errorMessage = "File could not be loaded.", this.typeUnsupportedMessage = "File type is not supported.", this.zoom = 1;
|
|
79
|
-
}
|
|
80
|
-
async download() {
|
|
81
|
-
const l = this.file.split("/").pop();
|
|
82
|
-
L.saveAs(this.file, l);
|
|
83
|
-
}
|
|
84
|
-
async print() {
|
|
85
|
-
this.type === "application/pdf" && this.viewer.print();
|
|
86
|
-
}
|
|
87
|
-
render() {
|
|
88
|
-
const l = !Boolean(this.type) || !this.type.startsWith("image/") && !this.type.startsWith("video/") && !this.type.startsWith("audio/") && this.type !== "text/plain" && this.type !== "text/csv" && this.type !== "application/pdf";
|
|
89
|
-
return a(j, null, a("div", { class: "file-viewer" }, this.type && this.active && a("div", { class: "file-viewer__file" }, this.type.startsWith("image/") && a("flip-file-viewer-image", { description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (s) => this.viewer = s }), this.type === "text/plain" && a("flip-file-viewer-text", { errorMessage: this.errorMessage, file: this.file, ref: (s) => this.viewer = s }), this.type === "text/csv" && a("flip-file-viewer-csv", { errorMessage: this.errorMessage, file: this.file, ref: (s) => this.viewer = s }), this.type === "application/pdf" && a("flip-file-viewer-pdf", { errorMessage: this.errorMessage, file: this.file, ref: (s) => this.viewer = s, zoom: this.zoom }), this.type.startsWith("video/") && a("flip-file-viewer-video", { file: this.file, ref: (s) => this.viewer = s, type: this.type }), this.type.startsWith("audio/") && a("flip-file-viewer-audio", { file: this.file, ref: (s) => this.viewer = s, type: this.type }), l && a("flip-inline-error", { message: this.typeUnsupportedMessage }))));
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
A.style = R;
|
|
93
|
-
export {
|
|
94
|
-
A as flip_file_viewer
|
|
95
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { r as e, h as t, H as i, g as l } from "./index.0ccdd659.js";
|
|
2
|
-
import { c as n } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const a = ".sc-flip-form-control-h{display:block;width:100%}.sc-flip-form-control-h *.sc-flip-form-control{box-sizing:border-box}.form-control.sc-flip-form-control{display:block;width:100%;line-height:var(--s-line-height-sm)}.form-control.form-control--has-focus.sc-flip-form-control:not(.form-control--disabled) .form-control__label.sc-flip-form-control{border-color:var(--s-border-highlight);box-shadow:0 0 0 var(--s-border-width-default) var(--s-border-highlight)}.form-control.sc-flip-form-control:not(.form-control--has-value):not(.form-control--has-focus) .form-control__input.sc-flip-form-control{overflow:hidden;max-height:0}.form-control.sc-flip-form-control:not(.form-control--has-value):not(.form-control--has-focus) .form-control__label-text.sc-flip-form-control{bottom:50%;font-size:var(--s-font-size-base);transform:translateY(50%)}.form-control--invalid.form-control--has-focus.sc-flip-form-control:not(.form-control--disabled) .form-control__label.sc-flip-form-control{border-color:var(--s-border-critical);box-shadow:0 0 0 var(--s-border-width-default) var(--s-border-critical)}.form-control--invalid.sc-flip-form-control .form-control__label.sc-flip-form-control{border-color:var(--s-border-critical)}.form-control--disabled.sc-flip-form-control .form-control__label.sc-flip-form-control{border-color:var(--s-border-disabled);color:var(--s-text-disabled)}.form-control--disabled.sc-flip-form-control .form-control__description.sc-flip-form-control{color:var(--s-text-disabled)}.form-control__label.sc-flip-form-control{position:relative;display:flex;width:100%;min-height:4.375rem;padding:calc(var(--s-space-12) + 1.25rem) var(--s-space-16) var(--s-space-12);justify-content:center;border:var(--s-border-width-default) solid var(--s-border-strong);border-radius:var(--s-border-radius-sm);color:var(--s-text-subdued);flex-direction:column;gap:var(--s-space-2)}.form-control__label-text.sc-flip-form-control{position:absolute;right:var(--s-space-16);bottom:calc(100% - 1.25rem - var(--s-space-12));left:var(--s-space-16);overflow:hidden;font-size:var(--s-font-size-sm);white-space:nowrap;text-overflow:ellipsis;transition:font-size 0.15s, transform 0.15s, top 0.15s;transform:none}.form-control__description.sc-flip-form-control{display:block;margin-top:var(--s-space-4);padding-left:var(--s-space-4);color:var(--s-text-subdued);font-size:var(--s-font-size-sm)}.form-control__error-message.sc-flip-form-control{display:block;margin-top:var(--s-space-4);padding-left:var(--s-space-4)}", c = class {
|
|
7
|
-
constructor(r) {
|
|
8
|
-
e(this, r), this.descriptionId = `form-control-description-${Math.round(Math.random() * 1e5)}`, this.listenToInputValueChanges = () => {
|
|
9
|
-
this.inputEl.addEventListener("valueChange", this.checkInputValue);
|
|
10
|
-
}, this.checkInputValue = () => {
|
|
11
|
-
var o;
|
|
12
|
-
this.inputValue = (o = this.inputEl) === null || o === void 0 ? void 0 : o.value;
|
|
13
|
-
}, this.onFocusIn = () => {
|
|
14
|
-
this.hasFocus = !0;
|
|
15
|
-
}, this.onFocusOut = (o) => {
|
|
16
|
-
Boolean(o.relatedTarget) && (this.hasFocus = !1);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
componentWillLoad() {
|
|
20
|
-
this.inputEl = this.el.children[0], this.associateDescriptionWithInputElement(), this.setInputElementDisabledState(), this.setInputElementInvalidState(), this.checkInputValue(), this.listenToInputValueChanges();
|
|
21
|
-
}
|
|
22
|
-
associateDescriptionWithInputElement() {
|
|
23
|
-
!Boolean(this.description) || !Boolean(this.inputEl) || this.inputEl.setAttribute("flip-aria-describedby", this.descriptionId);
|
|
24
|
-
}
|
|
25
|
-
setInputElementDisabledState() {
|
|
26
|
-
!Boolean(this.inputEl) || (this.disabled ? this.inputEl.setAttribute("disabled", "true") : this.inputEl.removeAttribute("disabled"));
|
|
27
|
-
}
|
|
28
|
-
setInputElementInvalidState() {
|
|
29
|
-
!Boolean(this.inputEl) || (this.invalid ? this.inputEl.setAttribute("invalid", "true") : this.inputEl.removeAttribute("invalid"));
|
|
30
|
-
}
|
|
31
|
-
onWindowClick(r) {
|
|
32
|
-
const o = r.target;
|
|
33
|
-
this.el.contains(o) || (this.hasFocus = !1);
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
const r = Boolean(this.errorMessage), o = Boolean(this.description) && !r, s = n("form-control", {
|
|
37
|
-
"form-control--disabled": this.disabled,
|
|
38
|
-
"form-control--has-focus": this.hasFocus,
|
|
39
|
-
"form-control--has-value": Boolean(this.inputValue),
|
|
40
|
-
"form-control--invalid": this.invalid
|
|
41
|
-
});
|
|
42
|
-
return t(i, { onFocusin: this.onFocusIn, onFocusout: this.onFocusOut }, t("div", { class: s, role: "group" }, t("label", { class: "form-control__label" }, t("span", { class: "form-control__label-text" }, this.label), t("span", { class: "form-control__input" }, t("slot", null))), o && t("span", { class: "form-control__description", id: this.descriptionId }, this.description), r && t("span", { "aria-live": "polite", class: "form-control__error-message", id: this.descriptionId }, t("flip-inline-error", { message: this.errorMessage, size: "s" }))));
|
|
43
|
-
}
|
|
44
|
-
get el() {
|
|
45
|
-
return l(this);
|
|
46
|
-
}
|
|
47
|
-
static get watchers() {
|
|
48
|
-
return {
|
|
49
|
-
description: ["associateDescriptionWithInputElement"],
|
|
50
|
-
disabled: ["setInputElementDisabledState"],
|
|
51
|
-
invalid: ["setInputElementInvalidState"]
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
c.style = a;
|
|
56
|
-
export {
|
|
57
|
-
c as flip_form_control
|
|
58
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as n, h as i, H as s } from "./index.0ccdd659.js";
|
|
2
|
-
import { c as a } from "./index-6d2e18c6.289636d4.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
import "./_commonjsHelpers-44457d8d.ba94af77.js";
|
|
6
|
-
const l = ":host{display:block;width:100%}:host *{box-sizing:border-box}.heading{display:block;width:100%;margin:0;padding:0;text-align:start}.heading--align-start{text-align:start}.heading--align-center{text-align:center}.heading--align-end{text-align:end}.heading--level-1{font-size:var(--s-font-size-2xl);font-weight:var(--s-font-weight-bold);line-height:var(--s-line-height-2xl);letter-spacing:var(--s-letter-spacing-tight)}.heading--level-2{font-size:var(--s-font-size-xl);font-weight:var(--s-font-weight-bold);line-height:var(--s-line-height-xl)}.heading--level-3{font-size:var(--s-font-size-lg);font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-lg)}.heading--level-4,.heading--level-5,.heading--level-6{font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-base)}", h = class {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
n(this, e), this.align = "start", this.level = 1;
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const e = this.as || `h${this.level}`, t = a("heading", `heading--align-${this.align}`, `heading--level-${this.level}`);
|
|
12
|
-
return i(s, null, i(e, { class: t, id: this.headingId, part: "heading" }, this.text));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
h.style = l;
|
|
16
|
-
export {
|
|
17
|
-
h as flip_heading
|
|
18
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t, h as C, F as i } from "./index.0ccdd659.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const l = ":host{display:inline-flex}", r = 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: "M8 12.7666C7.78889 12.7666 7.60845 12.6915 7.45867 12.5413C7.30845 12.3915 7.23334 12.2111 7.23334 11.9999V8.76661H4C3.78889 8.76661 3.60845 8.6915 3.45867 8.54128C3.30845 8.3915 3.23334 8.21105 3.23334 7.99994C3.23334 7.78883 3.30845 7.60839 3.45867 7.45861C3.60845 7.30839 3.78889 7.23328 4 7.23328H7.23334V3.99994C7.23334 3.78883 7.30845 3.60817 7.45867 3.45794C7.60845 3.30817 7.78889 3.23328 8 3.23328C8.21112 3.23328 8.39156 3.30817 8.54134 3.45794C8.69156 3.60817 8.76667 3.78883 8.76667 3.99994V7.23328H12C12.2111 7.23328 12.3916 7.30839 12.5413 7.45861C12.6916 7.60839 12.7667 7.78883 12.7667 7.99994C12.7667 8.21105 12.6916 8.3915 12.5413 8.54128C12.3916 8.6915 12.2111 8.76661 12 8.76661H8.76667V11.9999C8.76667 12.2111 8.69156 12.3915 8.54134 12.5413C8.39156 12.6915 8.21112 12.7666 8 12.7666V12.7666Z", fill: "currentColor" })), this.size === 24 && C(i, null, C("path", { d: "M12 19.15C11.6833 19.15 11.4127 19.0373 11.188 18.812C10.9627 18.5873 10.85 18.3166 10.85 18V13.15H6.00001C5.68334 13.15 5.41267 13.0373 5.18801 12.812C4.96267 12.5873 4.85001 12.3166 4.85001 12C4.85001 11.6833 4.96267 11.4126 5.18801 11.188C5.41267 10.9626 5.68334 10.85 6.00001 10.85H10.85V5.99998C10.85 5.68331 10.9627 5.41231 11.188 5.18698C11.4127 4.96231 11.6833 4.84998 12 4.84998C12.3167 4.84998 12.5873 4.96231 12.812 5.18698C13.0373 5.41231 13.15 5.68331 13.15 5.99998V10.85H18C18.3167 10.85 18.5873 10.9626 18.812 11.188C19.0373 11.4126 19.15 11.6833 19.15 12C19.15 12.3166 19.0373 12.5873 18.812 12.812C18.5873 13.0373 18.3167 13.15 18 13.15H13.15V18C13.15 18.3166 13.0373 18.5873 12.812 18.812C12.5873 19.0373 12.3167 19.15 12 19.15Z", fill: "currentColor" })), this.size === 28 && C(i, null, C("path", { d: "M14 22.3417C13.6305 22.3417 13.3148 22.2102 13.0527 21.9473C12.7898 21.6852 12.6583 21.3694 12.6583 21V15.3417H6.99999C6.63055 15.3417 6.31477 15.2102 6.05266 14.9473C5.78977 14.6852 5.65833 14.3694 5.65833 14C5.65833 13.6305 5.78977 13.3148 6.05266 13.0527C6.31477 12.7898 6.63055 12.6583 6.99999 12.6583H12.6583V6.99999C12.6583 6.63055 12.7898 6.31438 13.0527 6.05149C13.3148 5.78938 13.6305 5.65833 14 5.65833C14.3694 5.65833 14.6852 5.78938 14.9473 6.05149C15.2102 6.31438 15.3417 6.63055 15.3417 6.99999V12.6583H21C21.3694 12.6583 21.6852 12.7898 21.9473 13.0527C22.2102 13.3148 22.3417 13.6305 22.3417 14C22.3417 14.3694 22.2102 14.6852 21.9473 14.9473C21.6852 15.2102 21.3694 15.3417 21 15.3417H15.3417V21C15.3417 21.3694 15.2102 21.6852 14.9473 21.9473C14.6852 22.2102 14.3694 22.3417 14 22.3417V22.3417Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
r.style = l;
|
|
13
|
-
export {
|
|
14
|
-
r as flip_icon_add
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t, h as C, F as i } from "./index.0ccdd659.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const l = ":host{display:inline-flex}", e = 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: "M8 1.33337C4.31334 1.33337 1.33334 4.31337 1.33334 8.00004C1.33334 11.6867 4.31334 14.6667 8 14.6667C11.6867 14.6667 14.6667 11.6867 14.6667 8.00004C14.6667 4.31337 11.6867 1.33337 8 1.33337ZM10.8667 10.8667C10.6067 11.1267 10.1867 11.1267 9.92667 10.8667L8 8.94004L6.07334 10.8667C5.81334 11.1267 5.39334 11.1267 5.13334 10.8667C4.87334 10.6067 4.87334 10.1867 5.13334 9.92671L7.06 8.00004L5.13334 6.07337C4.87334 5.81337 4.87334 5.39337 5.13334 5.13337C5.39334 4.87337 5.81334 4.87337 6.07334 5.13337L8 7.06004L9.92667 5.13337C10.1867 4.87337 10.6067 4.87337 10.8667 5.13337C11.1267 5.39337 11.1267 5.81337 10.8667 6.07337L8.94 8.00004L10.8667 9.92671C11.12 10.18 11.12 10.6067 10.8667 10.8667Z", fill: "currentColor" })), this.size === 24 && C(i, null, C("path", { d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM16.3 16.3C15.91 16.69 15.28 16.69 14.89 16.3L12 13.41L9.11 16.3C8.72 16.69 8.09 16.69 7.7 16.3C7.31 15.91 7.31 15.28 7.7 14.89L10.59 12L7.7 9.11C7.31 8.72 7.31 8.09 7.7 7.7C8.09 7.31 8.72 7.31 9.11 7.7L12 10.59L14.89 7.7C15.28 7.31 15.91 7.31 16.3 7.7C16.69 8.09 16.69 8.72 16.3 9.11L13.41 12L16.3 14.89C16.68 15.27 16.68 15.91 16.3 16.3Z", fill: "currentColor" })), this.size === 28 && C(i, null, C("path", { d: "M14 2.33337C7.54834 2.33337 2.33334 7.54837 2.33334 14C2.33334 20.4517 7.54834 25.6667 14 25.6667C20.4517 25.6667 25.6667 20.4517 25.6667 14C25.6667 7.54837 20.4517 2.33337 14 2.33337ZM19.0167 19.0167C18.5617 19.4717 17.8267 19.4717 17.3717 19.0167L14 15.645L10.6283 19.0167C10.1733 19.4717 9.43834 19.4717 8.98334 19.0167C8.52834 18.5617 8.52834 17.8267 8.98334 17.3717L12.355 14L8.98334 10.6284C8.52834 10.1734 8.52834 9.43837 8.98334 8.98337C9.43834 8.52837 10.1733 8.52837 10.6283 8.98337L14 12.355L17.3717 8.98337C17.8267 8.52837 18.5617 8.52837 19.0167 8.98337C19.4717 9.43837 19.4717 10.1734 19.0167 10.6284L15.645 14L19.0167 17.3717C19.46 17.815 19.46 18.5617 19.0167 19.0167Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
e.style = l;
|
|
13
|
-
export {
|
|
14
|
-
e as flip_icon_cancel
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as s, h as l, F as e } from "./index.0ccdd659.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const t = ":host{display:inline-flex}", r = class {
|
|
5
|
-
constructor(i) {
|
|
6
|
-
s(this, i), this.size = 24;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return l("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 && l(e, null, l("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.4142 4.91924C12.8047 5.30976 12.8047 5.94293 12.4142 6.33345L7.08086 11.6667C6.69033 12.0572 6.05717 12.0572 5.66664 11.6667L3.70711 9.70707C3.31658 9.31655 3.31658 8.68338 3.70711 8.29286C4.09763 7.90233 4.7308 7.90233 5.12132 8.29286L6.37375 9.54539L11 4.91924C11.3905 4.52871 12.0237 4.52871 12.4142 4.91924Z", fill: "currentColor" })), this.size === 24 && l(e, null, l("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.6213 7.37879C19.2071 7.96458 19.2071 8.91433 18.6213 9.50011L10.6213 17.5C10.0355 18.0858 9.08577 18.0858 8.49998 17.5L5.56068 14.5605C4.97489 13.9748 4.97489 13.025 5.56068 12.4392C6.14646 11.8534 7.09621 11.8534 7.682 12.4392L9.56064 14.318L16.5 7.37879C17.0858 6.79301 18.0355 6.79301 18.6213 7.37879Z", fill: "currentColor" })), this.size === 28 && l(e, null, l("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M21.7248 8.60863C22.4083 9.29205 22.4083 10.4001 21.7248 11.0835L12.3915 20.4167C11.7081 21.1001 10.6001 21.1001 9.91663 20.4167L6.48744 16.9873C5.80403 16.3039 5.80403 15.1959 6.48744 14.5125C7.17086 13.8291 8.2789 13.8291 8.96232 14.5125L11.1541 16.7044L19.25 8.60863C19.9334 7.92521 21.0414 7.92521 21.7248 8.60863Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
r.style = t;
|
|
13
|
-
export {
|
|
14
|
-
r as flip_icon_check_small
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t, h as C, F as i } from "./index.0ccdd659.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const l = ":host{display:inline-flex}", e = 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: "M6 12.8167C5.78889 12.8167 5.60845 12.7445 5.45867 12.6C5.30845 12.4556 5.23333 12.2778 5.23333 12.0667V10.7667H3.93333C3.72222 10.7667 3.54445 10.6916 3.4 10.5414C3.25556 10.3916 3.18333 10.2111 3.18333 10C3.18333 9.78891 3.25556 9.60846 3.4 9.45868C3.54445 9.30846 3.72222 9.23335 3.93333 9.23335H6C6.21111 9.23335 6.39156 9.30846 6.54133 9.45868C6.69156 9.60846 6.76667 9.78891 6.76667 10V12.0667C6.76667 12.2778 6.69156 12.4556 6.54133 12.6C6.39156 12.7445 6.21111 12.8167 6 12.8167V12.8167ZM3.93333 6.76668C3.72222 6.76668 3.54445 6.69157 3.4 6.54135C3.25556 6.39157 3.18333 6.21113 3.18333 6.00002C3.18333 5.78891 3.25556 5.60824 3.4 5.45802C3.54445 5.30824 3.72222 5.23335 3.93333 5.23335H5.23333V3.93335C5.23333 3.72224 5.30845 3.54446 5.45867 3.40002C5.60845 3.25557 5.78889 3.18335 6 3.18335C6.21111 3.18335 6.39156 3.25557 6.54133 3.40002C6.69156 3.54446 6.76667 3.72224 6.76667 3.93335V6.00002C6.76667 6.21113 6.69156 6.39157 6.54133 6.54135C6.39156 6.69157 6.21111 6.76668 6 6.76668H3.93333ZM10 12.8167C9.78889 12.8167 9.60845 12.7445 9.45867 12.6C9.30845 12.4556 9.23334 12.2778 9.23334 12.0667V10C9.23334 9.78891 9.30845 9.60846 9.45867 9.45868C9.60845 9.30846 9.78889 9.23335 10 9.23335H12.0667C12.2778 9.23335 12.4556 9.30846 12.6 9.45868C12.7444 9.60846 12.8167 9.78891 12.8167 10C12.8167 10.2111 12.7444 10.3916 12.6 10.5414C12.4556 10.6916 12.2778 10.7667 12.0667 10.7667H10.7667V12.0667C10.7667 12.2778 10.6918 12.4556 10.542 12.6C10.3918 12.7445 10.2111 12.8167 10 12.8167V12.8167ZM10 6.76668C9.78889 6.76668 9.60845 6.69157 9.45867 6.54135C9.30845 6.39157 9.23334 6.21113 9.23334 6.00002V3.93335C9.23334 3.72224 9.30845 3.54446 9.45867 3.40002C9.60845 3.25557 9.78889 3.18335 10 3.18335C10.2111 3.18335 10.3918 3.25557 10.542 3.40002C10.6918 3.54446 10.7667 3.72224 10.7667 3.93335V5.23335H12.0667C12.2778 5.23335 12.4556 5.30824 12.6 5.45802C12.7444 5.60824 12.8167 5.78891 12.8167 6.00002C12.8167 6.21113 12.7444 6.39157 12.6 6.54135C12.4556 6.69157 12.2778 6.76668 12.0667 6.76668H10Z", fill: "currentColor" })), this.size === 24 && C(i, null, C("path", { d: "M9 19.225C8.68333 19.225 8.41267 19.1167 8.188 18.9C7.96267 18.6834 7.85 18.4167 7.85 18.1V16.15H5.9C5.58333 16.15 5.31667 16.0374 5.1 15.812C4.88333 15.5874 4.775 15.3167 4.775 15C4.775 14.6834 4.88333 14.4127 5.1 14.188C5.31667 13.9627 5.58333 13.85 5.9 13.85H9C9.31667 13.85 9.58733 13.9627 9.812 14.188C10.0373 14.4127 10.15 14.6834 10.15 15V18.1C10.15 18.4167 10.0373 18.6834 9.812 18.9C9.58733 19.1167 9.31667 19.225 9 19.225V19.225ZM5.9 10.15C5.58333 10.15 5.31667 10.0374 5.1 9.81202C4.88333 9.58736 4.775 9.31669 4.775 9.00002C4.775 8.68336 4.88333 8.41236 5.1 8.18702C5.31667 7.96236 5.58333 7.85002 5.9 7.85002H7.85V5.90002C7.85 5.58336 7.96267 5.31669 8.188 5.10002C8.41267 4.88336 8.68333 4.77502 9 4.77502C9.31667 4.77502 9.58733 4.88336 9.812 5.10002C10.0373 5.31669 10.15 5.58336 10.15 5.90002V9.00002C10.15 9.31669 10.0373 9.58736 9.812 9.81202C9.58733 10.0374 9.31667 10.15 9 10.15H5.9ZM15 19.225C14.6833 19.225 14.4127 19.1167 14.188 18.9C13.9627 18.6834 13.85 18.4167 13.85 18.1V15C13.85 14.6834 13.9627 14.4127 14.188 14.188C14.4127 13.9627 14.6833 13.85 15 13.85H18.1C18.4167 13.85 18.6833 13.9627 18.9 14.188C19.1167 14.4127 19.225 14.6834 19.225 15C19.225 15.3167 19.1167 15.5874 18.9 15.812C18.6833 16.0374 18.4167 16.15 18.1 16.15H16.15V18.1C16.15 18.4167 16.0377 18.6834 15.813 18.9C15.5877 19.1167 15.3167 19.225 15 19.225V19.225ZM15 10.15C14.6833 10.15 14.4127 10.0374 14.188 9.81202C13.9627 9.58736 13.85 9.31669 13.85 9.00002V5.90002C13.85 5.58336 13.9627 5.31669 14.188 5.10002C14.4127 4.88336 14.6833 4.77502 15 4.77502C15.3167 4.77502 15.5877 4.88336 15.813 5.10002C16.0377 5.31669 16.15 5.58336 16.15 5.90002V7.85002H18.1C18.4167 7.85002 18.6833 7.96236 18.9 8.18702C19.1167 8.41236 19.225 8.68336 19.225 9.00002C19.225 9.31669 19.1167 9.58736 18.9 9.81202C18.6833 10.0374 18.4167 10.15 18.1 10.15H15Z", fill: "currentColor" })), this.size === 28 && C(i, null, C("path", { d: "M10.5 22.4291C10.1306 22.4291 9.81478 22.3027 9.55266 22.05C9.28978 21.7972 9.15833 21.4861 9.15833 21.1166V18.8416H6.88333C6.51389 18.8416 6.20278 18.7102 5.95 18.4473C5.69722 18.1852 5.57083 17.8694 5.57083 17.5C5.57083 17.1305 5.69722 16.8147 5.95 16.5526C6.20278 16.2897 6.51389 16.1583 6.88333 16.1583H10.5C10.8694 16.1583 11.1852 16.2897 11.4473 16.5526C11.7102 16.8147 11.8417 17.1305 11.8417 17.5V21.1166C11.8417 21.4861 11.7102 21.7972 11.4473 22.05C11.1852 22.3027 10.8694 22.4291 10.5 22.4291V22.4291ZM6.88333 11.8416C6.51389 11.8416 6.20278 11.7102 5.95 11.4473C5.69722 11.1852 5.57083 10.8694 5.57083 10.5C5.57083 10.1305 5.69722 9.81436 5.95 9.55147C6.20278 9.28936 6.51389 9.1583 6.88333 9.1583H9.15833V6.8833C9.15833 6.51386 9.28978 6.20274 9.55266 5.94997C9.81478 5.69719 10.1306 5.5708 10.5 5.5708C10.8694 5.5708 11.1852 5.69719 11.4473 5.94997C11.7102 6.20274 11.8417 6.51386 11.8417 6.8833V10.5C11.8417 10.8694 11.7102 11.1852 11.4473 11.4473C11.1852 11.7102 10.8694 11.8416 10.5 11.8416H6.88333ZM17.5 22.4291C17.1306 22.4291 16.8148 22.3027 16.5527 22.05C16.2898 21.7972 16.1583 21.4861 16.1583 21.1166V17.5C16.1583 17.1305 16.2898 16.8147 16.5527 16.5526C16.8148 16.2897 17.1306 16.1583 17.5 16.1583H21.1167C21.4861 16.1583 21.7972 16.2897 22.05 16.5526C22.3028 16.8147 22.4292 17.1305 22.4292 17.5C22.4292 17.8694 22.3028 18.1852 22.05 18.4473C21.7972 18.7102 21.4861 18.8416 21.1167 18.8416H18.8417V21.1166C18.8417 21.4861 18.7106 21.7972 18.4485 22.05C18.1856 22.3027 17.8694 22.4291 17.5 22.4291V22.4291ZM17.5 11.8416C17.1306 11.8416 16.8148 11.7102 16.5527 11.4473C16.2898 11.1852 16.1583 10.8694 16.1583 10.5V6.8833C16.1583 6.51386 16.2898 6.20274 16.5527 5.94997C16.8148 5.69719 17.1306 5.5708 17.5 5.5708C17.8694 5.5708 18.1856 5.69719 18.4485 5.94997C18.7106 6.20274 18.8417 6.51386 18.8417 6.8833V9.1583H21.1167C21.4861 9.1583 21.7972 9.28936 22.05 9.55147C22.3028 9.81436 22.4292 10.1305 22.4292 10.5C22.4292 10.8694 22.3028 11.1852 22.05 11.4473C21.7972 11.7102 21.4861 11.8416 21.1167 11.8416H17.5Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
e.style = l;
|
|
13
|
-
export {
|
|
14
|
-
e as flip_icon_fullscreen_exit
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t, h as C, F as s } from "./index.0ccdd659.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const l = ":host{display:inline-flex}", V = class {
|
|
5
|
-
constructor(i) {
|
|
6
|
-
t(this, i), 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(s, null, C("path", { d: "M3.93333 12.8167C3.72222 12.8167 3.54445 12.7445 3.4 12.6C3.25556 12.4556 3.18333 12.2778 3.18333 12.0667V10C3.18333 9.78891 3.25556 9.60846 3.4 9.45868C3.54445 9.30846 3.72222 9.23335 3.93333 9.23335C4.15556 9.23335 4.33889 9.30846 4.48333 9.45868C4.62778 9.60846 4.7 9.78891 4.7 10V11.3H6C6.21111 11.3 6.39156 11.3722 6.54133 11.5167C6.69156 11.6611 6.76667 11.8445 6.76667 12.0667C6.76667 12.2778 6.69156 12.4556 6.54133 12.6C6.39156 12.7445 6.21111 12.8167 6 12.8167H3.93333ZM3.93333 6.76668C3.72222 6.76668 3.54445 6.69157 3.4 6.54135C3.25556 6.39157 3.18333 6.21113 3.18333 6.00002V3.93335C3.18333 3.72224 3.25556 3.54446 3.4 3.40002C3.54445 3.25557 3.72222 3.18335 3.93333 3.18335H6C6.21111 3.18335 6.39156 3.25557 6.54133 3.40002C6.69156 3.54446 6.76667 3.72224 6.76667 3.93335C6.76667 4.15557 6.69156 4.33891 6.54133 4.48335C6.39156 4.62779 6.21111 4.70002 6 4.70002H4.7V6.00002C4.7 6.21113 4.62778 6.39157 4.48333 6.54135C4.33889 6.69157 4.15556 6.76668 3.93333 6.76668V6.76668ZM10 12.8167C9.78889 12.8167 9.60845 12.7445 9.45867 12.6C9.30845 12.4556 9.23334 12.2778 9.23334 12.0667C9.23334 11.8445 9.30845 11.6611 9.45867 11.5167C9.60845 11.3722 9.78889 11.3 10 11.3H11.3V10C11.3 9.78891 11.3722 9.60846 11.5167 9.45868C11.6611 9.30846 11.8444 9.23335 12.0667 9.23335C12.2778 9.23335 12.4556 9.30846 12.6 9.45868C12.7444 9.60846 12.8167 9.78891 12.8167 10V12.0667C12.8167 12.2778 12.7444 12.4556 12.6 12.6C12.4556 12.7445 12.2778 12.8167 12.0667 12.8167H10ZM12.0667 6.76668C11.8444 6.76668 11.6611 6.69157 11.5167 6.54135C11.3722 6.39157 11.3 6.21113 11.3 6.00002V4.70002H10C9.78889 4.70002 9.60845 4.62779 9.45867 4.48335C9.30845 4.33891 9.23334 4.15557 9.23334 3.93335C9.23334 3.72224 9.30845 3.54446 9.45867 3.40002C9.60845 3.25557 9.78889 3.18335 10 3.18335H12.0667C12.2778 3.18335 12.4556 3.25557 12.6 3.40002C12.7444 3.54446 12.8167 3.72224 12.8167 3.93335V6.00002C12.8167 6.21113 12.7444 6.39157 12.6 6.54135C12.4556 6.69157 12.2778 6.76668 12.0667 6.76668V6.76668Z", fill: "currentColor" })), this.size === 24 && C(s, null, C("path", { d: "M5.9 19.225C5.58333 19.225 5.31667 19.1167 5.1 18.9C4.88333 18.6834 4.775 18.4167 4.775 18.1V15C4.775 14.6834 4.88333 14.4127 5.1 14.188C5.31667 13.9627 5.58333 13.85 5.9 13.85C6.23333 13.85 6.50833 13.9627 6.725 14.188C6.94167 14.4127 7.05 14.6834 7.05 15V16.95H9C9.31667 16.95 9.58733 17.0584 9.812 17.275C10.0373 17.4917 10.15 17.7667 10.15 18.1C10.15 18.4167 10.0373 18.6834 9.812 18.9C9.58733 19.1167 9.31667 19.225 9 19.225H5.9ZM5.9 10.15C5.58333 10.15 5.31667 10.0374 5.1 9.81202C4.88333 9.58736 4.775 9.31669 4.775 9.00002V5.90002C4.775 5.58336 4.88333 5.31669 5.1 5.10002C5.31667 4.88336 5.58333 4.77502 5.9 4.77502H9C9.31667 4.77502 9.58733 4.88336 9.812 5.10002C10.0373 5.31669 10.15 5.58336 10.15 5.90002C10.15 6.23336 10.0373 6.50836 9.812 6.72502C9.58733 6.94169 9.31667 7.05002 9 7.05002H7.05V9.00002C7.05 9.31669 6.94167 9.58736 6.725 9.81202C6.50833 10.0374 6.23333 10.15 5.9 10.15V10.15ZM15 19.225C14.6833 19.225 14.4127 19.1167 14.188 18.9C13.9627 18.6834 13.85 18.4167 13.85 18.1C13.85 17.7667 13.9627 17.4917 14.188 17.275C14.4127 17.0584 14.6833 16.95 15 16.95H16.95V15C16.95 14.6834 17.0583 14.4127 17.275 14.188C17.4917 13.9627 17.7667 13.85 18.1 13.85C18.4167 13.85 18.6833 13.9627 18.9 14.188C19.1167 14.4127 19.225 14.6834 19.225 15V18.1C19.225 18.4167 19.1167 18.6834 18.9 18.9C18.6833 19.1167 18.4167 19.225 18.1 19.225H15ZM18.1 10.15C17.7667 10.15 17.4917 10.0374 17.275 9.81202C17.0583 9.58736 16.95 9.31669 16.95 9.00002V7.05002H15C14.6833 7.05002 14.4127 6.94169 14.188 6.72502C13.9627 6.50836 13.85 6.23336 13.85 5.90002C13.85 5.58336 13.9627 5.31669 14.188 5.10002C14.4127 4.88336 14.6833 4.77502 15 4.77502H18.1C18.4167 4.77502 18.6833 4.88336 18.9 5.10002C19.1167 5.31669 19.225 5.58336 19.225 5.90002V9.00002C19.225 9.31669 19.1167 9.58736 18.9 9.81202C18.6833 10.0374 18.4167 10.15 18.1 10.15V10.15Z", fill: "currentColor" })), this.size === 28 && C(s, null, C("path", { d: "M6.88333 22.4291C6.51389 22.4291 6.20278 22.3027 5.95 22.05C5.69722 21.7972 5.57083 21.4861 5.57083 21.1166V17.5C5.57083 17.1305 5.69722 16.8147 5.95 16.5526C6.20278 16.2897 6.51389 16.1583 6.88333 16.1583C7.27222 16.1583 7.59305 16.2897 7.84583 16.5526C8.09861 16.8147 8.225 17.1305 8.225 17.5V19.775H10.5C10.8694 19.775 11.1852 19.9014 11.4473 20.1541C11.7102 20.4069 11.8417 20.7277 11.8417 21.1166C11.8417 21.4861 11.7102 21.7972 11.4473 22.05C11.1852 22.3027 10.8694 22.4291 10.5 22.4291H6.88333ZM6.88333 11.8416C6.51389 11.8416 6.20278 11.7102 5.95 11.4473C5.69722 11.1852 5.57083 10.8694 5.57083 10.5V6.8833C5.57083 6.51386 5.69722 6.20274 5.95 5.94997C6.20278 5.69719 6.51389 5.5708 6.88333 5.5708H10.5C10.8694 5.5708 11.1852 5.69719 11.4473 5.94997C11.7102 6.20274 11.8417 6.51386 11.8417 6.8833C11.8417 7.27219 11.7102 7.59302 11.4473 7.8458C11.1852 8.09858 10.8694 8.22497 10.5 8.22497H8.225V10.5C8.225 10.8694 8.09861 11.1852 7.84583 11.4473C7.59305 11.7102 7.27222 11.8416 6.88333 11.8416V11.8416ZM17.5 22.4291C17.1306 22.4291 16.8148 22.3027 16.5527 22.05C16.2898 21.7972 16.1583 21.4861 16.1583 21.1166C16.1583 20.7277 16.2898 20.4069 16.5527 20.1541C16.8148 19.9014 17.1306 19.775 17.5 19.775H19.775V17.5C19.775 17.1305 19.9014 16.8147 20.1542 16.5526C20.4069 16.2897 20.7278 16.1583 21.1167 16.1583C21.4861 16.1583 21.7972 16.2897 22.05 16.5526C22.3028 16.8147 22.4292 17.1305 22.4292 17.5V21.1166C22.4292 21.4861 22.3028 21.7972 22.05 22.05C21.7972 22.3027 21.4861 22.4291 21.1167 22.4291H17.5ZM21.1167 11.8416C20.7278 11.8416 20.4069 11.7102 20.1542 11.4473C19.9014 11.1852 19.775 10.8694 19.775 10.5V8.22497H17.5C17.1306 8.22497 16.8148 8.09858 16.5527 7.8458C16.2898 7.59302 16.1583 7.27219 16.1583 6.8833C16.1583 6.51386 16.2898 6.20274 16.5527 5.94997C16.8148 5.69719 17.1306 5.5708 17.5 5.5708H21.1167C21.4861 5.5708 21.7972 5.69719 22.05 5.94997C22.3028 6.20274 22.4292 6.51386 22.4292 6.8833V10.5C22.4292 10.8694 22.3028 11.1852 22.05 11.4473C21.7972 11.7102 21.4861 11.8416 21.1167 11.8416V11.8416Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
V.style = l;
|
|
13
|
-
export {
|
|
14
|
-
V as flip_icon_fullscreen
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as e, h as i, F as s } from "./index.0ccdd659.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const l = ":host{display:inline-flex}", C = class {
|
|
5
|
-
constructor(t) {
|
|
6
|
-
e(this, t), this.size = 24;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return i("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 && i(s, null, i("path", { d: "M4 8.76661C3.78889 8.76661 3.60844 8.6915 3.45866 8.54128C3.30844 8.3915 3.23333 8.21105 3.23333 7.99994C3.23333 7.78883 3.30844 7.60839 3.45866 7.45861C3.60844 7.30839 3.78889 7.23328 4 7.23328H12C12.2111 7.23328 12.3916 7.30839 12.5413 7.45861C12.6916 7.60839 12.7667 7.78883 12.7667 7.99994C12.7667 8.21105 12.6916 8.3915 12.5413 8.54128C12.3916 8.6915 12.2111 8.76661 12 8.76661H4Z", fill: "currentColor" })), this.size === 24 && i(s, null, i("path", { d: "M6 13.15C5.68333 13.15 5.41267 13.0373 5.188 12.812C4.96267 12.5873 4.85 12.3166 4.85 12C4.85 11.6833 4.96267 11.4126 5.188 11.188C5.41267 10.9626 5.68333 10.85 6 10.85H18C18.3167 10.85 18.5873 10.9626 18.812 11.188C19.0373 11.4126 19.15 11.6833 19.15 12C19.15 12.3166 19.0373 12.5873 18.812 12.812C18.5873 13.0373 18.3167 13.15 18 13.15H6Z", fill: "currentColor" })), this.size === 28 && i(s, null, i("path", { d: "M7 15.3417C6.63056 15.3417 6.31478 15.2102 6.05267 14.9473C5.78978 14.6852 5.65833 14.3694 5.65833 14C5.65833 13.6305 5.78978 13.3148 6.05267 13.0527C6.31478 12.7898 6.63056 12.6583 7 12.6583H21C21.3694 12.6583 21.6852 12.7898 21.9473 13.0527C22.2102 13.3148 22.3417 13.6305 22.3417 14C22.3417 14.3694 22.2102 14.6852 21.9473 14.9473C21.6852 15.2102 21.3694 15.3417 21 15.3417H7Z", fill: "currentColor" })));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
C.style = l;
|
|
13
|
-
export {
|
|
14
|
-
C as flip_icon_remove
|
|
15
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { r as a, h as i, H as r } from "./index.0ccdd659.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 p = ":host{display:inline-flex;width:100%}:host *{box-sizing:border-box}.option-list-item{display:inline-flex;width:100%;min-height:3rem;padding:var(--s-space-12) var(--s-space-16);align-items:center;background-color:var(--s-surface-overlay-default);cursor:pointer;gap:var(--s-space-12)}.option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-hovered)}.option-list-item:active:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item:focus{background-color:var(--s-surface-overlay-hovered);outline:none}.option-list-item--selected .option-list-item__label{color:var(--s-text-highlight)}.option-list-item--selected .option-list-item__icon{color:var(--s-icon-highlight)}.option-list-item--selected .option-list-item__checkbox-box{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.option-list-item--disabled{cursor:default}.option-list-item--disabled.option-list-item--selected .option-list-item__checkbox-box{background-color:var(--s-icon-disabled)}.option-list-item--disabled.option-list-item--selected .option-list-item__checkbox-icon{color:var(--s-text-on-status)}.option-list-item--disabled .option-list-item__label{color:var(--s-text-disabled)}.option-list-item--disabled .option-list-item__icon,.option-list-item--disabled .option-list-item__selection-icon,.option-list-item--disabled .option-list-item__checkbox-icon{color:var(--s-icon-disabled)}.option-list-item--disabled .option-list-item__checkbox-box{border-color:var(--s-icon-disabled);background-color:var(--s-surface-overlay-default)}.option-list-item__label{flex-grow:1;color:var(--s-text-default);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}.option-list-item__icon{display:inline-flex;flex-shrink:0;color:var(--s-icon-default)}.option-list-item__selection-icon{display:inline-flex;flex-shrink:0;color:var(--s-icon-highlight)}.option-list-item__checkbox{display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2)}.option-list-item__checkbox-box{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s)}.option-list-item__checkbox-icon{display:inline-flex}", h = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
a(this, t), this.context = "single-select", this.selected = !1;
|
|
9
|
-
}
|
|
10
|
-
componentDidLoad() {
|
|
11
|
-
this.forceIconProps();
|
|
12
|
-
}
|
|
13
|
-
forceIconProps() {
|
|
14
|
-
if (!Boolean(this.iconEl))
|
|
15
|
-
return;
|
|
16
|
-
const t = this.iconEl.children[0];
|
|
17
|
-
t == null || t.setAttribute("size", "24");
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
const t = this.disabled ? "true" : void 0, o = String(this.selected), e = this.context === "multi-select", s = Boolean(this.icon) && this.context === "single-select", l = this.selected && this.context === "single-select", n = d("option-list-item", `option-list-item--context-${this.context}`, {
|
|
21
|
-
"option-list-item--disabled": this.disabled,
|
|
22
|
-
"option-list-item--selected": this.selected
|
|
23
|
-
});
|
|
24
|
-
return i(r, null, i("div", { "aria-disabled": t, "aria-selected": o, class: n, role: "option" }, s && i("span", { class: "option-list-item__icon", innerHTML: this.icon, ref: (c) => this.iconEl = c }), e && i("span", { class: "option-list-item__checkbox" }, i("span", { class: "option-list-item__checkbox-box" }, this.selected && i("flip-icon-check-strong", { class: "option-list-item__checkbox-icon", size: 16 }))), i("span", { class: "option-list-item__label" }, this.label), l && i("span", { class: "option-list-item__selection-icon" }, i("flip-icon-check-small", null))));
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
h.style = p;
|
|
28
|
-
export {
|
|
29
|
-
h as flip_option_list_item
|
|
30
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { r as o, c, h as l, H as h, g as n } from "./index.0ccdd659.js";
|
|
2
|
-
import { q as u } from "./utils-b46bcd4f.79126bb2.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
const d = ":host{display:block}:host *{box-sizing:border-box}", r = class {
|
|
6
|
-
constructor(t) {
|
|
7
|
-
o(this, t), this.valueChange = c(this, "valueChange", 7), this.value = [], this.onFocus = () => {
|
|
8
|
-
this.focusItem(0);
|
|
9
|
-
}, this.onClick = (e) => {
|
|
10
|
-
const s = e.target, i = s == null ? void 0 : s.closest("flip-option-list-item");
|
|
11
|
-
!Boolean(i) || this.selectItem(this.items.findIndex((a) => a.value === i.value));
|
|
12
|
-
}, this.onKeyDown = (e) => {
|
|
13
|
-
e.code === "ArrowDown" ? (e.preventDefault(), this.focusNextItem()) : e.code === "ArrowUp" ? (e.preventDefault(), this.focusPreviousItem()) : e.code === "Space" ? (e.preventDefault(), this.selectFocusedItem()) : e.code === "Home" ? (e.preventDefault(), this.focusItem(0)) : e.code === "End" ? (e.preventDefault(), this.focusItem(this.items.length - 1)) : e.code === "KeyA" && (e.metaKey || e.ctrlKey) && this.multiSelect && (e.preventDefault(), this.selectAllItems());
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
componentDidLoad() {
|
|
17
|
-
this.items = u(this.el, "flip-option-list-item"), this.setItemDisabledState(), this.setItemContext(), this.syncItemsWithValue();
|
|
18
|
-
}
|
|
19
|
-
watchDisabled() {
|
|
20
|
-
this.setItemDisabledState();
|
|
21
|
-
}
|
|
22
|
-
watchMultiSelect() {
|
|
23
|
-
this.setItemContext();
|
|
24
|
-
}
|
|
25
|
-
watchValue() {
|
|
26
|
-
this.syncItemsWithValue();
|
|
27
|
-
}
|
|
28
|
-
setItemDisabledState() {
|
|
29
|
-
this.items.forEach((t) => t.disabled = this.disabled);
|
|
30
|
-
}
|
|
31
|
-
setItemContext() {
|
|
32
|
-
this.multiSelect ? this.items.forEach((t) => t.context = "multi-select") : (this.items.forEach((t) => t.context = "single-select"), this.value.length > 1 && this.updateValue([this.value[0]]));
|
|
33
|
-
}
|
|
34
|
-
selectItem(t) {
|
|
35
|
-
if (this.disabled)
|
|
36
|
-
return;
|
|
37
|
-
const e = this.items[t], s = this.value.includes(e.value);
|
|
38
|
-
this.multiSelect || (this.value = []), s ? this.updateValue(this.value.filter((i) => i !== e.value)) : this.updateValue([...this.value, e.value]);
|
|
39
|
-
}
|
|
40
|
-
updateValue(t) {
|
|
41
|
-
this.value = t, this.valueChange.emit(this.value);
|
|
42
|
-
}
|
|
43
|
-
selectFocusedItem() {
|
|
44
|
-
this.disabled || this.getActiveItemIndex() === -1 || this.selectItem(this.getActiveItemIndex());
|
|
45
|
-
}
|
|
46
|
-
selectAllItems() {
|
|
47
|
-
if (this.disabled)
|
|
48
|
-
return;
|
|
49
|
-
this.items.every((e) => this.value.includes(e.value)) ? this.updateValue([]) : this.updateValue(this.items.map((e) => e.value));
|
|
50
|
-
}
|
|
51
|
-
syncItemsWithValue() {
|
|
52
|
-
this.items.forEach((t) => t.selected = this.value.includes(t.value));
|
|
53
|
-
}
|
|
54
|
-
focusItem(t) {
|
|
55
|
-
if (this.disabled)
|
|
56
|
-
return;
|
|
57
|
-
this.items.forEach((s) => s.shadowRoot.children[0].removeAttribute("tabIndex"));
|
|
58
|
-
const e = this.items[t].shadowRoot.children[0];
|
|
59
|
-
!Boolean(e) || (e.setAttribute("tabIndex", "0"), e.focus());
|
|
60
|
-
}
|
|
61
|
-
focusNextItem() {
|
|
62
|
-
if (this.disabled)
|
|
63
|
-
return;
|
|
64
|
-
const t = this.getActiveItemIndex(), e = Math.min(t + 1, this.items.length - 1);
|
|
65
|
-
this.focusItem(e);
|
|
66
|
-
}
|
|
67
|
-
focusPreviousItem() {
|
|
68
|
-
const t = this.getActiveItemIndex(), e = Math.max(t - 1, 0);
|
|
69
|
-
this.focusItem(e);
|
|
70
|
-
}
|
|
71
|
-
getActiveItemIndex() {
|
|
72
|
-
return this.items.map((t) => t.shadowRoot.children[0]).findIndex((t) => {
|
|
73
|
-
var e, s;
|
|
74
|
-
return t === document.activeElement || t === ((s = (e = document.activeElement) === null || e === void 0 ? void 0 : e.shadowRoot) === null || s === void 0 ? void 0 : s.querySelector('[role="option"]'));
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
render() {
|
|
78
|
-
const t = this.multiSelect ? "true" : void 0, e = this.disabled ? -1 : 0;
|
|
79
|
-
return l(h, null, l("div", { "aria-label": this.label, "aria-multiselectable": t, class: "option-list", onClick: this.onClick, onFocus: this.onFocus, onKeyDown: this.onKeyDown, role: "listbox", tabIndex: e }, l("slot", null)));
|
|
80
|
-
}
|
|
81
|
-
get el() {
|
|
82
|
-
return n(this);
|
|
83
|
-
}
|
|
84
|
-
static get watchers() {
|
|
85
|
-
return {
|
|
86
|
-
disabled: ["watchDisabled"],
|
|
87
|
-
multiSelect: ["watchMultiSelect"],
|
|
88
|
-
value: ["watchValue"]
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
r.style = d;
|
|
93
|
-
export {
|
|
94
|
-
r as flip_option_list
|
|
95
|
-
};
|