@selfdecode/sd-component-library 4.0.86 → 4.0.87
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 +3 -1
- package/lib/components/forms-v2/form-v2-input/interfaces.d.ts +1 -1
- package/lib/sd-component-library104.js +2 -2
- package/lib/sd-component-library106.js +2 -2
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library117.js +1 -1
- package/lib/sd-component-library118.js +2 -2
- package/lib/sd-component-library120.js +1 -1
- package/lib/sd-component-library126.js +2 -2
- package/lib/sd-component-library127.js +2 -2
- package/lib/sd-component-library129.js +1 -1
- package/lib/sd-component-library132.js +3 -3
- package/lib/sd-component-library133.js +1 -1
- package/lib/sd-component-library135.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library167.js +1 -1
- package/lib/sd-component-library170.js +1 -1
- package/lib/sd-component-library171.js +3 -3
- package/lib/sd-component-library172.js +1 -1
- package/lib/sd-component-library195.js +3 -3
- package/lib/sd-component-library199.js +55 -23
- package/lib/sd-component-library199.js.map +1 -1
- package/lib/sd-component-library200.js +3 -57
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +2 -19
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +30 -5
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +599 -5
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +65 -2
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +25 -30
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +18 -598
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +5 -65
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +5 -64
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +20 -22
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +3 -21
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +1 -1
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +64 -3
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +23 -18
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +17 -39
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +40 -14
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +129 -3
- 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 +13 -128
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +3 -13
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +3 -46
- 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-library223.js +65 -3
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +3 -52
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +46 -17
- 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-library229.js +3 -3
- package/lib/sd-component-library23.js +2 -2
- package/lib/sd-component-library233.js +3 -129
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +129 -43
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +41 -45
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +46 -7
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +8 -3
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +64 -21
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +41 -107
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +12 -46
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +21 -24
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +103 -47
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +46 -63
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +24 -43
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +52 -12
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library247.js +60 -26
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +41 -27
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +26 -74
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library256.js +25 -21
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library258.js +24 -22
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library260.js +21 -25
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +22 -24
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +30 -51
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +51 -30
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +1 -1
- package/lib/sd-component-library265.js +52 -54
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +54 -52
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +30 -9
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +17 -47
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +123 -88
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +120 -90
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +10 -30
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +46 -17
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +9 -125
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +46 -117
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library275.js +89 -48
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +92 -10
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library277.js +49 -50
- package/lib/sd-component-library277.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 -2
- package/lib/sd-component-library282.js +70 -2
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +101 -69
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library284.js +95 -91
- package/lib/sd-component-library284.js.map +1 -1
- package/lib/sd-component-library285.js +10 -106
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library289.js +4 -4
- package/lib/sd-component-library290.js +2 -3
- package/lib/sd-component-library290.js.map +1 -1
- package/lib/sd-component-library291.js +8 -3
- package/lib/sd-component-library291.js.map +1 -1
- package/lib/sd-component-library292.js +328 -3
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +51 -2
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +3 -8
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +3 -328
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +3 -51
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library314.js +1 -1
- package/lib/sd-component-library32.js +1 -1
- package/lib/sd-component-library321.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 +84 -57
- package/lib/sd-component-library55.js.map +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library61.js +1 -1
- package/lib/sd-component-library62.js +4 -4
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +2 -2
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library70.js +2 -2
- package/lib/sd-component-library72.js +3 -3
- package/lib/sd-component-library74.js +2 -2
- package/lib/sd-component-library75.js +3 -3
- package/lib/sd-component-library76.js +1 -1
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +4 -4
- package/lib/sd-component-library92.js +4 -4
- package/lib/sd-component-library94.js +6 -6
- package/lib/sd-component-library98.js +1 -1
- package/lib/sd-component-library99.js +2 -2
- package/package.json +1 -1
|
@@ -1,44 +1,78 @@
|
|
|
1
1
|
import { j as n } from "./sd-component-library195.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { useHover as Z } from "./sd-component-library3.js";
|
|
3
|
+
import { getCoordinateForArc as l } from "./sd-component-library91.js";
|
|
4
|
+
import { getSegmentCoordinates as O } from "./sd-component-library246.js";
|
|
5
|
+
import { SegmentLabel as q } from "./sd-component-library323.js";
|
|
6
|
+
const h = 300, G = ({
|
|
7
|
+
segment: o,
|
|
8
|
+
segmentWidth: $,
|
|
9
|
+
outlineWidth: f,
|
|
10
|
+
size: i,
|
|
11
|
+
mobile: a,
|
|
12
|
+
...c
|
|
10
13
|
}) => {
|
|
11
|
-
const { color:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} =
|
|
22
|
-
|
|
14
|
+
const { start: p, end: x, color: u } = o, { labelOffset: j } = c, t = i / 2, d = t - $, {
|
|
15
|
+
startInnerX: k,
|
|
16
|
+
startInnerY: A,
|
|
17
|
+
endInnerX: M,
|
|
18
|
+
endInnerY: X,
|
|
19
|
+
endX: Y,
|
|
20
|
+
endY: v,
|
|
21
|
+
startY: S,
|
|
22
|
+
startX: g,
|
|
23
|
+
arc: e
|
|
24
|
+
} = O(o, t, $), r = i / 2, H = Math.round(p * 360), I = Math.round(x * 360), { isHover: L, hoverCallbacks: w } = Z(), m = L && !a, s = Math.sqrt(2) * (t + j), { x: y, y: C } = l(
|
|
25
|
+
s,
|
|
26
|
+
H,
|
|
27
|
+
t
|
|
28
|
+
), { x: E, y: R } = l(
|
|
29
|
+
s,
|
|
30
|
+
I,
|
|
31
|
+
t
|
|
32
|
+
);
|
|
33
|
+
return /* @__PURE__ */ n.jsxs("g", { ...a ? {} : w, children: [
|
|
23
34
|
/* @__PURE__ */ n.jsx(
|
|
24
35
|
"path",
|
|
25
36
|
{
|
|
26
|
-
d: `M${r},${r} L${
|
|
27
|
-
fill:
|
|
28
|
-
|
|
37
|
+
d: `M${r},${r} L${y},${C} A${s},${s} 0 ${e > 180 ? "1" : "0"},1 ${E},${R}Z`,
|
|
38
|
+
fill: "transparent"
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ n.jsx(
|
|
42
|
+
"path",
|
|
43
|
+
{
|
|
44
|
+
d: `M${r},${r} L${g},${S} A${t},${t} 0 ${e > 180 ? "1" : "0"},1 ${Y},${v}Z`,
|
|
45
|
+
fill: u,
|
|
46
|
+
strokeWidth: f,
|
|
29
47
|
stroke: "white"
|
|
30
48
|
}
|
|
31
49
|
),
|
|
32
50
|
/* @__PURE__ */ n.jsx(
|
|
33
51
|
"path",
|
|
34
52
|
{
|
|
35
|
-
d: `M${r},${r} L${
|
|
36
|
-
fill: "white"
|
|
53
|
+
d: `M${r},${r} L${k},${A} A${d},${d} 0 ${e > 180 ? "1" : "0"},1 ${M},${X}Z`,
|
|
54
|
+
fill: "white",
|
|
55
|
+
style: {
|
|
56
|
+
transform: `scale(${m ? 0.8 : 1}`,
|
|
57
|
+
transformOrigin: "center",
|
|
58
|
+
transition: `all ${h}ms`
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ n.jsx(
|
|
63
|
+
q,
|
|
64
|
+
{
|
|
65
|
+
segment: o,
|
|
66
|
+
radius: t,
|
|
67
|
+
animationDuration: h,
|
|
68
|
+
isHover: m,
|
|
69
|
+
mobile: a,
|
|
70
|
+
...c
|
|
37
71
|
}
|
|
38
72
|
)
|
|
39
73
|
] });
|
|
40
74
|
};
|
|
41
75
|
export {
|
|
42
|
-
|
|
76
|
+
G as Segment
|
|
43
77
|
};
|
|
44
78
|
//# sourceMappingURL=sd-component-library247.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library247.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library247.js","sources":["../src/components/meters/donut-diagram/partials/segment/segment.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { useHover } from \"../../../../../core/custom-hooks\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { getSegmentCoordinates } from \"../../utils\";\nimport { SegmentLabel } from \"../segment-label\";\nimport { SegmentProps as Props } from \"./interfaces\";\n\nconst animationDuration = 300;\n\nexport const Segment: React.FC<Props> = ({\n segment,\n segmentWidth,\n outlineWidth,\n size: diameter,\n mobile,\n ...labelProps\n}) => {\n const { start, end, color } = segment;\n const { labelOffset } = labelProps;\n\n const radius = diameter / 2;\n const innerRadius = radius - segmentWidth;\n\n const {\n startInnerX,\n startInnerY,\n endInnerX,\n endInnerY,\n endX,\n endY,\n startY,\n startX,\n arc,\n } = getSegmentCoordinates(segment, radius, segmentWidth);\n\n const center = diameter / 2;\n\n const startAlpha = Math.round(start * 360);\n const endAlpha = Math.round(end * 360);\n\n const { isHover, hoverCallbacks } = useHover();\n const showHover = isHover && !mobile;\n\n const maxRadius = Math.sqrt(2) * (radius + labelOffset);\n\n const { x: maskStartX, y: maskStartY } = getCoordinateForArc(\n maxRadius,\n startAlpha,\n radius\n );\n\n const { x: maskEndX, y: maskEndY } = getCoordinateForArc(\n maxRadius,\n endAlpha,\n radius\n );\n\n return (\n <g {...(mobile ? {} : hoverCallbacks)}>\n {/* mask */}\n <path\n d={`M${center},${center} L${maskStartX},${maskStartY} A${maxRadius},${maxRadius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${maskEndX},${maskEndY}Z`}\n fill=\"transparent\"\n />\n\n {/* colored sector */}\n <path\n d={`M${center},${center} L${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY}Z`}\n fill={color}\n strokeWidth={outlineWidth}\n stroke=\"white\"\n />\n\n {/* white inner sector */}\n <path\n d={`M${center},${center} L${startInnerX},${startInnerY} A${innerRadius},${innerRadius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endInnerX},${endInnerY}Z`}\n fill=\"white\"\n style={{\n transform: `scale(${showHover ? 0.8 : 1}`,\n transformOrigin: \"center\",\n transition: `all ${animationDuration}ms`,\n }}\n />\n\n <SegmentLabel\n segment={segment}\n radius={radius}\n animationDuration={animationDuration}\n isHover={showHover}\n mobile={mobile}\n {...labelProps}\n />\n </g>\n );\n};\n"],"names":["animationDuration","Segment","segment","segmentWidth","outlineWidth","diameter","mobile","labelProps","start","end","color","labelOffset","radius","innerRadius","startInnerX","startInnerY","endInnerX","endInnerY","endX","endY","startY","startX","arc","getSegmentCoordinates","center","startAlpha","endAlpha","isHover","hoverCallbacks","useHover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|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { j as n } from "./sd-component-library195.js";
|
|
2
|
+
import g from "./sd-component-library194.js";
|
|
3
|
+
import { getSegmentCoordinates as I } from "./sd-component-library246.js";
|
|
4
|
+
const w = ({
|
|
5
|
+
segment: e,
|
|
6
|
+
size: o,
|
|
7
|
+
segmentWidth: s,
|
|
8
|
+
outlineWidth: c,
|
|
9
|
+
isMatching: a
|
|
10
|
+
}) => {
|
|
11
|
+
const { color: d } = e, t = o / 2, $ = t - s, {
|
|
12
|
+
startX: l,
|
|
13
|
+
startY: m,
|
|
14
|
+
arc: i,
|
|
15
|
+
startInnerY: p,
|
|
16
|
+
startInnerX: h,
|
|
17
|
+
endInnerY: u,
|
|
18
|
+
endInnerX: x,
|
|
19
|
+
endX: f,
|
|
20
|
+
endY: j
|
|
21
|
+
} = I(e, t, s), r = o / 2;
|
|
22
|
+
return /* @__PURE__ */ n.jsxs("g", { children: [
|
|
23
|
+
/* @__PURE__ */ n.jsx(
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
d: `M${r},${r} L${l},${m} A${t},${t} 0 ${i > 180 ? "1" : "0"},1 ${f},${j}Z`,
|
|
27
|
+
fill: a ? d : g.colors.cl_lightGrey,
|
|
28
|
+
strokeWidth: c,
|
|
29
|
+
stroke: "white"
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ n.jsx(
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: `M${r},${r} L${h},${p} A${$},${$} 0 ${i > 180 ? "1" : "0"},1 ${x},${u}Z`,
|
|
36
|
+
fill: "white"
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
27
41
|
export {
|
|
28
|
-
|
|
42
|
+
w as CompactDonutGaugeSegment
|
|
29
43
|
};
|
|
30
44
|
//# sourceMappingURL=sd-component-library248.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library248.js","sources":["../src/components/meters/compact-donut-gauge/partials/compact-donut-gauge-
|
|
1
|
+
{"version":3,"file":"sd-component-library248.js","sources":["../src/components/meters/compact-donut-gauge/partials/compact-donut-gauge-segment/compact-donut-gauge-segment.tsx"],"sourcesContent":["import React from \"react\";\n\nimport theme from \"../../../../../core/theme\";\nimport { getSegmentCoordinates } from \"../../../donut-diagram/utils\";\nimport { CompactDonutGaugeSegmentProps as Props } from \"./interfaces\";\n\nexport const CompactDonutGaugeSegment: React.FC<Props> = ({\n segment,\n size: diameter,\n segmentWidth,\n outlineWidth,\n isMatching,\n}) => {\n const { color } = segment;\n\n const radius = diameter / 2;\n const innerRadius = radius - segmentWidth;\n\n const {\n startX,\n startY,\n arc,\n startInnerY,\n startInnerX,\n endInnerY,\n endInnerX,\n endX,\n endY,\n } = getSegmentCoordinates(segment, radius, segmentWidth);\n\n const center = diameter / 2;\n\n return (\n <g>\n {/* colored sector */}\n <path\n d={`M${center},${center} L${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY}Z`}\n fill={isMatching ? color : theme.colors[\"cl_lightGrey\"]}\n strokeWidth={outlineWidth}\n stroke=\"white\"\n />\n\n {/* white inner sector */}\n <path\n d={`M${center},${center} L${startInnerX},${startInnerY} A${innerRadius},${innerRadius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endInnerX},${endInnerY}Z`}\n fill=\"white\"\n />\n </g>\n );\n};\n"],"names":["CompactDonutGaugeSegment","segment","diameter","segmentWidth","outlineWidth","isMatching","color","radius","innerRadius","startX","startY","arc","startInnerY","startInnerX","endInnerY","endInnerX","endX","endY","getSegmentCoordinates","center","jsx","theme"],"mappings":";;;AAMO,MAAMA,IAA4C,CAAC;AAAA,EACxD,SAAAC;AAAA,EACA,MAAMC;AA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16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
startX: g,
|
|
23
|
-
arc: e
|
|
24
|
-
} = O(o, t, $), r = i / 2, H = Math.round(p * 360), I = Math.round(x * 360), { isHover: L, hoverCallbacks: w } = Z(), m = L && !a, s = Math.sqrt(2) * (t + j), { x: y, y: C } = l(
|
|
25
|
-
s,
|
|
26
|
-
H,
|
|
27
|
-
t
|
|
28
|
-
), { x: E, y: R } = l(
|
|
29
|
-
s,
|
|
30
|
-
I,
|
|
31
|
-
t
|
|
32
|
-
);
|
|
33
|
-
return /* @__PURE__ */ n.jsxs("g", { ...a ? {} : w, children: [
|
|
34
|
-
/* @__PURE__ */ n.jsx(
|
|
35
|
-
"path",
|
|
36
|
-
{
|
|
37
|
-
d: `M${r},${r} L${y},${C} A${s},${s} 0 ${e > 180 ? "1" : "0"},1 ${E},${R}Z`,
|
|
38
|
-
fill: "transparent"
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ n.jsx(
|
|
42
|
-
"path",
|
|
43
|
-
{
|
|
44
|
-
d: `M${r},${r} L${g},${S} A${t},${t} 0 ${e > 180 ? "1" : "0"},1 ${Y},${v}Z`,
|
|
45
|
-
fill: u,
|
|
46
|
-
strokeWidth: f,
|
|
47
|
-
stroke: "white"
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ n.jsx(
|
|
51
|
-
"path",
|
|
52
|
-
{
|
|
53
|
-
d: `M${r},${r} L${k},${A} A${d},${d} 0 ${e > 180 ? "1" : "0"},1 ${M},${X}Z`,
|
|
54
|
-
fill: "white",
|
|
55
|
-
style: {
|
|
56
|
-
transform: `scale(${m ? 0.8 : 1}`,
|
|
57
|
-
transformOrigin: "center",
|
|
58
|
-
transition: `all ${h}ms`
|
|
1
|
+
import { j as t } from "./sd-component-library195.js";
|
|
2
|
+
import { FlexCenter as s } from "./sd-component-library35.js";
|
|
3
|
+
import { ResponsiveTextV2 as i } from "./sd-component-library149.js";
|
|
4
|
+
const l = ({
|
|
5
|
+
segment: { start: n, end: r, color: e },
|
|
6
|
+
size: o
|
|
7
|
+
}) => /* @__PURE__ */ t.jsx("foreignObject", { x: 0, y: 0, width: o, height: o, children: /* @__PURE__ */ t.jsx(s, { height: "100%", children: /* @__PURE__ */ t.jsxs(
|
|
8
|
+
i,
|
|
9
|
+
{
|
|
10
|
+
fontSizeWeight: [20, "bold"],
|
|
11
|
+
color: e,
|
|
12
|
+
sx: { position: "relative" },
|
|
13
|
+
children: [
|
|
14
|
+
Math.round((r - n) * 100),
|
|
15
|
+
/* @__PURE__ */ t.jsx(
|
|
16
|
+
i,
|
|
17
|
+
{
|
|
18
|
+
fontSizeWeight: [10, "bold"],
|
|
19
|
+
color: e,
|
|
20
|
+
sx: { position: "absolute", top: "4px", left: "100%" },
|
|
21
|
+
children: "%"
|
|
59
22
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
segment: o,
|
|
66
|
-
radius: t,
|
|
67
|
-
animationDuration: h,
|
|
68
|
-
isHover: m,
|
|
69
|
-
mobile: a,
|
|
70
|
-
...c
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] });
|
|
74
|
-
};
|
|
23
|
+
)
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
) }) });
|
|
75
27
|
export {
|
|
76
|
-
|
|
28
|
+
l as CompactDonutGaugeValueIndicator
|
|
77
29
|
};
|
|
78
30
|
//# sourceMappingURL=sd-component-library249.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library249.js","sources":["../src/components/meters/donut-
|
|
1
|
+
{"version":3,"file":"sd-component-library249.js","sources":["../src/components/meters/compact-donut-gauge/partials/compact-donut-gauge-value-indicator/compact-donut-gauge-value-indicator.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Flex } from \"rebass\";\n\nimport { FlexCenter } from \"../../../../containers\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { CompactDonutGaugeValueIndicatorProps as Props } from \"./interfaces\";\n\nexport const CompactDonutGaugeValueIndicator: React.FC<Props> = ({\n segment: { start, end, color },\n size,\n}) => {\n return (\n <foreignObject x={0} y={0} width={size} height={size}>\n <FlexCenter height=\"100%\">\n <ResponsiveTextV2\n fontSizeWeight={[20, \"bold\"]}\n color={color}\n sx={{ position: \"relative\" }}\n >\n {Math.round((end - start) * 100)}\n\n <ResponsiveTextV2\n fontSizeWeight={[10, \"bold\"]}\n color={color}\n sx={{ position: \"absolute\", top: \"4px\", left: \"100%\" }}\n >\n %\n </ResponsiveTextV2>\n </ResponsiveTextV2>\n </FlexCenter>\n </foreignObject>\n );\n};\n"],"names":["CompactDonutGaugeValueIndicator","start","end","color","size","jsx","FlexCenter","jsxs","ResponsiveTextV2"],"mappings":";;;AAQO,MAAMA,IAAmD,CAAC;AAAA,EAC/D,SAAS,EAAE,OAAAC,GAAO,KAAAC,GAAK,OAAAC,EAAM;AAAA,EAC7B,MAAAC;AACF,MAEKC,gBAAAA,EAAAA,IAAA,iBAAA,EAAc,GAAG,GAAG,GAAG,GAAG,OAAOD,GAAM,QAAQA,GAC9C,UAACC,gBAAAA,MAAAC,GAAA,EAAW,QAAO,QACjB,UAAAC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,gBAAgB,CAAC,IAAI,MAAM;AAAA,IAC3B,OAAAL;AAAA,IACA,IAAI,EAAE,UAAU,WAAW;AAAA,IAE1B,UAAA;AAAA,MAAK,KAAA,OAAOD,IAAMD,KAAS,GAAG;AAAA,MAE/BI,gBAAAA,EAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,gBAAgB,CAAC,IAAI,MAAM;AAAA,UAC3B,OAAAL;AAAA,UACA,IAAI,EAAE,UAAU,YAAY,KAAK,OAAO,MAAM,OAAO;AAAA,UACtD,UAAA;AAAA,QAAA;AAAA,MAED;AAAA,IAAA;AAAA,EAAA;AAAA,EAEJ,CAAA,EACF,CAAA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library195.js";
|
|
2
2
|
import { Link as O } from "react-router-dom";
|
|
3
3
|
import { Button as Q, Flex as T } from "rebass";
|
|
4
|
-
import { LoadingSpinner as U } from "./sd-component-
|
|
4
|
+
import { LoadingSpinner as U } from "./sd-component-library205.js";
|
|
5
5
|
function V(t, e, o) {
|
|
6
6
|
return (n) => {
|
|
7
7
|
t == null || t(n), e && (`#${e}` !== window.location.hash && (o != null && o.replace(
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { j as n } from "./sd-component-library195.js";
|
|
2
|
+
import { Button as a } from "./sd-component-library25.js";
|
|
3
|
+
const u = (r) => {
|
|
4
|
+
const {
|
|
5
|
+
borderColor: e,
|
|
6
|
+
borderStyle: o,
|
|
7
|
+
borderWidth: i,
|
|
8
|
+
fill: d,
|
|
9
|
+
width: l,
|
|
10
|
+
height: h,
|
|
11
|
+
disabled: t
|
|
12
|
+
} = r;
|
|
13
|
+
return /* @__PURE__ */ n.jsx(
|
|
14
|
+
a,
|
|
11
15
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children:
|
|
16
|
+
...r,
|
|
17
|
+
width: l || ["30px"],
|
|
18
|
+
height: h || ["30px"],
|
|
19
|
+
borderColor: t ? "cl_lightGrey" : e || "#4668F8",
|
|
20
|
+
borderStyle: o || "solid",
|
|
21
|
+
borderWidth: i || "2px",
|
|
22
|
+
fill: t ? "cl_lightGrey" : d || "#4668F8",
|
|
23
|
+
"data-testid": "square-button",
|
|
24
|
+
variant: "_square",
|
|
25
|
+
children: r.children
|
|
22
26
|
}
|
|
23
27
|
);
|
|
24
28
|
};
|
|
25
29
|
export {
|
|
26
|
-
|
|
30
|
+
u as SquareButton
|
|
27
31
|
};
|
|
28
32
|
//# sourceMappingURL=sd-component-library256.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library256.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library256.js","sources":["../src/components/buttons/partials/square-button/square-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Button } from \"../../button\";\nimport { SquareButtonProps } from \"./interfaces\";\n\n/**\n * The circle button.\n */\nexport const SquareButton: React.FC<SquareButtonProps> = (props) => {\n const {\n borderColor,\n borderStyle,\n borderWidth,\n fill,\n width,\n height,\n disabled,\n } = props;\n return (\n <Button\n {...props}\n width={width || [\"30px\"]}\n height={height || [\"30px\"]}\n borderColor={!disabled ? borderColor || \"#4668F8\" : \"cl_lightGrey\"}\n borderStyle={borderStyle || \"solid\"}\n borderWidth={borderWidth || \"2px\"}\n fill={!disabled ? fill || \"#4668F8\" : \"cl_lightGrey\"}\n data-testid=\"square-button\"\n variant=\"_square\"\n >\n {props.children}\n </Button>\n );\n};\n"],"names":["SquareButton","props","borderColor","borderStyle","borderWidth","fill","width","height","disabled","jsx","Button"],"mappings":";;AAQa,MAAAA,IAA4C,CAACC,MAAU;AAC5D,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAP;AAEF,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGT;AAAA,MACJ,OAAOK,KAAS,CAAC,MAAM;AAAA,MACvB,QAAQC,KAAU,CAAC,MAAM;AAAA,MACzB,aAAcC,IAAsC,iBAA3BN,KAAe;AAAA,MACxC,aAAaC,KAAe;AAAA,MAC5B,aAAaC,KAAe;AAAA,MAC5B,MAAOI,IAA+B,iBAApBH,KAAQ;AAAA,MAC1B,eAAY;AAAA,MACZ,SAAQ;AAAA,MAEP,UAAMJ,EAAA;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { ResponsiveTextV2 as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { j as t } from "./sd-component-library195.js";
|
|
2
|
+
import { ResponsiveTextV2 as o } from "./sd-component-library149.js";
|
|
3
|
+
const s = (e) => {
|
|
4
|
+
const { currentPage: r } = e;
|
|
5
|
+
return /* @__PURE__ */ t.jsx(
|
|
6
|
+
o,
|
|
7
|
+
{
|
|
8
|
+
fontSizeWeight: [14, "regular"],
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
borderColor: "cl_lightGrey",
|
|
14
|
+
borderWidth: 1,
|
|
15
|
+
borderStyle: "solid",
|
|
16
|
+
borderRadius: "3px",
|
|
17
|
+
height: "30px",
|
|
18
|
+
minWidth: "30px"
|
|
19
|
+
},
|
|
20
|
+
children: r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
22
24
|
export {
|
|
23
|
-
|
|
25
|
+
s as CurrentPage
|
|
24
26
|
};
|
|
25
27
|
//# sourceMappingURL=sd-component-library258.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library258.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library258.js","sources":["../src/components/page-selectors/page-selector/partials/current-page/current-page.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { CurrentPageProps as Props } from \"./interfaces\";\n\nexport const CurrentPage: React.FC<Props> = (props) => {\n const { currentPage } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderColor: \"cl_lightGrey\",\n borderWidth: 1,\n borderStyle: \"solid\",\n borderRadius: \"3px\",\n height: \"30px\",\n minWidth: \"30px\",\n }}\n >\n {currentPage}\n </ResponsiveTextV2>\n );\n};\n"],"names":["CurrentPage","props","currentPage","jsx","ResponsiveTextV2"],"mappings":";;AAKa,MAAAA,IAA+B,CAACC,MAAU;AAC/C,QAAA,EAAE,aAAAC,EAAgB,IAAAD;AAGtB,SAAAE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,MAC9B,IAAI;AAAA,QACF,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,aAAa;AAAA,QACb,aAAa;AAAA,QACb,aAAa;AAAA,QACb,cAAc;AAAA,QACd,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MAEC,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
disabled: t
|
|
12
|
-
} = r;
|
|
13
|
-
return /* @__PURE__ */ n.jsx(
|
|
14
|
-
a,
|
|
1
|
+
import { j as i } from "./sd-component-library195.js";
|
|
2
|
+
import { FlexCenter as l } from "./sd-component-library35.js";
|
|
3
|
+
const x = ({
|
|
4
|
+
children: t,
|
|
5
|
+
disabled: o,
|
|
6
|
+
onClick: e
|
|
7
|
+
}) => {
|
|
8
|
+
const r = o ? "cl_lightGrey" : "cl_blue";
|
|
9
|
+
return /* @__PURE__ */ i.jsx(
|
|
10
|
+
l,
|
|
15
11
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
children:
|
|
12
|
+
height: "100%",
|
|
13
|
+
sx: {
|
|
14
|
+
borderWidth: "2px",
|
|
15
|
+
borderColor: r,
|
|
16
|
+
borderStyle: "solid",
|
|
17
|
+
borderRadius: "5px",
|
|
18
|
+
fill: r
|
|
19
|
+
},
|
|
20
|
+
onClick: o ? void 0 : e,
|
|
21
|
+
children: t
|
|
26
22
|
}
|
|
27
23
|
);
|
|
28
24
|
};
|
|
29
25
|
export {
|
|
30
|
-
|
|
26
|
+
x as PaginationBarButton
|
|
31
27
|
};
|
|
32
28
|
//# sourceMappingURL=sd-component-library260.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library260.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library260.js","sources":["../src/components/pagination-bars/pagination-bar-mobile/partials/pagination-bar-button/pagination-bar-button.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { FlexCenter } from \"../../../../containers\";\nimport { PaginationBarButtonProps as Props } from \"./interfaces\";\n\nexport const PaginationBarButton: React.FC<PropsWithChildren<Props>> = ({\n children,\n disabled,\n onClick,\n}) => {\n const color = disabled ? \"cl_lightGrey\" : \"cl_blue\";\n return (\n <FlexCenter\n height=\"100%\"\n sx={{\n borderWidth: \"2px\",\n borderColor: color,\n borderStyle: \"solid\",\n borderRadius: \"5px\",\n fill: color,\n }}\n onClick={disabled ? undefined : onClick}\n >\n {children}\n </FlexCenter>\n );\n};\n"],"names":["PaginationBarButton","children","disabled","onClick","color","jsx","FlexCenter"],"mappings":";;AAKO,MAAMA,IAA0D,CAAC;AAAA,EACtE,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AACF,MAAM;AACE,QAAAC,IAAQF,IAAW,iBAAiB;AAExC,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAO;AAAA,MACP,IAAI;AAAA,QACF,aAAa;AAAA,QACb,aAAaF;AAAA,QACb,aAAa;AAAA,QACb,cAAc;AAAA,QACd,MAAMA;AAAA,MACR;AAAA,MACA,SAASF,IAAW,SAAYC;AAAA,MAE/B,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { ResponsiveTextV2 as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
);
|
|
23
|
-
};
|
|
1
|
+
import { j as r } from "./sd-component-library195.js";
|
|
2
|
+
import { ResponsiveTextV2 as t } from "./sd-component-library149.js";
|
|
3
|
+
const n = ({
|
|
4
|
+
children: e
|
|
5
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
6
|
+
t,
|
|
7
|
+
{
|
|
8
|
+
fontSizeWeight: [18, "regular"],
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
height: "100%",
|
|
14
|
+
borderRadius: "5px",
|
|
15
|
+
borderWidth: "1px",
|
|
16
|
+
borderColor: "cl_lightGrey",
|
|
17
|
+
borderStyle: "solid"
|
|
18
|
+
},
|
|
19
|
+
children: e
|
|
20
|
+
}
|
|
21
|
+
);
|
|
24
22
|
export {
|
|
25
|
-
|
|
23
|
+
n as PaginationBarCurrentPage
|
|
26
24
|
};
|
|
27
25
|
//# sourceMappingURL=sd-component-library261.js.map
|