@selfdecode/sd-component-library 4.0.113 → 4.0.115
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/forms-v2/form-v2-input/form-v2-input.d.ts +1 -0
- package/lib/components/links/link/interfaces.d.ts +2 -0
- package/lib/sd-component-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library102.js +2 -2
- package/lib/sd-component-library103.js +2 -2
- package/lib/sd-component-library104.js +2 -2
- package/lib/sd-component-library106.js +4 -4
- package/lib/sd-component-library108.js +4 -4
- package/lib/sd-component-library114.js +1 -1
- package/lib/sd-component-library119.js +1 -1
- package/lib/sd-component-library120.js +2 -2
- package/lib/sd-component-library122.js +1 -1
- package/lib/sd-component-library123.js +1 -1
- package/lib/sd-component-library128.js +2 -2
- package/lib/sd-component-library129.js +2 -2
- package/lib/sd-component-library131.js +1 -1
- package/lib/sd-component-library135.js +3 -3
- package/lib/sd-component-library136.js +1 -1
- package/lib/sd-component-library138.js +2 -2
- package/lib/sd-component-library169.js +1 -1
- package/lib/sd-component-library174.js +4 -4
- package/lib/sd-component-library175.js +1 -1
- package/lib/sd-component-library198.js +3 -3
- package/lib/sd-component-library202.js +3 -2
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +2 -30
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +21 -590
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +599 -3
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library207.js +24 -17
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +15 -60
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +5 -23
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +5 -21
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +18 -3
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +21 -3
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +3 -40
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +3 -129
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +40 -13
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +128 -13
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +13 -3
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +14 -3
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +2 -2
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +3 -52
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +3 -65
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +52 -3
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library224.js +61 -13
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +3 -26
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +17 -3
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +64 -31
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +23 -19
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +25 -19
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +3 -28
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +31 -33
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +19 -3
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +20 -129
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +26 -41
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +28 -42
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +129 -8
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +41 -62
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +40 -36
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +7 -12
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +64 -21
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +41 -107
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +12 -46
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +3 -24
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +47 -52
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +73 -46
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +21 -75
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +103 -35
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +47 -27
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +23 -20
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +2 -2
- package/lib/sd-component-library250.js +53 -20
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library252.js +16 -20
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +20 -19
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +41 -5
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +27 -5
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +323 -27
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +5 -3
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +25 -20
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +1 -1
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library26.js +1 -1
- package/lib/sd-component-library260.js +17 -18
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +3 -22
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +23 -323
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +22 -5
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +27 -27
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +43 -13
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +118 -112
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +57 -105
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +75 -9
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +111 -39
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +10 -30
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +45 -46
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +30 -131
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +15 -68
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +115 -66
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library276.js +51 -49
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library277.js +87 -48
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +54 -52
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +48 -91
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library291.js +4 -4
- package/lib/sd-component-library292.js +2 -3
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +8 -3
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +328 -3
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +51 -2
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +3 -8
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +3 -328
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +3 -51
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library314.js +52 -20
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library315.js +20 -52
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +20 -88
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +2 -2
- package/lib/sd-component-library318.js +92 -4
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library319.js +33 -23
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library320.js +34 -4
- package/lib/sd-component-library320.js.map +1 -1
- package/lib/sd-component-library321.js +4 -34
- package/lib/sd-component-library321.js.map +1 -1
- package/lib/sd-component-library322.js +4 -34
- package/lib/sd-component-library322.js.map +1 -1
- package/lib/sd-component-library325.js +32 -90
- package/lib/sd-component-library325.js.map +1 -1
- package/lib/sd-component-library326.js +90 -32
- package/lib/sd-component-library326.js.map +1 -1
- package/lib/sd-component-library50.js +1 -1
- package/lib/sd-component-library51.js +1 -1
- package/lib/sd-component-library53.js +3 -3
- package/lib/sd-component-library54.js +2 -2
- package/lib/sd-component-library55.js +2 -2
- package/lib/sd-component-library57.js +29 -26
- package/lib/sd-component-library57.js.map +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library62.js +1 -1
- package/lib/sd-component-library66.js +1 -1
- package/lib/sd-component-library67.js +1 -1
- package/lib/sd-component-library7.js +1 -1
- package/lib/sd-component-library72.js +2 -2
- package/lib/sd-component-library74.js +3 -3
- package/lib/sd-component-library76.js +2 -2
- package/lib/sd-component-library77.js +3 -3
- package/lib/sd-component-library81.js +1 -1
- package/lib/sd-component-library82.js +1 -1
- package/lib/sd-component-library83.js +28 -26
- package/lib/sd-component-library83.js.map +1 -1
- package/lib/sd-component-library87.js +1 -1
- package/lib/sd-component-library88.js +6 -6
- package/lib/sd-component-library89.js +2 -2
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library91.js +5 -5
- package/lib/sd-component-library92.js +1 -1
- package/lib/sd-component-library94.js +6 -6
- package/lib/sd-component-library95.js +1 -1
- package/lib/sd-component-library96.js +7 -7
- package/lib/sd-component-library97.js +1 -1
- package/package.json +1 -1
|
@@ -1,61 +1,29 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const { synonyms: t, value: r, onSelect: c } = o, n = h(() => t[0], [t]), x = h(() => t.slice(1), [t]), a = h(() => {
|
|
8
|
-
const s = n.toLowerCase().indexOf(r.toLowerCase());
|
|
9
|
-
return /* @__PURE__ */ e.jsxs(p, { children: [
|
|
10
|
-
/* @__PURE__ */ e.jsx(l, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(0, s) }) }),
|
|
11
|
-
/* @__PURE__ */ e.jsx(l, { width: [""], color: "cl_purple", cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(s, s + r.length) }) }),
|
|
12
|
-
/* @__PURE__ */ e.jsx(l, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(s + r.length) }) })
|
|
13
|
-
] });
|
|
14
|
-
}, [n, r]);
|
|
15
|
-
return /* @__PURE__ */ e.jsxs(
|
|
16
|
-
j,
|
|
1
|
+
import { j as r } from "./sd-component-library198.js";
|
|
2
|
+
import { ResponsiveTextV2 as s } from "./sd-component-library152.js";
|
|
3
|
+
const x = (t) => {
|
|
4
|
+
const { onClick: e, title: o, height: i } = t;
|
|
5
|
+
return /* @__PURE__ */ r.jsx(
|
|
6
|
+
s,
|
|
17
7
|
{
|
|
8
|
+
fontSizeWeight: [[16, "regular"]],
|
|
18
9
|
sx: {
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
position: "relative",
|
|
11
|
+
height: `${i}px`,
|
|
12
|
+
px: "15px",
|
|
13
|
+
display: "flex",
|
|
14
|
+
justifyContent: "flex-start",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
opacity: 0.8,
|
|
17
|
+
":hover": {
|
|
18
|
+
opacity: 1
|
|
19
|
+
}
|
|
21
20
|
},
|
|
22
|
-
onClick:
|
|
23
|
-
|
|
24
|
-
children: [
|
|
25
|
-
a,
|
|
26
|
-
/* @__PURE__ */ e.jsx(p, { flexWrap: "wrap", children: x.map((s, d, u) => /* @__PURE__ */ e.jsx(
|
|
27
|
-
m,
|
|
28
|
-
{
|
|
29
|
-
value: r,
|
|
30
|
-
synonym: s,
|
|
31
|
-
appendSlash: d !== u.length - 1
|
|
32
|
-
},
|
|
33
|
-
s
|
|
34
|
-
)) })
|
|
35
|
-
]
|
|
21
|
+
onClick: e,
|
|
22
|
+
children: o
|
|
36
23
|
}
|
|
37
24
|
);
|
|
38
|
-
}
|
|
39
|
-
const m = (o) => {
|
|
40
|
-
const { value: t, synonym: r, appendSlash: c } = o, n = r.toLowerCase().indexOf(t.toLowerCase());
|
|
41
|
-
return /* @__PURE__ */ e.jsxs(p, { children: [
|
|
42
|
-
n !== -1 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
-
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(0, n) }) }),
|
|
44
|
-
/* @__PURE__ */ e.jsx(i, { width: [""], color: "cl_purple", cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n, n + t.length) }) }),
|
|
45
|
-
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n + t.length) }) })
|
|
46
|
-
] }) : /* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r }) }),
|
|
47
|
-
c && /* @__PURE__ */ e.jsx(
|
|
48
|
-
i,
|
|
49
|
-
{
|
|
50
|
-
color: "cl_darkGrey",
|
|
51
|
-
width: ["12px"],
|
|
52
|
-
textAlign: "center",
|
|
53
|
-
children: "/"
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] }, r);
|
|
57
25
|
};
|
|
58
26
|
export {
|
|
59
|
-
|
|
27
|
+
x as SearchAutocompleteRow
|
|
60
28
|
};
|
|
61
29
|
//# sourceMappingURL=sd-component-library315.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library315.js","sources":["../src/components/inputs/autocomplete-input/partials/autocomplete-
|
|
1
|
+
{"version":3,"file":"sd-component-library315.js","sources":["../src/components/inputs/search-autocomplete-input/partials/search-autocomplete-row/search-autocomplete-row.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts/responsive-text-v2\";\nimport { SearchAutocompleteRowProps as Props } from \"./interfaces\";\n\nexport const SearchAutocompleteRow = <\n T extends { id: string } = { id: string }\n>(\n props: Props<T>\n) => {\n const { onClick, title, height } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[[16, \"regular\"]]}\n sx={{\n position: \"relative\",\n height: `${height}px`,\n px: \"15px\",\n display: \"flex\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n opacity: 0.8,\n \":hover\": {\n opacity: 1,\n },\n }}\n onClick={onClick}\n >\n {title}\n </ResponsiveTextV2>\n );\n};\n"],"names":["SearchAutocompleteRow","props","onClick","title","height","jsx","ResponsiveTextV2"],"mappings":";;AAKa,MAAAA,IAAwB,CAGnCC,MACG;AACH,QAAM,EAAE,SAAAC,GAAS,OAAAC,GAAO,QAAAC,EAAA,IAAWH;AAGjC,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,CAAC,IAAI,SAAS,CAAC;AAAA,MAChC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,QAAQ,GAAGF,CAAM;AAAA,QACjB,IAAI;AAAA,QACJ,SAAS;AAAA,QACT,gBAAgB;AAAA,QAChB,YAAY;AAAA,QACZ,SAAS;AAAA,QACT,UAAU;AAAA,UACR,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,SAAAF;AAAA,MAEC,UAAAC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,96 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { labelPaddingX as c, labelWidth as W } from "./sd-component-library227.js";
|
|
5
|
-
import { getCoordinateForArc as $ } from "./sd-component-library93.js";
|
|
6
|
-
import { ResponsiveTextV2 as z } from "./sd-component-library152.js";
|
|
7
|
-
const D = (j) => {
|
|
1
|
+
import { j as x } from "./sd-component-library198.js";
|
|
2
|
+
import { getInnerX as u, degToRad as r, getInnerY as i } from "./sd-component-library93.js";
|
|
3
|
+
const j = (p) => {
|
|
8
4
|
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
let { x: b, y: g } = $(
|
|
24
|
-
r + m,
|
|
25
|
-
e,
|
|
26
|
-
r
|
|
27
|
-
);
|
|
28
|
-
const s = e === 180, n = e < 180, u = e > 180;
|
|
29
|
-
if (v) {
|
|
30
|
-
const { x: t, y: o } = $(
|
|
31
|
-
r,
|
|
32
|
-
e,
|
|
33
|
-
r
|
|
34
|
-
);
|
|
35
|
-
b = t + m * (n ? -1 : 1), g = o;
|
|
36
|
-
}
|
|
37
|
-
if (!d)
|
|
38
|
-
return null;
|
|
39
|
-
let x = y || s ? `${c}px` : void 0;
|
|
40
|
-
if (!x && i) {
|
|
41
|
-
const t = f - h, o = f;
|
|
42
|
-
x = [
|
|
43
|
-
n || i > t,
|
|
44
|
-
u || i > t,
|
|
45
|
-
u || i < o,
|
|
46
|
-
n || i < o
|
|
47
|
-
].map((l) => l ? `${c}px` : "0").join(" ");
|
|
48
|
-
}
|
|
49
|
-
return /* @__PURE__ */ a.jsx(
|
|
50
|
-
Y,
|
|
5
|
+
startX: $,
|
|
6
|
+
startY: e,
|
|
7
|
+
endX: a,
|
|
8
|
+
endY: d,
|
|
9
|
+
radius: n,
|
|
10
|
+
color: A,
|
|
11
|
+
width: t,
|
|
12
|
+
roundStart: l = !0,
|
|
13
|
+
roundEnd: I = !0,
|
|
14
|
+
startAlpha: o,
|
|
15
|
+
endAlpha: s
|
|
16
|
+
} = p, c = s - o, m = u($, r(o), t), X = i(e, r(o), t), Y = u(a, r(s), t), h = i(d, r(s), t);
|
|
17
|
+
return /* @__PURE__ */ x.jsx(
|
|
18
|
+
"path",
|
|
51
19
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
left: `${b}px`,
|
|
55
|
-
top: `${g}px`
|
|
56
|
-
},
|
|
57
|
-
children: /* @__PURE__ */ a.jsx(
|
|
58
|
-
Y,
|
|
59
|
-
{
|
|
60
|
-
sx: {
|
|
61
|
-
boxSizing: "content-box",
|
|
62
|
-
position: "relative",
|
|
63
|
-
top: `calc(-${h}px)`,
|
|
64
|
-
left: s ? "-50%" : n ? "-100%" : void 0,
|
|
65
|
-
py: "7px",
|
|
66
|
-
px: `${c}px`,
|
|
67
|
-
borderColor: p,
|
|
68
|
-
borderWidth: "2px",
|
|
69
|
-
borderStyle: "solid",
|
|
70
|
-
borderRadius: x,
|
|
71
|
-
bg: "cl_white",
|
|
72
|
-
"& > div": {
|
|
73
|
-
maxWidth: s ? void 0 : `${W}px`
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
ref: T,
|
|
77
|
-
children: /* @__PURE__ */ a.jsx(
|
|
78
|
-
z,
|
|
79
|
-
{
|
|
80
|
-
fontSizeWeight: [[12, "semi-bold"]],
|
|
81
|
-
width: "max-content",
|
|
82
|
-
color: p !== "#CCD0DB" ? p : "cl_darkGrey",
|
|
83
|
-
textTransform: "uppercase",
|
|
84
|
-
letterSpacing: "1.8px",
|
|
85
|
-
children: d
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
)
|
|
20
|
+
d: `M${$},${e} A${n},${n} 0 ${c > 180 ? "1" : "0"},1 ${a},${d} ${I ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${Y},${h} A${n - t},${n - t} 0 ${c > 180 ? "1" : "0"},0 ${m},${X} ${l ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${$},${e}`,
|
|
21
|
+
fill: A
|
|
90
22
|
}
|
|
91
23
|
);
|
|
92
24
|
};
|
|
93
25
|
export {
|
|
94
|
-
|
|
26
|
+
j as BaseOutlineArc
|
|
95
27
|
};
|
|
96
28
|
//# sourceMappingURL=sd-component-library316.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library316.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library316.js","sources":["../src/components/meters/outline-meter/partials/base-outline-arc/base-outline-arc.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { degToRad, getInnerX, getInnerY } from \"../../utils\";\nimport { BaseOutlineArcProps as Props } from \"./interfaces\";\n\nexport const BaseOutlineArc: React.FC<Props> = (props) => {\n const {\n startX,\n startY,\n endX,\n endY,\n radius,\n color,\n width,\n roundStart = true,\n roundEnd = true,\n startAlpha,\n endAlpha,\n } = props;\n\n const arc = endAlpha - startAlpha;\n\n const startInnerX = getInnerX(startX, degToRad(startAlpha), width);\n const startInnerY = getInnerY(startY, degToRad(startAlpha), width);\n\n const endInnerX = getInnerX(endX, degToRad(endAlpha), width);\n const endInnerY = getInnerY(endY, degToRad(endAlpha), width);\n\n return (\n <path\n d={`M${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY} ${\n roundEnd ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${endInnerX},${endInnerY} A${radius - width},${radius - width} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },0 ${startInnerX},${startInnerY} ${\n roundStart ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${startX},${startY}`}\n fill={color}\n />\n );\n};\n"],"names":["BaseOutlineArc","props","startX","startY","endX","endY","radius","color","width","roundStart","roundEnd","startAlpha","endAlpha","arc","startInnerX","getInnerX","degToRad","startInnerY","getInnerY","endInnerX","endInnerY","jsx"],"mappings":";;AAKa,MAAAA,IAAkC,CAACC,MAAU;AAClD,QAAA;AAAA,IACJ,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,UAAAC,IAAW;AAAA,IACX,YAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAX,GAEEY,IAAMD,IAAWD,GAEjBG,IAAcC,EAAUb,GAAQc,EAASL,CAAU,GAAGH,CAAK,GAC3DS,IAAcC,EAAUf,GAAQa,EAASL,CAAU,GAAGH,CAAK,GAE3DW,IAAYJ,EAAUX,GAAMY,EAASJ,CAAQ,GAAGJ,CAAK,GACrDY,IAAYF,EAAUb,GAAMW,EAASJ,CAAQ,GAAGJ,CAAK;AAGzD,SAAAa,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAG,IAAInB,CAAM,IAAIC,CAAM,KAAKG,CAAM,IAAIA,CAAM,MAC1CO,IAAM,MAAM,MAAM,GACpB,MAAMT,CAAI,IAAIC,CAAI,IAChBK,IAAW,IAAIF,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACnD,GAAGW,CAAS,IAAIC,CAAS,KAAKd,IAASE,CAAK,IAAIF,IAASE,CAAK,MAC5DK,IAAM,MAAM,MAAM,GACpB,MAAMC,CAAW,IAAIG,CAAW,IAC9BR,IAAa,IAAID,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACrD,GAAGN,CAAM,IAAIC,CAAM;AAAA,MACnB,MAAMI;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library198.js";
|
|
2
2
|
import x from "react";
|
|
3
3
|
import u from "./sd-component-library197.js";
|
|
4
|
-
import { getIsHorizontal as j, getRangeProperties as p } from "./sd-component-
|
|
5
|
-
import { OutlineMeterRange as M } from "./sd-component-
|
|
4
|
+
import { getIsHorizontal as j, getRangeProperties as p } from "./sd-component-library233.js";
|
|
5
|
+
import { OutlineMeterRange as M } from "./sd-component-library236.js";
|
|
6
6
|
import { LabelPointer as b } from "./sd-component-library327.js";
|
|
7
7
|
const A = x.forwardRef(
|
|
8
8
|
(e, r) => {
|
|
@@ -1,8 +1,96 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { j as a } from "./sd-component-library198.js";
|
|
2
|
+
import { useState as S, useCallback as B } from "react";
|
|
3
|
+
import { Box as Y } from "rebass";
|
|
4
|
+
import { labelPaddingX as c, labelWidth as W } from "./sd-component-library231.js";
|
|
5
|
+
import { getCoordinateForArc as $ } from "./sd-component-library93.js";
|
|
6
|
+
import { ResponsiveTextV2 as z } from "./sd-component-library152.js";
|
|
7
|
+
const D = (j) => {
|
|
8
|
+
const {
|
|
9
|
+
label: d,
|
|
10
|
+
color: p,
|
|
11
|
+
alpha: e,
|
|
12
|
+
radius: r,
|
|
13
|
+
horizontal: v,
|
|
14
|
+
pointerLength: m,
|
|
15
|
+
round: y,
|
|
16
|
+
pointY: i
|
|
17
|
+
} = j, [h, C] = S(0), [f, R] = S(0), T = B((t) => {
|
|
18
|
+
if (t) {
|
|
19
|
+
const { height: o, y: l } = t.getBoundingClientRect();
|
|
20
|
+
C(o), R(l);
|
|
21
|
+
}
|
|
22
|
+
}, []);
|
|
23
|
+
let { x: b, y: g } = $(
|
|
24
|
+
r + m,
|
|
25
|
+
e,
|
|
26
|
+
r
|
|
27
|
+
);
|
|
28
|
+
const s = e === 180, n = e < 180, u = e > 180;
|
|
29
|
+
if (v) {
|
|
30
|
+
const { x: t, y: o } = $(
|
|
31
|
+
r,
|
|
32
|
+
e,
|
|
33
|
+
r
|
|
34
|
+
);
|
|
35
|
+
b = t + m * (n ? -1 : 1), g = o;
|
|
36
|
+
}
|
|
37
|
+
if (!d)
|
|
38
|
+
return null;
|
|
39
|
+
let x = y || s ? `${c}px` : void 0;
|
|
40
|
+
if (!x && i) {
|
|
41
|
+
const t = f - h, o = f;
|
|
42
|
+
x = [
|
|
43
|
+
n || i > t,
|
|
44
|
+
u || i > t,
|
|
45
|
+
u || i < o,
|
|
46
|
+
n || i < o
|
|
47
|
+
].map((l) => l ? `${c}px` : "0").join(" ");
|
|
48
|
+
}
|
|
49
|
+
return /* @__PURE__ */ a.jsx(
|
|
50
|
+
Y,
|
|
51
|
+
{
|
|
52
|
+
sx: {
|
|
53
|
+
position: "absolute",
|
|
54
|
+
left: `${b}px`,
|
|
55
|
+
top: `${g}px`
|
|
56
|
+
},
|
|
57
|
+
children: /* @__PURE__ */ a.jsx(
|
|
58
|
+
Y,
|
|
59
|
+
{
|
|
60
|
+
sx: {
|
|
61
|
+
boxSizing: "content-box",
|
|
62
|
+
position: "relative",
|
|
63
|
+
top: `calc(-${h}px)`,
|
|
64
|
+
left: s ? "-50%" : n ? "-100%" : void 0,
|
|
65
|
+
py: "7px",
|
|
66
|
+
px: `${c}px`,
|
|
67
|
+
borderColor: p,
|
|
68
|
+
borderWidth: "2px",
|
|
69
|
+
borderStyle: "solid",
|
|
70
|
+
borderRadius: x,
|
|
71
|
+
bg: "cl_white",
|
|
72
|
+
"& > div": {
|
|
73
|
+
maxWidth: s ? void 0 : `${W}px`
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
ref: T,
|
|
77
|
+
children: /* @__PURE__ */ a.jsx(
|
|
78
|
+
z,
|
|
79
|
+
{
|
|
80
|
+
fontSizeWeight: [[12, "semi-bold"]],
|
|
81
|
+
width: "max-content",
|
|
82
|
+
color: p !== "#CCD0DB" ? p : "cl_darkGrey",
|
|
83
|
+
textTransform: "uppercase",
|
|
84
|
+
letterSpacing: "1.8px",
|
|
85
|
+
children: d
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
);
|
|
4
92
|
};
|
|
5
93
|
export {
|
|
6
|
-
|
|
94
|
+
D as MatchedRangeLabelBox
|
|
7
95
|
};
|
|
8
96
|
//# sourceMappingURL=sd-component-library318.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library318.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library318.js","sources":["../src/components/meters/common-outline-meter-partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { ResponsiveTextV2 } from \"../../../texts/responsive-text-v2\";\nimport { labelPaddingX, labelWidth } from \"../../outline-meter/contants\";\nimport { getCoordinateForArc } from \"../../outline-meter/utils\";\nimport { MatchedRangeLabelBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const {\n label,\n color,\n alpha,\n radius,\n horizontal,\n pointerLength,\n round,\n pointY,\n } = props;\n\n const [textHeight, setTextHeight] = useState(0);\n const [textY, setTextY] = useState(0);\n\n const ref = useCallback((node: HTMLElement) => {\n if (node) {\n const { height, y } = node.getBoundingClientRect();\n setTextHeight(height);\n setTextY(y);\n }\n }, []);\n\n let { x: pointerEndX, y: pointerEndY } = getCoordinateForArc(\n radius + pointerLength,\n alpha,\n radius\n );\n\n const isOnTop = alpha === 180;\n const isOnLeft = alpha < 180;\n const isOnRight = alpha > 180;\n\n if (horizontal) {\n const { x: pointerStartX, y: pointerStartY } = getCoordinateForArc(\n radius,\n alpha,\n radius\n );\n\n pointerEndX = pointerStartX + pointerLength * (isOnLeft ? -1 : 1);\n pointerEndY = pointerStartY;\n }\n\n if (!label) return null;\n\n let borderRadius = round || isOnTop ? `${labelPaddingX}px` : undefined;\n if (!borderRadius && pointY) {\n const textTopY = textY - textHeight;\n const textBottomY = textY;\n\n borderRadius = [\n isOnLeft || pointY > textTopY,\n isOnRight || pointY > textTopY,\n isOnRight || pointY < textBottomY,\n isOnLeft || pointY < textBottomY,\n ]\n .map((flag) => (flag ? `${labelPaddingX}px` : \"0\"))\n .join(\" \");\n }\n\n return (\n <Box\n sx={{\n position: \"absolute\",\n left: `${pointerEndX}px`,\n top: `${pointerEndY}px`,\n }}\n >\n <Box\n sx={{\n boxSizing: \"content-box\",\n position: \"relative\",\n top: `calc(-${textHeight}px)`,\n left: isOnTop ? \"-50%\" : isOnLeft ? \"-100%\" : undefined,\n py: \"7px\",\n px: `${labelPaddingX}px`,\n borderColor: color,\n borderWidth: \"2px\",\n borderStyle: \"solid\",\n borderRadius,\n bg: \"cl_white\",\n \"& > div\": {\n maxWidth: isOnTop ? undefined : `${labelWidth}px`,\n },\n }}\n ref={ref}\n >\n <ResponsiveTextV2\n fontSizeWeight={[[12, \"semi-bold\"]]}\n width=\"max-content\"\n color={color !== \"#CCD0DB\" ? color : \"cl_darkGrey\"}\n textTransform=\"uppercase\"\n letterSpacing=\"1.8px\"\n >\n {label}\n </ResponsiveTextV2>\n </Box>\n </Box>\n );\n};\n"],"names":["MatchedRangeLabelBox","props","label","color","alpha","radius","horizontal","pointerLength","round","pointY","textHeight","setTextHeight","useState","textY","setTextY","ref","useCallback","node","height","y","pointerEndX","pointerEndY","getCoordinateForArc","isOnTop","isOnLeft","isOnRight","pointerStartX","pointerStartY","borderRadius","labelPaddingX","textTopY","textBottomY","flag","jsx","Box","labelWidth","ResponsiveTextV2"],"mappings":";;;;;;AASa,MAAAA,IAAwC,CAACC,MAAU;AACxD,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACE,IAAAR,GAEE,CAACS,GAAYC,CAAa,IAAIC,EAAS,CAAC,GACxC,CAACC,GAAOC,CAAQ,IAAIF,EAAS,CAAC,GAE9BG,IAAMC,EAAY,CAACC,MAAsB;AAC7C,QAAIA,GAAM;AACR,YAAM,EAAE,QAAAC,GAAQ,GAAAC,EAAE,IAAIF,EAAK,sBAAsB;AACjD,MAAAN,EAAcO,CAAM,GACpBJ,EAASK,CAAC;AAAA,IACZ;AAAA,EACF,GAAG,CAAE,CAAA;AAEL,MAAI,EAAE,GAAGC,GAAa,GAAGC,EAAgB,IAAAC;AAAA,IACvCjB,IAASE;AAAA,IACTH;AAAA,IACAC;AAAA,EAAA;AAGF,QAAMkB,IAAUnB,MAAU,KACpBoB,IAAWpB,IAAQ,KACnBqB,IAAYrB,IAAQ;AAE1B,MAAIE,GAAY;AACd,UAAM,EAAE,GAAGoB,GAAe,GAAGC,EAAkB,IAAAL;AAAA,MAC7CjB;AAAA,MACAD;AAAA,MACAC;AAAA,IAAA;AAGY,IAAAe,IAAAM,IAAgBnB,KAAiBiB,IAAW,KAAK,IACjDH,IAAAM;AAAA,EAChB;AAEA,MAAI,CAACzB;AAAc,WAAA;AAEnB,MAAI0B,IAAepB,KAASe,IAAU,GAAGM,CAAa,OAAO;AACzD,MAAA,CAACD,KAAgBnB,GAAQ;AAC3B,UAAMqB,IAAWjB,IAAQH,GACnBqB,IAAclB;AAEL,IAAAe,IAAA;AAAA,MACbJ,KAAYf,IAASqB;AAAA,MACrBL,KAAahB,IAASqB;AAAA,MACtBL,KAAahB,IAASsB;AAAA,MACtBP,KAAYf,IAASsB;AAAA,IACvB,EACG,IAAI,CAACC,MAAUA,IAAO,GAAGH,CAAa,OAAO,GAAI,EACjD,KAAK,GAAG;AAAA,EACb;AAGE,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,MAAM,GAAGd,CAAW;AAAA,QACpB,KAAK,GAAGC,CAAW;AAAA,MACrB;AAAA,MAEA,UAAAY,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,IAAI;AAAA,YACF,WAAW;AAAA,YACX,UAAU;AAAA,YACV,KAAK,SAASxB,CAAU;AAAA,YACxB,MAAMa,IAAU,SAASC,IAAW,UAAU;AAAA,YAC9C,IAAI;AAAA,YACJ,IAAI,GAAGK,CAAa;AAAA,YACpB,aAAa1B;AAAA,YACb,aAAa;AAAA,YACb,aAAa;AAAA,YACb,cAAAyB;AAAA,YACA,IAAI;AAAA,YACJ,WAAW;AAAA,cACT,UAAUL,IAAU,SAAY,GAAGY,CAAU;AAAA,YAC/C;AAAA,UACF;AAAA,UACA,KAAApB;AAAA,UAEA,UAAAkB,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,CAAC,IAAI,WAAW,CAAC;AAAA,cAClC,OAAM;AAAA,cACN,OAAOjC,MAAU,YAAYA,IAAQ;AAAA,cACrC,eAAc;AAAA,cACd,eAAc;AAAA,cAEb,UAAAD;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,28 +1,38 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
const j = (p) => {
|
|
1
|
+
import { j as t } from "./sd-component-library198.js";
|
|
2
|
+
const h = (n) => {
|
|
4
3
|
const {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
color: s,
|
|
5
|
+
innerCircleRadius: $,
|
|
6
|
+
innerCircleStrokeWidth: d,
|
|
7
|
+
dx: i,
|
|
8
|
+
dy: r,
|
|
9
|
+
radius: e,
|
|
10
|
+
tipX: l,
|
|
11
|
+
tipY: o,
|
|
12
|
+
needleWidth: c
|
|
13
|
+
} = n;
|
|
14
|
+
return /* @__PURE__ */ t.jsxs("g", { children: [
|
|
15
|
+
/* @__PURE__ */ t.jsx(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: `M${l - i},${o - r} A${c / 2},${c / 2} 0 0,0 ${l + i},${o + r} L${e + i},${e + r} L${e - i},${e - r} Z`,
|
|
19
|
+
fill: s
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ t.jsx(
|
|
23
|
+
"circle",
|
|
24
|
+
{
|
|
25
|
+
cx: e,
|
|
26
|
+
cy: e,
|
|
27
|
+
r: $ + d,
|
|
28
|
+
strokeWidth: d,
|
|
29
|
+
stroke: s,
|
|
30
|
+
fill: "white"
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] });
|
|
24
34
|
};
|
|
25
35
|
export {
|
|
26
|
-
|
|
36
|
+
h as BaseNeedle
|
|
27
37
|
};
|
|
28
38
|
//# sourceMappingURL=sd-component-library319.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library319.js","sources":["../src/components/meters/outline-meter/partials/base-
|
|
1
|
+
{"version":3,"file":"sd-component-library319.js","sources":["../src/components/meters/outline-meter/partials/base-needle/base-needle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { BaseNeedleProps as Props } from \"./interfaces\";\n\nexport const BaseNeedle: React.FC<Props> = (props) => {\n const {\n color,\n innerCircleRadius,\n innerCircleStrokeWidth,\n dx,\n dy,\n radius,\n tipX,\n tipY,\n needleWidth,\n } = props;\n\n return (\n <g>\n <path\n d={`M${tipX - dx},${tipY - dy} A${needleWidth / 2},${\n needleWidth / 2\n } 0 0,0 ${tipX + dx},${tipY + dy} L${radius + dx},${radius + dy} L${\n radius - dx\n },${radius - dy} Z`}\n fill={color}\n />\n <circle\n cx={radius}\n cy={radius}\n r={innerCircleRadius + innerCircleStrokeWidth}\n strokeWidth={innerCircleStrokeWidth}\n stroke={color}\n fill=\"white\"\n />\n </g>\n );\n};\n"],"names":["BaseNeedle","props","color","innerCircleRadius","innerCircleStrokeWidth","dx","dy","radius","tipX","tipY","needleWidth","jsx"],"mappings":";AAIa,MAAAA,IAA8B,CAACC,MAAU;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,EACE,IAAAT;AAEJ,gCACG,KACC,EAAA,UAAA;AAAA,IAAAU,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIH,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKI,IAAc,CAAC,IAC/CA,IAAc,CAChB,UAAUF,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKC,IAASF,CAAE,IAAIE,IAASD,CAAE,KAC7DC,IAASF,CACX,IAAIE,IAASD,CAAE;AAAA,QACf,MAAMJ;AAAA,MAAA;AAAA,IACR;AAAA,IACAS,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAIJ;AAAA,QACJ,IAAIA;AAAA,QACJ,GAAGJ,IAAoBC;AAAA,QACvB,aAAaA;AAAA,QACb,QAAQF;AAAA,QACR,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,7 +1,37 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
const s = (
|
|
1
|
+
import { j as i } from "./sd-component-library198.js";
|
|
2
|
+
import { ResponsiveTextV2 as n } from "./sd-component-library152.js";
|
|
3
|
+
const s = (o) => {
|
|
4
|
+
const { currentSelection: e, title: r, onClick: t } = o;
|
|
5
|
+
return /* @__PURE__ */ i.jsx(
|
|
6
|
+
n,
|
|
7
|
+
{
|
|
8
|
+
fontSizeWeight: [[14, e ? "bold" : "regular"]],
|
|
9
|
+
onClick: t,
|
|
10
|
+
sx: {
|
|
11
|
+
height: "46px",
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "flex-end",
|
|
15
|
+
pr: "25px",
|
|
16
|
+
pl: "10px",
|
|
17
|
+
...e ? {
|
|
18
|
+
cursor: "default"
|
|
19
|
+
} : {
|
|
20
|
+
borderTopStyle: "solid",
|
|
21
|
+
borderWidth: "1px",
|
|
22
|
+
borderColor: "cl_headerLine",
|
|
23
|
+
cursor: "pointer",
|
|
24
|
+
opacity: 0.8,
|
|
25
|
+
":hover": {
|
|
26
|
+
opacity: 1
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
children: r
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
};
|
|
4
34
|
export {
|
|
5
|
-
s as
|
|
35
|
+
s as OptionRow
|
|
6
36
|
};
|
|
7
37
|
//# sourceMappingURL=sd-component-library320.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library320.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library320.js","sources":["../src/components/selectors/primary-custom-scrollable-selector/partials/option-row/option-row.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts/responsive-text-v2\";\nimport { OptionRowProps as Props } from \"./interfaces\";\n\nexport const OptionRow = <T extends string = string>(props: Props<T>) => {\n const { currentSelection, title, onClick } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[[14, currentSelection ? \"bold\" : \"regular\"]]}\n onClick={onClick}\n sx={{\n height: \"46px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n pr: \"25px\",\n pl: \"10px\",\n ...(currentSelection\n ? {\n cursor: \"default\",\n }\n : {\n borderTopStyle: \"solid\",\n borderWidth: \"1px\",\n borderColor: \"cl_headerLine\",\n cursor: \"pointer\",\n opacity: 0.8,\n \":hover\": {\n opacity: 1,\n },\n }),\n }}\n >\n {title}\n </ResponsiveTextV2>\n );\n};\n"],"names":["OptionRow","props","currentSelection","title","onClick","jsx","ResponsiveTextV2"],"mappings":";;AAKa,MAAAA,IAAY,CAA4BC,MAAoB;AACvE,QAAM,EAAE,kBAAAC,GAAkB,OAAAC,GAAO,SAAAC,EAAA,IAAYH;AAG3C,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,CAAC,IAAIJ,IAAmB,SAAS,SAAS,CAAC;AAAA,MAC5D,SAAAE;AAAA,MACA,IAAI;AAAA,QACF,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,GAAIF,IACA;AAAA,UACE,QAAQ;AAAA,QAAA,IAEV;AAAA,UACE,gBAAgB;AAAA,UAChB,aAAa;AAAA,UACb,aAAa;AAAA,UACb,QAAQ;AAAA,UACR,SAAS;AAAA,UACT,UAAU;AAAA,YACR,SAAS;AAAA,UACX;AAAA,QACF;AAAA,MACN;AAAA,MAEC,UAAAC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,38 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
color: s,
|
|
5
|
-
innerCircleRadius: $,
|
|
6
|
-
innerCircleStrokeWidth: d,
|
|
7
|
-
dx: i,
|
|
8
|
-
dy: r,
|
|
9
|
-
radius: e,
|
|
10
|
-
tipX: l,
|
|
11
|
-
tipY: o,
|
|
12
|
-
needleWidth: c
|
|
13
|
-
} = n;
|
|
14
|
-
return /* @__PURE__ */ t.jsxs("g", { children: [
|
|
15
|
-
/* @__PURE__ */ t.jsx(
|
|
16
|
-
"path",
|
|
17
|
-
{
|
|
18
|
-
d: `M${l - i},${o - r} A${c / 2},${c / 2} 0 0,0 ${l + i},${o + r} L${e + i},${e + r} L${e - i},${e - r} Z`,
|
|
19
|
-
fill: s
|
|
20
|
-
}
|
|
21
|
-
),
|
|
22
|
-
/* @__PURE__ */ t.jsx(
|
|
23
|
-
"circle",
|
|
24
|
-
{
|
|
25
|
-
cx: e,
|
|
26
|
-
cy: e,
|
|
27
|
-
r: $ + d,
|
|
28
|
-
strokeWidth: d,
|
|
29
|
-
stroke: s,
|
|
30
|
-
fill: "white"
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
] });
|
|
1
|
+
const p = (c, r, n, t) => {
|
|
2
|
+
const o = c - (r - 1) * n, s = t / r, e = (t + 1) / r, a = (360 - c) / 2 + n * t + o * s, S = a + o * (e - s);
|
|
3
|
+
return { rangeArcStart: a, rangeArcEnd: S };
|
|
34
4
|
};
|
|
35
5
|
export {
|
|
36
|
-
|
|
6
|
+
p as getRangeProperties
|
|
37
7
|
};
|
|
38
8
|
//# sourceMappingURL=sd-component-library321.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library321.js","sources":["../src/components/meters/outline-meter/
|
|
1
|
+
{"version":3,"file":"sd-component-library321.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/utils.ts"],"sourcesContent":["export const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n\n const start = idx / totalRanges;\n const end = (idx + 1) / totalRanges;\n\n const arcStart = (360 - arc) / 2; // deg\n\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n return { rangeArcStart, rangeArcEnd };\n};\n"],"names":["getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","arcForRanges","start","end","rangeArcStart","rangeArcEnd"],"mappings":"AAAO,MAAMA,IAAqB,CAChCC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeJ,KAAOC,IAAc,KAAKC,GAEzCG,IAAQF,IAAMF,GACdK,KAAOH,IAAM,KAAKF,GAIlBM,KAFY,MAAMP,KAAO,IAGlBE,IAAwBC,IAAMC,IAAeC,GAEpDG,IAAcD,IAAgBH,KAAgBE,IAAMD;AAEnD,SAAA,EAAE,eAAAE,GAAe,aAAAC;AAC1B;"}
|
|
@@ -1,37 +1,7 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
const s = (
|
|
4
|
-
const { currentSelection: e, title: r, onClick: t } = o;
|
|
5
|
-
return /* @__PURE__ */ i.jsx(
|
|
6
|
-
n,
|
|
7
|
-
{
|
|
8
|
-
fontSizeWeight: [[14, e ? "bold" : "regular"]],
|
|
9
|
-
onClick: t,
|
|
10
|
-
sx: {
|
|
11
|
-
height: "46px",
|
|
12
|
-
display: "flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
justifyContent: "flex-end",
|
|
15
|
-
pr: "25px",
|
|
16
|
-
pl: "10px",
|
|
17
|
-
...e ? {
|
|
18
|
-
cursor: "default"
|
|
19
|
-
} : {
|
|
20
|
-
borderTopStyle: "solid",
|
|
21
|
-
borderWidth: "1px",
|
|
22
|
-
borderColor: "cl_headerLine",
|
|
23
|
-
cursor: "pointer",
|
|
24
|
-
opacity: 0.8,
|
|
25
|
-
":hover": {
|
|
26
|
-
opacity: 1
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
children: r
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
};
|
|
1
|
+
import { j as e } from "./sd-component-library198.js";
|
|
2
|
+
import { LabelPointer as t } from "./sd-component-library327.js";
|
|
3
|
+
const s = (r) => /* @__PURE__ */ e.jsx(t, { ...r });
|
|
34
4
|
export {
|
|
35
|
-
s as
|
|
5
|
+
s as DiscreteMeterLabelPointer
|
|
36
6
|
};
|
|
37
7
|
//# sourceMappingURL=sd-component-library322.js.map
|