@eyesee/ui-components 0.13.0 → 0.14.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 +48 -44
- package/dist/components/Fields/InputField/InputField.module.scss.js +2 -2
- package/dist/components/Fields/InputFieldContainer.d.ts +10 -0
- package/dist/components/Fields/InputFieldContainer.js +78 -71
- package/dist/components/Fields/InputFieldContainer.module.scss.js +14 -14
- package/dist/components/Fields/TextField/TextField.module.scss.js +4 -4
- package/dist/components/ImagePlaceholder/ImagePlaceholder.js +17 -16
- package/dist/components/ImagePlaceholder/ImagePlaceholder.module.scss.js +36 -36
- package/dist/components/icons-v2/AddImageIcon.d.ts +13 -0
- package/dist/components/icons-v2/AddImageIcon.js +15 -0
- package/dist/components/icons-v2/EditImageIcon.d.ts +13 -0
- package/dist/components/icons-v2/EditImageIcon.js +15 -0
- package/dist/components/icons-v2/index.d.ts +2 -0
- package/dist/components/icons-v2/index.js +86 -82
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,85 +1,89 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as E, useRef as L, useEffect as R } from "react";
|
|
3
|
+
import p from "clsx";
|
|
4
4
|
import { ChevronDownIcon as S } from "../icons-v2/ChevronDownIcon.js";
|
|
5
5
|
import { ChevronUpIcon as A } from "../icons-v2/ChevronUpIcon.js";
|
|
6
|
-
import
|
|
7
|
-
import { ListItem as
|
|
8
|
-
import { DropdownList as
|
|
9
|
-
import { Tooltip as
|
|
6
|
+
import U from "../../hooks/useClickOutside.js";
|
|
7
|
+
import { ListItem as q } from "../ListItem/ListItem.js";
|
|
8
|
+
import { DropdownList as z } from "../DropdownList/DropdownList.js";
|
|
9
|
+
import { Tooltip as F } from "../Tooltip/Tooltip.js";
|
|
10
10
|
import e from "./Button.module.scss.js";
|
|
11
|
-
function
|
|
12
|
-
text:
|
|
13
|
-
options:
|
|
11
|
+
function Z({
|
|
12
|
+
text: a,
|
|
13
|
+
options: f = [],
|
|
14
14
|
onClick: u = () => {
|
|
15
15
|
},
|
|
16
|
-
className:
|
|
17
|
-
iconSize:
|
|
18
|
-
size:
|
|
19
|
-
variant:
|
|
20
|
-
type:
|
|
21
|
-
pressed:
|
|
22
|
-
icon:
|
|
23
|
-
tooltipContent:
|
|
24
|
-
tooltipTitle:
|
|
25
|
-
disabled:
|
|
16
|
+
className: v,
|
|
17
|
+
iconSize: h = "m",
|
|
18
|
+
size: N = "md",
|
|
19
|
+
variant: O = "primary",
|
|
20
|
+
type: g = "fill",
|
|
21
|
+
pressed: d = !1,
|
|
22
|
+
icon: s = null,
|
|
23
|
+
tooltipContent: b = null,
|
|
24
|
+
tooltipTitle: y,
|
|
25
|
+
disabled: i = !1,
|
|
26
26
|
fullWidth: D = !1,
|
|
27
27
|
dropdownAlign: x = "start",
|
|
28
28
|
tooltipProps: k = { position: "bottom", variant: "light" },
|
|
29
|
-
dropdownCustomContent:
|
|
29
|
+
dropdownCustomContent: c = null,
|
|
30
30
|
...B
|
|
31
31
|
}) {
|
|
32
|
-
const [
|
|
33
|
-
|
|
32
|
+
const [l, o] = E(!1), I = L(null);
|
|
33
|
+
U(I, () => o(!1));
|
|
34
34
|
const T = (n) => {
|
|
35
|
-
u(n),
|
|
36
|
-
}
|
|
35
|
+
u(n), o(!1);
|
|
36
|
+
};
|
|
37
|
+
R(() => {
|
|
38
|
+
i && l && o(!1);
|
|
39
|
+
}, [i, l]);
|
|
40
|
+
const t = f.length > 0 || !!c, W = s && !a && !t, j = s && !a, C = !!b, w = /* @__PURE__ */ m(
|
|
37
41
|
"div",
|
|
38
42
|
{
|
|
39
|
-
ref:
|
|
43
|
+
ref: I,
|
|
40
44
|
"data-button-wrapper": !0,
|
|
41
|
-
className:
|
|
45
|
+
className: p(e.wrapper, v, D && e.fullWidth),
|
|
42
46
|
...B,
|
|
43
47
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ m(
|
|
45
49
|
"button",
|
|
46
50
|
{
|
|
47
51
|
type: "button",
|
|
48
|
-
className:
|
|
52
|
+
className: p(
|
|
49
53
|
e.button,
|
|
50
|
-
e[v],
|
|
51
54
|
e[N],
|
|
52
55
|
e[O],
|
|
56
|
+
e[g],
|
|
53
57
|
t && e.hasDropdown,
|
|
54
58
|
W && e.iconOnly,
|
|
55
59
|
j && e.isIcon,
|
|
56
|
-
|
|
60
|
+
d && e.pressed
|
|
57
61
|
),
|
|
58
|
-
onClick: () => t ?
|
|
59
|
-
"aria-expanded":
|
|
60
|
-
"aria-pressed":
|
|
62
|
+
onClick: () => t ? o((n) => !n) : u(),
|
|
63
|
+
"aria-expanded": l,
|
|
64
|
+
"aria-pressed": d,
|
|
61
65
|
"aria-haspopup": "menu",
|
|
62
|
-
disabled:
|
|
66
|
+
disabled: i,
|
|
63
67
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ m(
|
|
65
69
|
"span",
|
|
66
70
|
{
|
|
67
|
-
className:
|
|
71
|
+
className: p(
|
|
68
72
|
e.buttonContent,
|
|
69
73
|
t && e.buttonContentDropdown
|
|
70
74
|
),
|
|
71
75
|
children: [
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
s && /* @__PURE__ */ r("span", { className: e.icon, children: s }),
|
|
77
|
+
a && /* @__PURE__ */ r("span", { className: e.buttonText, children: a })
|
|
74
78
|
]
|
|
75
79
|
}
|
|
76
80
|
),
|
|
77
|
-
t && /* @__PURE__ */ r("span", { className: e.buttonArrow, children:
|
|
81
|
+
t && /* @__PURE__ */ r("span", { className: e.buttonArrow, children: l ? /* @__PURE__ */ r(A, { iconSize: h }) : /* @__PURE__ */ r(S, { iconSize: h }) })
|
|
78
82
|
]
|
|
79
83
|
}
|
|
80
84
|
),
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
l && t && /* @__PURE__ */ r(z, { align: x, children: c || f.map((n) => /* @__PURE__ */ r(
|
|
86
|
+
q,
|
|
83
87
|
{
|
|
84
88
|
role: "menuitem",
|
|
85
89
|
title: n.label,
|
|
@@ -94,8 +98,8 @@ function Y({
|
|
|
94
98
|
]
|
|
95
99
|
}
|
|
96
100
|
);
|
|
97
|
-
return C ? /* @__PURE__ */ r(
|
|
101
|
+
return C ? /* @__PURE__ */ r(F, { title: y, content: b, ...k, children: w }) : w;
|
|
98
102
|
}
|
|
99
103
|
export {
|
|
100
|
-
|
|
104
|
+
Z as Button
|
|
101
105
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_field_2t508_3", _ = "_lg_2t508_11", n = "_md_2t508_15", c = "_sm_2t508_19", s = "_xs_2t508_23", o = "_icon_2t508_27", e = "_clickable_2t508_33", l = "_content_2t508_40", d = "_hiddenInput_2t508_48", i = {
|
|
2
2
|
field: t,
|
|
3
3
|
lg: _,
|
|
4
4
|
md: n,
|
|
@@ -12,7 +12,7 @@ const t = "_field_1tpt9_3", _ = "_lg_1tpt9_7", n = "_md_1tpt9_11", c = "_sm_1tpt
|
|
|
12
12
|
export {
|
|
13
13
|
e as clickable,
|
|
14
14
|
l as content,
|
|
15
|
-
|
|
15
|
+
i as default,
|
|
16
16
|
t as field,
|
|
17
17
|
d as hiddenInput,
|
|
18
18
|
o as icon,
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Focus the field control when the user clicks shell padding/icons (not the control itself).
|
|
3
|
+
*
|
|
4
|
+
* @param {import('react').MouseEvent} event
|
|
5
|
+
* @param {{ id?: string, disabled?: boolean }} options
|
|
6
|
+
*/
|
|
7
|
+
export function focusFieldControlFromShellEvent(event: import("react").MouseEvent, { id, disabled }: {
|
|
8
|
+
id?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}): void;
|
|
1
11
|
export function InputFieldContainer({ id, label, isRequiredField, validationStatus, disabled, computedInfoText, children, }: {
|
|
2
12
|
id: string;
|
|
3
13
|
label?: string;
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as E } from "react/jsx-runtime";
|
|
2
2
|
import { useId as y } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useController as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import j from "clsx";
|
|
4
|
+
import { useController as k } from "react-hook-form";
|
|
5
|
+
import i from "./InputFieldContainer.module.scss.js";
|
|
6
|
+
const w = (
|
|
7
7
|
/** @type {const} */
|
|
8
8
|
["default", "error"]
|
|
9
9
|
), A = ({
|
|
10
|
-
id:
|
|
11
|
-
label:
|
|
12
|
-
isRequiredField:
|
|
10
|
+
id: r,
|
|
11
|
+
label: n,
|
|
12
|
+
isRequiredField: d = !1,
|
|
13
13
|
validationStatus: e = "default",
|
|
14
|
-
disabled:
|
|
15
|
-
computedInfoText:
|
|
16
|
-
children:
|
|
14
|
+
disabled: l = !1,
|
|
15
|
+
computedInfoText: t,
|
|
16
|
+
children: c
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
const f = !!t && `${t}`.trim().length > 0, o = (m) => _(m, { id: r, disabled: l });
|
|
19
|
+
return /* @__PURE__ */ E(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
23
|
-
|
|
24
|
-
e === "error" &&
|
|
25
|
-
|
|
22
|
+
className: j(
|
|
23
|
+
i.wrapper,
|
|
24
|
+
e === "error" && i.wrapperError,
|
|
25
|
+
l && i.disabledField
|
|
26
26
|
),
|
|
27
27
|
children: [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
n ? /* @__PURE__ */ E("label", { className: i.label, htmlFor: r, children: [
|
|
29
|
+
n,
|
|
30
|
+
d ? /* @__PURE__ */ a("span", { className: i.requiredMark, children: "*" }) : null
|
|
31
31
|
] }) : null,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
/* @__PURE__ */ a("div", { onClick: l ? void 0 : o, children: c }),
|
|
33
|
+
f ? /* @__PURE__ */ a("div", { className: i.infoText, children: t }) : null
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
},
|
|
38
|
-
const
|
|
37
|
+
}, z = (r) => {
|
|
38
|
+
const n = (e) => {
|
|
39
39
|
const {
|
|
40
|
-
status:
|
|
41
|
-
label:
|
|
42
|
-
infoText:
|
|
43
|
-
id:
|
|
40
|
+
status: l = "default",
|
|
41
|
+
label: t,
|
|
42
|
+
infoText: c,
|
|
43
|
+
id: f,
|
|
44
44
|
name: o,
|
|
45
45
|
type: m = "text",
|
|
46
|
-
value:
|
|
47
|
-
defaultValue:
|
|
48
|
-
placeholder:
|
|
49
|
-
disabled:
|
|
50
|
-
onChange:
|
|
46
|
+
value: S,
|
|
47
|
+
defaultValue: b,
|
|
48
|
+
placeholder: x = "Text",
|
|
49
|
+
disabled: g = !1,
|
|
50
|
+
onChange: T = () => {
|
|
51
51
|
},
|
|
52
|
-
onBlur:
|
|
52
|
+
onBlur: C,
|
|
53
53
|
inputRef: F,
|
|
54
|
-
error:
|
|
54
|
+
error: u,
|
|
55
55
|
rules: h,
|
|
56
|
-
required:
|
|
57
|
-
"aria-label":
|
|
58
|
-
...
|
|
59
|
-
} = e,
|
|
60
|
-
return delete
|
|
56
|
+
required: B = !1,
|
|
57
|
+
"aria-label": I,
|
|
58
|
+
...N
|
|
59
|
+
} = e, R = y(), p = f ?? R, q = w.includes(l) ? l : "default", v = u != null && u.message ? "error" : q, L = (u == null ? void 0 : u.message) ?? c, V = !!(h != null && h.required) || B, s = { ...N };
|
|
60
|
+
return delete s.control, delete s.rules, delete s.invalid, delete s.defaultValues, C && (s.onBlur = C), F && (s.ref = F), /* @__PURE__ */ a(
|
|
61
61
|
A,
|
|
62
62
|
{
|
|
63
|
-
id:
|
|
64
|
-
label:
|
|
65
|
-
isRequiredField:
|
|
66
|
-
validationStatus:
|
|
67
|
-
disabled:
|
|
68
|
-
computedInfoText:
|
|
69
|
-
children: /* @__PURE__ */
|
|
70
|
-
|
|
63
|
+
id: p,
|
|
64
|
+
label: t,
|
|
65
|
+
isRequiredField: V,
|
|
66
|
+
validationStatus: v,
|
|
67
|
+
disabled: g,
|
|
68
|
+
computedInfoText: L,
|
|
69
|
+
children: /* @__PURE__ */ a(
|
|
70
|
+
r,
|
|
71
71
|
{
|
|
72
72
|
...e,
|
|
73
|
-
id:
|
|
73
|
+
id: p,
|
|
74
74
|
name: o,
|
|
75
75
|
type: m,
|
|
76
|
-
value:
|
|
77
|
-
defaultValue:
|
|
78
|
-
placeholder:
|
|
79
|
-
disabled:
|
|
80
|
-
onChange:
|
|
81
|
-
ariaLabel:
|
|
82
|
-
label:
|
|
83
|
-
inputProps:
|
|
84
|
-
validationStatus:
|
|
85
|
-
containerFieldClassName:
|
|
76
|
+
value: S,
|
|
77
|
+
defaultValue: b,
|
|
78
|
+
placeholder: x,
|
|
79
|
+
disabled: g,
|
|
80
|
+
onChange: T,
|
|
81
|
+
ariaLabel: I,
|
|
82
|
+
label: t,
|
|
83
|
+
inputProps: s,
|
|
84
|
+
validationStatus: v,
|
|
85
|
+
containerFieldClassName: i.field
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
|
-
},
|
|
91
|
-
const { control:
|
|
92
|
-
name:
|
|
93
|
-
control:
|
|
94
|
-
rules:
|
|
95
|
-
defaultValue:
|
|
90
|
+
}, d = (e) => {
|
|
91
|
+
const { control: l, name: t, rules: c, defaultValue: f } = e, { field: o, fieldState: m } = k({
|
|
92
|
+
name: t,
|
|
93
|
+
control: l,
|
|
94
|
+
rules: c,
|
|
95
|
+
defaultValue: f
|
|
96
96
|
});
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
-
|
|
97
|
+
return /* @__PURE__ */ a(
|
|
98
|
+
n,
|
|
99
99
|
{
|
|
100
100
|
...e,
|
|
101
|
-
name:
|
|
101
|
+
name: t,
|
|
102
102
|
value: o.value,
|
|
103
103
|
onChange: o.onChange,
|
|
104
104
|
onBlur: o.onBlur,
|
|
@@ -107,9 +107,16 @@ const k = (
|
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
};
|
|
110
|
-
return (e) => e.control && e.name ? /* @__PURE__ */
|
|
111
|
-
};
|
|
110
|
+
return (e) => e.control && e.name ? /* @__PURE__ */ a(d, { ...e }) : /* @__PURE__ */ a(n, { ...e });
|
|
111
|
+
}, P = 'button, a, select, [role="button"], [role="option"], [role="menuitem"]';
|
|
112
|
+
function _(r, { id: n, disabled: d }) {
|
|
113
|
+
var l, t;
|
|
114
|
+
if (d || !n) return;
|
|
115
|
+
const e = document.getElementById(n);
|
|
116
|
+
!e || e.disabled || r.target === e || e.contains(r.target) || (t = (l = r.target).closest) != null && t.call(l, P) || e.focus();
|
|
117
|
+
}
|
|
112
118
|
export {
|
|
113
119
|
A as InputFieldContainer,
|
|
114
|
-
|
|
120
|
+
z as createField,
|
|
121
|
+
_ as focusFieldControlFromShellEvent
|
|
115
122
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
const
|
|
2
|
-
wrapper:
|
|
3
|
-
label:
|
|
4
|
-
infoText:
|
|
5
|
-
requiredMark:
|
|
1
|
+
const e = "_wrapper_1le2b_3", r = "_label_1le2b_10", l = "_infoText_1le2b_11", _ = "_requiredMark_1le2b_22", a = "_wrapperError_1le2b_30", d = "_field_1le2b_33", i = "_disabledField_1le2b_73", o = {
|
|
2
|
+
wrapper: e,
|
|
3
|
+
label: r,
|
|
4
|
+
infoText: l,
|
|
5
|
+
requiredMark: _,
|
|
6
6
|
wrapperError: a,
|
|
7
|
-
field:
|
|
8
|
-
disabledField:
|
|
7
|
+
field: d,
|
|
8
|
+
disabledField: i
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
o as default,
|
|
12
|
+
i as disabledField,
|
|
13
|
+
d as field,
|
|
14
|
+
l as infoText,
|
|
15
|
+
r as label,
|
|
16
|
+
_ as requiredMark,
|
|
17
|
+
e as wrapper,
|
|
18
18
|
a as wrapperError
|
|
19
19
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_field_1iwyh_3", t = "_input_1iwyh_10", n = "_expandableField_1iwyh_15", i = "_buttonWrapper_1iwyh_23", p = {
|
|
2
2
|
field: e,
|
|
3
3
|
input: t,
|
|
4
4
|
expandableField: n,
|
|
5
|
-
buttonWrapper:
|
|
5
|
+
buttonWrapper: i
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
i as buttonWrapper,
|
|
9
|
+
p as default,
|
|
10
10
|
n as expandableField,
|
|
11
11
|
e as field,
|
|
12
12
|
t as input
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as N } from "react";
|
|
3
3
|
import t from "clsx";
|
|
4
4
|
import { Checkbox as D } from "../Checkbox/Checkbox.js";
|
|
@@ -28,7 +28,7 @@ function Eo({
|
|
|
28
28
|
menu: d,
|
|
29
29
|
aspectRatio: C = x["1/1"],
|
|
30
30
|
lines: P = K[1],
|
|
31
|
-
disabled:
|
|
31
|
+
disabled: i = !1,
|
|
32
32
|
onClose: L = () => {
|
|
33
33
|
},
|
|
34
34
|
tooltipContent: h,
|
|
@@ -52,19 +52,19 @@ function Eo({
|
|
|
52
52
|
default:
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, T = !a || m === S.outside ? "8px" : "8px 8px 0 0", _ = Number(P), j = t(o.contentText, o.contentTextClamped), X = { WebkitLineClamp: _ }, Y = !!h, b = !!u && !i, k = /* @__PURE__ */ c(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
className: t(
|
|
59
59
|
o.imagePlaceholder,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
i && o.disabled,
|
|
61
|
+
b && o.clickable,
|
|
62
62
|
F && o.selected,
|
|
63
63
|
R === "hover" && o.overlayHover
|
|
64
64
|
),
|
|
65
|
-
onClick:
|
|
65
|
+
onClick: b ? u : void 0,
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ c(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
ref: M,
|
|
@@ -73,8 +73,8 @@ function Eo({
|
|
|
73
73
|
s === "checkbox" && o.clickable,
|
|
74
74
|
s === "checkbox" && !n && o.checkboxSelectable
|
|
75
75
|
),
|
|
76
|
-
style: { borderRadius:
|
|
77
|
-
onClick: s === "checkbox" && !n && !
|
|
76
|
+
style: { borderRadius: T },
|
|
77
|
+
onClick: s === "checkbox" && !n && !i ? p : void 0,
|
|
78
78
|
onMouseEnter: O,
|
|
79
79
|
onMouseLeave: B,
|
|
80
80
|
children: [
|
|
@@ -82,7 +82,7 @@ function Eo({
|
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
className: o.imageFrame,
|
|
85
|
-
style: { aspectRatio: x[C], borderRadius:
|
|
85
|
+
style: { aspectRatio: x[C], borderRadius: T },
|
|
86
86
|
children: n ? /* @__PURE__ */ e("div", { className: o.imageError, children: /* @__PURE__ */ e(
|
|
87
87
|
Q,
|
|
88
88
|
{
|
|
@@ -101,14 +101,14 @@ function Eo({
|
|
|
101
101
|
}
|
|
102
102
|
),
|
|
103
103
|
!a && I.has(l == null ? void 0 : l.type) ? /* @__PURE__ */ e("div", { className: o.tagInImage, children: v() }) : null,
|
|
104
|
-
J.has(s) && /* @__PURE__ */
|
|
104
|
+
J.has(s) && /* @__PURE__ */ c("div", { className: o.overlay, onClick: (r) => r.stopPropagation(), children: [
|
|
105
105
|
s === "checkbox" && !n ? /* @__PURE__ */ e(
|
|
106
106
|
D,
|
|
107
107
|
{
|
|
108
108
|
checked: w,
|
|
109
109
|
onChange: p,
|
|
110
110
|
size: "lg",
|
|
111
|
-
disabled:
|
|
111
|
+
disabled: i
|
|
112
112
|
}
|
|
113
113
|
) : null,
|
|
114
114
|
s === "close" ? /* @__PURE__ */ e(
|
|
@@ -118,16 +118,17 @@ function Eo({
|
|
|
118
118
|
size: "xxs",
|
|
119
119
|
variant: "fill",
|
|
120
120
|
type: "neutral",
|
|
121
|
-
|
|
121
|
+
disabled: i,
|
|
122
|
+
onClick: i ? void 0 : L
|
|
122
123
|
}
|
|
123
124
|
) : null
|
|
124
125
|
] })
|
|
125
126
|
]
|
|
126
127
|
}
|
|
127
128
|
),
|
|
128
|
-
a ? /* @__PURE__ */
|
|
129
|
+
a ? /* @__PURE__ */ c("div", { className: t(o.belowImage, o[m]), children: [
|
|
129
130
|
I.has(l == null ? void 0 : l.type) ? /* @__PURE__ */ e("div", { children: v() }) : null,
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ c("div", { className: o.content, children: [
|
|
131
132
|
/* @__PURE__ */ e(
|
|
132
133
|
oo,
|
|
133
134
|
{
|
|
@@ -138,7 +139,7 @@ function Eo({
|
|
|
138
139
|
children: a
|
|
139
140
|
}
|
|
140
141
|
),
|
|
141
|
-
d && /* @__PURE__ */
|
|
142
|
+
d && /* @__PURE__ */ c("div", { className: o.menu, children: [
|
|
142
143
|
/* @__PURE__ */ e(
|
|
143
144
|
"span",
|
|
144
145
|
{
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_imagePlaceholder_wex5c_3", c = "_selected_wex5c_9", t = "_clickable_wex5c_13", _ = "_disabled_wex5c_16", o = "_overlayHover_wex5c_22", a = "_overlay_wex5c_22", n = "_imageArea_wex5c_28", l = "_checkboxSelectable_wex5c_40", s = "_imageFrame_wex5c_45", i = "_image_wex5c_3", m = "_imageError_wex5c_61", x = "_tagInImage_wex5c_68", r = "_belowImage_wex5c_78", g = "_inside_wex5c_87", d = "_outside_wex5c_91", w = "_content_wex5c_95", b = "_contentText_wex5c_101", v = "_contentTextClamped_wex5c_115", I = "_menu_wex5c_120", u = {
|
|
2
2
|
imagePlaceholder: e,
|
|
3
|
-
selected:
|
|
4
|
-
clickable:
|
|
5
|
-
disabled:
|
|
6
|
-
overlayHover:
|
|
7
|
-
overlay:
|
|
3
|
+
selected: c,
|
|
4
|
+
clickable: t,
|
|
5
|
+
disabled: _,
|
|
6
|
+
overlayHover: o,
|
|
7
|
+
overlay: a,
|
|
8
8
|
imageArea: n,
|
|
9
|
-
checkboxSelectable:
|
|
10
|
-
imageFrame:
|
|
11
|
-
image:
|
|
12
|
-
imageError:
|
|
13
|
-
tagInImage:
|
|
14
|
-
belowImage:
|
|
15
|
-
inside:
|
|
16
|
-
outside:
|
|
17
|
-
content:
|
|
18
|
-
contentText:
|
|
19
|
-
contentTextClamped:
|
|
20
|
-
menu:
|
|
9
|
+
checkboxSelectable: l,
|
|
10
|
+
imageFrame: s,
|
|
11
|
+
image: i,
|
|
12
|
+
imageError: m,
|
|
13
|
+
tagInImage: x,
|
|
14
|
+
belowImage: r,
|
|
15
|
+
inside: g,
|
|
16
|
+
outside: d,
|
|
17
|
+
content: w,
|
|
18
|
+
contentText: b,
|
|
19
|
+
contentTextClamped: v,
|
|
20
|
+
menu: I
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
r as belowImage,
|
|
24
|
+
l as checkboxSelectable,
|
|
25
|
+
t as clickable,
|
|
26
|
+
w as content,
|
|
27
|
+
b as contentText,
|
|
28
|
+
v as contentTextClamped,
|
|
29
|
+
u as default,
|
|
30
|
+
_ as disabled,
|
|
31
|
+
i as image,
|
|
32
32
|
n as imageArea,
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
m as imageError,
|
|
34
|
+
s as imageFrame,
|
|
35
35
|
e as imagePlaceholder,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
g as inside,
|
|
37
|
+
I as menu,
|
|
38
|
+
d as outside,
|
|
39
|
+
a as overlay,
|
|
40
|
+
o as overlayHover,
|
|
41
|
+
c as selected,
|
|
42
|
+
x as tagInImage
|
|
43
43
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG add image icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const AddImageIcon: (props: IconProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { createIcon as t } from "./createIcon.js";
|
|
3
|
+
const M = t(({ strokeColor: o, strokeWidth: r }) => /* @__PURE__ */ e(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M20 10.6667H20.0133M16.6667 28H8C6.93913 28 5.92172 27.5786 5.17157 26.8284C4.42143 26.0783 4 25.0609 4 24V8C4 6.93913 4.42143 5.92172 5.17157 5.17157C5.92172 4.42143 6.93913 4 8 4H24C25.0609 4 26.0783 4.42143 26.8284 5.17157C27.5786 5.92172 28 6.93913 28 8V16.6667M4 21.3334L10.6667 14.6668C11.904 13.4761 13.4293 13.4761 14.6667 14.6668L20 20.0001M18.6667 18.6666L20 17.3333C20.8933 16.4746 21.9333 16.2346 22.9093 16.6133M21.3333 25.3333H29.3333M25.3333 21.3333V29.3333",
|
|
7
|
+
stroke: o,
|
|
8
|
+
strokeWidth: r,
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round"
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
export {
|
|
14
|
+
M as AddImageIcon
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG edit image icon.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} [props.strokeColor='currentColor'] - SVG stroke colour.
|
|
6
|
+
* Accepts any valid CSS colour value.
|
|
7
|
+
* @param {import('./constants').IconSize} [props.iconSize='m']
|
|
8
|
+
* T-shirt size token that controls the rendered `width`/`height` and
|
|
9
|
+
* `stroke-width` via {@link iconSizes} and {@link iconStrokeWidths}.
|
|
10
|
+
* @param {string} [props.fill='none'] - SVG fill colour.
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
export const EditImageIcon: (props: IconProps) => import("react").JSX.Element;
|