@selfdecode/sd-component-library 4.0.78-test → 4.0.79
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/lib/components/inputs/autocomplete-input/interfaces.d.ts +1 -1
- package/lib/components/inputs/input/interfaces.d.ts +1 -14
- package/lib/components/inputs/primary-text-input/interfaces.d.ts +1 -1
- package/lib/components/inputs/secondary-text-input/interfaces.d.ts +1 -1
- package/lib/components/inputs/text-input/interfaces.d.ts +1 -6
- package/lib/components/selectors/secondary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/selector/interfaces.d.ts +2 -1
- package/lib/components/selectors/tertiary-selector/interfaces.d.ts +1 -1
- package/lib/components/utils/anchor/interfaces.d.ts +2 -2
- package/lib/components/utils/anchor/refs-manager.d.ts +4 -4
- package/lib/sd-component-library101.js +4 -4
- package/lib/sd-component-library107.js +37 -38
- package/lib/sd-component-library107.js.map +1 -1
- package/lib/sd-component-library108.js +7 -8
- package/lib/sd-component-library108.js.map +1 -1
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library113.js +2 -2
- package/lib/sd-component-library115.js +1 -1
- package/lib/sd-component-library116.js +1 -1
- package/lib/sd-component-library121.js +2 -2
- package/lib/sd-component-library122.js +2 -2
- package/lib/sd-component-library124.js +1 -1
- package/lib/sd-component-library127.js +3 -3
- package/lib/sd-component-library128.js +1 -1
- package/lib/sd-component-library130.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library161.js +1 -1
- package/lib/sd-component-library162.js +1 -1
- package/lib/sd-component-library165.js +1 -1
- package/lib/sd-component-library166.js +4 -4
- package/lib/sd-component-library167.js +24 -25
- package/lib/sd-component-library167.js.map +1 -1
- package/lib/sd-component-library190.js +3 -3
- package/lib/sd-component-library191.js +75 -3
- package/lib/sd-component-library191.js.map +1 -1
- package/lib/sd-component-library192.js +3 -75
- package/lib/sd-component-library192.js.map +1 -1
- package/lib/sd-component-library194.js +2 -3
- package/lib/sd-component-library194.js.map +1 -1
- package/lib/sd-component-library195.js +30 -25
- package/lib/sd-component-library195.js.map +1 -1
- package/lib/sd-component-library196.js +599 -57
- package/lib/sd-component-library196.js.map +1 -1
- package/lib/sd-component-library197.js +57 -2
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library198.js +25 -30
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library199.js +18 -598
- package/lib/sd-component-library199.js.map +1 -1
- package/lib/sd-component-library2.js +1 -1
- package/lib/sd-component-library200.js +5 -19
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library202.js +3 -5
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library207.js +3 -21
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +3 -3
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +31 -3
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +19 -40
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +19 -25
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +27 -128
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +33 -13
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +127 -12
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +43 -3
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +47 -3
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +7 -64
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +21 -3
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +109 -3
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +45 -44
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +23 -51
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +49 -12
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +63 -324
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +43 -5
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +13 -3
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +48 -31
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +41 -19
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +27 -20
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +73 -26
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library23.js +1 -1
- package/lib/sd-component-library230.js +16 -28
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +20 -3
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +2 -129
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +24 -41
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +19 -45
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +3 -8
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +3 -64
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +36 -39
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +128 -12
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +13 -21
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +14 -109
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +3 -47
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +3 -24
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +60 -48
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +3 -48
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +3 -75
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +46 -2
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +47 -16
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +324 -19
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +5 -41
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library250.js +29 -27
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +3 -29
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +24 -3
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +3 -24
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +16 -3
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +17 -114
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +15 -23
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +29 -20
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +44 -118
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +130 -9
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +65 -41
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +63 -38
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +27 -27
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +16 -126
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +114 -63
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +107 -61
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +10 -9
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +48 -49
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +8 -89
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +48 -89
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +89 -24
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +90 -20
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +15 -17
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library275.js +3 -2
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +3 -2
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library277.js +2 -9
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +6 -70
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +9 -101
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +2 -106
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +2 -6
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +70 -2
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +101 -35
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library284.js +106 -14
- package/lib/sd-component-library284.js.map +1 -1
- package/lib/sd-component-library285.js +2 -3
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library286.js +36 -3
- package/lib/sd-component-library286.js.map +1 -1
- package/lib/sd-component-library287.js +14 -3
- package/lib/sd-component-library287.js.map +1 -1
- package/lib/sd-component-library289.js +3 -3
- package/lib/sd-component-library290.js +4 -4
- package/lib/sd-component-library291.js +1 -1
- package/lib/sd-component-library292.js +2 -9
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +76 -4
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +93 -4
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +53 -19
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +9 -3
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +5 -2
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +49 -73
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +8 -92
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +4 -52
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +4 -9
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +19 -5
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +3 -53
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +2 -6
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +2 -2
- package/lib/sd-component-library306.js +6 -2
- package/lib/sd-component-library306.js.map +1 -1
- package/lib/sd-component-library307.js +31 -54
- package/lib/sd-component-library307.js.map +1 -1
- package/lib/sd-component-library308.js +21 -22
- package/lib/sd-component-library308.js.map +1 -1
- package/lib/sd-component-library309.js +1 -1
- package/lib/sd-component-library310.js +2 -2
- package/lib/sd-component-library311.js +4 -34
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library312.js +4 -25
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library313.js +57 -4
- package/lib/sd-component-library313.js.map +1 -1
- package/lib/sd-component-library314.js +26 -4
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library316.js +89 -28
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +25 -17
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library318.js +20 -89
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library51.js +1 -1
- package/lib/sd-component-library52.js +3 -3
- package/lib/sd-component-library55.js +24 -24
- package/lib/sd-component-library55.js.map +1 -1
- package/lib/sd-component-library56.js +2 -2
- package/lib/sd-component-library57.js +5 -5
- package/lib/sd-component-library58.js +1 -1
- package/lib/sd-component-library59.js +2 -2
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library65.js +28 -28
- package/lib/sd-component-library65.js.map +1 -1
- package/lib/sd-component-library67.js +3 -3
- package/lib/sd-component-library68.js +15 -19
- package/lib/sd-component-library68.js.map +1 -1
- package/lib/sd-component-library69.js +2 -2
- package/lib/sd-component-library70.js +3 -3
- package/lib/sd-component-library71.js +1 -1
- package/lib/sd-component-library72.js +1 -1
- package/lib/sd-component-library73.js +16 -15
- package/lib/sd-component-library73.js.map +1 -1
- package/lib/sd-component-library74.js +1 -1
- package/lib/sd-component-library75.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library81.js +6 -6
- package/lib/sd-component-library82.js +2 -2
- package/lib/sd-component-library83.js +1 -1
- package/lib/sd-component-library84.js +5 -5
- package/lib/sd-component-library85.js +1 -1
- package/lib/sd-component-library87.js +6 -6
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +7 -7
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library93.js +2 -2
- package/lib/sd-component-library94.js +3 -3
- package/lib/sd-component-library95.js +2 -2
- package/lib/sd-component-library96.js +3 -3
- package/lib/sd-component-library97.js +2 -2
- package/lib/sd-component-library99.js +4 -4
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import { Box as e } from "rebass";
|
|
|
4
4
|
import { Button as l } from "./sd-component-library25.js";
|
|
5
5
|
import { MaxMaxContainer as p } from "./sd-component-library41.js";
|
|
6
6
|
import { TenSb as x } from "./sd-component-library147.js";
|
|
7
|
-
import { ReactComponent as d } from "./sd-component-
|
|
7
|
+
import { ReactComponent as d } from "./sd-component-library192.js";
|
|
8
8
|
const j = function(r) {
|
|
9
9
|
const { desktopContent: n, mobileContent: i } = r, [o, s] = a(!1);
|
|
10
10
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library190.js";
|
|
2
|
-
import { BaseBooleanFeedback as m } from "./sd-component-
|
|
2
|
+
import { BaseBooleanFeedback as m } from "./sd-component-library234.js";
|
|
3
3
|
import { IconButton as n } from "./sd-component-library22.js";
|
|
4
|
-
import { ReactComponent as c } from "./sd-component-
|
|
5
|
-
import { ReactComponent as u } from "./sd-component-
|
|
4
|
+
import { ReactComponent as c } from "./sd-component-library235.js";
|
|
5
|
+
import { ReactComponent as u } from "./sd-component-library236.js";
|
|
6
6
|
const f = (i) => {
|
|
7
7
|
const { title: s, onPositiveFeedback: r, onNegativeFeedback: d, optionSelected: e } = i, a = (o) => /* @__PURE__ */ t.jsx(n, { onClick: o, "data-testid": "thumbs-up-button", children: /* @__PURE__ */ t.jsx(
|
|
8
8
|
c,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { j as p } from "./sd-component-library190.js";
|
|
2
|
+
import { useState as d, useRef as N, useCallback as S, useMemo as w } from "react";
|
|
3
3
|
import { Box as L } from "rebass";
|
|
4
4
|
import { useOnClickOutside as V } from "./sd-component-library3.js";
|
|
5
5
|
import { SecondaryTextInput as _ } from "./sd-component-library72.js";
|
|
6
|
-
import { ResultsBox as $ } from "./sd-component-
|
|
6
|
+
import { ResultsBox as $ } from "./sd-component-library237.js";
|
|
7
7
|
function A(i, a, l) {
|
|
8
8
|
const o = (c) => {
|
|
9
9
|
const t = c.toLowerCase().indexOf(l.toLowerCase());
|
|
@@ -18,34 +18,34 @@ function G(i) {
|
|
|
18
18
|
options: o,
|
|
19
19
|
width: c,
|
|
20
20
|
onSelect: t,
|
|
21
|
-
errorMessage:
|
|
21
|
+
errorMessage: x,
|
|
22
22
|
hideErrorText: R,
|
|
23
23
|
onSearch: O,
|
|
24
24
|
initialValue: h = "",
|
|
25
|
-
onFocus:
|
|
25
|
+
onFocus: m,
|
|
26
26
|
errorBackground: b,
|
|
27
27
|
focusInput: j,
|
|
28
|
-
autoFocus:
|
|
29
|
-
translateContent:
|
|
30
|
-
} = i, [s, g] =
|
|
28
|
+
autoFocus: T = !1,
|
|
29
|
+
translateContent: k = !0
|
|
30
|
+
} = i, [s, g] = d(h), [f, y] = d(
|
|
31
31
|
() => !!h
|
|
32
|
-
), [
|
|
32
|
+
), [v, C] = d(!0), I = N(null), B = S(() => {
|
|
33
33
|
C(!1);
|
|
34
|
-
}, []),
|
|
35
|
-
C(!0),
|
|
34
|
+
}, []), M = (e) => {
|
|
35
|
+
C(!0), m == null || m(e);
|
|
36
36
|
};
|
|
37
|
-
V(I,
|
|
37
|
+
V(I, B);
|
|
38
38
|
const u = w(() => {
|
|
39
|
-
if (s && !
|
|
39
|
+
if (s && !f)
|
|
40
40
|
return o.map((e) => ({
|
|
41
41
|
...e,
|
|
42
42
|
synonyms: e.synonyms.sort((n, r) => A(n, r, s))
|
|
43
43
|
}));
|
|
44
|
-
}, [s, o,
|
|
44
|
+
}, [s, o, f]), E = S(
|
|
45
45
|
(e) => {
|
|
46
46
|
g(e);
|
|
47
47
|
const n = u.find(
|
|
48
|
-
(r) => !!r.synonyms.find((
|
|
48
|
+
(r) => !!r.synonyms.find((F) => F === e)
|
|
49
49
|
);
|
|
50
50
|
t == null || t(
|
|
51
51
|
n.value,
|
|
@@ -54,38 +54,38 @@ function G(i) {
|
|
|
54
54
|
},
|
|
55
55
|
[t, u]
|
|
56
56
|
);
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ p.jsxs(
|
|
58
58
|
L,
|
|
59
59
|
{
|
|
60
60
|
sx: { position: "relative", bg: "inherit", width: c },
|
|
61
61
|
ref: I,
|
|
62
62
|
"data-test": "autocomplete-input",
|
|
63
63
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ p.jsx(
|
|
65
65
|
_,
|
|
66
66
|
{
|
|
67
67
|
onChange: (e, n) => {
|
|
68
|
-
|
|
68
|
+
f && (t(null), y(!1)), g(`${e}`), O(`${e}`);
|
|
69
69
|
},
|
|
70
70
|
value: s,
|
|
71
71
|
label: a,
|
|
72
72
|
placeholder: l,
|
|
73
73
|
labelMargin: ["0"],
|
|
74
|
-
errorMessage:
|
|
74
|
+
errorMessage: x || void 0,
|
|
75
75
|
hideErrorText: R,
|
|
76
|
-
onFocus:
|
|
76
|
+
onFocus: M,
|
|
77
77
|
focusInput: j,
|
|
78
|
-
autoFocus:
|
|
78
|
+
autoFocus: T,
|
|
79
79
|
errorBackground: b
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
u &&
|
|
82
|
+
u && v && /* @__PURE__ */ p.jsx(
|
|
83
83
|
$,
|
|
84
84
|
{
|
|
85
85
|
value: s,
|
|
86
86
|
results: u,
|
|
87
|
-
onSelect:
|
|
88
|
-
translateContent:
|
|
87
|
+
onSelect: E,
|
|
88
|
+
translateContent: k
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library55.js","sources":["../src/components/inputs/autocomplete-input/autocomplete-input.tsx"],"sourcesContent":["import React, {\n PropsWithChildren,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { useOnClickOutside } from \"../../../core/custom-hooks\";\nimport { SecondaryTextInput } from \"../secondary-text-input\";\nimport { AutocompleteInputProps as Props } from \"./interfaces\";\nimport { ResultsBox } from \"./partials/results-box\";\n\n/**\n * Sort synonyms. Synonyms in which the search value appear first show up first.\n * Synonyms which do not contain the search string will come up last.\n */\nfunction compareWithValue(a: string, b: string, value: string): number {\n const getValueToCompare = (text: string) => {\n const index = text.toLowerCase().indexOf(value.toLowerCase());\n if (index === -1) return Number.POSITIVE_INFINITY;\n return index;\n };\n\n return getValueToCompare(a) - getValueToCompare(b);\n}\n\nexport function AutocompleteInput<T>(props: PropsWithChildren<Props<T>>) {\n const {\n label,\n placeholder,\n options,\n width,\n onSelect,\n errorMessage,\n hideErrorText,\n onSearch,\n initialValue = \"\",\n onFocus: handleFocus,\n errorBackground,\n focusInput,\n autoFocus = false,\n translateContent = true,\n } = props;\n const [value, setValue] = useState(initialValue);\n const [optionSelected, setOptionSelected] = useState(() =>\n Boolean(initialValue)\n );\n const [showResults, setShowResults] = useState(true);\n const ref = useRef<HTMLElement | null>(null);\n\n const onClickOutside = useCallback(() => {\n setShowResults(false);\n }, []);\n\n const onFocus = () => {\n setShowResults(true);\n
|
|
1
|
+
{"version":3,"file":"sd-component-library55.js","sources":["../src/components/inputs/autocomplete-input/autocomplete-input.tsx"],"sourcesContent":["import React, {\n PropsWithChildren,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { useOnClickOutside } from \"../../../core/custom-hooks\";\nimport { SecondaryTextInput } from \"../secondary-text-input\";\nimport { AutocompleteInputProps as Props } from \"./interfaces\";\nimport { ResultsBox } from \"./partials/results-box\";\n\n/**\n * Sort synonyms. Synonyms in which the search value appear first show up first.\n * Synonyms which do not contain the search string will come up last.\n */\nfunction compareWithValue(a: string, b: string, value: string): number {\n const getValueToCompare = (text: string) => {\n const index = text.toLowerCase().indexOf(value.toLowerCase());\n if (index === -1) return Number.POSITIVE_INFINITY;\n return index;\n };\n\n return getValueToCompare(a) - getValueToCompare(b);\n}\n\nexport function AutocompleteInput<T>(props: PropsWithChildren<Props<T>>) {\n const {\n label,\n placeholder,\n options,\n width,\n onSelect,\n errorMessage,\n hideErrorText,\n onSearch,\n initialValue = \"\",\n onFocus: handleFocus,\n errorBackground,\n focusInput,\n autoFocus = false,\n translateContent = true,\n } = props;\n const [value, setValue] = useState(initialValue);\n const [optionSelected, setOptionSelected] = useState(() =>\n Boolean(initialValue)\n );\n const [showResults, setShowResults] = useState(true);\n const ref = useRef<HTMLElement | null>(null);\n\n const onClickOutside = useCallback(() => {\n setShowResults(false);\n }, []);\n\n const onFocus: Props<T>[\"onFocus\"] = (event) => {\n setShowResults(true);\n handleFocus?.(event);\n };\n\n useOnClickOutside(ref, onClickOutside);\n\n /* Sorted list of results that match the query. */\n const matchingResults = useMemo(() => {\n if (value && !optionSelected) {\n return options.map((option) => ({\n ...option,\n synonyms: option.synonyms.sort((a, b) => compareWithValue(a, b, value)),\n }));\n }\n }, [value, options, optionSelected]);\n\n const handleSelect = useCallback(\n (newValue: string) => {\n setValue(newValue);\n const matchingResult = matchingResults!.find(\n (result) => !!result.synonyms.find((synonym) => synonym === newValue)\n )!;\n onSelect?.(\n matchingResult.value,\n matchingResult.synonyms.find((synonym) => synonym === newValue)\n );\n setOptionSelected(true);\n },\n [onSelect, matchingResults]\n );\n\n return (\n <Box\n sx={{ position: \"relative\", bg: \"inherit\", width }}\n ref={ref}\n data-test=\"autocomplete-input\"\n >\n <SecondaryTextInput\n onChange={(newValue, _) => {\n if (optionSelected) {\n onSelect(null);\n setOptionSelected(false);\n }\n setValue(`${newValue}`);\n onSearch(`${newValue}`);\n }}\n value={value}\n label={label}\n placeholder={placeholder}\n labelMargin={[\"0\"]}\n errorMessage={errorMessage ? errorMessage : undefined}\n hideErrorText={hideErrorText}\n onFocus={onFocus}\n focusInput={focusInput}\n autoFocus={autoFocus}\n errorBackground={errorBackground}\n />\n {matchingResults && showResults && (\n <ResultsBox\n value={value}\n results={matchingResults}\n onSelect={handleSelect}\n translateContent={translateContent}\n />\n )}\n </Box>\n );\n}\n"],"names":["compareWithValue","a","b","value","getValueToCompare","text","index","AutocompleteInput","props","label","placeholder","options","width","onSelect","errorMessage","hideErrorText","onSearch","initialValue","handleFocus","errorBackground","focusInput","autoFocus","translateContent","setValue","useState","optionSelected","setOptionSelected","showResults","setShowResults","ref","useRef","onClickOutside","useCallback","onFocus","event","useOnClickOutside","matchingResults","useMemo","option","handleSelect","newValue","matchingResult","result","synonym","jsxs","Box","jsx","SecondaryTextInput","_","ResultsBox"],"mappings":";;;;;;AAmBA,SAASA,EAAiBC,GAAWC,GAAWC,GAAuB;AAC/D,QAAAC,IAAoB,CAACC,MAAiB;AAC1C,UAAMC,IAAQD,EAAK,YAAA,EAAc,QAAQF,EAAM,aAAa;AAC5D,WAAIG,MAAU,KAAW,OAAO,oBACzBA;AAAA,EAAA;AAGT,SAAOF,EAAkBH,CAAC,IAAIG,EAAkBF,CAAC;AACnD;AAEO,SAASK,EAAqBC,GAAoC;AACjE,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,SAASC;AAAA,IACT,iBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,kBAAAC,IAAmB;AAAA,EACjB,IAAAd,GACE,CAACL,GAAOoB,CAAQ,IAAIC,EAASP,CAAY,GACzC,CAACQ,GAAgBC,CAAiB,IAAIF;AAAA,IAAS,MACnD,EAAQP;AAAA,EAAY,GAEhB,CAACU,GAAaC,CAAc,IAAIJ,EAAS,EAAI,GAC7CK,IAAMC,EAA2B,IAAI,GAErCC,IAAiBC,EAAY,MAAM;AACvC,IAAAJ,EAAe,EAAK;AAAA,EACtB,GAAG,CAAE,CAAA,GAECK,IAA+B,CAACC,MAAU;AAC9C,IAAAN,EAAe,EAAI,GACnBV,KAAA,QAAAA,EAAcgB;AAAA,EAAK;AAGrB,EAAAC,EAAkBN,GAAKE,CAAc;AAG/B,QAAAK,IAAkBC,EAAQ,MAAM;AAChC,QAAAlC,KAAS,CAACsB;AACL,aAAAd,EAAQ,IAAI,CAAC2B,OAAY;AAAA,QAC9B,GAAGA;AAAA,QACH,UAAUA,EAAO,SAAS,KAAK,CAACrC,GAAGC,MAAMF,EAAiBC,GAAGC,GAAGC,CAAK,CAAC;AAAA,MACtE,EAAA;AAAA,EAEH,GAAA,CAACA,GAAOQ,GAASc,CAAc,CAAC,GAE7Bc,IAAeP;AAAA,IACnB,CAACQ,MAAqB;AACpB,MAAAjB,EAASiB,CAAQ;AACjB,YAAMC,IAAiBL,EAAiB;AAAA,QACtC,CAACM,MAAW,CAAC,CAACA,EAAO,SAAS,KAAK,CAACC,MAAYA,MAAYH,CAAQ;AAAA,MAAA;AAEtE,MAAA3B,KAAA,QAAAA;AAAA,QACE4B,EAAe;AAAA,QACfA,EAAe,SAAS,KAAK,CAACE,MAAYA,MAAYH,CAAQ;AAAA,SAEhEd,EAAkB,EAAI;AAAA,IACxB;AAAA,IACA,CAACb,GAAUuB,CAAe;AAAA,EAAA;AAI1B,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI,EAAE,UAAU,YAAY,IAAI,WAAW,OAAAjC,EAAM;AAAA,MACjD,KAAAiB;AAAA,MACA,aAAU;AAAA,MAEV,UAAA;AAAA,QAAAiB,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAU,CAACP,GAAUQ,MAAM;AACzB,cAAIvB,MACFZ,EAAS,IAAI,GACba,EAAkB,EAAK,IAEhBH,EAAA,GAAGiB,CAAQ,EAAE,GACbxB,EAAA,GAAGwB,CAAQ,EAAE;AAAA,YACxB;AAAA,YACA,OAAArC;AAAA,YACA,OAAAM;AAAA,YACA,aAAAC;AAAA,YACA,aAAa,CAAC,GAAG;AAAA,YACjB,cAAcI,KAA8B;AAAA,YAC5C,eAAAC;AAAA,YACA,SAAAkB;AAAA,YACA,YAAAb;AAAA,YACA,WAAAC;AAAA,YACA,iBAAAF;AAAA,UAAA;AAAA,QACF;AAAA,QACCiB,KAAmBT,KAClBmB,gBAAAA,EAAA;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,OAAA9C;AAAA,YACA,SAASiC;AAAA,YACT,UAAUG;AAAA,YACV,kBAAAjB;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library190.js";
|
|
2
2
|
import { useCallback as p, useMemo as u } from "react";
|
|
3
3
|
import { Calendar as g } from "react-date-range";
|
|
4
|
-
import "./sd-component-
|
|
5
|
-
import "./sd-component-
|
|
4
|
+
import "./sd-component-library280.js";
|
|
5
|
+
import "./sd-component-library281.js";
|
|
6
6
|
import { Box as o } from "rebass";
|
|
7
7
|
import { TenSb as b } from "./sd-component-library147.js";
|
|
8
8
|
const B = (a) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library190.js";
|
|
2
2
|
import { useState as v, useRef as w } from "react";
|
|
3
|
-
import "./sd-component-
|
|
4
|
-
import "./sd-component-
|
|
3
|
+
import "./sd-component-library280.js";
|
|
4
|
+
import "./sd-component-library281.js";
|
|
5
5
|
import { Box as s } from "rebass";
|
|
6
6
|
import { useBreakPoints as M, useDependantState as y } from "./sd-component-library3.js";
|
|
7
|
-
import { getStaticRanges as E } from "./sd-component-
|
|
8
|
-
import { BaseDateRangeInputMobile as O } from "./sd-component-
|
|
9
|
-
import { BaseDateRangeInputDesktop as P } from "./sd-component-
|
|
7
|
+
import { getStaticRanges as E } from "./sd-component-library282.js";
|
|
8
|
+
import { BaseDateRangeInputMobile as O } from "./sd-component-library283.js";
|
|
9
|
+
import { BaseDateRangeInputDesktop as P } from "./sd-component-library284.js";
|
|
10
10
|
const J = (n) => {
|
|
11
11
|
const {
|
|
12
12
|
color: d = "#9E1CB5",
|
|
@@ -2,7 +2,7 @@ import { j as t } from "./sd-component-library190.js";
|
|
|
2
2
|
import { useState as u } from "react";
|
|
3
3
|
import { Flex as g } from "rebass";
|
|
4
4
|
import { BaseDateInput as C } from "./sd-component-library56.js";
|
|
5
|
-
import { ReactComponent as S } from "./sd-component-
|
|
5
|
+
import { ReactComponent as S } from "./sd-component-library279.js";
|
|
6
6
|
import { Button as D } from "./sd-component-library25.js";
|
|
7
7
|
import { FrMaxContainer as b } from "./sd-component-library38.js";
|
|
8
8
|
const k = (r) => {
|
|
@@ -2,8 +2,8 @@ import { j as e } from "./sd-component-library190.js";
|
|
|
2
2
|
import { useState as I, useCallback as M, useMemo as v } from "react";
|
|
3
3
|
import { Box as F, Flex as O } from "rebass";
|
|
4
4
|
import { useBreakPoints as W } from "./sd-component-library3.js";
|
|
5
|
-
import { ReactComponent as z } from "./sd-component-
|
|
6
|
-
import { BaseLabel as E } from "./sd-component-
|
|
5
|
+
import { ReactComponent as z } from "./sd-component-library279.js";
|
|
6
|
+
import { BaseLabel as E } from "./sd-component-library254.js";
|
|
7
7
|
import { OutsideClickBox as J } from "./sd-component-library11.js";
|
|
8
8
|
import { BaseDateRangeInput as L } from "./sd-component-library57.js";
|
|
9
9
|
import { IconButton as X } from "./sd-component-library22.js";
|
|
@@ -4,7 +4,7 @@ import { Box as e, Flex as S } from "rebass";
|
|
|
4
4
|
import { isPDFFlow as D } from "./sd-component-library4.js";
|
|
5
5
|
import { SecondaryBadge as F } from "./sd-component-library9.js";
|
|
6
6
|
import { MaxFrContainer as I } from "./sd-component-library40.js";
|
|
7
|
-
import { ReactComponent as k } from "./sd-component-
|
|
7
|
+
import { ReactComponent as k } from "./sd-component-library202.js";
|
|
8
8
|
const _ = (l) => {
|
|
9
9
|
const {
|
|
10
10
|
header: x,
|
|
@@ -4,7 +4,7 @@ import { format as R } from "date-fns";
|
|
|
4
4
|
import { random as k } from "lodash-es";
|
|
5
5
|
import { Box as r } from "rebass";
|
|
6
6
|
import { BaseDateInput as G } from "./sd-component-library56.js";
|
|
7
|
-
import { BaseLabel as I } from "./sd-component-
|
|
7
|
+
import { BaseLabel as I } from "./sd-component-library254.js";
|
|
8
8
|
import { ReactComponent as M } from "./sd-component-library181.js";
|
|
9
9
|
import { FrMaxContainer as A } from "./sd-component-library38.js";
|
|
10
10
|
import { ResponsiveText as L } from "./sd-component-library142.js";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as n } from "./sd-component-library190.js";
|
|
2
2
|
import { useState as z } from "react";
|
|
3
|
-
import D from "./sd-component-
|
|
3
|
+
import D from "./sd-component-library238.js";
|
|
4
4
|
import u from "./sd-component-library189.js";
|
|
5
|
-
import { escapeWrapper as F, unescapeWrapper as d } from "./sd-component-
|
|
5
|
+
import { escapeWrapper as F, unescapeWrapper as d } from "./sd-component-library239.js";
|
|
6
6
|
import { GridContainerV2 as G } from "./sd-component-library39.js";
|
|
7
7
|
import { BaseTextV2 as T } from "./sd-component-library132.js";
|
|
8
8
|
import { HorizontalDivider as B } from "./sd-component-library49.js";
|
|
9
|
-
const R = (e) => (
|
|
10
|
-
const
|
|
11
|
-
e == null || e(d(
|
|
9
|
+
const R = (e) => (r) => {
|
|
10
|
+
const i = r.target.value;
|
|
11
|
+
e == null || e(d(i));
|
|
12
12
|
}, Y = (e) => {
|
|
13
13
|
const {
|
|
14
|
-
label:
|
|
15
|
-
value:
|
|
14
|
+
label: r,
|
|
15
|
+
value: i,
|
|
16
16
|
onChange: x,
|
|
17
17
|
errorMessage: a,
|
|
18
18
|
width: h,
|
|
19
19
|
fontSize: f = 18,
|
|
20
20
|
fontWeight: g = 400,
|
|
21
21
|
rows: y = 4,
|
|
22
|
-
lineHeight:
|
|
22
|
+
lineHeight: l = 22,
|
|
23
23
|
placeholder: _,
|
|
24
|
-
disabled:
|
|
24
|
+
disabled: o,
|
|
25
25
|
underlineColor: w = "cl_lightGrey",
|
|
26
|
-
onFocus:
|
|
26
|
+
onFocus: s,
|
|
27
27
|
gap: S = "10px",
|
|
28
28
|
maxLength: p,
|
|
29
29
|
labelSx: W,
|
|
30
30
|
labelColor: j = "cl_darkGrey",
|
|
31
31
|
minHeightRows: C = 1,
|
|
32
32
|
inputWidth: H
|
|
33
|
-
} = e, [v, c] = z(!1), $ = () => {
|
|
34
|
-
c(!0),
|
|
35
|
-
}, m = (
|
|
36
|
-
p && !["Backspace", "Delete"].some((b) =>
|
|
33
|
+
} = e, [v, c] = z(!1), $ = (t) => {
|
|
34
|
+
c(!0), s == null || s(t);
|
|
35
|
+
}, m = (t) => {
|
|
36
|
+
p && !["Backspace", "Delete"].some((b) => t.key === b) && d(t.target.innerText).length >= p && t.preventDefault();
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ n.jsxs(
|
|
39
39
|
G,
|
|
40
40
|
{
|
|
41
41
|
width: h,
|
|
@@ -49,7 +49,7 @@ const R = (e) => (t) => {
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
children: [
|
|
52
|
-
|
|
52
|
+
r && /* @__PURE__ */ n.jsx(
|
|
53
53
|
T,
|
|
54
54
|
{
|
|
55
55
|
color: a ? "cl_red" : j,
|
|
@@ -61,14 +61,14 @@ const R = (e) => (t) => {
|
|
|
61
61
|
cursor: "default",
|
|
62
62
|
...W
|
|
63
63
|
},
|
|
64
|
-
children:
|
|
64
|
+
children: r
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ n.jsx(
|
|
68
68
|
D,
|
|
69
69
|
{
|
|
70
|
-
html: F(
|
|
71
|
-
disabled:
|
|
70
|
+
html: F(i),
|
|
71
|
+
disabled: o,
|
|
72
72
|
onChange: R(x),
|
|
73
73
|
onFocus: $,
|
|
74
74
|
onBlur: () => c(!1),
|
|
@@ -78,22 +78,22 @@ const R = (e) => (t) => {
|
|
|
78
78
|
fontFamily: "proxima-nova",
|
|
79
79
|
fontSize: `${f}px`,
|
|
80
80
|
fontWeight: g,
|
|
81
|
-
color:
|
|
81
|
+
color: o ? u.colors.cl_grey : u.colors.cl_darkGrey,
|
|
82
82
|
border: "none",
|
|
83
83
|
outline: "none",
|
|
84
|
-
lineHeight: `${
|
|
85
|
-
minHeight: `${
|
|
86
|
-
maxHeight: `${
|
|
84
|
+
lineHeight: `${l}px`,
|
|
85
|
+
minHeight: `${l * C}px`,
|
|
86
|
+
maxHeight: `${l * y}px`,
|
|
87
87
|
overflowY: "scroll",
|
|
88
|
-
cursor:
|
|
88
|
+
cursor: o ? "default" : "text",
|
|
89
89
|
width: H
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ n.jsx(
|
|
94
94
|
B,
|
|
95
95
|
{
|
|
96
|
-
color:
|
|
96
|
+
color: o ? "cl_grey" : v ? "cl_blue" : a ? "cl_red" : w,
|
|
97
97
|
height: "2px"
|
|
98
98
|
}
|
|
99
99
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library65.js","sources":["../src/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport ContentEditable, { ContentEditableEvent } from \"react-contenteditable\";\n\nimport theme from \"../../../core/theme\";\nimport { BaseTextV2, Grid, HorizontalDivider } from \"../../../index\";\nimport { MultiRowSecondaryTextInputProps as Props } from \"./interfaces\";\nimport { escapeWrapper, unescapeWrapper } from \"./utils\";\n\n/**\n * Problems:\n * - lodash escape/unescape functions don't take into account a regular space;\n * - content-editable wraps each new row by <div> element;\n * - if row is empty, it's represented by <br>.\n *\n * As a solution to mentioned problems, custom escape/unescape functions were used.\n */\n\nconst changeWrapper = (\n callback?: (newValue: string) => void\n): ((event: ContentEditableEvent) => void) => {\n return (event: ContentEditableEvent) => {\n const newValue = event.target.value;\n callback?.(unescapeWrapper(newValue));\n };\n};\n\nexport const MultiRowSecondaryTextInput: React.FC<Props> = (props) => {\n const {\n label,\n value,\n onChange,\n errorMessage,\n width,\n fontSize = 18,\n fontWeight = 400,\n rows = 4,\n lineHeight = 22,\n placeholder,\n disabled,\n underlineColor = \"cl_lightGrey\",\n onFocus,\n gap = \"10px\",\n maxLength,\n labelSx,\n labelColor = \"cl_darkGrey\",\n minHeightRows = 1,\n inputWidth,\n } = props;\n\n const [isFocused, setIsFocused] = useState(false);\n\n const onFocusWrapper = () => {\n setIsFocused(true);\n onFocus?.();\n };\n\n const checkCharactersLimit = (event: any) => {\n if (\n maxLength &&\n ![\"Backspace\", \"Delete\"].some((key) => event.key === key) &&\n unescapeWrapper((event.target as HTMLDivElement).innerText).length >=\n maxLength\n )\n event.preventDefault();\n };\n\n return (\n <Grid\n width={width}\n gap={gap}\n data-testid=\"multi-row-secondary-text-input\"\n sx={{\n \"div[contenteditable]:empty::before\": {\n cursor: \"text\",\n content: `\"${placeholder}\"`,\n color: \"cl_grey\",\n },\n }}\n >\n {label && (\n <BaseTextV2\n color={errorMessage ? \"cl_red\" : labelColor}\n sx={{\n fontSize: 12,\n fontWeight: 600,\n letterSpacing: \"1px\",\n textTransform: \"uppercase\",\n cursor: \"default\",\n ...labelSx,\n }}\n >\n {label}\n </BaseTextV2>\n )}\n\n <ContentEditable\n html={escapeWrapper(value)}\n disabled={disabled}\n onChange={changeWrapper(onChange)}\n onFocus={onFocusWrapper}\n onBlur={() => setIsFocused(false)}\n onKeyDown={checkCharactersLimit}\n onPaste={checkCharactersLimit}\n style={{\n fontFamily: \"proxima-nova\",\n fontSize: `${fontSize}px`,\n fontWeight,\n color: disabled\n ? theme.colors[\"cl_grey\"]\n : theme.colors[\"cl_darkGrey\"],\n border: \"none\",\n outline: \"none\",\n lineHeight: `${lineHeight}px`,\n minHeight: `${lineHeight * minHeightRows}px`,\n maxHeight: `${lineHeight * rows}px`,\n overflowY: \"scroll\",\n cursor: disabled ? \"default\" : \"text\",\n width: inputWidth,\n }}\n />\n\n <HorizontalDivider\n color={\n disabled\n ? \"cl_grey\"\n : isFocused\n ? \"cl_blue\"\n : errorMessage\n ? \"cl_red\"\n : underlineColor\n }\n height=\"2px\"\n />\n </Grid>\n );\n};\n"],"names":["changeWrapper","callback","event","newValue","unescapeWrapper","MultiRowSecondaryTextInput","props","label","value","onChange","errorMessage","width","fontSize","fontWeight","rows","lineHeight","placeholder","disabled","underlineColor","onFocus","gap","maxLength","labelSx","labelColor","minHeightRows","inputWidth","isFocused","setIsFocused","useState","onFocusWrapper","checkCharactersLimit","key","jsxs","Grid","jsx","BaseTextV2","ContentEditable","escapeWrapper","theme","HorizontalDivider"],"mappings":";;;;;;;;AAiBA,MAAMA,IAAgB,CACpBC,MAEO,CAACC,MAAgC;AAChC,QAAAC,IAAWD,EAAM,OAAO;AACnB,EAAAD,KAAA,QAAAA,EAAAG,EAAgBD,CAAQ;AAAC,GAI3BE,IAA8C,CAACC,MAAU;AAC9D,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,YAAAC,IAAa;AAAA,IACb,MAAAC,IAAO;AAAA,IACP,YAAAC,IAAa;AAAA,IACb,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,gBAAAC,IAAiB;AAAA,IACjB,SAAAC;AAAA,IACA,KAAAC,IAAM;AAAA,IACN,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,eAAAC,IAAgB;AAAA,IAChB,YAAAC;AAAA,EACE,IAAAnB,GAEE,CAACoB,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAE1CC,
|
|
1
|
+
{"version":3,"file":"sd-component-library65.js","sources":["../src/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport ContentEditable, { ContentEditableEvent } from \"react-contenteditable\";\n\nimport theme from \"../../../core/theme\";\nimport { BaseTextV2, Grid, HorizontalDivider } from \"../../../index\";\nimport { MultiRowSecondaryTextInputProps as Props } from \"./interfaces\";\nimport { escapeWrapper, unescapeWrapper } from \"./utils\";\n\n/**\n * Problems:\n * - lodash escape/unescape functions don't take into account a regular space;\n * - content-editable wraps each new row by <div> element;\n * - if row is empty, it's represented by <br>.\n *\n * As a solution to mentioned problems, custom escape/unescape functions were used.\n */\n\nconst changeWrapper = (\n callback?: (newValue: string) => void\n): ((event: ContentEditableEvent) => void) => {\n return (event: ContentEditableEvent) => {\n const newValue = event.target.value;\n callback?.(unescapeWrapper(newValue));\n };\n};\n\nexport const MultiRowSecondaryTextInput: React.FC<Props> = (props) => {\n const {\n label,\n value,\n onChange,\n errorMessage,\n width,\n fontSize = 18,\n fontWeight = 400,\n rows = 4,\n lineHeight = 22,\n placeholder,\n disabled,\n underlineColor = \"cl_lightGrey\",\n onFocus,\n gap = \"10px\",\n maxLength,\n labelSx,\n labelColor = \"cl_darkGrey\",\n minHeightRows = 1,\n inputWidth,\n } = props;\n\n const [isFocused, setIsFocused] = useState(false);\n\n const onFocusWrapper: Props[\"onFocus\"] = (event) => {\n setIsFocused(true);\n onFocus?.(event);\n };\n\n const checkCharactersLimit = (event: any) => {\n if (\n maxLength &&\n ![\"Backspace\", \"Delete\"].some((key) => event.key === key) &&\n unescapeWrapper((event.target as HTMLDivElement).innerText).length >=\n maxLength\n )\n event.preventDefault();\n };\n\n return (\n <Grid\n width={width}\n gap={gap}\n data-testid=\"multi-row-secondary-text-input\"\n sx={{\n \"div[contenteditable]:empty::before\": {\n cursor: \"text\",\n content: `\"${placeholder}\"`,\n color: \"cl_grey\",\n },\n }}\n >\n {label && (\n <BaseTextV2\n color={errorMessage ? \"cl_red\" : labelColor}\n sx={{\n fontSize: 12,\n fontWeight: 600,\n letterSpacing: \"1px\",\n textTransform: \"uppercase\",\n cursor: \"default\",\n ...labelSx,\n }}\n >\n {label}\n </BaseTextV2>\n )}\n\n <ContentEditable\n html={escapeWrapper(value)}\n disabled={disabled}\n onChange={changeWrapper(onChange)}\n onFocus={onFocusWrapper}\n onBlur={() => setIsFocused(false)}\n onKeyDown={checkCharactersLimit}\n onPaste={checkCharactersLimit}\n style={{\n fontFamily: \"proxima-nova\",\n fontSize: `${fontSize}px`,\n fontWeight,\n color: disabled\n ? theme.colors[\"cl_grey\"]\n : theme.colors[\"cl_darkGrey\"],\n border: \"none\",\n outline: \"none\",\n lineHeight: `${lineHeight}px`,\n minHeight: `${lineHeight * minHeightRows}px`,\n maxHeight: `${lineHeight * rows}px`,\n overflowY: \"scroll\",\n cursor: disabled ? \"default\" : \"text\",\n width: inputWidth,\n }}\n />\n\n <HorizontalDivider\n color={\n disabled\n ? \"cl_grey\"\n : isFocused\n ? \"cl_blue\"\n : errorMessage\n ? \"cl_red\"\n : underlineColor\n }\n height=\"2px\"\n />\n </Grid>\n );\n};\n"],"names":["changeWrapper","callback","event","newValue","unescapeWrapper","MultiRowSecondaryTextInput","props","label","value","onChange","errorMessage","width","fontSize","fontWeight","rows","lineHeight","placeholder","disabled","underlineColor","onFocus","gap","maxLength","labelSx","labelColor","minHeightRows","inputWidth","isFocused","setIsFocused","useState","onFocusWrapper","checkCharactersLimit","key","jsxs","Grid","jsx","BaseTextV2","ContentEditable","escapeWrapper","theme","HorizontalDivider"],"mappings":";;;;;;;;AAiBA,MAAMA,IAAgB,CACpBC,MAEO,CAACC,MAAgC;AAChC,QAAAC,IAAWD,EAAM,OAAO;AACnB,EAAAD,KAAA,QAAAA,EAAAG,EAAgBD,CAAQ;AAAC,GAI3BE,IAA8C,CAACC,MAAU;AAC9D,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,YAAAC,IAAa;AAAA,IACb,MAAAC,IAAO;AAAA,IACP,YAAAC,IAAa;AAAA,IACb,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,gBAAAC,IAAiB;AAAA,IACjB,SAAAC;AAAA,IACA,KAAAC,IAAM;AAAA,IACN,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,eAAAC,IAAgB;AAAA,IAChB,YAAAC;AAAA,EACE,IAAAnB,GAEE,CAACoB,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAE1CC,IAAmC,CAAC3B,MAAU;AAClD,IAAAyB,EAAa,EAAI,GACjBR,KAAA,QAAAA,EAAUjB;AAAA,EAAK,GAGX4B,IAAuB,CAAC5B,MAAe;AAC3C,IACEmB,KACA,CAAC,CAAC,aAAa,QAAQ,EAAE,KAAK,CAACU,MAAQ7B,EAAM,QAAQ6B,CAAG,KACxD3B,EAAiBF,EAAM,OAA0B,SAAS,EAAE,UAC1DmB,KAEFnB,EAAM,eAAe;AAAA,EAAA;AAIvB,SAAA8B,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAAtB;AAAA,MACA,KAAAS;AAAA,MACA,eAAY;AAAA,MACZ,IAAI;AAAA,QACF,sCAAsC;AAAA,UACpC,QAAQ;AAAA,UACR,SAAS,IAAIJ,CAAW;AAAA,UACxB,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MAEC,UAAA;AAAA,QACCT,KAAA2B,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,OAAOzB,IAAe,WAAWa;AAAA,YACjC,IAAI;AAAA,cACF,UAAU;AAAA,cACV,YAAY;AAAA,cACZ,eAAe;AAAA,cACf,eAAe;AAAA,cACf,QAAQ;AAAA,cACR,GAAGD;AAAA,YACL;AAAA,YAEC,UAAAf;AAAA,UAAA;AAAA,QACH;AAAA,QAGF2B,gBAAAA,EAAA;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,MAAMC,EAAc7B,CAAK;AAAA,YACzB,UAAAS;AAAA,YACA,UAAUjB,EAAcS,CAAQ;AAAA,YAChC,SAASoB;AAAA,YACT,QAAQ,MAAMF,EAAa,EAAK;AAAA,YAChC,WAAWG;AAAA,YACX,SAASA;AAAA,YACT,OAAO;AAAA,cACL,YAAY;AAAA,cACZ,UAAU,GAAGlB,CAAQ;AAAA,cACrB,YAAAC;AAAA,cACA,OAAOI,IACHqB,EAAM,OAAO,UACbA,EAAM,OAAO;AAAA,cACjB,QAAQ;AAAA,cACR,SAAS;AAAA,cACT,YAAY,GAAGvB,CAAU;AAAA,cACzB,WAAW,GAAGA,IAAaS,CAAa;AAAA,cACxC,WAAW,GAAGT,IAAaD,CAAI;AAAA,cAC/B,WAAW;AAAA,cACX,QAAQG,IAAW,YAAY;AAAA,cAC/B,OAAOQ;AAAA,YACT;AAAA,UAAA;AAAA,QACF;AAAA,QAEAS,gBAAAA,EAAA;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,OACEtB,IACI,YACAS,IACA,YACAhB,IACA,WACAQ;AAAA,YAEN,QAAO;AAAA,UAAA;AAAA,QACT;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as i } from "./sd-component-library190.js";
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { Flex as R } from "rebass";
|
|
4
|
-
import { CircleButton as a } from "./sd-component-
|
|
5
|
-
import { ReactComponent as _ } from "./sd-component-
|
|
4
|
+
import { CircleButton as a } from "./sd-component-library240.js";
|
|
5
|
+
import { ReactComponent as _ } from "./sd-component-library241.js";
|
|
6
6
|
import { NumberInput as I } from "./sd-component-library66.js";
|
|
7
|
-
import { ReactComponent as M } from "./sd-component-
|
|
7
|
+
import { ReactComponent as M } from "./sd-component-library242.js";
|
|
8
8
|
function m(d, t) {
|
|
9
9
|
return (r, o) => {
|
|
10
10
|
t == null || t(r, o), d(r);
|
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
import { j as x } from "./sd-component-library190.js";
|
|
2
|
-
import { Box as
|
|
3
|
-
import { TextInput as
|
|
4
|
-
const
|
|
2
|
+
import { Box as n, Text as p } from "rebass";
|
|
3
|
+
import { TextInput as a } from "./sd-component-library73.js";
|
|
4
|
+
const f = (i) => {
|
|
5
5
|
const {
|
|
6
|
-
|
|
7
|
-
padding: n = ["14px 0px"],
|
|
6
|
+
padding: o = ["14px 0px"],
|
|
8
7
|
errorMessage: t,
|
|
9
8
|
errorMessageProps: r,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return /* @__PURE__ */ x.jsxs(m, { "data-testid": "primary-text-input", children: [
|
|
9
|
+
hideErrorText: e,
|
|
10
|
+
sx: m
|
|
11
|
+
} = i;
|
|
12
|
+
return /* @__PURE__ */ x.jsxs(n, { "data-testid": "primary-text-input", children: [
|
|
15
13
|
/* @__PURE__ */ x.jsx(
|
|
16
|
-
|
|
14
|
+
a,
|
|
17
15
|
{
|
|
18
|
-
...
|
|
19
|
-
onChange: i,
|
|
20
|
-
focusInput: e,
|
|
16
|
+
...i,
|
|
21
17
|
variant: t ? "primaryError" : "primary",
|
|
22
18
|
sx: {
|
|
23
|
-
padding:
|
|
24
|
-
...
|
|
19
|
+
padding: o,
|
|
20
|
+
...m
|
|
25
21
|
}
|
|
26
22
|
}
|
|
27
23
|
),
|
|
28
|
-
t && !
|
|
29
|
-
|
|
24
|
+
t && !e && /* @__PURE__ */ x.jsx(
|
|
25
|
+
p,
|
|
30
26
|
{
|
|
31
27
|
...r,
|
|
32
28
|
sx: {
|
|
@@ -42,6 +38,6 @@ const j = (o) => {
|
|
|
42
38
|
] });
|
|
43
39
|
};
|
|
44
40
|
export {
|
|
45
|
-
|
|
41
|
+
f as PrimaryTextInput
|
|
46
42
|
};
|
|
47
43
|
//# sourceMappingURL=sd-component-library68.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library68.js","sources":["../src/components/inputs/primary-text-input/primary-text-input.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Text } from \"rebass\";\n\nimport { TextInput } from \"../text-input\";\nimport { PrimaryTextInputProps as Props } from \"./interfaces\";\n\nexport const PrimaryTextInput: React.FC<Props> = (props) => {\n const {\n
|
|
1
|
+
{"version":3,"file":"sd-component-library68.js","sources":["../src/components/inputs/primary-text-input/primary-text-input.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Text } from \"rebass\";\n\nimport { TextInput } from \"../text-input\";\nimport { PrimaryTextInputProps as Props } from \"./interfaces\";\n\nexport const PrimaryTextInput: React.FC<Props> = (props) => {\n const {\n padding = [\"14px 0px\"],\n errorMessage,\n errorMessageProps,\n hideErrorText,\n sx,\n } = props;\n\n return (\n <Box data-testid=\"primary-text-input\">\n <TextInput\n {...props}\n variant={errorMessage ? \"primaryError\" : \"primary\"}\n sx={{\n padding,\n ...sx,\n }}\n />\n {errorMessage && !hideErrorText && (\n <Text\n {...errorMessageProps}\n sx={{\n fontSize: \"12px\",\n mt: \"10px\",\n color: \"cl_red\",\n fontFamily: \"proxima-nova\",\n ...errorMessageProps?.sx,\n }}\n >\n {errorMessage}\n </Text>\n )}\n </Box>\n );\n};\n"],"names":["PrimaryTextInput","props","padding","errorMessage","errorMessageProps","hideErrorText","sx","jsxs","Box","jsx","TextInput","Text"],"mappings":";;;AAOa,MAAAA,IAAoC,CAACC,MAAU;AACpD,QAAA;AAAA,IACJ,SAAAC,IAAU,CAAC,UAAU;AAAA,IACrB,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,IAAAC;AAAA,EACE,IAAAL;AAGF,SAAAM,gBAAAA,EAAA,KAACC,GAAI,EAAA,eAAY,sBACf,UAAA;AAAA,IAAAC,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACE,GAAGT;AAAA,QACJ,SAASE,IAAe,iBAAiB;AAAA,QACzC,IAAI;AAAA,UACF,SAAAD;AAAA,UACA,GAAGI;AAAA,QACL;AAAA,MAAA;AAAA,IACF;AAAA,IACCH,KAAgB,CAACE,KAChBI,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACE,GAAGP;AAAA,QACJ,IAAI;AAAA,UACF,UAAU;AAAA,UACV,IAAI;AAAA,UACJ,OAAO;AAAA,UACP,YAAY;AAAA,UACZ,GAAGA,KAAA,gBAAAA,EAAmB;AAAA,QACxB;AAAA,QAEC,UAAAD;AAAA,MAAA;AAAA,IACH;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
|
@@ -2,8 +2,8 @@ import { j as t } from "./sd-component-library190.js";
|
|
|
2
2
|
import { useState as d } from "react";
|
|
3
3
|
import { OutsideClickBox as g } from "./sd-component-library11.js";
|
|
4
4
|
import { SecondaryTextInput as j } from "./sd-component-library72.js";
|
|
5
|
-
import { ReactComponent as v } from "./sd-component-
|
|
6
|
-
import { SearchAutocompleteResultsBox as C } from "./sd-component-
|
|
5
|
+
import { ReactComponent as v } from "./sd-component-library244.js";
|
|
6
|
+
import { SearchAutocompleteResultsBox as C } from "./sd-component-library247.js";
|
|
7
7
|
const F = (s) => {
|
|
8
8
|
const {
|
|
9
9
|
searchValue: r,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as s } from "./sd-component-library190.js";
|
|
2
2
|
import { useState as V } from "react";
|
|
3
3
|
import { useDependantState as q } from "./sd-component-library3.js";
|
|
4
|
-
import { SearchBox as z } from "./sd-component-
|
|
4
|
+
import { SearchBox as z } from "./sd-component-library243.js";
|
|
5
5
|
import { OutsideClickBox as G } from "./sd-component-library11.js";
|
|
6
6
|
import { PrimaryTextInput as H } from "./sd-component-library68.js";
|
|
7
|
-
import { ReactComponent as J } from "./sd-component-
|
|
8
|
-
import { ReactComponent as M } from "./sd-component-
|
|
7
|
+
import { ReactComponent as J } from "./sd-component-library244.js";
|
|
8
|
+
import { ReactComponent as M } from "./sd-component-library245.js";
|
|
9
9
|
function f(i, o, e, t) {
|
|
10
10
|
t == null || t(i, o), e(i);
|
|
11
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library190.js";
|
|
2
2
|
import { Box as I } from "rebass";
|
|
3
|
-
import { SecondaryInputLabels as B } from "./sd-component-
|
|
3
|
+
import { SecondaryInputLabels as B } from "./sd-component-library246.js";
|
|
4
4
|
import { NumberInput as A } from "./sd-component-library66.js";
|
|
5
5
|
const k = (n) => {
|
|
6
6
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library190.js";
|
|
2
2
|
import { Box as c } from "rebass";
|
|
3
|
-
import { SecondaryInputLabels as u } from "./sd-component-
|
|
3
|
+
import { SecondaryInputLabels as u } from "./sd-component-library246.js";
|
|
4
4
|
import { PrimaryTextInput as f } from "./sd-component-library68.js";
|
|
5
5
|
const T = (e) => {
|
|
6
6
|
const { m: r, mb: s, ml: n, mr: o, mt: a, width: m, padding: p, sx: x, inputSx: d, ...i } = e;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Input as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
import { j as e } from "./sd-component-library190.js";
|
|
2
|
+
import { Input as n } from "./sd-component-library64.js";
|
|
3
|
+
const s = ({
|
|
4
|
+
variant: t,
|
|
5
|
+
type: p = "text",
|
|
6
|
+
...x
|
|
7
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
8
|
+
n,
|
|
9
|
+
{
|
|
10
|
+
...x,
|
|
11
|
+
variant: `textInput.${t}`,
|
|
12
|
+
type: p,
|
|
13
|
+
"data-test": "text-input"
|
|
14
|
+
}
|
|
15
|
+
);
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
s as TextInput
|
|
17
18
|
};
|
|
18
19
|
//# sourceMappingURL=sd-component-library73.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library73.js","sources":["../src/components/inputs/text-input/text-input.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Input } from \"../input\";\nimport { TextInputProps as Props } from \"./interfaces\";\n\n/**\n * Base Text input component. Other text inputs should inherit from this.\n */\nexport const TextInput: React.FC<Props> = (
|
|
1
|
+
{"version":3,"file":"sd-component-library73.js","sources":["../src/components/inputs/text-input/text-input.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Input } from \"../input\";\nimport { TextInputProps as Props } from \"./interfaces\";\n\n/**\n * Base Text input component. Other text inputs should inherit from this.\n */\nexport const TextInput: React.FC<Props> = ({\n variant,\n type = \"text\",\n ...restOfProps\n}) => (\n <Input\n {...restOfProps}\n variant={`textInput.${variant}`}\n type={type}\n data-test=\"text-input\"\n />\n);\n"],"names":["TextInput","variant","type","restOfProps","jsx","Input"],"mappings":";;AAQO,MAAMA,IAA6B,CAAC;AAAA,EACzC,SAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACE,GAAGF;AAAA,IACJ,SAAS,aAAaF,CAAO;AAAA,IAC7B,MAAAC;AAAA,IACA,aAAU;AAAA,EAAA;AACZ;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library190.js";
|
|
2
2
|
import { Box as p } from "rebass";
|
|
3
3
|
import { PrimaryTextInput as x } from "./sd-component-library68.js";
|
|
4
|
-
import { ReactComponent as m } from "./sd-component-
|
|
4
|
+
import { ReactComponent as m } from "./sd-component-library244.js";
|
|
5
5
|
const j = ({
|
|
6
6
|
placeholder: s = "Enter your Search",
|
|
7
7
|
searchStyle: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library190.js";
|
|
2
2
|
import { Box as c } from "rebass";
|
|
3
|
-
import { BaseLabel as e } from "./sd-component-
|
|
3
|
+
import { BaseLabel as e } from "./sd-component-library254.js";
|
|
4
4
|
import { TextInput as m } from "./sd-component-library73.js";
|
|
5
5
|
import { BaseTextV2 as s } from "./sd-component-library132.js";
|
|
6
6
|
const _ = ({
|
|
@@ -5,7 +5,7 @@ import { useHover as R } from "./sd-component-library3.js";
|
|
|
5
5
|
import { getResponsiveClick as H } from "./sd-component-library4.js";
|
|
6
6
|
import { OutsideClickBox as W } from "./sd-component-library11.js";
|
|
7
7
|
import { ReactComponent as $ } from "./sd-component-library181.js";
|
|
8
|
-
import { ActionBox as A } from "./sd-component-
|
|
8
|
+
import { ActionBox as A } from "./sd-component-library233.js";
|
|
9
9
|
import { FlexCenter as M } from "./sd-component-library35.js";
|
|
10
10
|
import { HorizontalDivider as a } from "./sd-component-library49.js";
|
|
11
11
|
const G = (d) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library190.js";
|
|
2
2
|
import { Box as R } from "rebass";
|
|
3
3
|
import { useElementCoordinates as O } from "./sd-component-library3.js";
|
|
4
|
-
import { defaultPointerWidth as _, defaultTextBottomMargin as z } from "./sd-component-
|
|
5
|
-
import { labelWidth as X, defaultDistanceFromLabelToRanges as W, labelPaddingX as Y, defaultWidth as A, defaultHeight as D, defaultArc as E, defaultPointStrokeWidth as G, defaultInnerPointRadius as H, defaultGaugeWidth as V, defaultMaskBorderRadius as q } from "./sd-component-
|
|
4
|
+
import { defaultPointerWidth as _, defaultTextBottomMargin as z } from "./sd-component-library208.js";
|
|
5
|
+
import { labelWidth as X, defaultDistanceFromLabelToRanges as W, labelPaddingX as Y, defaultWidth as A, defaultHeight as D, defaultArc as E, defaultPointStrokeWidth as G, defaultInnerPointRadius as H, defaultGaugeWidth as V, defaultMaskBorderRadius as q } from "./sd-component-library209.js";
|
|
6
6
|
import { isValueInRange as N } from "./sd-component-library86.js";
|
|
7
|
-
import { COLOR_TO_ICON_MAP as J, defaultSmileyWidth as K, defaultDistanceBetweenRanges as Q } from "./sd-component-
|
|
8
|
-
import { isCorrectSmileyMeterConfig as U, getIsHorizontal as Z } from "./sd-component-
|
|
9
|
-
import { SmileyMeterRanges as ee } from "./sd-component-
|
|
10
|
-
import { MatchedRangeLabelBox as te } from "./sd-component-
|
|
7
|
+
import { COLOR_TO_ICON_MAP as J, defaultSmileyWidth as K, defaultDistanceBetweenRanges as Q } from "./sd-component-library210.js";
|
|
8
|
+
import { isCorrectSmileyMeterConfig as U, getIsHorizontal as Z } from "./sd-component-library211.js";
|
|
9
|
+
import { SmileyMeterRanges as ee } from "./sd-component-library212.js";
|
|
10
|
+
import { MatchedRangeLabelBox as te } from "./sd-component-library213.js";
|
|
11
11
|
import { FlexCenter as ie } from "./sd-component-library35.js";
|
|
12
12
|
const he = ($) => {
|
|
13
13
|
const {
|