@selfdecode/sd-component-library 4.0.78 → 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/sd-component-library101.js +2 -2
- 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-library113.js +1 -1
- package/lib/sd-component-library121.js +1 -1
- package/lib/sd-component-library122.js +1 -1
- package/lib/sd-component-library124.js +1 -1
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library161.js +1 -1
- package/lib/sd-component-library190.js +3 -3
- package/lib/sd-component-library194.js +2 -3
- package/lib/sd-component-library194.js.map +1 -1
- package/lib/sd-component-library195.js +30 -2
- package/lib/sd-component-library195.js.map +1 -1
- package/lib/sd-component-library196.js +590 -21
- package/lib/sd-component-library196.js.map +1 -1
- package/lib/sd-component-library197.js +57 -599
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library198.js +23 -55
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library199.js +14 -20
- package/lib/sd-component-library199.js.map +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-library203.js +64 -18
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +18 -64
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +62 -19
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +23 -3
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +3 -3
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +3 -64
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +31 -23
- 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 +20 -14
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +28 -3
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +33 -3
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +127 -127
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +43 -13
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +43 -61
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +8 -3
- 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 +107 -50
- 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 -15
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +53 -3
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +64 -31
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +43 -19
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +12 -19
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +47 -27
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +40 -32
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +27 -3
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +74 -128
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library23.js +1 -1
- package/lib/sd-component-library230.js +20 -42
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +20 -47
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +2 -8
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +25 -63
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +20 -42
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +3 -13
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +3 -21
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +39 -108
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +127 -45
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +13 -24
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +14 -53
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +3 -48
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +3 -75
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +63 -39
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +3 -27
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +3 -21
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +46 -20
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +52 -2
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +6 -6
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library250.js +23 -20
- 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-library259.js +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 +3 -70
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +6 -102
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +10 -106
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +2 -10
- 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-library293.js +1 -1
- package/lib/sd-component-library294.js +1 -1
- package/lib/sd-component-library299.js +9 -2
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +5 -2
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +3 -8
- 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 -4
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +2 -19
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +2 -3
- package/lib/sd-component-library305.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 +89 -47
- package/lib/sd-component-library309.js.map +1 -1
- package/lib/sd-component-library310.js +47 -89
- package/lib/sd-component-library310.js.map +1 -1
- 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-library32.js +1 -1
- package/lib/sd-component-library33.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library50.js +1 -1
- package/lib/sd-component-library52.js +3 -3
- package/lib/sd-component-library53.js +2 -2
- package/lib/sd-component-library54.js +2 -2
- 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-library99.js +4 -4
- package/package.json +1 -1
|
@@ -1,67 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Box as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
innerBoxSx: C
|
|
19
|
-
}) => {
|
|
20
|
-
const { isHover: b, hoverCallbacks: f } = k(), i = b || !c || S(), t = o ? p : d;
|
|
21
|
-
return /* @__PURE__ */ r.jsxs(
|
|
22
|
-
j,
|
|
23
|
-
{
|
|
24
|
-
onClick: o ? void 0 : u,
|
|
25
|
-
sx: {
|
|
26
|
-
cursor: o ? "default" : "pointer",
|
|
27
|
-
gap: "10px",
|
|
28
|
-
...x
|
|
29
|
-
},
|
|
30
|
-
...f,
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ r.jsx(n, { size: e, sx: { flexShrink: 0 }, children: /* @__PURE__ */ r.jsx(
|
|
33
|
-
v,
|
|
34
|
-
{
|
|
35
|
-
width: i ? e : g,
|
|
36
|
-
height: e,
|
|
37
|
-
bg: l && i ? "" : s,
|
|
38
|
-
sx: {
|
|
39
|
-
flexShrink: 0,
|
|
40
|
-
borderRadius: "3px",
|
|
41
|
-
borderWidth: a,
|
|
42
|
-
borderColor: t,
|
|
43
|
-
borderStyle: "solid",
|
|
44
|
-
transition: "width 0.1s ease-in"
|
|
45
|
-
},
|
|
46
|
-
children: m && /* @__PURE__ */ r.jsx(
|
|
47
|
-
n,
|
|
48
|
-
{
|
|
49
|
-
sx: {
|
|
50
|
-
border: `calc(${z} / 2) solid`,
|
|
51
|
-
borderColor: t,
|
|
52
|
-
borderRadius: "2px",
|
|
53
|
-
...C
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
) }),
|
|
59
|
-
h
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
};
|
|
1
|
+
import { j as o } from "./sd-component-library190.js";
|
|
2
|
+
import { Box as e } from "rebass";
|
|
3
|
+
const m = ({
|
|
4
|
+
color: r = "cl_lightGrey",
|
|
5
|
+
sx: t,
|
|
6
|
+
...i
|
|
7
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
8
|
+
e,
|
|
9
|
+
{
|
|
10
|
+
sx: {
|
|
11
|
+
bg: r,
|
|
12
|
+
...i,
|
|
13
|
+
...t
|
|
14
|
+
},
|
|
15
|
+
"data-test": "divider"
|
|
16
|
+
}
|
|
17
|
+
);
|
|
64
18
|
export {
|
|
65
|
-
|
|
19
|
+
m as Divider
|
|
66
20
|
};
|
|
67
21
|
//# sourceMappingURL=sd-component-library204.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library204.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library204.js","sources":["../src/components/dividers/divider/divider.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { DividerProps as Props } from \"./interfaces\";\n\n/**\n * Base divider component. Other divider components should be built from this.\n */\nexport const Divider: React.FC<Props> = ({\n color = \"cl_lightGrey\",\n sx,\n ...props\n}) => {\n return (\n <Box\n sx={{\n bg: color,\n ...props,\n ...sx,\n }}\n data-test=\"divider\"\n />\n );\n};\n"],"names":["Divider","color","sx","props","jsx","Box"],"mappings":";;AASO,MAAMA,IAA2B,CAAC;AAAA,EACvC,OAAAC,IAAQ;AAAA,EACR,IAAAC;AAAA,EACA,GAAGC;AACL,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,IAAI;AAAA,MACF,IAAIJ;AAAA,MACJ,GAAGE;AAAA,MACH,GAAGD;AAAA,IACL;AAAA,IACA,aAAU;AAAA,EAAA;AAAA;"}
|
|
@@ -1,24 +1,67 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Box as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { j as o } from "./sd-component-library190.js";
|
|
2
|
+
import { Box as d } from "rebass";
|
|
3
|
+
import { BoldText as t } from "./sd-component-library157.js";
|
|
4
|
+
import { FlexCenter as h } from "./sd-component-library35.js";
|
|
5
|
+
const m = "80px", B = (i) => {
|
|
6
6
|
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
questionText: n,
|
|
8
|
+
children: r,
|
|
9
|
+
containerSx: x,
|
|
10
|
+
iconContainerSx: p,
|
|
11
|
+
questionTextFontSize: s = 24,
|
|
12
|
+
iconFontSize: a = 40,
|
|
13
|
+
questionMarginBottom: c = "30px",
|
|
14
|
+
showIcon: e = !1,
|
|
15
|
+
...l
|
|
16
|
+
} = i;
|
|
17
|
+
return /* @__PURE__ */ o.jsxs(
|
|
18
|
+
d,
|
|
19
|
+
{
|
|
20
|
+
sx: {
|
|
21
|
+
width: "270px",
|
|
22
|
+
position: "relative",
|
|
23
|
+
borderRadius: "5px",
|
|
24
|
+
boxShadow: "0px 0px 10px #9BA2B433",
|
|
25
|
+
px: "40px",
|
|
26
|
+
pb: "40px",
|
|
27
|
+
pt: e ? "70px" : "40px",
|
|
28
|
+
bg: "cl_white",
|
|
29
|
+
...x
|
|
30
|
+
},
|
|
31
|
+
...l,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ o.jsx(
|
|
34
|
+
t,
|
|
35
|
+
{
|
|
36
|
+
fontSize: s,
|
|
37
|
+
textAlign: "center",
|
|
38
|
+
mb: c,
|
|
39
|
+
children: n
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
r,
|
|
43
|
+
e && /* @__PURE__ */ o.jsx(
|
|
44
|
+
h,
|
|
45
|
+
{
|
|
46
|
+
size: m,
|
|
47
|
+
bg: "white",
|
|
48
|
+
sx: {
|
|
49
|
+
position: "absolute",
|
|
50
|
+
left: "50%",
|
|
51
|
+
top: 0,
|
|
52
|
+
boxShadow: "0px 0px 10px #9BA2B433",
|
|
53
|
+
borderRadius: "50%",
|
|
54
|
+
transform: "translate(-50%, -50%)",
|
|
55
|
+
...p
|
|
56
|
+
},
|
|
57
|
+
children: /* @__PURE__ */ o.jsx(t, { fontSize: a, color: "cl_purple", children: "?" })
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
20
63
|
};
|
|
21
64
|
export {
|
|
22
|
-
|
|
65
|
+
B as BaseFeedbackContainer
|
|
23
66
|
};
|
|
24
67
|
//# sourceMappingURL=sd-component-library205.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library205.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library205.js","sources":["../src/components/feedback/base-feedback-container/base-feedback-container.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { FlexCenter } from \"../../containers\";\nimport { BoldText } from \"../../texts\";\nimport { BaseFeedbackBlockProps as Props } from \"./interfaces\";\n\nconst iconSize = \"80px\";\n\nexport const BaseFeedbackContainer: React.FC<Props> = (props) => {\n const {\n questionText,\n children,\n containerSx,\n iconContainerSx,\n questionTextFontSize = 24,\n iconFontSize = 40,\n questionMarginBottom = \"30px\",\n showIcon = false,\n ...hoverCallbacks\n } = props;\n\n return (\n <Box\n sx={{\n width: \"270px\",\n position: \"relative\",\n borderRadius: \"5px\",\n boxShadow: \"0px 0px 10px #9BA2B433\",\n px: \"40px\",\n pb: \"40px\",\n pt: showIcon ? \"70px\" : \"40px\",\n bg: \"cl_white\",\n ...containerSx,\n }}\n {...hoverCallbacks}\n >\n <BoldText\n fontSize={questionTextFontSize}\n textAlign=\"center\"\n mb={questionMarginBottom}\n >\n {questionText}\n </BoldText>\n\n {children}\n\n {showIcon && (\n <FlexCenter\n size={iconSize}\n bg=\"white\"\n sx={{\n position: \"absolute\",\n left: \"50%\",\n top: 0,\n boxShadow: \"0px 0px 10px #9BA2B433\",\n borderRadius: \"50%\",\n transform: \"translate(-50%, -50%)\",\n ...iconContainerSx,\n }}\n >\n <BoldText fontSize={iconFontSize} color=\"cl_purple\">\n ?\n </BoldText>\n </FlexCenter>\n )}\n </Box>\n );\n};\n"],"names":["iconSize","BaseFeedbackContainer","props","questionText","children","containerSx","iconContainerSx","questionTextFontSize","iconFontSize","questionMarginBottom","showIcon","hoverCallbacks","jsxs","Box","jsx","BoldText","FlexCenter"],"mappings":";;;;AAQA,MAAMA,IAAW,QAEJC,IAAyC,CAACC,MAAU;AACzD,QAAA;AAAA,IACJ,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,sBAAAC,IAAuB;AAAA,IACvB,cAAAC,IAAe;AAAA,IACf,sBAAAC,IAAuB;AAAA,IACvB,UAAAC,IAAW;AAAA,IACX,GAAGC;AAAA,EACD,IAAAT;AAGF,SAAAU,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,OAAO;AAAA,QACP,UAAU;AAAA,QACV,cAAc;AAAA,QACd,WAAW;AAAA,QACX,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAIH,IAAW,SAAS;AAAA,QACxB,IAAI;AAAA,QACJ,GAAGL;AAAA,MACL;AAAA,MACC,GAAGM;AAAA,MAEJ,UAAA;AAAA,QAAAG,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAUR;AAAA,YACV,WAAU;AAAA,YACV,IAAIE;AAAA,YAEH,UAAAN;AAAA,UAAA;AAAA,QACH;AAAA,QAECC;AAAA,QAEAM,KACCI,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,MAAMhB;AAAA,YACN,IAAG;AAAA,YACH,IAAI;AAAA,cACF,UAAU;AAAA,cACV,MAAM;AAAA,cACN,KAAK;AAAA,cACL,WAAW;AAAA,cACX,cAAc;AAAA,cACd,WAAW;AAAA,cACX,GAAGM;AAAA,YACL;AAAA,YAEA,gCAACS,GAAS,EAAA,UAAUP,GAAc,OAAM,aAAY,UAEpD,KAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { j as r } from "./sd-component-library190.js";
|
|
2
|
+
import { Button as c } from "./sd-component-library25.js";
|
|
3
|
+
const _ = (o) => {
|
|
4
|
+
const { active: e, disabled: l } = o;
|
|
5
|
+
return /* @__PURE__ */ r.jsx(
|
|
6
|
+
c,
|
|
7
|
+
{
|
|
8
|
+
width: ["100%"],
|
|
9
|
+
variant: "_booleanAction",
|
|
10
|
+
bg: e ? "cl_purple" : void 0,
|
|
11
|
+
color: e ? "cl_white" : l ? "cl_grey" : void 0,
|
|
12
|
+
hoverBg: l ? e ? "cl_purple" : "cl_white" : "cl_blue",
|
|
13
|
+
borderColor: l ? "cl_grey" : e ? "cl_purple" : void 0,
|
|
14
|
+
hoverBorderColor: e ? "cl_blue" : void 0,
|
|
15
|
+
hoverColor: l && !e ? "cl_grey" : "cl_white",
|
|
16
|
+
fill: e ? "cl_white" : l ? "cl_grey" : "cl_blue",
|
|
17
|
+
hoverFill: l && !e ? "cl_grey" : "cl_white",
|
|
18
|
+
borderWidth: "2px",
|
|
19
|
+
...o
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
};
|
|
3
23
|
export {
|
|
4
|
-
|
|
24
|
+
_ as BaseFeedbackButton
|
|
5
25
|
};
|
|
6
26
|
//# sourceMappingURL=sd-component-library206.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library206.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library206.js","sources":["../src/components/feedback/base-feedback-button/base-feedback-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Button } from \"../../buttons\";\nimport { BaseFeedbackButtonProps as Props } from \"./interfaces\";\n\nexport const BaseFeedbackButton: React.FC<Props> = (props) => {\n const { active, disabled } = props;\n return (\n <Button\n width={[\"100%\"]}\n variant=\"_booleanAction\"\n bg={active ? \"cl_purple\" : undefined}\n color={active ? \"cl_white\" : disabled ? \"cl_grey\" : undefined}\n hoverBg={disabled ? (active ? \"cl_purple\" : \"cl_white\") : \"cl_blue\"}\n borderColor={disabled ? \"cl_grey\" : active ? \"cl_purple\" : undefined}\n hoverBorderColor={active ? \"cl_blue\" : undefined}\n hoverColor={disabled && !active ? \"cl_grey\" : \"cl_white\"}\n fill={active ? \"cl_white\" : disabled ? \"cl_grey\" : \"cl_blue\"}\n hoverFill={disabled && !active ? \"cl_grey\" : \"cl_white\"}\n borderWidth=\"2px\"\n {...props}\n />\n );\n};\n"],"names":["BaseFeedbackButton","props","active","disabled","jsx","Button"],"mappings":";;AAKa,MAAAA,IAAsC,CAACC,MAAU;AACtD,QAAA,EAAE,QAAAC,GAAQ,UAAAC,EAAa,IAAAF;AAE3B,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAO,CAAC,MAAM;AAAA,MACd,SAAQ;AAAA,MACR,IAAIH,IAAS,cAAc;AAAA,MAC3B,OAAOA,IAAS,aAAaC,IAAW,YAAY;AAAA,MACpD,SAASA,IAAYD,IAAS,cAAc,aAAc;AAAA,MAC1D,aAAaC,IAAW,YAAYD,IAAS,cAAc;AAAA,MAC3D,kBAAkBA,IAAS,YAAY;AAAA,MACvC,YAAYC,KAAY,CAACD,IAAS,YAAY;AAAA,MAC9C,MAAMA,IAAS,aAAaC,IAAW,YAAY;AAAA,MACnD,WAAWA,KAAY,CAACD,IAAS,YAAY;AAAA,MAC7C,aAAY;AAAA,MACX,GAAGD;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
const
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const t = (a) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16.04 33.79", ...a }, /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement("path", { className: "first-half", d: "M8,0V6.37H8A3.19,3.19,0,0,1,8,0ZM1,8.24a4,4,0,0,0-1,2.7V19.5a1.64,1.64,0,0,0,.45,1.28v0a1.49,1.49,0,0,0,2.12,0A1.64,1.64,0,0,0,3,19.5V12.11h.7L3.67,31.64c0,.07,0,.14,0,.21a1.92,1.92,0,0,0,1.91,1.93h.12a2,2,0,0,0,1.88-2.12V21.75H8V7H3.72A3.57,3.57,0,0,0,1,8.24Z" }), /* @__PURE__ */ e.createElement("path", { className: "second-half", d: "M8,6.38H8V0H8A3.19,3.19,0,0,1,8,6.38Zm7.07,1.86A3.59,3.59,0,0,0,12.32,7H8V21.75h.41v9.93a1.36,1.36,0,0,0,0,.35,1.95,1.95,0,1,0,3.88-.39V12.1h.63v7.4a1.68,1.68,0,0,0,.46,1.29,1.58,1.58,0,0,0,2.18,0A1.69,1.69,0,0,0,16,19.5V10.94A4.09,4.09,0,0,0,15.07,8.24Z" }))));
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
t as ReactComponent
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=sd-component-library207.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library207.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library207.js","sources":["../src/components/meters/people-meter/assets/person.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNi4wNCAzMy43OSI+CiAgICA8Zz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggY2xhc3M9ImZpcnN0LWhhbGYiCiAgICAgICAgICAgICAgICBkPSJNOCwwVjYuMzdIOEEzLjE5LDMuMTksMCwwLDEsOCwwWk0xLDguMjRhNCw0LDAsMCwwLTEsMi43VjE5LjVhMS42NCwxLjY0LDAsMCwwLC40NSwxLjI4djBhMS40OSwxLjQ5LDAsMCwwLDIuMTIsMEExLjY0LDEuNjQsMCwwLDAsMywxOS41VjEyLjExaC43TDMuNjcsMzEuNjRjMCwuMDcsMCwuMTQsMCwuMjFhMS45MiwxLjkyLDAsMCwwLDEuOTEsMS45M2guMTJhMiwyLDAsMCwwLDEuODgtMi4xMlYyMS43NUg4VjdIMy43MkEzLjU3LDMuNTcsMCwwLDAsMSw4LjI0WiIgLz4KICAgICAgICAgICAgPHBhdGggY2xhc3M9InNlY29uZC1oYWxmIgogICAgICAgICAgICAgICAgZD0iTTgsNi4zOEg4VjBIOEEzLjE5LDMuMTksMCwwLDEsOCw2LjM4Wm03LjA3LDEuODZBMy41OSwzLjU5LDAsMCwwLDEyLjMyLDdIOFYyMS43NWguNDF2OS45M2ExLjM2LDEuMzYsMCwwLDAsMCwuMzUsMS45NSwxLjk1LDAsMSwwLDMuODgtLjM5VjEyLjFoLjYzdjcuNGExLjY4LDEuNjgsMCwwLDAsLjQ2LDEuMjksMS41OCwxLjU4LDAsMCwwLDIuMTgsMEExLjY5LDEuNjksMCwwLDAsMTYsMTkuNVYxMC45NEE0LjA5LDQuMDksMCwwLDAsMTUuMDcsOC4yNFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K\""],"names":["SvgPerson","props","React"],"mappings":";AACK,MAACA,IAAY,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,mBAAmB,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,KAAK,MAAsB,gBAAAA,EAAM,cAAc,KAAK,MAAsB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,WAAW,cAAc,GAAG,uQAAwQ,CAAA,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,WAAW,eAAe,GAAG,iQAAkQ,CAAA,CAAC,CAAC,CAAC;"}
|
|
@@ -1,67 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box as d } from "rebass";
|
|
3
|
-
import { BoldText as t } from "./sd-component-library157.js";
|
|
4
|
-
import { FlexCenter as h } from "./sd-component-library35.js";
|
|
5
|
-
const m = "80px", B = (i) => {
|
|
6
|
-
const {
|
|
7
|
-
questionText: n,
|
|
8
|
-
children: r,
|
|
9
|
-
containerSx: x,
|
|
10
|
-
iconContainerSx: p,
|
|
11
|
-
questionTextFontSize: s = 24,
|
|
12
|
-
iconFontSize: a = 40,
|
|
13
|
-
questionMarginBottom: c = "30px",
|
|
14
|
-
showIcon: e = !1,
|
|
15
|
-
...l
|
|
16
|
-
} = i;
|
|
17
|
-
return /* @__PURE__ */ o.jsxs(
|
|
18
|
-
d,
|
|
19
|
-
{
|
|
20
|
-
sx: {
|
|
21
|
-
width: "270px",
|
|
22
|
-
position: "relative",
|
|
23
|
-
borderRadius: "5px",
|
|
24
|
-
boxShadow: "0px 0px 10px #9BA2B433",
|
|
25
|
-
px: "40px",
|
|
26
|
-
pb: "40px",
|
|
27
|
-
pt: e ? "70px" : "40px",
|
|
28
|
-
bg: "cl_white",
|
|
29
|
-
...x
|
|
30
|
-
},
|
|
31
|
-
...l,
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ o.jsx(
|
|
34
|
-
t,
|
|
35
|
-
{
|
|
36
|
-
fontSize: s,
|
|
37
|
-
textAlign: "center",
|
|
38
|
-
mb: c,
|
|
39
|
-
children: n
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
r,
|
|
43
|
-
e && /* @__PURE__ */ o.jsx(
|
|
44
|
-
h,
|
|
45
|
-
{
|
|
46
|
-
size: m,
|
|
47
|
-
bg: "white",
|
|
48
|
-
sx: {
|
|
49
|
-
position: "absolute",
|
|
50
|
-
left: "50%",
|
|
51
|
-
top: 0,
|
|
52
|
-
boxShadow: "0px 0px 10px #9BA2B433",
|
|
53
|
-
borderRadius: "50%",
|
|
54
|
-
transform: "translate(-50%, -50%)",
|
|
55
|
-
...p
|
|
56
|
-
},
|
|
57
|
-
children: /* @__PURE__ */ o.jsx(t, { fontSize: a, color: "cl_purple", children: "?" })
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
};
|
|
1
|
+
const t = 1, o = 13;
|
|
64
2
|
export {
|
|
65
|
-
|
|
3
|
+
t as defaultPointerWidth,
|
|
4
|
+
o as defaultTextBottomMargin
|
|
66
5
|
};
|
|
67
6
|
//# sourceMappingURL=sd-component-library208.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library208.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library208.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/constants.ts"],"sourcesContent":["export const defaultPointerWidth = 1;\nexport const defaultTextBottomMargin = 13;\n"],"names":["defaultPointerWidth","defaultTextBottomMargin"],"mappings":"AAAO,MAAMA,IAAsB,GACtBC,IAA0B;"}
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
import { Button as c } from "./sd-component-library25.js";
|
|
3
|
-
const _ = (o) => {
|
|
4
|
-
const { active: e, disabled: l } = o;
|
|
5
|
-
return /* @__PURE__ */ r.jsx(
|
|
6
|
-
c,
|
|
7
|
-
{
|
|
8
|
-
width: ["100%"],
|
|
9
|
-
variant: "_booleanAction",
|
|
10
|
-
bg: e ? "cl_purple" : void 0,
|
|
11
|
-
color: e ? "cl_white" : l ? "cl_grey" : void 0,
|
|
12
|
-
hoverBg: l ? e ? "cl_purple" : "cl_white" : "cl_blue",
|
|
13
|
-
borderColor: l ? "cl_grey" : e ? "cl_purple" : void 0,
|
|
14
|
-
hoverBorderColor: e ? "cl_blue" : void 0,
|
|
15
|
-
hoverColor: l && !e ? "cl_grey" : "cl_white",
|
|
16
|
-
fill: e ? "cl_white" : l ? "cl_grey" : "cl_blue",
|
|
17
|
-
hoverFill: l && !e ? "cl_grey" : "cl_white",
|
|
18
|
-
borderWidth: "2px",
|
|
19
|
-
...o
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
1
|
+
const e = 250, t = 220, s = 270, n = 10, a = 6, l = 4.5, o = 1.5, d = 18, c = 4, i = 6.5, r = 8, u = 40, f = 6, h = 1.5, m = 32, M = 20, g = 100, R = 14, W = 100, D = 100, k = 87, I = 3, N = 1.5, P = 4, S = 6, b = 3, B = 10, C = 18, F = 7, T = 100;
|
|
23
2
|
export {
|
|
24
|
-
|
|
3
|
+
s as defaultArc,
|
|
4
|
+
f as defaultDashHeight,
|
|
5
|
+
h as defaultDashWidth,
|
|
6
|
+
n as defaultDistanceBetweenRanges,
|
|
7
|
+
M as defaultDistanceFromLabelToRanges,
|
|
8
|
+
d as defaultDistanceFromRangesToNeedle,
|
|
9
|
+
m as defaultDistanceFromRangesToScale,
|
|
10
|
+
a as defaultGaugeWidth,
|
|
11
|
+
t as defaultHeight,
|
|
12
|
+
i as defaultInnerCircleRadius,
|
|
13
|
+
c as defaultInnerCircleStrokeWidth,
|
|
14
|
+
o as defaultInnerPointRadius,
|
|
15
|
+
W as defaultMaskBorderRadius,
|
|
16
|
+
r as defaultNeedleWidth,
|
|
17
|
+
u as defaultNumberOfDashes,
|
|
18
|
+
l as defaultPointStrokeWidth,
|
|
19
|
+
e as defaultWidth,
|
|
20
|
+
R as labelPaddingX,
|
|
21
|
+
g as labelWidth,
|
|
22
|
+
B as smallMeterDistanceBetweenRanges,
|
|
23
|
+
C as smallMeterDistanceFromRangesToNeedle,
|
|
24
|
+
P as smallMeterGaugeWidth,
|
|
25
|
+
k as smallMeterHeight,
|
|
26
|
+
S as smallMeterInnerCircleRadius,
|
|
27
|
+
b as smallMeterInnerCircleStrokeWidth,
|
|
28
|
+
T as smallMeterMaskBorderRadius,
|
|
29
|
+
F as smallMeterNeedleWidth,
|
|
30
|
+
N as smallMeterPointRadius,
|
|
31
|
+
I as smallMeterPointStrokeWidth,
|
|
32
|
+
D as smallMeterWidth
|
|
25
33
|
};
|
|
26
34
|
//# sourceMappingURL=sd-component-library209.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library209.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library209.js","sources":["../src/components/meters/outline-meter/contants.ts"],"sourcesContent":["/**\n * Default values for outline meters\n */\nexport const defaultWidth = 250;\nexport const defaultHeight = 220;\nexport const defaultArc = 270;\nexport const defaultDistanceBetweenRanges = 10;\nexport const defaultGaugeWidth = 6;\nexport const defaultPointStrokeWidth = 4.5;\nexport const defaultInnerPointRadius = 1.5;\nexport const defaultDistanceFromRangesToNeedle = 18;\nexport const defaultInnerCircleStrokeWidth = 4;\nexport const defaultInnerCircleRadius = 6.5;\nexport const defaultNeedleWidth = 8;\nexport const defaultNumberOfDashes = 40;\nexport const defaultDashHeight = 6;\nexport const defaultDashWidth = 1.5;\nexport const defaultDistanceFromRangesToScale = 32;\nexport const defaultDistanceFromLabelToRanges = 20;\nexport const labelWidth = 100;\nexport const labelPaddingX = 14;\nexport const defaultMaskBorderRadius = 100;\n\n/**\n * Small Outline meter default values\n */\nexport const smallMeterWidth = 100;\nexport const smallMeterHeight = 87;\nexport const smallMeterPointStrokeWidth = 3;\nexport const smallMeterPointRadius = 1.5;\nexport const smallMeterGaugeWidth = 4;\nexport const smallMeterInnerCircleRadius = 6;\nexport const smallMeterInnerCircleStrokeWidth = 3;\nexport const smallMeterDistanceBetweenRanges = 10;\nexport const smallMeterDistanceFromRangesToNeedle = 18;\nexport const smallMeterNeedleWidth = 7;\nexport const smallMeterMaskBorderRadius = 100;\n"],"names":["defaultWidth","defaultHeight","defaultArc","defaultDistanceBetweenRanges","defaultGaugeWidth","defaultPointStrokeWidth","defaultInnerPointRadius","defaultDistanceFromRangesToNeedle","defaultInnerCircleStrokeWidth","defaultInnerCircleRadius","defaultNeedleWidth","defaultNumberOfDashes","defaultDashHeight","defaultDashWidth","defaultDistanceFromRangesToScale","defaultDistanceFromLabelToRanges","labelWidth","labelPaddingX","defaultMaskBorderRadius","smallMeterWidth","smallMeterHeight","smallMeterPointStrokeWidth","smallMeterPointRadius","smallMeterGaugeWidth","smallMeterInnerCircleRadius","smallMeterInnerCircleStrokeWidth","smallMeterDistanceBetweenRanges","smallMeterDistanceFromRangesToNeedle","smallMeterNeedleWidth","smallMeterMaskBorderRadius"],"mappings":"AAGO,MAAMA,IAAe,KACfC,IAAgB,KAChBC,IAAa,KACbC,IAA+B,IAC/BC,IAAoB,GACpBC,IAA0B,KAC1BC,IAA0B,KAC1BC,IAAoC,IACpCC,IAAgC,GAChCC,IAA2B,KAC3BC,IAAqB,GACrBC,IAAwB,IACxBC,IAAoB,GACpBC,IAAmB,KACnBC,IAAmC,IACnCC,IAAmC,IACnCC,IAAa,KACbC,IAAgB,IAChBC,IAA0B,KAK1BC,IAAkB,KAClBC,IAAmB,IACnBC,IAA6B,GAC7BC,IAAwB,KACxBC,IAAuB,GACvBC,IAA8B,GAC9BC,IAAmC,GACnCC,IAAkC,IAClCC,IAAuC,IACvCC,IAAwB,GACxBC,IAA6B;"}
|
|
@@ -1,43 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
sx: {
|
|
12
|
-
position: "absolute",
|
|
13
|
-
top: "100%",
|
|
14
|
-
bg: "white",
|
|
15
|
-
width: "100%",
|
|
16
|
-
borderRadius: "0px 0px 3px 3px",
|
|
17
|
-
borderWidth: "1px",
|
|
18
|
-
borderStyle: "solid",
|
|
19
|
-
borderColor: "#C8CCE5",
|
|
20
|
-
boxShadow: "2px 3px 10px rgba(211,223,255,0.25)",
|
|
21
|
-
zIndex: 100
|
|
22
|
-
},
|
|
23
|
-
className: x ? void 0 : "no-translate",
|
|
24
|
-
"data-test": "results-box",
|
|
25
|
-
children: t.map(({ synonyms: r }, e) => /* @__PURE__ */ o.jsxs(p.Fragment, { children: [
|
|
26
|
-
/* @__PURE__ */ o.jsx(
|
|
27
|
-
n,
|
|
28
|
-
{
|
|
29
|
-
value: i,
|
|
30
|
-
synonyms: r,
|
|
31
|
-
onSelect: l
|
|
32
|
-
},
|
|
33
|
-
r.join()
|
|
34
|
-
),
|
|
35
|
-
e !== t.length - 1 && /* @__PURE__ */ o.jsx(d, { color: "cl_lightGrey" })
|
|
36
|
-
] }, e))
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
1
|
+
import { j as t } from "./sd-component-library190.js";
|
|
2
|
+
import { SmileyGaugeColor as e } from "./sd-component-library211.js";
|
|
3
|
+
import { ReactComponent as o } from "./sd-component-library275.js";
|
|
4
|
+
import { ReactComponent as m } from "./sd-component-library276.js";
|
|
5
|
+
import { ReactComponent as i } from "./sd-component-library277.js";
|
|
6
|
+
const S = 10, c = 80, p = 100, y = 87, R = 30, d = 3, f = 2, g = 4, u = /* @__PURE__ */ new Map([
|
|
7
|
+
[e.GREEN, /* @__PURE__ */ t.jsx(o, {})],
|
|
8
|
+
[e.ORANGE, /* @__PURE__ */ t.jsx(m, {})],
|
|
9
|
+
[e.RED, /* @__PURE__ */ t.jsx(i, {})]
|
|
10
|
+
]);
|
|
40
11
|
export {
|
|
41
|
-
|
|
12
|
+
u as COLOR_TO_ICON_MAP,
|
|
13
|
+
S as defaultDistanceBetweenRanges,
|
|
14
|
+
c as defaultSmileyWidth,
|
|
15
|
+
g as smallSmileyGaugeWidth,
|
|
16
|
+
f as smallSmileyInnerPointRadius,
|
|
17
|
+
d as smallSmileyInnerPointStrokeWidth,
|
|
18
|
+
y as smallSmileyMeterHeight,
|
|
19
|
+
p as smallSmileyMeterWidth,
|
|
20
|
+
R as smallSmileyWidth
|
|
42
21
|
};
|
|
43
22
|
//# sourceMappingURL=sd-component-library210.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library210.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library210.js","sources":["../src/components/meters/smiley-meter-v2/constants.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { HappySmileyIcon, NeutralSmileyIcon, SadSmileyIcon } from \"./assets\";\n\n/**\n * Large Smiley meter v2 default values.\n */\nimport { SmileyGaugeColor } from \"./utils\";\n\nexport const defaultDistanceBetweenRanges = 10;\nexport const defaultSmileyWidth = 80;\n\n/**\n * Small Smiley meter v2 default values.\n */\nexport const smallSmileyMeterWidth = 100;\nexport const smallSmileyMeterHeight = 87;\nexport const smallSmileyWidth = 30;\nexport const smallSmileyInnerPointStrokeWidth = 3;\nexport const smallSmileyInnerPointRadius = 2;\nexport const smallSmileyGaugeWidth = 4;\n\nexport const COLOR_TO_ICON_MAP = new Map<SmileyGaugeColor, React.ReactNode>([\n [SmileyGaugeColor.GREEN, <HappySmileyIcon />],\n [SmileyGaugeColor.ORANGE, <NeutralSmileyIcon />],\n [SmileyGaugeColor.RED, <SadSmileyIcon />],\n]);\n"],"names":["defaultDistanceBetweenRanges","defaultSmileyWidth","smallSmileyMeterWidth","smallSmileyMeterHeight","smallSmileyWidth","smallSmileyInnerPointStrokeWidth","smallSmileyInnerPointRadius","smallSmileyGaugeWidth","COLOR_TO_ICON_MAP","SmileyGaugeColor","jsx","HappySmileyIcon","NeutralSmileyIcon","SadSmileyIcon"],"mappings":";;;;;AASO,MAAMA,IAA+B,IAC/BC,IAAqB,IAKrBC,IAAwB,KACxBC,IAAyB,IACzBC,IAAmB,IACnBC,IAAmC,GACnCC,IAA8B,GAC9BC,IAAwB,GAExBC,wBAAwB,IAAuC;AAAA,EAC1E,CAACC,EAAiB,OAAOC,gBAAAA,EAAA,IAACC,IAAgB,CAAA,CAAE;AAAA,EAC5C,CAACF,EAAiB,QAAQC,gBAAAA,EAAA,IAACE,IAAkB,CAAA,CAAE;AAAA,EAC/C,CAACH,EAAiB,KAAKC,gBAAAA,EAAA,IAACG,IAAc,CAAA,CAAE;AAC1C,CAAC;"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { isCorrectOutlineMeterConfig as l } from "./sd-component-library86.js";
|
|
2
|
+
var a = /* @__PURE__ */ ((r) => (r.GREEN = "#00B466", r.ORANGE = "#FF9900", r.RED = "#FF0000", r))(a || {});
|
|
3
|
+
const u = (r) => !r.some(
|
|
4
|
+
({ color: t }) => !Object.values(a).includes(t)
|
|
5
|
+
), f = (r, t) => l(r, t) && u(t), A = (r, t, n, i, o, d) => {
|
|
6
|
+
const c = r - (t - 1) * n, e = (360 - r) / 2 + n * i + c * o, s = e + c * (d - o), g = (e + s) / 2;
|
|
7
|
+
return {
|
|
8
|
+
rangeArcStart: e,
|
|
9
|
+
rangeArcEnd: s,
|
|
10
|
+
rangeArcMiddle: g
|
|
11
|
+
};
|
|
12
|
+
}, R = (r) => {
|
|
13
|
+
const { start: t, end: n } = r;
|
|
14
|
+
return t === 0 ? n < 0.6 : n === 1 ? t > 0.4 : !1;
|
|
15
|
+
};
|
|
14
16
|
export {
|
|
15
|
-
|
|
17
|
+
a as SmileyGaugeColor,
|
|
18
|
+
u as areColorsValid,
|
|
19
|
+
R as getIsHorizontal,
|
|
20
|
+
A as getRangeProperties,
|
|
21
|
+
f as isCorrectSmileyMeterConfig
|
|
16
22
|
};
|
|
17
23
|
//# sourceMappingURL=sd-component-library211.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library211.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library211.js","sources":["../src/components/meters/smiley-meter-v2/utils.ts"],"sourcesContent":["import { OutlineMeterRangeConfig } from \"../outline-meter\";\nimport { isCorrectOutlineMeterConfig } from \"../outline-meter/utils\";\nimport { SmileyMeterRange } from \"./interfaces\";\n\nexport enum SmileyGaugeColor {\n GREEN = \"#00B466\",\n ORANGE = \"#FF9900\",\n RED = \"#FF0000\",\n}\n\nexport const areColorsValid = (ranges: OutlineMeterRangeConfig[]) =>\n !ranges.some(\n ({ color }) => !Object.values(SmileyGaugeColor).includes(color as any)\n );\n\nexport const isCorrectSmileyMeterConfig = (\n value: number,\n ranges: OutlineMeterRangeConfig[]\n): ranges is SmileyMeterRange[] => {\n return isCorrectOutlineMeterConfig(value, ranges) && areColorsValid(ranges);\n};\n\nexport const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number,\n start: number,\n end: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n const arcStart = (360 - arc) / 2; // deg\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n const rangeArcMiddle = (rangeArcStart + rangeArcEnd) / 2;\n return {\n rangeArcStart,\n rangeArcEnd,\n rangeArcMiddle,\n };\n};\n\nexport const getIsHorizontal = (range: SmileyMeterRange) => {\n const { start, end } = range;\n return start === 0 ? end < 0.6 : end === 1 ? start > 0.4 : false;\n};\n"],"names":["SmileyGaugeColor","areColorsValid","ranges","color","isCorrectSmileyMeterConfig","value","isCorrectOutlineMeterConfig","getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","start","end","arcForRanges","rangeArcStart","rangeArcEnd","rangeArcMiddle","getIsHorizontal","range"],"mappings":";AAIY,IAAAA,sBAAAA,OACVA,EAAA,QAAQ,WACRA,EAAA,SAAS,WACTA,EAAA,MAAM,WAHIA,IAAAA,KAAA,CAAA,CAAA;AAML,MAAMC,IAAiB,CAACC,MAC7B,CAACA,EAAO;AAAA,EACN,CAAC,EAAE,OAAAC,EAAY,MAAA,CAAC,OAAO,OAAOH,CAAgB,EAAE,SAASG,CAAY;AACvE,GAEWC,IAA6B,CACxCC,GACAH,MAEOI,EAA4BD,GAAOH,CAAM,KAAKD,EAAeC,CAAM,GAG/DK,IAAqB,CAChCC,GACAC,GACAC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeN,KAAOC,IAAc,KAAKC,GAEzCK,KADY,MAAMP,KAAO,IAElBE,IAAwBC,IAAMG,IAAeF,GACpDI,IAAcD,IAAgBD,KAAgBD,IAAMD,IAEpDK,KAAkBF,IAAgBC,KAAe;AAChD,SAAA;AAAA,IACL,eAAAD;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,EAAA;AAEJ,GAEaC,IAAkB,CAACC,MAA4B;AACpD,QAAA,EAAE,OAAAP,GAAO,KAAAC,EAAQ,IAAAM;AACvB,SAAOP,MAAU,IAAIC,IAAM,MAAMA,MAAQ,IAAID,IAAQ,MAAM;AAC7D;"}
|
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { j as a } from "./sd-component-library190.js";
|
|
2
|
+
import R, { createElement as g } from "react";
|
|
3
|
+
import { isValueInRange as f } from "./sd-component-library86.js";
|
|
4
|
+
import { SmileyMeterRange as d } from "./sd-component-library310.js";
|
|
5
|
+
const j = R.forwardRef(
|
|
6
|
+
(r, m) => {
|
|
7
|
+
const { value: s, ranges: n, distanceFromRanges: c } = r, o = n.findIndex(
|
|
8
|
+
({ start: e, end: t, bounds: l }) => f(s, e, t, l)
|
|
9
|
+
), i = n.map((e, t) => ({
|
|
10
|
+
...e,
|
|
11
|
+
color: t < o ? n[o].color : e.color
|
|
12
|
+
}));
|
|
13
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: i.map((e, t) => /* @__PURE__ */ g(
|
|
14
|
+
d,
|
|
15
|
+
{
|
|
16
|
+
...e,
|
|
17
|
+
...r,
|
|
18
|
+
idx: t,
|
|
19
|
+
totalRanges: n.length,
|
|
20
|
+
pointerLength: c,
|
|
21
|
+
key: `${e.start}-${e.end}-${t}`,
|
|
22
|
+
isMatchedRange: o === t,
|
|
23
|
+
ref: m
|
|
24
|
+
}
|
|
25
|
+
)) });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
3
28
|
export {
|
|
4
|
-
|
|
29
|
+
j as SmileyMeterRanges
|
|
5
30
|
};
|
|
6
31
|
//# sourceMappingURL=sd-component-library212.js.map
|