@eyesee/ui-components 0.13.0 → 0.15.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.
@@ -1,85 +1,89 @@
1
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import { useState as L, useRef as R } from "react";
3
- import m from "clsx";
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 E from "../../hooks/useClickOutside.js";
7
- import { ListItem as U } from "../ListItem/ListItem.js";
8
- import { DropdownList as q } from "../DropdownList/DropdownList.js";
9
- import { Tooltip as z } from "../Tooltip/Tooltip.js";
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 Y({
12
- text: l,
13
- options: p = [],
11
+ function Z({
12
+ text: a,
13
+ options: f = [],
14
14
  onClick: u = () => {
15
15
  },
16
- className: w,
17
- iconSize: f = "m",
18
- size: v = "md",
19
- variant: N = "primary",
20
- type: O = "fill",
21
- pressed: h = !1,
22
- icon: a = null,
23
- tooltipContent: d = null,
24
- tooltipTitle: g,
25
- disabled: y = !1,
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: s = null,
29
+ dropdownCustomContent: c = null,
30
30
  ...B
31
31
  }) {
32
- const [o, i] = L(!1), b = R(null);
33
- E(b, () => i(!1));
32
+ const [l, o] = E(!1), I = L(null);
33
+ U(I, () => o(!1));
34
34
  const T = (n) => {
35
- u(n), i(!1);
36
- }, t = p.length > 0 || !!s, W = a && !l && !t, j = a && !l, C = !!d, I = /* @__PURE__ */ c(
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: b,
43
+ ref: I,
40
44
  "data-button-wrapper": !0,
41
- className: m(e.wrapper, w, D && e.fullWidth),
45
+ className: p(e.wrapper, v, D && e.fullWidth),
42
46
  ...B,
43
47
  children: [
44
- /* @__PURE__ */ c(
48
+ /* @__PURE__ */ m(
45
49
  "button",
46
50
  {
47
51
  type: "button",
48
- className: m(
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
- h && e.pressed
60
+ d && e.pressed
57
61
  ),
58
- onClick: () => t ? i((n) => !n) : u(),
59
- "aria-expanded": o,
60
- "aria-pressed": h,
62
+ onClick: () => t ? o((n) => !n) : u(),
63
+ "aria-expanded": l,
64
+ "aria-pressed": d,
61
65
  "aria-haspopup": "menu",
62
- disabled: y,
66
+ disabled: i,
63
67
  children: [
64
- /* @__PURE__ */ c(
68
+ /* @__PURE__ */ m(
65
69
  "span",
66
70
  {
67
- className: m(
71
+ className: p(
68
72
  e.buttonContent,
69
73
  t && e.buttonContentDropdown
70
74
  ),
71
75
  children: [
72
- a && /* @__PURE__ */ r("span", { className: e.icon, children: a }),
73
- l && /* @__PURE__ */ r("span", { className: e.buttonText, children: l })
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: o ? /* @__PURE__ */ r(A, { iconSize: f }) : /* @__PURE__ */ r(S, { iconSize: f }) })
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
- o && t && /* @__PURE__ */ r(q, { align: x, children: s || p.map((n) => /* @__PURE__ */ r(
82
- U,
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(z, { title: g, content: d, ...k, children: I }) : I;
101
+ return C ? /* @__PURE__ */ r(F, { title: y, content: b, ...k, children: w }) : w;
98
102
  }
99
103
  export {
100
- Y as Button
104
+ Z as Button
101
105
  };
@@ -1,4 +1,4 @@
1
- const t = "_field_1tpt9_3", _ = "_lg_1tpt9_7", n = "_md_1tpt9_11", c = "_sm_1tpt9_15", s = "_xs_1tpt9_19", o = "_icon_1tpt9_23", e = "_clickable_1tpt9_29", l = "_content_1tpt9_36", d = "_hiddenInput_1tpt9_44", p = {
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
- p as default,
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 n, jsxs as C } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as E } from "react/jsx-runtime";
2
2
  import { useId as y } from "react";
3
- import E from "clsx";
4
- import { useController as P } from "react-hook-form";
5
- import r from "./InputFieldContainer.module.scss.js";
6
- const k = (
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: c,
11
- label: i,
12
- isRequiredField: f = !1,
10
+ id: r,
11
+ label: n,
12
+ isRequiredField: d = !1,
13
13
  validationStatus: e = "default",
14
- disabled: a = !1,
15
- computedInfoText: l,
16
- children: d
14
+ disabled: l = !1,
15
+ computedInfoText: t,
16
+ children: c
17
17
  }) => {
18
- const u = !!l && `${l}`.trim().length > 0;
19
- return /* @__PURE__ */ C(
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: E(
23
- r.wrapper,
24
- e === "error" && r.wrapperError,
25
- a && r.disabledField
22
+ className: j(
23
+ i.wrapper,
24
+ e === "error" && i.wrapperError,
25
+ l && i.disabledField
26
26
  ),
27
27
  children: [
28
- i ? /* @__PURE__ */ C("label", { className: r.label, htmlFor: c, children: [
29
- i,
30
- f ? /* @__PURE__ */ n("span", { className: r.requiredMark, children: "*" }) : null
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
- d,
33
- u ? /* @__PURE__ */ n("div", { className: r.infoText, children: l }) : null
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
- }, D = (c) => {
38
- const i = (e) => {
37
+ }, z = (r) => {
38
+ const n = (e) => {
39
39
  const {
40
- status: a = "default",
41
- label: l,
42
- infoText: d,
43
- id: u,
40
+ status: l = "default",
41
+ label: t,
42
+ infoText: c,
43
+ id: f,
44
44
  name: o,
45
45
  type: m = "text",
46
- value: b,
47
- defaultValue: S,
48
- placeholder: B = "Text",
49
- disabled: p = !1,
50
- onChange: N = () => {
46
+ value: S,
47
+ defaultValue: b,
48
+ placeholder: x = "Text",
49
+ disabled: g = !1,
50
+ onChange: T = () => {
51
51
  },
52
- onBlur: v,
52
+ onBlur: C,
53
53
  inputRef: F,
54
- error: s,
54
+ error: u,
55
55
  rules: h,
56
- required: q = !1,
57
- "aria-label": R,
58
- ...T
59
- } = e, I = y(), g = u ?? I, V = k.includes(a) ? a : "default", x = s != null && s.message ? "error" : V, j = (s == null ? void 0 : s.message) ?? d, w = !!(h != null && h.required) || q, t = { ...T };
60
- return delete t.control, delete t.rules, delete t.invalid, delete t.defaultValues, v && (t.onBlur = v), F && (t.ref = F), /* @__PURE__ */ n(
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: g,
64
- label: l,
65
- isRequiredField: w,
66
- validationStatus: x,
67
- disabled: p,
68
- computedInfoText: j,
69
- children: /* @__PURE__ */ n(
70
- c,
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: g,
73
+ id: p,
74
74
  name: o,
75
75
  type: m,
76
- value: b,
77
- defaultValue: S,
78
- placeholder: B,
79
- disabled: p,
80
- onChange: N,
81
- ariaLabel: R,
82
- label: l,
83
- inputProps: t,
84
- validationStatus: x,
85
- containerFieldClassName: r.field
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
- }, f = (e) => {
91
- const { control: a, name: l, rules: d, defaultValue: u } = e, { field: o, fieldState: m } = P({
92
- name: l,
93
- control: a,
94
- rules: d,
95
- defaultValue: u
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__ */ n(
98
- i,
97
+ return /* @__PURE__ */ a(
98
+ n,
99
99
  {
100
100
  ...e,
101
- name: l,
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__ */ n(f, { ...e }) : /* @__PURE__ */ n(i, { ...e });
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
- D as createField
120
+ z as createField,
121
+ _ as focusFieldControlFromShellEvent
115
122
  };
@@ -1,19 +1,19 @@
1
- const r = "_wrapper_1mys4_3", e = "_label_1mys4_10", _ = "_infoText_1mys4_11", s = "_requiredMark_1mys4_22", a = "_wrapperError_1mys4_30", l = "_field_1mys4_33", d = "_disabledField_1mys4_51", i = {
2
- wrapper: r,
3
- label: e,
4
- infoText: _,
5
- requiredMark: s,
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: l,
8
- disabledField: d
7
+ field: d,
8
+ disabledField: i
9
9
  };
10
10
  export {
11
- i as default,
12
- d as disabledField,
13
- l as field,
14
- _ as infoText,
15
- e as label,
16
- s as requiredMark,
17
- r as wrapper,
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 = "_field_kwy2b_3", t = "_input_kwy2b_9", n = "_expandableField_kwy2b_13", p = "_buttonWrapper_kwy2b_21", _ = {
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: p
5
+ buttonWrapper: i
6
6
  };
7
7
  export {
8
- p as buttonWrapper,
9
- _ as default,
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 i, jsx as e } from "react/jsx-runtime";
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: c = !1,
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
- }, b = !a || m === S.outside ? "8px" : "8px 8px 0 0", _ = Number(P), j = t(o.contentText, o.contentTextClamped), X = { WebkitLineClamp: _ }, Y = !!h, T = !!u && !c, k = /* @__PURE__ */ i(
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
- c && o.disabled,
61
- T && o.clickable,
60
+ i && o.disabled,
61
+ b && o.clickable,
62
62
  F && o.selected,
63
63
  R === "hover" && o.overlayHover
64
64
  ),
65
- onClick: T ? u : void 0,
65
+ onClick: b ? u : void 0,
66
66
  children: [
67
- /* @__PURE__ */ i(
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: b },
77
- onClick: s === "checkbox" && !n && !c ? p : void 0,
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: b },
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__ */ i("div", { className: o.overlay, onClick: (r) => r.stopPropagation(), children: [
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: c
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
- onClick: L
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__ */ i("div", { className: t(o.belowImage, o[m]), children: [
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__ */ i("div", { className: o.content, children: [
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__ */ i("div", { className: o.menu, children: [
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 = "_imagePlaceholder_kbkw0_3", t = "_selected_kbkw0_9", _ = "_clickable_kbkw0_13", o = "_disabled_kbkw0_16", a = "_overlayHover_kbkw0_22", c = "_overlay_kbkw0_22", n = "_imageArea_kbkw0_28", k = "_checkboxSelectable_kbkw0_40", l = "_imageFrame_kbkw0_45", b = "_image_kbkw0_3", s = "_imageError_kbkw0_61", i = "_tagInImage_kbkw0_68", m = "_belowImage_kbkw0_78", r = "_inside_kbkw0_87", g = "_outside_kbkw0_91", d = "_content_kbkw0_95", w = "_contentText_kbkw0_101", x = "_contentTextClamped_kbkw0_115", v = "_menu_kbkw0_120", I = {
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: t,
4
- clickable: _,
5
- disabled: o,
6
- overlayHover: a,
7
- overlay: c,
3
+ selected: c,
4
+ clickable: t,
5
+ disabled: _,
6
+ overlayHover: o,
7
+ overlay: a,
8
8
  imageArea: n,
9
- checkboxSelectable: k,
10
- imageFrame: l,
11
- image: b,
12
- imageError: s,
13
- tagInImage: i,
14
- belowImage: m,
15
- inside: r,
16
- outside: g,
17
- content: d,
18
- contentText: w,
19
- contentTextClamped: x,
20
- menu: v
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
- m as belowImage,
24
- k as checkboxSelectable,
25
- _ as clickable,
26
- d as content,
27
- w as contentText,
28
- x as contentTextClamped,
29
- I as default,
30
- o as disabled,
31
- b as image,
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
- s as imageError,
34
- l as imageFrame,
33
+ m as imageError,
34
+ s as imageFrame,
35
35
  e as imagePlaceholder,
36
- r as inside,
37
- v as menu,
38
- g as outside,
39
- c as overlay,
40
- a as overlayHover,
41
- t as selected,
42
- i as tagInImage
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;