@eyesee/ui-components 0.4.0 → 0.6.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/components/Button/Button.js +39 -36
- package/dist/components/Button/Button.module.scss.js +36 -34
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.module.scss.js +12 -12
- package/dist/components/ImagePlaceholder/ImageHoverPreview/ImageHoverPreview.js +64 -0
- package/dist/components/ImagePlaceholder/ImageHoverPreview/ImageHoverPreview.module.scss.js +9 -0
- package/dist/components/ImagePlaceholder/ImagePlaceholder.js +54 -48
- package/dist/components/ImagePlaceholder/ImagePlaceholder.module.scss.js +25 -25
- package/dist/components/ImageWithData/ImageWithData.module.scss.js +20 -20
- package/dist/components/ListItem/ListItem.module.scss.js +13 -13
- package/dist/components/Modal/Modal.js +54 -55
- package/dist/components/Modal/Modal.module.scss.js +18 -16
- package/dist/components/Pill/Pill.js +17 -19
- package/dist/components/Tab/Tab.js +20 -18
- package/dist/components/Tab/Tab.module.scss.js +34 -32
- package/dist/components/Tabs/Tabs.js +50 -49
- package/dist/components/Tabs/Tabs.module.scss.js +13 -11
- package/dist/components/Tabs/tabsUtils.js +12 -11
- package/dist/components/icons-v2/EyeSeeTokenIcon.js +35 -0
- package/dist/components/icons-v2/index.js +268 -266
- package/dist/index.js +37 -35
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/styles/_mixins.scss +1 -1
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as j, useRef as B } from "react";
|
|
3
3
|
import c from "clsx";
|
|
4
|
-
import { ChevronDownIcon as
|
|
5
|
-
import { ChevronUpIcon as
|
|
6
|
-
import
|
|
4
|
+
import { ChevronDownIcon as L } from "../icons-v2/ChevronDownIcon.js";
|
|
5
|
+
import { ChevronUpIcon as R } from "../icons-v2/ChevronUpIcon.js";
|
|
6
|
+
import S from "../../hooks/useClickOutside.js";
|
|
7
|
+
import { ListItem as A } from "../ListItem/ListItem.js";
|
|
8
|
+
import { DropdownList as E } from "../DropdownList/DropdownList.js";
|
|
9
|
+
import { Tooltip as U } from "../Tooltip/Tooltip.js";
|
|
7
10
|
import e from "./Button.module.scss.js";
|
|
8
|
-
|
|
9
|
-
import { DropdownList as A } from "../DropdownList/DropdownList.js";
|
|
10
|
-
import { Tooltip as E } from "../Tooltip/Tooltip.js";
|
|
11
|
-
const Q = ({
|
|
11
|
+
const V = ({
|
|
12
12
|
text: l,
|
|
13
13
|
options: r = [],
|
|
14
14
|
onClick: i = () => {
|
|
15
15
|
},
|
|
16
|
-
className:
|
|
16
|
+
className: b,
|
|
17
17
|
iconSize: p = "m",
|
|
18
|
-
size:
|
|
19
|
-
variant:
|
|
20
|
-
type:
|
|
18
|
+
size: g = "md",
|
|
19
|
+
variant: w = "primary",
|
|
20
|
+
type: I = "fill",
|
|
21
|
+
pressed: u = !1,
|
|
21
22
|
icon: a = null,
|
|
22
|
-
tooltipContent:
|
|
23
|
-
tooltipTitle:
|
|
24
|
-
disabled:
|
|
25
|
-
fullWidth:
|
|
26
|
-
dropdownAlign:
|
|
27
|
-
tooltipProps:
|
|
28
|
-
...
|
|
23
|
+
tooltipContent: h = null,
|
|
24
|
+
tooltipTitle: v,
|
|
25
|
+
disabled: C = !1,
|
|
26
|
+
fullWidth: N = !1,
|
|
27
|
+
dropdownAlign: O = "start",
|
|
28
|
+
tooltipProps: y = { position: "bottom", variant: "light" },
|
|
29
|
+
...x
|
|
29
30
|
}) => {
|
|
30
|
-
const [s, o] =
|
|
31
|
-
|
|
32
|
-
const
|
|
31
|
+
const [s, o] = j(!1), f = B(null);
|
|
32
|
+
S(f, () => o(!1));
|
|
33
|
+
const D = (t) => {
|
|
33
34
|
i(t), o(!1);
|
|
34
|
-
},
|
|
35
|
+
}, k = a && !l && r.length === 0, T = a && !l, W = !!h, d = /* @__PURE__ */ m(
|
|
35
36
|
"div",
|
|
36
37
|
{
|
|
37
|
-
ref:
|
|
38
|
+
ref: f,
|
|
38
39
|
"data-button-wrapper": !0,
|
|
39
|
-
className: c(e.wrapper,
|
|
40
|
-
...
|
|
40
|
+
className: c(e.wrapper, b, N && e.fullWidth),
|
|
41
|
+
...x,
|
|
41
42
|
children: [
|
|
42
43
|
/* @__PURE__ */ m(
|
|
43
44
|
"button",
|
|
@@ -45,17 +46,19 @@ const Q = ({
|
|
|
45
46
|
type: "button",
|
|
46
47
|
className: c(
|
|
47
48
|
e.button,
|
|
48
|
-
e[b],
|
|
49
49
|
e[g],
|
|
50
50
|
e[w],
|
|
51
|
+
e[I],
|
|
51
52
|
r.length > 0 && e.hasDropdown,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
k && e.iconOnly,
|
|
54
|
+
T && e.isIcon,
|
|
55
|
+
u && e.pressed
|
|
54
56
|
),
|
|
55
57
|
onClick: () => r.length > 0 ? o((t) => !t) : i(),
|
|
56
58
|
"aria-expanded": s,
|
|
59
|
+
"aria-pressed": u,
|
|
57
60
|
"aria-haspopup": "menu",
|
|
58
|
-
disabled:
|
|
61
|
+
disabled: C,
|
|
59
62
|
children: [
|
|
60
63
|
/* @__PURE__ */ m(
|
|
61
64
|
"span",
|
|
@@ -70,12 +73,12 @@ const Q = ({
|
|
|
70
73
|
]
|
|
71
74
|
}
|
|
72
75
|
),
|
|
73
|
-
r.length > 0 && /* @__PURE__ */ n("span", { className: e.buttonArrow, children: s ? /* @__PURE__ */ n(
|
|
76
|
+
r.length > 0 && /* @__PURE__ */ n("span", { className: e.buttonArrow, children: s ? /* @__PURE__ */ n(R, { iconSize: p }) : /* @__PURE__ */ n(L, { iconSize: p }) })
|
|
74
77
|
]
|
|
75
78
|
}
|
|
76
79
|
),
|
|
77
|
-
s && r.length > 0 && /* @__PURE__ */ n(
|
|
78
|
-
|
|
80
|
+
s && r.length > 0 && /* @__PURE__ */ n(E, { align: O, children: r.map((t) => /* @__PURE__ */ n(
|
|
81
|
+
A,
|
|
79
82
|
{
|
|
80
83
|
role: "menuitem",
|
|
81
84
|
title: t.label,
|
|
@@ -83,15 +86,15 @@ const Q = ({
|
|
|
83
86
|
horizontalSpacing: "xs",
|
|
84
87
|
verticalSpacing: "none",
|
|
85
88
|
...t,
|
|
86
|
-
onClick: () =>
|
|
89
|
+
onClick: () => D(t)
|
|
87
90
|
},
|
|
88
91
|
t.value
|
|
89
92
|
)) })
|
|
90
93
|
]
|
|
91
94
|
}
|
|
92
95
|
);
|
|
93
|
-
return
|
|
96
|
+
return W ? /* @__PURE__ */ n(U, { title: v, content: h, ...y, children: d }) : d;
|
|
94
97
|
};
|
|
95
98
|
export {
|
|
96
|
-
|
|
99
|
+
V as Button
|
|
97
100
|
};
|
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_fullWidth_16rg3_3", n = "_button_16rg3_6", o = "_wrapper_16rg3_10", _ = "_buttonContent_16rg3_27", r = "_icon_16rg3_27", s = "_buttonArrow_16rg3_28", c = "_buttonText_16rg3_36", e = "_iconOnly_16rg3_53", l = "_buttonContentDropdown_16rg3_56", g = "_hasDropdown_16rg3_62", u = "_lg_16rg3_78", i = "_isIcon_16rg3_81", d = "_md_16rg3_85", x = "_sm_16rg3_92", a = "_xs_16rg3_99", p = "_xxs_16rg3_106", b = "_xxxs_16rg3_113", w = "_primary_16rg3_123", y = "_fill_16rg3_123", m = "_pressed_16rg3_127", f = "_outline_16rg3_154", h = "_blank_16rg3_167", C = "_secondary_16rg3_214", D = "_destructive_16rg3_305", k = "_neutral_16rg3_396", v = {
|
|
2
2
|
fullWidth: t,
|
|
3
3
|
button: n,
|
|
4
4
|
wrapper: o,
|
|
5
5
|
buttonContent: _,
|
|
6
|
-
icon:
|
|
7
|
-
buttonArrow:
|
|
8
|
-
buttonText:
|
|
9
|
-
iconOnly:
|
|
10
|
-
buttonContentDropdown:
|
|
11
|
-
hasDropdown:
|
|
6
|
+
icon: r,
|
|
7
|
+
buttonArrow: s,
|
|
8
|
+
buttonText: c,
|
|
9
|
+
iconOnly: e,
|
|
10
|
+
buttonContentDropdown: l,
|
|
11
|
+
hasDropdown: g,
|
|
12
12
|
lg: u,
|
|
13
|
-
isIcon:
|
|
14
|
-
md:
|
|
13
|
+
isIcon: i,
|
|
14
|
+
md: d,
|
|
15
15
|
sm: x,
|
|
16
16
|
xs: a,
|
|
17
|
-
xxs:
|
|
17
|
+
xxs: p,
|
|
18
18
|
xxxs: b,
|
|
19
|
-
primary:
|
|
20
|
-
fill:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
primary: w,
|
|
20
|
+
fill: y,
|
|
21
|
+
pressed: m,
|
|
22
|
+
outline: f,
|
|
23
|
+
blank: h,
|
|
24
|
+
secondary: C,
|
|
25
|
+
destructive: D,
|
|
26
|
+
neutral: k
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
h as blank,
|
|
29
30
|
n as button,
|
|
30
|
-
|
|
31
|
+
s as buttonArrow,
|
|
31
32
|
_ as buttonContent,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
l as buttonContentDropdown,
|
|
34
|
+
c as buttonText,
|
|
35
|
+
v as default,
|
|
36
|
+
D as destructive,
|
|
37
|
+
y as fill,
|
|
37
38
|
t as fullWidth,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
g as hasDropdown,
|
|
40
|
+
r as icon,
|
|
41
|
+
e as iconOnly,
|
|
42
|
+
i as isIcon,
|
|
42
43
|
u as lg,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
d as md,
|
|
45
|
+
k as neutral,
|
|
46
|
+
f as outline,
|
|
47
|
+
m as pressed,
|
|
48
|
+
w as primary,
|
|
49
|
+
C as secondary,
|
|
48
50
|
x as sm,
|
|
49
51
|
o as wrapper,
|
|
50
52
|
a as xs,
|
|
51
|
-
|
|
53
|
+
p as xxs,
|
|
52
54
|
b as xxxs
|
|
53
55
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as z, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useId as C } from "react";
|
|
3
3
|
import n from "clsx";
|
|
4
|
-
import o from "./Checkbox.module.scss.js";
|
|
5
4
|
import { CheckmarkLargeIcon as I } from "../icons-v2/CheckmarkLargeIcon.js";
|
|
6
5
|
import { MinusIcon as y } from "../icons-v2/MinusIcon.js";
|
|
7
6
|
import { iconSizes as a } from "../icons-v2/constants.js";
|
|
7
|
+
import o from "./Checkbox.module.scss.js";
|
|
8
8
|
const N = (e) => e === "lg" ? "m" : "s", W = ({
|
|
9
9
|
label: e,
|
|
10
10
|
checked: c = !1,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
checkboxWrapper:
|
|
3
|
-
disabled:
|
|
1
|
+
const e = "_checkboxWrapper_1u1h6_3", c = "_disabled_1u1h6_13", _ = "_input_1u1h6_18", l = "_checkbox_1u1h6_3", t = "_filled_1u1h6_42", o = "_labelText_1u1h6_46", b = {
|
|
2
|
+
checkboxWrapper: e,
|
|
3
|
+
disabled: c,
|
|
4
4
|
input: _,
|
|
5
|
-
checkbox:
|
|
6
|
-
filled:
|
|
7
|
-
labelText:
|
|
5
|
+
checkbox: l,
|
|
6
|
+
filled: t,
|
|
7
|
+
labelText: o
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
l as checkbox,
|
|
11
|
+
e as checkboxWrapper,
|
|
12
|
+
b as default,
|
|
13
|
+
c as disabled,
|
|
14
|
+
t as filled,
|
|
15
15
|
_ as input,
|
|
16
|
-
|
|
16
|
+
o as labelText
|
|
17
17
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsxs as f, Fragment as p, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as I, useState as E } from "react";
|
|
3
|
+
import { createPortal as M } from "react-dom";
|
|
4
|
+
import P from "../ImagePlaceholder.js";
|
|
5
|
+
import d from "./ImageHoverPreview.module.scss.js";
|
|
6
|
+
const w = 200, r = 8, u = 8, x = () => document.getElementById("modal") ?? document.body, g = (t, e, a) => Math.min(Math.max(t, e), a), j = ({ previewSize: t = w, ...e }) => {
|
|
7
|
+
const a = I(null), [s, c] = E(null);
|
|
8
|
+
return /* @__PURE__ */ f(p, { children: [
|
|
9
|
+
/* @__PURE__ */ m(
|
|
10
|
+
P,
|
|
11
|
+
{
|
|
12
|
+
...e,
|
|
13
|
+
imageAreaRef: a,
|
|
14
|
+
onImageAreaMouseEnter: (l) => {
|
|
15
|
+
var i;
|
|
16
|
+
l.stopPropagation();
|
|
17
|
+
const o = (i = a.current) == null ? void 0 : i.getBoundingClientRect();
|
|
18
|
+
if (!o) return;
|
|
19
|
+
let n = o.right + u;
|
|
20
|
+
n + t > window.innerWidth - r && (n = o.left - t - u), n = g(
|
|
21
|
+
n,
|
|
22
|
+
r,
|
|
23
|
+
window.innerWidth - t - r
|
|
24
|
+
);
|
|
25
|
+
const h = g(
|
|
26
|
+
o.top + o.height / 2 - t / 2,
|
|
27
|
+
r,
|
|
28
|
+
window.innerHeight - t - r
|
|
29
|
+
);
|
|
30
|
+
c({ top: h, left: n });
|
|
31
|
+
},
|
|
32
|
+
onImageAreaMouseLeave: (l) => {
|
|
33
|
+
l.stopPropagation(), c(null);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
s && M(
|
|
38
|
+
/* @__PURE__ */ m(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: d.preview,
|
|
42
|
+
style: {
|
|
43
|
+
top: s.top,
|
|
44
|
+
left: s.left,
|
|
45
|
+
width: t,
|
|
46
|
+
height: t
|
|
47
|
+
},
|
|
48
|
+
children: /* @__PURE__ */ m(
|
|
49
|
+
"img",
|
|
50
|
+
{
|
|
51
|
+
src: e.url,
|
|
52
|
+
alt: e.text ?? "",
|
|
53
|
+
className: d.previewImage
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
x()
|
|
59
|
+
)
|
|
60
|
+
] });
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
j as ImageHoverPreview
|
|
64
|
+
};
|
|
@@ -1,67 +1,73 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { Checkbox as
|
|
5
|
-
import { tagPropsFromTag as
|
|
6
|
-
import { ASPECT_RATIOS as N, TAG_TYPES as T, OVERLAYS as
|
|
7
|
-
import { ImageOffIcon as
|
|
8
|
-
import { MoreIcon as
|
|
9
|
-
import { XIcon as
|
|
3
|
+
import i from "clsx";
|
|
4
|
+
import { Checkbox as F } from "../Checkbox/Checkbox.js";
|
|
5
|
+
import { tagPropsFromTag as R, badgePropsFromTag as z, pillPropsFromTag as _ } from "./utilsImgPh.js";
|
|
6
|
+
import { ASPECT_RATIOS as N, TAG_TYPES as T, OVERLAYS as j, TEXT_POSITIONS as x, LINES as B } from "./constantsImgPh.js";
|
|
7
|
+
import { ImageOffIcon as X } from "../icons-v2/ImageOffIcon.js";
|
|
8
|
+
import { MoreIcon as Y } from "../icons-v2/MoreIcon.js";
|
|
9
|
+
import { XIcon as D } from "../icons-v2/XIcon.js";
|
|
10
10
|
import e from "./ImagePlaceholder.module.scss.js";
|
|
11
|
-
import { Button as
|
|
12
|
-
import { EllipsisTooltip as
|
|
13
|
-
import { DropdownList as
|
|
14
|
-
import { ListItem as
|
|
15
|
-
import { Tag as
|
|
16
|
-
import { Badge as
|
|
17
|
-
import { Pill as
|
|
18
|
-
const
|
|
11
|
+
import { Button as G } from "../Button/Button.js";
|
|
12
|
+
import { EllipsisTooltip as V } from "../EllipsisTooltip/EllipsisTooltip.js";
|
|
13
|
+
import { DropdownList as W } from "../DropdownList/DropdownList.js";
|
|
14
|
+
import { ListItem as q } from "../ListItem/ListItem.js";
|
|
15
|
+
import { Tag as H } from "../Tag/Tag.js";
|
|
16
|
+
import { Badge as J } from "../Badge/Badge.js";
|
|
17
|
+
import { Pill as K } from "../Pill/Pill.js";
|
|
18
|
+
const ho = ({
|
|
19
19
|
id: I,
|
|
20
20
|
url: k,
|
|
21
21
|
text: a,
|
|
22
22
|
textPosition: t = x.inside,
|
|
23
23
|
tag: r,
|
|
24
24
|
overlay: s,
|
|
25
|
-
isChecked:
|
|
25
|
+
isChecked: v,
|
|
26
26
|
onChecked: p,
|
|
27
27
|
menu: d,
|
|
28
|
-
aspectRatio:
|
|
29
|
-
lines: C =
|
|
28
|
+
aspectRatio: S = N["1/1"],
|
|
29
|
+
lines: C = B[1],
|
|
30
30
|
disabled: m = !1,
|
|
31
31
|
onClose: E = () => {
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
imageAreaRef: g,
|
|
34
|
+
onImageAreaMouseEnter: P,
|
|
35
|
+
onImageAreaMouseLeave: w
|
|
33
36
|
}) => {
|
|
34
|
-
const [
|
|
37
|
+
const [u, L] = b(!1), [n, A] = b(!1), h = () => {
|
|
35
38
|
switch (r == null ? void 0 : r.type) {
|
|
36
39
|
case "pill":
|
|
37
|
-
return /* @__PURE__ */ o(
|
|
40
|
+
return /* @__PURE__ */ o(K, { ..._(r) });
|
|
38
41
|
case "badge":
|
|
39
|
-
return /* @__PURE__ */ o(
|
|
42
|
+
return /* @__PURE__ */ o(J, { ...z(r) });
|
|
40
43
|
case "tag":
|
|
41
|
-
return /* @__PURE__ */ o(
|
|
44
|
+
return /* @__PURE__ */ o(H, { ...R(r) });
|
|
42
45
|
default:
|
|
43
46
|
return null;
|
|
44
47
|
}
|
|
45
|
-
}, f = !a || t === x.outside ? "8px" : "8px 8px 0 0",
|
|
46
|
-
return /* @__PURE__ */ c("div", { className:
|
|
48
|
+
}, f = !a || t === x.outside ? "8px" : "8px 8px 0 0", y = Number(C), M = i(e.contentText, e.contentTextClamped), O = { WebkitLineClamp: y };
|
|
49
|
+
return /* @__PURE__ */ c("div", { className: i(e.imagePlaceholder, m && e.disabled), children: [
|
|
47
50
|
/* @__PURE__ */ c(
|
|
48
51
|
"div",
|
|
49
52
|
{
|
|
50
|
-
|
|
53
|
+
ref: g,
|
|
54
|
+
className: i(
|
|
51
55
|
e.imageArea,
|
|
52
56
|
s === "checkbox" && e.clickable,
|
|
53
|
-
s === "checkbox" && !
|
|
57
|
+
s === "checkbox" && !n && e.checkboxSelectable
|
|
54
58
|
),
|
|
55
59
|
style: { borderRadius: f },
|
|
56
|
-
onClick: s === "checkbox" && !
|
|
60
|
+
onClick: s === "checkbox" && !n && !m ? p : void 0,
|
|
61
|
+
onMouseEnter: P,
|
|
62
|
+
onMouseLeave: w,
|
|
57
63
|
children: [
|
|
58
64
|
/* @__PURE__ */ o(
|
|
59
65
|
"div",
|
|
60
66
|
{
|
|
61
67
|
className: e.imageFrame,
|
|
62
|
-
style: { aspectRatio: N[
|
|
63
|
-
children:
|
|
64
|
-
|
|
68
|
+
style: { aspectRatio: N[S], borderRadius: f },
|
|
69
|
+
children: n ? /* @__PURE__ */ o("div", { className: e.imageError, children: /* @__PURE__ */ o(
|
|
70
|
+
X,
|
|
65
71
|
{
|
|
66
72
|
iconSize: "l",
|
|
67
73
|
strokeColor: "var(--color--icon--disabled--default)"
|
|
@@ -72,26 +78,26 @@ const to = ({
|
|
|
72
78
|
className: e.image,
|
|
73
79
|
src: k,
|
|
74
80
|
alt: a,
|
|
75
|
-
onError: () =>
|
|
81
|
+
onError: () => A(!0)
|
|
76
82
|
}
|
|
77
83
|
)
|
|
78
84
|
}
|
|
79
85
|
),
|
|
80
|
-
!a && T.has(r == null ? void 0 : r.type) ? /* @__PURE__ */ o("div", { className: e.tagInImage, children:
|
|
81
|
-
|
|
82
|
-
s === "checkbox" && !
|
|
83
|
-
|
|
86
|
+
!a && T.has(r == null ? void 0 : r.type) ? /* @__PURE__ */ o("div", { className: e.tagInImage, children: h() }) : null,
|
|
87
|
+
j.has(s) && /* @__PURE__ */ c("div", { className: e.overlay, onClick: (l) => l.stopPropagation(), children: [
|
|
88
|
+
s === "checkbox" && !n ? /* @__PURE__ */ o(
|
|
89
|
+
F,
|
|
84
90
|
{
|
|
85
|
-
checked:
|
|
91
|
+
checked: v,
|
|
86
92
|
onChange: p,
|
|
87
93
|
size: "lg",
|
|
88
94
|
disabled: m
|
|
89
95
|
}
|
|
90
96
|
) : null,
|
|
91
97
|
s === "close" ? /* @__PURE__ */ o(
|
|
92
|
-
|
|
98
|
+
G,
|
|
93
99
|
{
|
|
94
|
-
icon: /* @__PURE__ */ o(
|
|
100
|
+
icon: /* @__PURE__ */ o(D, {}),
|
|
95
101
|
size: "xxs",
|
|
96
102
|
variant: "fill",
|
|
97
103
|
type: "neutral",
|
|
@@ -102,23 +108,23 @@ const to = ({
|
|
|
102
108
|
]
|
|
103
109
|
}
|
|
104
110
|
),
|
|
105
|
-
a ? /* @__PURE__ */ c("div", { className:
|
|
106
|
-
T.has(r == null ? void 0 : r.type) ? /* @__PURE__ */ o("div", { children:
|
|
111
|
+
a ? /* @__PURE__ */ c("div", { className: i(e.belowImage, e[t]), children: [
|
|
112
|
+
T.has(r == null ? void 0 : r.type) ? /* @__PURE__ */ o("div", { children: h() }) : null,
|
|
107
113
|
/* @__PURE__ */ c("div", { className: e.content, children: [
|
|
108
114
|
/* @__PURE__ */ o(
|
|
109
|
-
|
|
115
|
+
V,
|
|
110
116
|
{
|
|
111
117
|
position: "bottom",
|
|
112
118
|
showArrow: !0,
|
|
113
|
-
className:
|
|
114
|
-
wrapperStyle:
|
|
119
|
+
className: M,
|
|
120
|
+
wrapperStyle: O,
|
|
115
121
|
children: a
|
|
116
122
|
}
|
|
117
123
|
),
|
|
118
124
|
d && /* @__PURE__ */ c("div", { className: e.menu, children: [
|
|
119
|
-
/* @__PURE__ */ o("span", { onClick: () =>
|
|
120
|
-
|
|
121
|
-
|
|
125
|
+
/* @__PURE__ */ o("span", { onClick: () => L(!u), children: /* @__PURE__ */ o(Y, {}) }),
|
|
126
|
+
u && /* @__PURE__ */ o(W, { children: d.map((l) => /* @__PURE__ */ o(
|
|
127
|
+
q,
|
|
122
128
|
{
|
|
123
129
|
title: l == null ? void 0 : l.title,
|
|
124
130
|
value: l == null ? void 0 : l.value,
|
|
@@ -132,5 +138,5 @@ const to = ({
|
|
|
132
138
|
] }, I);
|
|
133
139
|
};
|
|
134
140
|
export {
|
|
135
|
-
|
|
141
|
+
ho as default
|
|
136
142
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_imagePlaceholder_64kms_3", t = "_disabled_64kms_9", _ = "_imageArea_64kms_15", a = "_clickable_64kms_24", m = "_checkboxSelectable_64kms_27", o = "_imageFrame_64kms_32", s = "_image_64kms_3", c = "_imageError_64kms_48", n = "_tagInImage_64kms_55", l = "_overlay_64kms_60", i = "_belowImage_64kms_65", g = "_inside_64kms_74", k = "_outside_64kms_78", r = "_content_64kms_82", d = "_contentText_64kms_88", b = "_contentTextClamped_64kms_102", x = "_menu_64kms_107", I = {
|
|
2
2
|
imagePlaceholder: e,
|
|
3
3
|
disabled: t,
|
|
4
4
|
imageArea: _,
|
|
5
5
|
clickable: a,
|
|
6
|
-
checkboxSelectable:
|
|
7
|
-
imageFrame:
|
|
8
|
-
image:
|
|
9
|
-
imageError:
|
|
10
|
-
tagInImage:
|
|
11
|
-
overlay:
|
|
12
|
-
belowImage:
|
|
13
|
-
inside:
|
|
14
|
-
outside:
|
|
6
|
+
checkboxSelectable: m,
|
|
7
|
+
imageFrame: o,
|
|
8
|
+
image: s,
|
|
9
|
+
imageError: c,
|
|
10
|
+
tagInImage: n,
|
|
11
|
+
overlay: l,
|
|
12
|
+
belowImage: i,
|
|
13
|
+
inside: g,
|
|
14
|
+
outside: k,
|
|
15
15
|
content: r,
|
|
16
|
-
contentText:
|
|
17
|
-
contentTextClamped:
|
|
18
|
-
menu:
|
|
16
|
+
contentText: d,
|
|
17
|
+
contentTextClamped: b,
|
|
18
|
+
menu: x
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
i as belowImage,
|
|
22
|
+
m as checkboxSelectable,
|
|
23
23
|
a as clickable,
|
|
24
24
|
r as content,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
d as contentText,
|
|
26
|
+
b as contentTextClamped,
|
|
27
27
|
I as default,
|
|
28
28
|
t as disabled,
|
|
29
|
-
|
|
29
|
+
s as image,
|
|
30
30
|
_ as imageArea,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
c as imageError,
|
|
32
|
+
o as imageFrame,
|
|
33
33
|
e as imagePlaceholder,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
g as inside,
|
|
35
|
+
x as menu,
|
|
36
|
+
k as outside,
|
|
37
|
+
l as overlay,
|
|
38
|
+
n as tagInImage
|
|
39
39
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_imagePlaceholder_1fny6_3", n = "_disabled_1fny6_9", t = "_imageArea_1fny6_15", _ = "_clickable_1fny6_25", a = "_checkboxSelectable_1fny6_28", o = "_imageFrame_1fny6_33", c = "_image_1fny6_3", l = "_imageError_1fny6_49", i = "_tagInImage_1fny6_56", m = "_overlay_1fny6_61", s = "_belowImage_1fny6_66", r = "_inside_1fny6_75", g = "_outside_1fny6_79", y = "_content_1fny6_83", d = "_number_1fny6_90", b = "_contentText_1fny6_98", f = "_contentTextClamped_1fny6_111", x = {
|
|
2
2
|
imagePlaceholder: e,
|
|
3
|
-
disabled:
|
|
4
|
-
imageArea:
|
|
5
|
-
clickable:
|
|
6
|
-
checkboxSelectable:
|
|
7
|
-
imageFrame:
|
|
8
|
-
image:
|
|
9
|
-
imageError:
|
|
3
|
+
disabled: n,
|
|
4
|
+
imageArea: t,
|
|
5
|
+
clickable: _,
|
|
6
|
+
checkboxSelectable: a,
|
|
7
|
+
imageFrame: o,
|
|
8
|
+
image: c,
|
|
9
|
+
imageError: l,
|
|
10
10
|
tagInImage: i,
|
|
11
11
|
overlay: m,
|
|
12
12
|
belowImage: s,
|
|
13
13
|
inside: r,
|
|
14
14
|
outside: g,
|
|
15
|
-
content:
|
|
15
|
+
content: y,
|
|
16
16
|
number: d,
|
|
17
17
|
contentText: b,
|
|
18
|
-
contentTextClamped:
|
|
18
|
+
contentTextClamped: f
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
21
|
s as belowImage,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
a as checkboxSelectable,
|
|
23
|
+
_ as clickable,
|
|
24
|
+
y as content,
|
|
25
25
|
b as contentText,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
f as contentTextClamped,
|
|
27
|
+
x as default,
|
|
28
|
+
n as disabled,
|
|
29
|
+
c as image,
|
|
30
|
+
t as imageArea,
|
|
31
|
+
l as imageError,
|
|
32
|
+
o as imageFrame,
|
|
33
33
|
e as imagePlaceholder,
|
|
34
34
|
r as inside,
|
|
35
35
|
d as number,
|