@getflip/swirl-components-react 0.1.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/README.md +4 -0
- package/dist/flip-action-list-item.entry.1b728e6a.js +17 -0
- package/dist/flip-action-list-section.entry.da3e6186.js +15 -0
- package/dist/flip-action-list.entry.400a309a.js +38 -0
- package/dist/flip-avatar-group.entry.71bf1f2a.js +19 -0
- package/dist/flip-avatar.entry.2eb3242e.js +47 -0
- package/dist/flip-badge.entry.ebda6058.js +19 -0
- package/dist/flip-banner.entry.b3012465.js +32 -0
- package/dist/flip-button_2.entry.a323451d.js +42 -0
- package/dist/flip-checkbox.entry.2f740fb8.js +26 -0
- package/dist/flip-chip.entry.e9729ac7.js +34 -0
- package/dist/flip-description-list-item.entry.c789511e.js +80 -0
- package/dist/flip-description-list.entry.3b158436.js +15 -0
- package/dist/flip-dialog.entry.f2be9a9c.js +139 -0
- package/dist/flip-icon-add-photo.entry.a1003bdf.js +15 -0
- package/dist/flip-icon-add.entry.7103fbe7.js +15 -0
- package/dist/flip-icon-admin-panel-settings.entry.36a12e47.js +15 -0
- package/dist/flip-icon-arrow-back.entry.e35ba078.js +15 -0
- package/dist/flip-icon-arrow-forward.entry.5138c404.js +15 -0
- package/dist/flip-icon-arrow-right-small.entry.d1eeb150.js +15 -0
- package/dist/flip-icon-attachment.entry.594b602b.js +15 -0
- package/dist/flip-icon-cancel_2.entry.eb8d1a8c.js +25 -0
- package/dist/flip-icon-chat-bubble.entry.f56fcdc4.js +15 -0
- package/dist/flip-icon-check-circle.entry.e4f8169d.js +15 -0
- package/dist/flip-icon-check-small.entry.308d57d1.js +15 -0
- package/dist/flip-icon-check-strong.entry.b61365d2.js +15 -0
- package/dist/flip-icon-check.entry.f2c6b547.js +15 -0
- package/dist/flip-icon-chevron-left.entry.dbe9b291.js +15 -0
- package/dist/flip-icon-chevron-right.entry.9565c0f1.js +15 -0
- package/dist/flip-icon-close-small.entry.8bfcf1b1.js +15 -0
- package/dist/flip-icon-close.entry.41992748.js +15 -0
- package/dist/flip-icon-comment.entry.2aac2c10.js +15 -0
- package/dist/flip-icon-copy.entry.8e59bf1d.js +15 -0
- package/dist/flip-icon-date-range.entry.c1dd2730.js +15 -0
- package/dist/flip-icon-delete.entry.bc0b61ff.js +15 -0
- package/dist/flip-icon-description.entry.e01b2d40.js +15 -0
- package/dist/flip-icon-download.entry.a512f353.js +15 -0
- package/dist/flip-icon-edit.entry.7e3cd472.js +15 -0
- package/dist/flip-icon-emoji-mood.entry.df7b536f.js +15 -0
- package/dist/flip-icon-emoji-satisfied.entry.e3e5352b.js +15 -0
- package/dist/flip-icon-error.entry.96c3c29b.js +15 -0
- package/dist/flip-icon-expand-less.entry.3e970433.js +15 -0
- package/dist/flip-icon-expand-more.entry.4c1fa160.js +15 -0
- package/dist/flip-icon-file.entry.3a18cce8.js +15 -0
- package/dist/flip-icon-folder-shared.entry.38b22cd2.js +15 -0
- package/dist/flip-icon-group-assign.entry.a640254f.js +15 -0
- package/dist/flip-icon-groups-custom.entry.d77901cd.js +15 -0
- package/dist/flip-icon-groups.entry.80196d79.js +15 -0
- package/dist/flip-icon-image.entry.601bf2ae.js +15 -0
- package/dist/flip-icon-info.entry.b480a255.js +15 -0
- package/dist/flip-icon-inventory.entry.bb8a5615.js +15 -0
- package/dist/flip-icon-like.entry.af8b36e2.js +15 -0
- package/dist/flip-icon-link.entry.be72688c.js +15 -0
- package/dist/flip-icon-lock.entry.440459fe.js +15 -0
- package/dist/flip-icon-logout.entry.dde0bfc8.js +15 -0
- package/dist/flip-icon-mail.entry.b57a0093.js +15 -0
- package/dist/flip-icon-manage-accounts.entry.11cc3149.js +15 -0
- package/dist/flip-icon-mention.entry.32771810.js +15 -0
- package/dist/flip-icon-message.entry.636088c3.js +15 -0
- package/dist/flip-icon-more-horizontal.entry.38f14508.js +15 -0
- package/dist/flip-icon-more-vertikal.entry.8a4c613a.js +15 -0
- package/dist/flip-icon-notifications-active.entry.5658308d.js +15 -0
- package/dist/flip-icon-notifications-off.entry.8d3b11ff.js +15 -0
- package/dist/flip-icon-notifications.entry.91f77dd2.js +15 -0
- package/dist/flip-icon-people-alt.entry.b0b2e20c.js +15 -0
- package/dist/flip-icon-person-off.entry.e79df0e6.js +15 -0
- package/dist/flip-icon-person.entry.1bc59e68.js +15 -0
- package/dist/flip-icon-phone.entry.03e81177.js +15 -0
- package/dist/flip-icon-poll.entry.4e059f77.js +15 -0
- package/dist/flip-icon-recieved.entry.e3410f9e.js +15 -0
- package/dist/flip-icon-search-strong.entry.ec0849a6.js +15 -0
- package/dist/flip-icon-send.entry.3f80869c.js +15 -0
- package/dist/flip-icon-settings.entry.c86a7bca.js +15 -0
- package/dist/flip-icon-time-filled.entry.ad86a08f.js +15 -0
- package/dist/flip-icon-time-outlined.entry.75a29f76.js +15 -0
- package/dist/flip-icon-today.entry.ab272990.js +15 -0
- package/dist/flip-icon-user-assign.entry.1f331180.js +15 -0
- package/dist/flip-icon-video-camera.entry.40ea3d7d.js +15 -0
- package/dist/flip-icon-visibility-off.entry.ed4db3b5.js +15 -0
- package/dist/flip-icon-visibility.entry.1a7dfd44.js +15 -0
- package/dist/flip-icon-warning.entry.1c1540b8.js +15 -0
- package/dist/flip-inline-error.entry.38c26d13.js +17 -0
- package/dist/flip-link.entry.fe817ab1.js +15 -0
- package/dist/flip-popover.entry.18c5ead6.js +878 -0
- package/dist/flip-radio-group.entry.187f29ee.js +35 -0
- package/dist/flip-radio.entry.817d976d.js +25 -0
- package/dist/flip-search.entry.6717d77a.js +30 -0
- package/dist/flip-spinner.entry.f8f179be.js +17 -0
- package/dist/flip-stack.entry.50d88d6f.js +17 -0
- package/dist/flip-switch.entry.ef96875e.js +55 -0
- package/dist/flip-tag.entry.31a7d0f7.js +20 -0
- package/dist/flip-theme-provider.entry.9c054d33.js +181 -0
- package/dist/flip-thumbnail.entry.449e93ef.js +17 -0
- package/dist/flip-toast-provider.entry.59025e1a.js +28 -0
- package/dist/flip-toast.entry.78522d59.js +38 -0
- package/dist/flip-tooltip.entry.8b5f35c7.js +102 -0
- package/dist/flip-visually-hidden.entry.ae0ff292.js +15 -0
- package/dist/index-3c78bcaf.2675909b.js +48 -0
- package/dist/main.7e7363a7.js +1322 -0
- package/dist/swirl-components-react.js +103 -0
- package/dist/swirl-components-react.umd.cjs +106 -0
- package/dist/utils-03e3261c.f5223801.js +16 -0
- package/package.json +31 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as s, h as i, H as a } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as o } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const l = ":host{display:block}:host *{box-sizing:border-box}.action-list-item{display:inline-flex;width:100%;min-width:15rem;margin:0;padding:var(--s-space-12) var(--s-space-16);justify-content:flex-start;align-items:center;border:none;color:var(--s-text-default);background-color:var(--s-surface-overlay-default);font:inherit;line-height:var(--s-line-height-base);text-align:left;cursor:pointer;gap:var(--s-space-12)}.action-list-item:hover{background-color:var(--s-surface-overlay-hovered)}.action-list-item:focus{background-color:var(--s-surface-overlay-hovered);outline:none}.action-list-item:active{background-color:var(--s-surface-overlay-pressed)}.action-list-item:disabled{background-color:var(--s-surface-overlay-default);cursor:default}.action-list-item:disabled .action-list-item__label,.action-list-item:disabled .action-list-item__description{color:var(--s-text-disabled)}.action-list-item:disabled .action-list-item__icon{color:var(--s-icon-disabled)}.action-list-item--size-l{padding:var(--s-space-16)}.action-list-item--intent-critical:not(:disabled) .action-list-item__label{color:var(--s-text-critical)}.action-list-item--intent-critical:not(:disabled) .action-list-item__icon{color:var(--s-icon-critical)}.action-list-item__icon{display:inline-flex;flex-shrink:0;color:var(--s-icon-default)}.action-list-item__label-container{display:inline-flex;min-width:0;flex-grow:1;align-items:flex-start;flex-direction:column}.action-list-item__label{overflow:hidden;max-width:100%;padding-top:0.0625rem;font-weight:var(--s-font-weight-medium);white-space:nowrap;text-overflow:ellipsis}.action-list-item__description{color:var(--s-text-subdued)}.action-list-item__suffix{display:inline-flex;flex-shrink:0;color:var(--s-icon-highlight)}", n = class {
|
|
6
|
+
constructor(t) {
|
|
7
|
+
s(this, t), this.intent = "default", this.size = "m";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const t = Boolean(this.suffix) && !this.disabled, e = o("action-list-item", `action-list-item--intent-${this.intent}`, `action-list-item--size-${this.size}`);
|
|
11
|
+
return i(a, null, i("button", { class: e, disabled: this.disabled, role: "menuitem", tabIndex: -1, type: "button" }, this.icon && i("span", { class: "action-list-item__icon", innerHTML: this.icon }), i("span", { class: "action-list-item__label-container" }, i("span", { class: "action-list-item__label" }, this.label), this.description && i("span", { class: "action-list-item__description" }, this.description)), t && i("span", { class: "action-list-item__suffix", innerHTML: this.suffix })));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
n.style = l;
|
|
15
|
+
export {
|
|
16
|
+
n as flip_action_list_item
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as i, h as t, H as o } from "./main.7e7363a7.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const e = ":host{display:block}:host *{box-sizing:border-box}.action-list-section{background-color:var(--s-surface-overlay-default)}.action-list-section__label{display:block;width:100%;padding:var(--s-space-8) var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default);color:var(--s-text-subdued);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}", l = class {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
i(this, s);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return t(o, null, t("div", { "aria-labelledby": "label", class: "action-list-section", role: "group" }, t("span", { class: "action-list-section__label", id: "label" }, this.label), t("div", { class: "action-list-section__items" }, t("slot", null))));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
l.style = e;
|
|
13
|
+
export {
|
|
14
|
+
l as flip_action_list_section
|
|
15
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { r as s, h as i, H as n, g as r } from "./main.7e7363a7.js";
|
|
2
|
+
import { q as c } from "./utils-03e3261c.f5223801.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const l = ":host{display:block}:host *{box-sizing:border-box}.action-list{background-color:var(--s-surface-overlay-default)}", a = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
s(this, e), this.onKeyDown = (t) => {
|
|
8
|
+
t.code === "ArrowDown" || t.code === "ArrowRight" ? (t.preventDefault(), this.focusNextItem()) : (t.code === "ArrowUp" || t.code === "ArrowLeft") && (t.preventDefault(), this.focusPreviousItem());
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
this.items = c(this.el, '[role="menuitem"]');
|
|
13
|
+
}
|
|
14
|
+
focusNextItem() {
|
|
15
|
+
const t = (this.getActiveItemIndex() + 1) % this.items.length;
|
|
16
|
+
this.items[t].focus();
|
|
17
|
+
}
|
|
18
|
+
focusPreviousItem() {
|
|
19
|
+
const e = this.getActiveItemIndex(), t = e === 0 ? this.items.length - 1 : e - 1;
|
|
20
|
+
this.items[t].focus();
|
|
21
|
+
}
|
|
22
|
+
getActiveItemIndex() {
|
|
23
|
+
return this.items.findIndex((e) => {
|
|
24
|
+
var t, o;
|
|
25
|
+
return e === document.activeElement || e === ((o = (t = document.activeElement) === null || t === void 0 ? void 0 : t.shadowRoot) === null || o === void 0 ? void 0 : o.querySelector('[role="menuitem"]'));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return i(n, null, i("div", { "aria-orientation": "vertical", class: "action-list", onKeyDown: this.onKeyDown, role: "menu" }, i("slot", null)));
|
|
30
|
+
}
|
|
31
|
+
get el() {
|
|
32
|
+
return r(this);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
a.style = l;
|
|
36
|
+
export {
|
|
37
|
+
a as flip_action_list
|
|
38
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as o, h as r, H as s } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as t } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const i = ":host{display:inline-flex}:host *{box-sizing:border-box}.avatar-group{position:relative;display:inline-grid;grid-template-rows:repeat(8, 1fr);grid-template-columns:repeat(8, 1fr)}.avatar-group ::slotted(*:first-of-type){z-index:1;display:inline-flex;border:0.25rem solid var(--s-background-default);border-radius:50%;grid-column-start:1;grid-column-end:7;grid-row-start:3;grid-row-end:9}.avatar-group ::slotted(*:nth-of-type(2)){z-index:0;display:inline-flex;border:0.25rem solid var(--s-background-default);border-radius:50%;grid-column-start:3;grid-column-end:9;grid-row-start:1;grid-row-end:7}.avatar-group__badge{position:absolute;z-index:2;right:0;bottom:0;display:inline-flex;width:1.5rem;height:1.5rem}", d = class {
|
|
6
|
+
constructor(a) {
|
|
7
|
+
o(this, a);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const a = t("avatar-group", {
|
|
11
|
+
"avatar-group--has-badge": Boolean(this.badge)
|
|
12
|
+
}), e = t("avatar-group__badge");
|
|
13
|
+
return r(s, null, r("div", { class: a, role: "group" }, r("slot", null), this.badge && r("span", { class: e, innerHTML: this.badge })));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
d.style = i;
|
|
17
|
+
export {
|
|
18
|
+
d as flip_avatar_group
|
|
19
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { r as d, h as i, H as c, g } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as s } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const m = ":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 = {
|
|
6
|
+
xs: 28,
|
|
7
|
+
s: 32,
|
|
8
|
+
m: 40,
|
|
9
|
+
l: 48,
|
|
10
|
+
xl: 64,
|
|
11
|
+
"2xl": 144
|
|
12
|
+
}, p = class {
|
|
13
|
+
constructor(t) {
|
|
14
|
+
d(this, t), this.badgePosition = "bottom", this.interactive = !1, this.showLabel = !1, this.size = "m", this.variant = "round", this.setImageAvailable = () => {
|
|
15
|
+
this.imageAvailable = !0;
|
|
16
|
+
}, this.setImageUnavailable = () => {
|
|
17
|
+
this.imageAvailable = !1;
|
|
18
|
+
}, this.onKeydown = (a) => {
|
|
19
|
+
a.code === "Space" ? a.preventDefault() : a.code === "Enter" && (a.preventDefault(), this.element.click());
|
|
20
|
+
}, this.onKeyup = (a) => {
|
|
21
|
+
a.code === "Space" && (a.preventDefault(), this.element.click());
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
watchSrcProp() {
|
|
25
|
+
this.imageAvailable = void 0;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const t = Boolean(this.src) && (this.imageAvailable || this.imageAvailable === void 0), a = !t && Boolean(this.initials), e = !t && !a && Boolean(this.icon), r = !t && !a && !e, o = Boolean(this.badge) && this.size === "m", v = this.interactive ? "button" : "img", l = s("avatar", `avatar--size-${this.size}`, `avatar--variant-${this.variant}`, {
|
|
29
|
+
"avatar--has-icon": e || r,
|
|
30
|
+
"avatar--has-initials": a,
|
|
31
|
+
"avatar--interactive": this.interactive
|
|
32
|
+
}), h = s("avatar__badge", `avatar__badge--position-${this.badgePosition}`);
|
|
33
|
+
return i(c, { "aria-label": this.label, onKeydown: this.interactive ? this.onKeydown : void 0, onKeyup: this.interactive ? this.onKeyup : void 0, role: v, tabIndex: this.interactive ? 0 : void 0 }, i("span", { class: l, part: "avatar" }, t && i("span", { class: "avatar__image" }, i("img", { alt: "", height: n[this.size], onError: this.setImageUnavailable, onLoad: this.setImageAvailable, src: this.src, width: n[this.size] })), a && i("span", { class: "avatar__initials" }, i("span", null, this.initials)), e && i("span", { class: "avatar__icon", innerHTML: this.icon }), r && i("span", { class: "avatar__icon" }, i("flip-icon-person", null)), o && i("span", { class: h, innerHTML: this.badge })), this.showLabel && i("span", { "aria-hidden": !0, class: "avatar__label" }, this.label));
|
|
34
|
+
}
|
|
35
|
+
get element() {
|
|
36
|
+
return g(this);
|
|
37
|
+
}
|
|
38
|
+
static get watchers() {
|
|
39
|
+
return {
|
|
40
|
+
src: ["watchSrcProp"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
p.style = m;
|
|
45
|
+
export {
|
|
46
|
+
p as flip_avatar
|
|
47
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as t, h as e, H as i } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as d } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
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(--s-background-default);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 {
|
|
6
|
+
constructor(a) {
|
|
7
|
+
t(this, a), this.intent = "critical", this.size = "m", this.variant = "default";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const a = d("badge", `badge--intent-${this.intent}`, `badge--size-${this.size}`, `badge--variant-${this.variant}`, {
|
|
11
|
+
"badge--has-icon": this.icon
|
|
12
|
+
});
|
|
13
|
+
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)));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
n.style = r;
|
|
17
|
+
export {
|
|
18
|
+
n as flip_badge
|
|
19
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r, c as a, h as n, H as o, g as c } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as l } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const b = ":host{display:block}:host *{box-sizing:border-box}.banner{display:flex;max-width:100%;padding:var(--s-space-12);align-items:flex-start}.banner:focus{outline-color:var(--s-focus-default)}@media (min-width: 768px){.banner{padding:var(--s-space-16)}}.banner--intent-default .banner__icon,.banner--intent-default .banner__content,.banner--intent-default .banner__action-button,.banner--intent-default .banner__dismiss-button,.banner--intent-critical .banner__icon,.banner--intent-critical .banner__content,.banner--intent-critical .banner__action-button,.banner--intent-critical .banner__dismiss-button,.banner--intent-success .banner__icon,.banner--intent-success .banner__content,.banner--intent-success .banner__action-button,.banner--intent-success .banner__dismiss-button,.banner--intent-info .banner__icon,.banner--intent-info .banner__content,.banner--intent-info .banner__action-button,.banner--intent-info .banner__dismiss-button{color:var(--s-text-on-status)}.banner--intent-default{background-color:var(--s-surface-neutral-default)}.banner--intent-critical{background-color:var(--s-surface-critical-default)}.banner--intent-success{background-color:var(--s-surface-success-default)}.banner--intent-info{background-color:var(--s-surface-info-default)}.banner--intent-warning{background-color:var(--s-surface-warning-default)}.banner--intent-warning .banner__icon{color:var(--s-icon-strong)}.banner--intent-warning .banner__content,.banner--intent-warning .banner__action-button,.banner--intent-warning .banner__dismiss-button{color:var(--s-text-default)}@media (min-width: 375px){.banner--has-icon .banner__content{padding-top:var(--s-space-2)}}.banner__icon{display:none;margin-right:var(--s-space-8);color:var(--s-icon-on-status)}@media (min-width: 375px){.banner__icon{display:inline-flex}}.banner__content{min-height:1.5rem;margin-right:var(--s-space-12);flex-grow:1;line-height:var(--s-line-height-base)}.banner__controls{display:inline-flex;margin-left:var(--s-space-16);align-items:center;gap:var(--s-space-16);line-height:var(--s-line-height-base)}@media (min-width: 768px){.banner__controls{gap:var(--s-space-24)}}.banner__action-button,.banner__dismiss-button{display:inline-flex;overflow:hidden;max-width:7rem;height:1.5rem;padding:0;flex-shrink:0;align-items:center;border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.banner__action-button:focus,.banner__dismiss-button:focus{outline-color:var(--s-focus-default)}@media (min-width: 768px){.banner__action-button,.banner__dismiss-button{max-width:12rem}}", d = {
|
|
6
|
+
default: void 0,
|
|
7
|
+
critical: "<flip-icon-error></flip-icon-error>",
|
|
8
|
+
success: "<flip-icon-check-circle></flip-icon-check-circle>",
|
|
9
|
+
warning: "<flip-icon-warning></flip-icon-warning>",
|
|
10
|
+
info: "<flip-icon-info></flip-icon-info>"
|
|
11
|
+
}, _ = class {
|
|
12
|
+
constructor(i) {
|
|
13
|
+
r(this, i), this.action = a(this, "action", 7), this.dismiss = a(this, "dismiss", 7), this.dismissable = !1, this.dismissLabel = "Dismiss", this.importance = "status", this.intent = "default", this.showIcon = !1, this.onAction = (t) => {
|
|
14
|
+
this.action.emit(t);
|
|
15
|
+
}, this.onDismiss = (t) => {
|
|
16
|
+
this.dismiss.emit(t);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
const i = d[this.intent], t = Boolean(this.actionLabel) || this.dismissable, e = this.showIcon && Boolean(i), s = l("banner", `banner--intent-${this.intent}`, {
|
|
21
|
+
"banner--has-icon": e
|
|
22
|
+
});
|
|
23
|
+
return n(o, null, n("div", { "aria-describedby": "content", class: s, role: this.importance, tabIndex: 0 }, e && n("span", { "aria-hidden": "true", class: "banner__icon", innerHTML: i }), n("span", { class: "banner__content", id: "content" }, this.content), t && n("span", { class: "banner__controls" }, this.actionLabel && n("button", { class: "banner__action-button", onClick: this.onAction, type: "button" }, this.actionLabel), this.dismissable && n("button", { "aria-label": this.dismissLabel, class: "banner__dismiss-button", onClick: this.onDismiss, type: "button" }, n("flip-icon-close", null)))));
|
|
24
|
+
}
|
|
25
|
+
get element() {
|
|
26
|
+
return c(this);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
_.style = b;
|
|
30
|
+
export {
|
|
31
|
+
_ as flip_banner
|
|
32
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as a, h as o, H as i } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as l } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const s = `.sc-flip-button-h{display:inline-block;max-width:100%}.sc-flip-button-h *.sc-flip-button{box-sizing:border-box}.button.sc-flip-button{display:inline-flex;width:100%;padding:var(--s-space-8) var(--s-space-16);justify-content:center;align-items:center;border:none;border-radius:var(--s-border-radius-base);color:var(--s-text-subdued);background-color:var(--flip-ghost-button-background-default);font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-lg);text-decoration:none;cursor:pointer;gap:var(--s-space-8)}.button.sc-flip-button:hover{background-color:var(--flip-ghost-button-background-hovered)}.button.sc-flip-button:active{background-color:var(--flip-ghost-button-background-pressed)}.button.sc-flip-button:disabled{color:var(--s-text-disabled);background-color:var(--flip-ghost-button-background-default);cursor:default}.button.sc-flip-button:disabled .button__left-icon.sc-flip-button{color:var(--s-icon-disabled)}.button.sc-flip-button:focus{outline-color:var(--s-focus-default)}.button--variant-ghost.button--intent-primary.sc-flip-button:not(:disabled){color:var(--s-text-highlight)}.button--variant-ghost.button--intent-primary.sc-flip-button:not(:disabled) .button__left-icon.sc-flip-button{color:var(--s-icon-highlight)}.button--variant-ghost.button--intent-critical.sc-flip-button:not(:disabled){color:var(--s-text-critical)}.button--variant-ghost.button--intent-critical.sc-flip-button:not(:disabled) .button__left-icon.sc-flip-button{color:var(--s-icon-critical)}.button--variant-ghost.button--size-l.sc-flip-button{padding:var(--s-space-12) var(--s-space-20)}.button--variant-ghost.button--size-l.button--icon-only.sc-flip-button{padding:var(--s-space-12)}.button--variant-flat.sc-flip-button{color:var(--s-text-default);background-color:var(--s-action-neutral-default)}.button--variant-flat.sc-flip-button:hover{background-color:var(--s-action-neutral-hovered)}.button--variant-flat.sc-flip-button:active{background-color:var(--s-action-neutral-pressed)}.button--variant-flat.sc-flip-button:disabled{background-color:var(--s-action-neutral-disabled)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled){color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled):hover{background-color:var(--s-action-primary-hovered)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled):active{background-color:var(--s-action-primary-pressed)}.button--variant-flat.button--intent-primary.sc-flip-button:not(:disabled) .button__left-icon.sc-flip-button{color:var(--s-icon-on-action-primary)}.button--variant-flat.sc-flip-button .button__left-icon.sc-flip-button{color:var(--s-icon-strong)}.button--variant-plain.sc-flip-button{padding:0;border-radius:0;color:var(--s-interactive-neutral-default);background-color:transparent}.button--variant-plain.sc-flip-button:hover:not(:disabled){color:var(--s-interactive-neutral-default);background-color:transparent;text-decoration:underline;text-underline-offset:var(--s-space-4)}.button--variant-plain.sc-flip-button:hover:not(:disabled) .button__left-icon.sc-flip-button{color:var(--s-interactive-neutral-default)}.button--variant-plain.sc-flip-button:active:not(:disabled){color:var(--s-interactive-neutral-hovered);background-color:transparent}.button--variant-plain.sc-flip-button:active:not(:disabled) .button__left-icon.sc-flip-button{color:var(--s-interactive-neutral-hovered)}.button--variant-plain.sc-flip-button:disabled{color:var(--s-interactive-neutral-disabled);background-color:transparent}.button--variant-plain.sc-flip-button:disabled .button__left-icon.sc-flip-button{color:var(--s-interactive-neutral-disabled)}.button--variant-plain.button--intent-primary.sc-flip-button{color:var(--s-interactive-primary-default)}.button--variant-plain.button--intent-primary.sc-flip-button:hover{color:var(--s-interactive-primary-default)}.button--variant-plain.button--intent-primary.sc-flip-button:hover .button__left-icon.sc-flip-button{color:var(--s-interactive-primary-default)}.button--variant-plain.button--intent-primary.sc-flip-button:active{color:var(--s-interactive-primary-hovered)}.button--variant-plain.button--intent-primary.sc-flip-button:active .button__left-icon.sc-flip-button{color:var(--s-interactive-primary-hovered)}.button--variant-plain.button--intent-primary.sc-flip-button:disabled{color:var(--s-interactive-primary-disabled)}.button--variant-plain.button--intent-primary.sc-flip-button:disabled .button__left-icon.sc-flip-button{color:var(--s-interactive-primary-disabled)}.button--variant-plain.button--intent-primary.sc-flip-button .button__left-icon.sc-flip-button{color:var(--s-interactive-primary-default)}.button--variant-plain.sc-flip-button .button__left-icon.sc-flip-button{color:var(--s-interactive-neutral-default)}.button--variant-on-image.sc-flip-button{color:var(--s-text-on-image);background:linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
|
|
6
|
+
rgba(255, 255, 255, 0.3)}.button--variant-on-image.sc-flip-button:hover{background:linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
|
|
7
|
+
rgba(255, 255, 255, 0.4)}.button--variant-on-image.sc-flip-button:active{background:linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
|
|
8
|
+
rgba(255, 255, 255, 0.5)}.button--variant-on-image.sc-flip-button:disabled{color:var(--s-text-on-image);background:linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
|
|
9
|
+
rgba(255, 255, 255, 0.3)}.button--variant-on-image.sc-flip-button:disabled .button__left-icon.sc-flip-button{color:var(--s-icon-on-image)}.button--variant-on-image.sc-flip-button .button__left-icon.sc-flip-button{color:var(--s-icon-on-image)}.button--variant-floating.sc-flip-button{color:var(--s-text-default);background-color:var(--s-surface-overlay-default);box-shadow:0.125rem 0.25rem 2.5rem rgba(0, 0, 0, 0.14)}.button--variant-floating.sc-flip-button:hover{color:var(--s-text-on-action-primary);background-color:var(--s-surface-overlay-hovered)}.button--variant-floating.sc-flip-button:active{color:var(--s-text-on-action-primary);background-color:var(--s-surface-overlay-pressed)}.button--variant-floating.button--icon-only.sc-flip-button{padding:var(--s-space-4)}.button--variant-floating.button--intent-primary.sc-flip-button{padding:var(--s-space-12) var(--s-space-20);border-radius:1.5rem;color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-default)}.button--variant-floating.button--intent-primary.sc-flip-button:hover:not(:disabled){color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-hovered)}.button--variant-floating.button--intent-primary.sc-flip-button:active:not(:disabled){color:var(--s-text-on-action-primary);background-color:var(--s-action-primary-pressed)}.button--variant-floating.button--intent-primary.sc-flip-button:disabled{color:var(--s-text-on-action-primary)}.button--variant-floating.button--intent-primary.sc-flip-button:disabled .button__left-icon.sc-flip-button{color:var(--s-icon-on-action-primary)}.button--variant-floating.button--intent-primary.sc-flip-button .button__left-icon.sc-flip-button{color:var(--s-icon-on-action-primary)}.button--variant-floating.sc-flip-button .button__left-icon.sc-flip-button{color:var(--s-icon-strong)}.button--icon-only.sc-flip-button{padding:var(--s-space-8);border-radius:50%}.button--icon-only.sc-flip-button .button__left-icon.sc-flip-button{margin-left:0}.button__left-icon.sc-flip-button{display:inline-flex;margin-left:calc(-1 * var(--s-space-4));color:var(--s-icon-default)}.button__label.sc-flip-button{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}`, c = class {
|
|
10
|
+
constructor(t) {
|
|
11
|
+
a(this, t), this.intent = "default", this.size = "m", this.type = "button", this.variant = "ghost";
|
|
12
|
+
}
|
|
13
|
+
componentDidLoad() {
|
|
14
|
+
this.forceIconProps();
|
|
15
|
+
}
|
|
16
|
+
forceIconProps() {
|
|
17
|
+
if (!Boolean(this.iconEl))
|
|
18
|
+
return;
|
|
19
|
+
const t = this.iconEl.children[0];
|
|
20
|
+
t == null || t.setAttribute("size", "24");
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
const t = this.hideLabel && Boolean(this.icon) || this.variant === "floating" && this.intent === "default", n = Boolean(this.href), r = l("button", `button--intent-${this.intent}`, `button--size-${this.size}`, `button--variant-${this.variant}`, {
|
|
24
|
+
"button--icon-only": t
|
|
25
|
+
});
|
|
26
|
+
return o(i, null, o(n ? "a" : "button", { "aria-disabled": this.disabled && !n ? "true" : void 0, "aria-label": t ? this.label : void 0, class: r, disabled: n ? void 0 : this.disabled, download: n ? void 0 : this.download, form: n ? void 0 : this.form, href: this.href, name: n ? void 0 : this.name, target: n ? this.target : void 0, type: n ? void 0 : this.type, value: n ? void 0 : this.value }, this.icon && o("span", { class: "button__left-icon", innerHTML: this.icon, ref: (e) => this.iconEl = e }), !t && o("span", { class: "button__label" }, this.label)));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
c.style = s;
|
|
30
|
+
const u = ":host{display:block}:host *{box-sizing:border-box}", b = class {
|
|
31
|
+
constructor(t) {
|
|
32
|
+
a(this, t), this.orientation = "horizontal";
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return o(i, null, o("flip-stack", { align: this.orientation === "vertical" && this.stretch ? "stretch" : "start", class: "button-group", justify: this.orientation === "horizontal" && this.stretch ? "stretch" : "start", orientation: this.orientation, role: "group", spacing: "8", wrap: this.wrap }, o("slot", null)));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
b.style = u;
|
|
39
|
+
export {
|
|
40
|
+
c as flip_button,
|
|
41
|
+
b as flip_button_group
|
|
42
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as b, c as a, h as c, H as r } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as t } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const n = `.sc-flip-checkbox-h{display:inline-flex}.sc-flip-checkbox-h *.sc-flip-checkbox{box-sizing:border-box}.checkbox.sc-flip-checkbox{display:inline-flex;line-height:var(--s-line-height-base);cursor:pointer}.checkbox.sc-flip-checkbox:focus-within .checkbox__box.sc-flip-checkbox{box-shadow:0 0 0 0.0625rem var(--s-background-default),
|
|
6
|
+
0 0 0 0.1875rem var(--s-focus-default)}.checkbox--checked.sc-flip-checkbox .checkbox__control.sc-flip-checkbox:hover .checkbox__box.sc-flip-checkbox,.checkbox--indeterminate.sc-flip-checkbox .checkbox__control.sc-flip-checkbox:hover .checkbox__box.sc-flip-checkbox{border-color:var(--s-interactive-primary-hovered);background-color:var(--s-interactive-primary-hovered)}.checkbox--checked.sc-flip-checkbox .checkbox__box.sc-flip-checkbox,.checkbox--indeterminate.sc-flip-checkbox .checkbox__box.sc-flip-checkbox{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.checkbox--invalid.checkbox--checked.sc-flip-checkbox .checkbox__box.sc-flip-checkbox,.checkbox--invalid.checkbox--indeterminate.sc-flip-checkbox .checkbox__box.sc-flip-checkbox{background-color:var(--s-icon-critical)}.checkbox--invalid.sc-flip-checkbox .checkbox__box.sc-flip-checkbox{border-color:var(--s-icon-critical)}.checkbox--disabled.sc-flip-checkbox{cursor:default}.checkbox--disabled.checkbox--checked.sc-flip-checkbox .checkbox__control.sc-flip-checkbox:hover .checkbox__box.sc-flip-checkbox,.checkbox--disabled.checkbox--indeterminate.sc-flip-checkbox .checkbox__control.sc-flip-checkbox:hover .checkbox__box.sc-flip-checkbox{border-color:var(--s-icon-disabled);background-color:var(--s-icon-disabled)}.checkbox--disabled.checkbox--checked.sc-flip-checkbox .checkbox__box.sc-flip-checkbox,.checkbox--disabled.checkbox--indeterminate.sc-flip-checkbox .checkbox__box.sc-flip-checkbox{background-color:var(--s-icon-disabled)}.checkbox--disabled.sc-flip-checkbox .checkbox__control.sc-flip-checkbox:hover .checkbox__box.sc-flip-checkbox{background-color:transparent}.checkbox--disabled.sc-flip-checkbox .checkbox__box.sc-flip-checkbox{border-color:var(--s-icon-disabled)}.checkbox--disabled.sc-flip-checkbox .checkbox__label.sc-flip-checkbox,.checkbox--disabled.sc-flip-checkbox .checkbox__description.sc-flip-checkbox{color:var(--s-text-disabled)}.checkbox__control.sc-flip-checkbox{position:relative;top:0.125rem;width:1.5rem;height:1.5rem;padding:var(--s-space-2);flex-shrink:0}.checkbox__control.sc-flip-checkbox:hover .checkbox__box.sc-flip-checkbox{background-color:var(--s-action-neutral-hovered)}.checkbox__box.sc-flip-checkbox{position:relative;z-index:1;display: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)}.checkbox__icon.sc-flip-checkbox{display:inline-flex;width:1.0625rem;height:1.0625rem}.checkbox__icon.sc-flip-checkbox>*.sc-flip-checkbox::part(icon){width:1.0625rem;height:1.0625rem}.checkbox__indeterminate-icon.sc-flip-checkbox{position:relative;width:100%;height:100%}.checkbox__indeterminate-icon.sc-flip-checkbox:after{position:absolute;top:50%;left:50%;width:0.625rem;height:0.125rem;border-radius:0.0625rem;background-color:currentColor;content:"";transform:translate3d(-50%, -50%, 0)}.checkbox__label-container.sc-flip-checkbox{display:inline-flex;margin-left:var(--s-space-12);padding-top:var(--s-space-4);align-items:flex-start;flex-direction:column}.checkbox__label.sc-flip-checkbox{font-weight:var(--s-font-weight-medium)}.checkbox__description.sc-flip-checkbox{color:var(--s-text-subdued)}`, x = class {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
b(this, e), this.valueChange = a(this, "valueChange", 7), this.checked = !1, this.disabled = !1, this.onChange = () => {
|
|
9
|
+
this.checked = !(this.checked === !0 || this.checked === "true"), this.valueChange.emit(this.checked);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
const e = this.checked === !1 || this.checked === "false", o = this.checked === !0 || this.checked === "true", i = this.checked === "indeterminate", h = o ? "true" : e ? "false" : "mixed", s = this.invalid === !0 ? "true" : this.invalid === !1 ? "false" : void 0, l = t("checkbox", {
|
|
14
|
+
"checkbox--checked": o,
|
|
15
|
+
"checkbox--disabled": this.disabled,
|
|
16
|
+
"checkbox--indeterminate": i,
|
|
17
|
+
"checkbox--invalid": this.invalid,
|
|
18
|
+
"checkbox--unchecked": e
|
|
19
|
+
});
|
|
20
|
+
return c(r, null, c("label", { class: l, htmlFor: this.inputId }, c("span", { class: "checkbox__control" }, c("flip-visually-hidden", null, c("input", { "aria-checked": h, "aria-invalid": s, checked: o, class: "checkbox__input", disabled: this.disabled, id: this.inputId, indeterminate: i, name: this.inputName, onChange: this.onChange, type: "checkbox", value: this.value })), c("span", { "aria-hidden": "true", class: "checkbox__box" }, c("span", { class: "checkbox__icon" }, o && c("flip-icon-check-strong", null), i && c("span", { class: "checkbox__indeterminate-icon" })))), c("span", { class: "checkbox__label-container" }, this.label && c("span", { class: "checkbox__label" }, this.label), this.description && c("span", { class: "checkbox__description" }, this.description))));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
x.style = n;
|
|
24
|
+
export {
|
|
25
|
+
x as flip_checkbox
|
|
26
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as s, h as e, H as c } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as n } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const l = ":host{display:inline-flex;max-width:100%}:host *{box-sizing:border-box}.chip{display:inline-flex;max-width:100%;height:2.5rem;padding-right:var(--s-space-16);padding-left:var(--s-space-16);align-items:center;border:0.0625rem solid var(--s-border-default);border-radius:1.25rem;color:var(--s-text-subdued);background-color:var(--s-surface-overlay-default);font:inherit;font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm)}.chip--interactive{cursor:pointer}.chip--interactive:hover{background-color:var(--s-surface-overlay-hovered)}.chip--interactive:hover ::part(avatar){background-color:var(--s-surface-raised-hovered)}.chip--interactive:active{background-color:var(--s-surface-overlay-pressed)}.chip--interactive:active ::part(avatar){background-color:var(--s-surface-raised-pressed)}.chip--intent-critical{border-color:var(--s-border-critical);color:var(--s-text-critical)}.chip--intent-critical .chip__icon{color:var(--s-icon-critical)}.chip--intent-success{border-color:var(--s-border-success);color:var(--s-text-success)}.chip--intent-success .chip__icon{color:var(--s-icon-success)}.chip__avatar,.chip__icon{display:inline-flex;margin-right:var(--s-space-8);flex-shrink:0}.chip__avatar{overflow:hidden;width:1.75rem;height:1.75rem;margin-left:-0.625rem}.chip__icon{margin-left:-0.25rem;color:var(--s-icon-default)}.chip__label{overflow:hidden;flex-grow:1;white-space:nowrap;text-overflow:ellipsis}", h = class {
|
|
6
|
+
constructor(i) {
|
|
7
|
+
s(this, i), this.intent = "default", this.interactive = !1;
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
this.forceAvatarProps(), this.forceIconProps();
|
|
11
|
+
}
|
|
12
|
+
forceAvatarProps() {
|
|
13
|
+
if (!Boolean(this.avatarEl))
|
|
14
|
+
return;
|
|
15
|
+
const i = this.avatarEl.querySelector("flip-avatar");
|
|
16
|
+
i == null || i.removeAttribute("badge"), i == null || i.removeAttribute("interactive"), i == null || i.removeAttribute("show-label"), i == null || i.removeAttribute("variant"), i == null || i.setAttribute("size", "xs");
|
|
17
|
+
}
|
|
18
|
+
forceIconProps() {
|
|
19
|
+
if (!Boolean(this.iconEl))
|
|
20
|
+
return;
|
|
21
|
+
const i = this.iconEl.children[0];
|
|
22
|
+
i == null || i.setAttribute("size", "24");
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const i = this.interactive ? "button" : "span", t = Boolean(this.avatar), a = !t && Boolean(this.icon), o = n("chip", `chip--intent-${this.intent}`, {
|
|
26
|
+
"chip--interactive": this.interactive
|
|
27
|
+
});
|
|
28
|
+
return e(c, null, e(i, { class: o, type: this.interactive ? "button" : void 0 }, t && e("span", { class: "chip__avatar", innerHTML: this.avatar, ref: (r) => this.avatarEl = r }), a && e("span", { class: "chip__icon", innerHTML: this.icon, ref: (r) => this.iconEl = r }), e("span", { class: "chip__label" }, this.label)));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
h.style = l;
|
|
32
|
+
export {
|
|
33
|
+
h as flip_chip
|
|
34
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { r as t, h as i, H as s } from "./main.7e7363a7.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const e = `:host {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host * {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.description-list-item {
|
|
13
|
+
display: block;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
color: var(--s-text-default);
|
|
16
|
+
line-height: var(--s-line-height-base);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.description-list-item__term {
|
|
20
|
+
display: block;
|
|
21
|
+
margin-bottom: var(--s-space-4);
|
|
22
|
+
font-weight: var(--s-font-weight-semibold);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.description-list-item__description {
|
|
26
|
+
display: block;
|
|
27
|
+
max-width: 40rem;
|
|
28
|
+
margin: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@container description-list (min-width: 480px) {
|
|
32
|
+
.description-list-item {
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.description-list-item__term {
|
|
37
|
+
margin-right: var(--s-space-16);
|
|
38
|
+
margin-bottom: 0;
|
|
39
|
+
flex-basis: 12rem;
|
|
40
|
+
flex-grow: 0;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.description-list-item__description {
|
|
45
|
+
flex-grow: 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Fallback styles for browsers without container query support */
|
|
50
|
+
@supports not (container-type: inline-size) {
|
|
51
|
+
@media (min-width: 768px) {
|
|
52
|
+
.description-list-item {
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.description-list-item__term {
|
|
57
|
+
margin-right: var(--s-space-16);
|
|
58
|
+
margin-bottom: 0;
|
|
59
|
+
flex-basis: 12rem;
|
|
60
|
+
flex-grow: 0;
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.description-list-item__description {
|
|
65
|
+
flex-grow: 1;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`, r = class {
|
|
70
|
+
constructor(n) {
|
|
71
|
+
t(this, n);
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
return i(s, null, i("div", { class: "description-list-item" }, i("dt", { class: "description-list-item__term" }, this.term), i("dd", { class: "description-list-item__description" }, i("slot", null))));
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
r.style = e;
|
|
78
|
+
export {
|
|
79
|
+
r as flip_description_list_item
|
|
80
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as i, h as t, H as o } from "./main.7e7363a7.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const r = ":host{display:block;container-type:inline-size;container-name:description-list}:host *{box-sizing:border-box}.description-list{display:block;max-width:100%;margin:0}.description-list ::slotted(*){padding-bottom:var(--s-space-16);border-bottom:var(--s-border-width-default) solid var(--s-border-default)}.description-list ::slotted(*:not(:last-child)){margin-bottom:var(--s-space-16)}", e = class {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
i(this, s);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return t(o, null, t("dl", { class: "description-list" }, t("slot", null)));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
e.style = r;
|
|
13
|
+
export {
|
|
14
|
+
e as flip_description_list
|
|
15
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { r as h, c as d, h as s, H as u } from "./main.7e7363a7.js";
|
|
2
|
+
import { c as f } from "./index-3c78bcaf.2675909b.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
var g = [
|
|
6
|
+
'a[href]:not([tabindex^="-"])',
|
|
7
|
+
'area[href]:not([tabindex^="-"])',
|
|
8
|
+
'input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])',
|
|
9
|
+
'input[type="radio"]:not([disabled]):not([tabindex^="-"])',
|
|
10
|
+
'select:not([disabled]):not([tabindex^="-"])',
|
|
11
|
+
'textarea:not([disabled]):not([tabindex^="-"])',
|
|
12
|
+
'button:not([disabled]):not([tabindex^="-"])',
|
|
13
|
+
'iframe:not([tabindex^="-"])',
|
|
14
|
+
'audio[controls]:not([tabindex^="-"])',
|
|
15
|
+
'video[controls]:not([tabindex^="-"])',
|
|
16
|
+
'[contenteditable]:not([tabindex^="-"])',
|
|
17
|
+
'[tabindex]:not([tabindex^="-"])'
|
|
18
|
+
], b = "Tab", m = "Escape";
|
|
19
|
+
function e(i) {
|
|
20
|
+
this._show = this.show.bind(this), this._hide = this.hide.bind(this), this._maintainFocus = this._maintainFocus.bind(this), this._bindKeypress = this._bindKeypress.bind(this), this.$el = i, this.shown = !1, this._id = this.$el.getAttribute("data-a11y-dialog") || this.$el.id, this._previouslyFocused = null, this._listeners = {}, this.create();
|
|
21
|
+
}
|
|
22
|
+
e.prototype.create = function() {
|
|
23
|
+
this.$el.setAttribute("aria-hidden", !0), this.$el.setAttribute("aria-modal", !0), this.$el.setAttribute("tabindex", -1), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), this._openers = n('[data-a11y-dialog-show="' + this._id + '"]'), this._openers.forEach(
|
|
24
|
+
function(t) {
|
|
25
|
+
t.addEventListener("click", this._show);
|
|
26
|
+
}.bind(this)
|
|
27
|
+
);
|
|
28
|
+
const i = this.$el;
|
|
29
|
+
return this._closers = n("[data-a11y-dialog-hide]", this.$el).filter(function(t) {
|
|
30
|
+
return t.closest('[aria-modal="true"], [data-a11y-dialog]') === i;
|
|
31
|
+
}).concat(n('[data-a11y-dialog-hide="' + this._id + '"]')), this._closers.forEach(
|
|
32
|
+
function(t) {
|
|
33
|
+
t.addEventListener("click", this._hide);
|
|
34
|
+
}.bind(this)
|
|
35
|
+
), this._fire("create"), this;
|
|
36
|
+
};
|
|
37
|
+
e.prototype.show = function(i) {
|
|
38
|
+
return this.shown ? this : (this._previouslyFocused = document.activeElement, this.$el.removeAttribute("aria-hidden"), this.shown = !0, l(this.$el), document.body.addEventListener("focus", this._maintainFocus, !0), document.addEventListener("keydown", this._bindKeypress), this._fire("show", i), this);
|
|
39
|
+
};
|
|
40
|
+
e.prototype.hide = function(i) {
|
|
41
|
+
return this.shown ? (this.shown = !1, this.$el.setAttribute("aria-hidden", "true"), this._previouslyFocused && this._previouslyFocused.focus && this._previouslyFocused.focus(), document.body.removeEventListener("focus", this._maintainFocus, !0), document.removeEventListener("keydown", this._bindKeypress), this._fire("hide", i), this) : this;
|
|
42
|
+
};
|
|
43
|
+
e.prototype.destroy = function() {
|
|
44
|
+
return this.hide(), this._openers.forEach(
|
|
45
|
+
function(i) {
|
|
46
|
+
i.removeEventListener("click", this._show);
|
|
47
|
+
}.bind(this)
|
|
48
|
+
), this._closers.forEach(
|
|
49
|
+
function(i) {
|
|
50
|
+
i.removeEventListener("click", this._hide);
|
|
51
|
+
}.bind(this)
|
|
52
|
+
), this._fire("destroy"), this._listeners = {}, this;
|
|
53
|
+
};
|
|
54
|
+
e.prototype.on = function(i, t) {
|
|
55
|
+
return typeof this._listeners[i] > "u" && (this._listeners[i] = []), this._listeners[i].push(t), this;
|
|
56
|
+
};
|
|
57
|
+
e.prototype.off = function(i, t) {
|
|
58
|
+
var o = (this._listeners[i] || []).indexOf(t);
|
|
59
|
+
return o > -1 && this._listeners[i].splice(o, 1), this;
|
|
60
|
+
};
|
|
61
|
+
e.prototype._fire = function(i, t) {
|
|
62
|
+
var o = this._listeners[i] || [], a = new CustomEvent(i, { detail: t });
|
|
63
|
+
this.$el.dispatchEvent(a), o.forEach(
|
|
64
|
+
function(c) {
|
|
65
|
+
c(this.$el, t);
|
|
66
|
+
}.bind(this)
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
e.prototype._bindKeypress = function(i) {
|
|
70
|
+
const t = document.activeElement;
|
|
71
|
+
t && t.closest('[aria-modal="true"]') !== this.$el || (this.shown && i.key === m && this.$el.getAttribute("role") !== "alertdialog" && (i.preventDefault(), this.hide(i)), this.shown && i.key === b && _(this.$el, i));
|
|
72
|
+
};
|
|
73
|
+
e.prototype._maintainFocus = function(i) {
|
|
74
|
+
this.shown && !i.target.closest('[aria-modal="true"]') && !i.target.closest("[data-a11y-dialog-ignore-focus-trap]") && l(this.$el);
|
|
75
|
+
};
|
|
76
|
+
function p(i) {
|
|
77
|
+
return Array.prototype.slice.call(i);
|
|
78
|
+
}
|
|
79
|
+
function n(i, t) {
|
|
80
|
+
return p((t || document).querySelectorAll(i));
|
|
81
|
+
}
|
|
82
|
+
function l(i) {
|
|
83
|
+
var t = i.querySelector("[autofocus]") || i;
|
|
84
|
+
t.focus();
|
|
85
|
+
}
|
|
86
|
+
function y(i) {
|
|
87
|
+
return n(g.join(","), i).filter(function(t) {
|
|
88
|
+
return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function _(i, t) {
|
|
92
|
+
var o = y(i), a = o.indexOf(document.activeElement);
|
|
93
|
+
t.shiftKey && a === 0 ? (o[o.length - 1].focus(), t.preventDefault()) : !t.shiftKey && a === o.length - 1 && (o[0].focus(), t.preventDefault());
|
|
94
|
+
}
|
|
95
|
+
function r() {
|
|
96
|
+
n("[data-a11y-dialog]").forEach(function(i) {
|
|
97
|
+
new e(i);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", r) : window.requestAnimationFrame ? window.requestAnimationFrame(r) : window.setTimeout(r, 16));
|
|
101
|
+
const v = ':host{--flip-ghost-button-background-default:var(--s-surface-overlay-default);--flip-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--flip-ghost-button-background-pressed:var(--s-surface-overlay-pressed);display:block}:host *{box-sizing:border-box}.dialog{position:fixed;z-index:var(--s-z-40);display:flex;justify-content:center;align-items:center;inset:0}.dialog[aria-hidden="true"]{display:none}.dialog:not(.dialog--closing) .dialog__backdrop{-webkit-animation:0.15s dialog-backdrop-fade-in;animation:0.15s dialog-backdrop-fade-in}@media (prefers-reduced-motion){.dialog:not(.dialog--closing) .dialog__backdrop{-webkit-animation:none;animation:none}}.dialog:not(.dialog--closing) .dialog__body{-webkit-animation:0.15s dialog-scale-in;animation:0.15s dialog-scale-in}@media (prefers-reduced-motion){.dialog:not(.dialog--closing) .dialog__body{-webkit-animation:none;animation:none}}.dialog--closing{-webkit-animation:0.15s dialog-fade-out;animation:0.15s dialog-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.dialog--closing{-webkit-animation:none;animation:none}}.dialog__backdrop{position:fixed;background-color:rgba(0, 0, 0, 0.2);inset:0}.dialog__body{z-index:var(--s-z-40);overflow-x:hidden;overflow-y:auto;width:18.5rem;max-height:90vh;padding-top:var(--s-space-24);padding-right:var(--s-space-8);padding-bottom:var(--s-space-8);padding-left:var(--s-space-8);border-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default);text-align:center;box-shadow:0.125rem 0.25rem 1rem rgba(0, 0, 0, 0.14)}.dialog__heading{margin:0;margin-bottom:var(--s-space-8);font-size:var(--s-font-size-lg);font-weight:var(--s-font-weight-semibold);line-height:var(--s-line-height-lg)}.dialog__content{margin-bottom:var(--s-space-24);line-height:var(--s-line-height-base)}.dialog__content ::slotted(*){margin:0}@-webkit-keyframes dialog-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@keyframes dialog-scale-in{from{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes dialog-backdrop-fade-in{from{opacity:0}to{opacity:1}}@keyframes dialog-backdrop-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes dialog-fade-out{from{opacity:1}to{opacity:0}}@keyframes dialog-fade-out{from{opacity:1}to{opacity:0}}', w = class {
|
|
102
|
+
constructor(i) {
|
|
103
|
+
h(this, i), this.primaryAction = d(this, "primaryAction", 7), this.secondaryAction = d(this, "secondaryAction", 7), this.intent = "primary", this.closing = !1, this.onKeyDown = (t) => {
|
|
104
|
+
t.code === "Escape" && this.close();
|
|
105
|
+
}, this.onBackdropClick = () => {
|
|
106
|
+
this.close();
|
|
107
|
+
}, this.onPrimaryAction = (t) => {
|
|
108
|
+
this.primaryAction.emit(t), this.close();
|
|
109
|
+
}, this.onSecondaryAction = (t) => {
|
|
110
|
+
this.secondaryAction.emit(t), this.close();
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
componentDidLoad() {
|
|
114
|
+
this.dialog = new e(this.dialogEl), this.dialog.on("show", () => {
|
|
115
|
+
var i;
|
|
116
|
+
(i = this.controlsContainerEl.querySelector("flip-button button")) === null || i === void 0 || i.focus();
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
disconnectedCallback() {
|
|
120
|
+
var i;
|
|
121
|
+
(i = this.dialog) === null || i === void 0 || i.destroy();
|
|
122
|
+
}
|
|
123
|
+
async open() {
|
|
124
|
+
this.dialog.show();
|
|
125
|
+
}
|
|
126
|
+
async close() {
|
|
127
|
+
this.closing || (this.closing = !0, setTimeout(() => {
|
|
128
|
+
this.dialog.hide(), this.closing = !1;
|
|
129
|
+
}, 150));
|
|
130
|
+
}
|
|
131
|
+
render() {
|
|
132
|
+
const i = f("dialog", { "dialog--closing": this.closing });
|
|
133
|
+
return s(u, null, s("div", { "aria-describedby": "content", "aria-hidden": "true", "aria-labelledby": this.hideLabel ? void 0 : "label", "aria-label": this.hideLabel ? this.label : void 0, "aria-modal": "true", class: i, onKeyDown: this.onKeyDown, ref: (t) => this.dialogEl = t, role: "alertdialog" }, s("div", { class: "dialog__backdrop", onClick: this.onBackdropClick }), s("div", { class: "dialog__body", role: "document" }, !this.hideLabel && s("h2", { class: "dialog__heading", id: "label" }, this.label), s("div", { class: "dialog__content", id: "content" }, s("slot", null)), s("flip-button-group", { class: "dialog__controls", ref: (t) => this.controlsContainerEl = t, stretch: !0, wrap: !0 }, this.secondaryActionLabel && s("flip-button", { label: this.secondaryActionLabel, onClick: this.onSecondaryAction }), this.primaryActionLabel && s("flip-button", { intent: this.intent, label: this.primaryActionLabel, onClick: this.onPrimaryAction, variant: this.intent === "critical" ? "ghost" : "flat" })))));
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
w.style = v;
|
|
137
|
+
export {
|
|
138
|
+
w as flip_dialog
|
|
139
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as t, h as C, F as i } from "./main.7e7363a7.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const l = ":host{display:inline-flex}", o = class {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
t(this, s), this.size = 24;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return C("svg", { class: "flip-icon", fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${this.size} ${this.size}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && C(i, null, C("path", { d: "M1.99999 14.6666C1.63332 14.6666 1.31955 14.5362 1.05866 14.2753C0.797323 14.014 0.666656 13.7 0.666656 13.3333V5.33331C0.666656 4.96665 0.797323 4.65287 1.05866 4.39198C1.31955 4.13065 1.63332 3.99998 1.99999 3.99998H4.09999L4.93332 3.09998C5.05555 2.96665 5.20266 2.86109 5.37466 2.78331C5.5471 2.70554 5.72777 2.66665 5.91666 2.66665H8.66666C8.85555 2.66665 9.01399 2.73042 9.14199 2.85798C9.26955 2.98598 9.33332 3.14442 9.33332 3.33331V4.66665C9.33332 4.85553 9.39732 5.01398 9.52532 5.14198C9.65288 5.26953 9.8111 5.33331 9.99999 5.33331H11.3333V6.66665C11.3333 6.85553 11.3973 7.01376 11.5253 7.14131C11.6529 7.26931 11.8111 7.33331 12 7.33331H13.3333C13.5222 7.33331 13.6804 7.39709 13.808 7.52465C13.936 7.65265 14 7.81109 14 7.99998V13.3333C14 13.7 13.8695 14.014 13.6087 14.2753C13.3473 14.5362 13.0333 14.6666 12.6667 14.6666H1.99999ZM7.33332 12.3333C8.16666 12.3333 8.8751 12.0418 9.45866 11.4586C10.0418 10.8751 10.3333 10.1666 10.3333 9.33331C10.3333 8.49998 10.0418 7.79153 9.45866 7.20798C8.8751 6.62487 8.16666 6.33331 7.33332 6.33331C6.49999 6.33331 5.79155 6.62487 5.20799 7.20798C4.62488 7.79153 4.33332 8.49998 4.33332 9.33331C4.33332 10.1666 4.62488 10.8751 5.20799 11.4586C5.79155 12.0418 6.49999 12.3333 7.33332 12.3333ZM12.6667 3.99998H12C11.8111 3.99998 11.6529 3.9362 11.5253 3.80865C11.3973 3.68065 11.3333 3.5222 11.3333 3.33331C11.3333 3.14442 11.3973 2.98598 11.5253 2.85798C11.6529 2.73042 11.8111 2.66665 12 2.66665H12.6667V1.99998C12.6667 1.81109 12.7307 1.65265 12.8587 1.52465C12.9862 1.39709 13.1444 1.33331 13.3333 1.33331C13.5222 1.33331 13.6804 1.39709 13.808 1.52465C13.936 1.65265 14 1.81109 14 1.99998V2.66665H14.6667C14.8555 2.66665 15.0138 2.73042 15.1413 2.85798C15.2693 2.98598 15.3333 3.14442 15.3333 3.33331C15.3333 3.5222 15.2693 3.68065 15.1413 3.80865C15.0138 3.9362 14.8555 3.99998 14.6667 3.99998H14V4.66665C14 4.85553 13.936 5.01398 13.808 5.14198C13.6804 5.26953 13.5222 5.33331 13.3333 5.33331C13.1444 5.33331 12.9862 5.26953 12.8587 5.14198C12.7307 5.01398 12.6667 4.85553 12.6667 4.66665V3.99998Z", fill: "currentColor" })), this.size === 24 && C(i, null, C("path", { d: "M3 22C2.45 22 1.97933 21.8043 1.588 21.413C1.196 21.021 1 20.55 1 20V8C1 7.45 1.196 6.97933 1.588 6.588C1.97933 6.196 2.45 6 3 6H6.15L7.4 4.65C7.58333 4.45 7.804 4.29167 8.062 4.175C8.32067 4.05833 8.59167 4 8.875 4H13C13.2833 4 13.521 4.09567 13.713 4.287C13.9043 4.479 14 4.71667 14 5V7C14 7.28333 14.096 7.521 14.288 7.713C14.4793 7.90433 14.7167 8 15 8H17V10C17 10.2833 17.096 10.5207 17.288 10.712C17.4793 10.904 17.7167 11 18 11H20C20.2833 11 20.5207 11.0957 20.712 11.287C20.904 11.479 21 11.7167 21 12V20C21 20.55 20.8043 21.021 20.413 21.413C20.021 21.8043 19.55 22 19 22H3ZM11 18.5C12.25 18.5 13.3127 18.0627 14.188 17.188C15.0627 16.3127 15.5 15.25 15.5 14C15.5 12.75 15.0627 11.6873 14.188 10.812C13.3127 9.93733 12.25 9.5 11 9.5C9.75 9.5 8.68733 9.93733 7.812 10.812C6.93733 11.6873 6.5 12.75 6.5 14C6.5 15.25 6.93733 16.3127 7.812 17.188C8.68733 18.0627 9.75 18.5 11 18.5ZM19 6H18C17.7167 6 17.4793 5.90433 17.288 5.713C17.096 5.521 17 5.28333 17 5C17 4.71667 17.096 4.479 17.288 4.287C17.4793 4.09567 17.7167 4 18 4H19V3C19 2.71667 19.096 2.479 19.288 2.287C19.4793 2.09567 19.7167 2 20 2C20.2833 2 20.5207 2.09567 20.712 2.287C20.904 2.479 21 2.71667 21 3V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H21V7C21 7.28333 20.904 7.521 20.712 7.713C20.5207 7.90433 20.2833 8 20 8C19.7167 8 19.4793 7.90433 19.288 7.713C19.096 7.521 19 7.28333 19 7V6Z", fill: "currentColor" })), this.size === 28 && C(i, null, C("path", { d: "M3.49999 25.6666C2.85832 25.6666 2.30921 25.4384 1.85266 24.9818C1.39532 24.5245 1.16666 23.975 1.16666 23.3333V9.33331C1.16666 8.69165 1.39532 8.14254 1.85266 7.68598C2.30921 7.22865 2.85832 6.99998 3.49999 6.99998H7.17499L8.63332 5.42498C8.84721 5.19165 9.10466 5.00692 9.40566 4.87081C9.70743 4.7347 10.0236 4.66665 10.3542 4.66665H15.1667C15.4972 4.66665 15.7745 4.77826 15.9985 5.00148C16.2217 5.22548 16.3333 5.50276 16.3333 5.83331V8.16665C16.3333 8.4972 16.4453 8.77448 16.6693 8.99848C16.8925 9.2217 17.1694 9.33331 17.5 9.33331H19.8333V11.6666C19.8333 11.9972 19.9453 12.2741 20.1693 12.4973C20.3925 12.7213 20.6694 12.8333 21 12.8333H23.3333C23.6639 12.8333 23.9408 12.9449 24.164 13.1681C24.388 13.3921 24.5 13.6694 24.5 14V23.3333C24.5 23.975 24.2717 24.5245 23.8152 24.9818C23.3578 25.4384 22.8083 25.6666 22.1667 25.6666H3.49999ZM12.8333 21.5833C14.2917 21.5833 15.5314 21.0731 16.5527 20.0526C17.5731 19.0314 18.0833 17.7916 18.0833 16.3333C18.0833 14.875 17.5731 13.6352 16.5527 12.614C15.5314 11.5935 14.2917 11.0833 12.8333 11.0833C11.375 11.0833 10.1352 11.5935 9.11399 12.614C8.09354 13.6352 7.58332 14.875 7.58332 16.3333C7.58332 17.7916 8.09354 19.0314 9.11399 20.0526C10.1352 21.0731 11.375 21.5833 12.8333 21.5833ZM22.1667 6.99998H21C20.6694 6.99998 20.3925 6.88837 20.1693 6.66515C19.9453 6.44115 19.8333 6.16387 19.8333 5.83331C19.8333 5.50276 19.9453 5.22548 20.1693 5.00148C20.3925 4.77826 20.6694 4.66665 21 4.66665H22.1667V3.49998C22.1667 3.16942 22.2787 2.89215 22.5027 2.66815C22.7259 2.44492 23.0028 2.33331 23.3333 2.33331C23.6639 2.33331 23.9408 2.44492 24.164 2.66815C24.388 2.89215 24.5 3.16942 24.5 3.49998V4.66665H25.6667C25.9972 4.66665 26.2741 4.77826 26.4973 5.00148C26.7213 5.22548 26.8333 5.50276 26.8333 5.83331C26.8333 6.16387 26.7213 6.44115 26.4973 6.66515C26.2741 6.88837 25.9972 6.99998 25.6667 6.99998H24.5V8.16665C24.5 8.4972 24.388 8.77448 24.164 8.99848C23.9408 9.2217 23.6639 9.33331 23.3333 9.33331C23.0028 9.33331 22.7259 9.2217 22.5027 8.99848C22.2787 8.77448 22.1667 8.4972 22.1667 8.16665V6.99998Z", fill: "currentColor" })));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
o.style = l;
|
|
13
|
+
export {
|
|
14
|
+
o as flip_icon_add_photo
|
|
15
|
+
};
|