@selfdecode/sd-component-library 4.0.137 → 4.0.139
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/buttons/button/interfaces.d.ts +1 -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-library104.js +2 -2
- package/lib/sd-component-library106.js +4 -4
- package/lib/sd-component-library111.js +1 -1
- 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 +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library129.js +1 -1
- package/lib/sd-component-library16.js +1 -1
- package/lib/sd-component-library167.js +1 -1
- package/lib/sd-component-library168.js +1 -1
- package/lib/sd-component-library171.js +1 -1
- package/lib/sd-component-library172.js +1 -1
- package/lib/sd-component-library197.js +3 -3
- package/lib/sd-component-library200.js +2 -60
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +30 -2
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +590 -21
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +3 -599
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +26 -3
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +55 -52
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library212.js +33 -19
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +127 -38
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +13 -26
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +3 -129
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +52 -13
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +63 -12
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +2 -2
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +46 -3
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +14 -3
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +3 -52
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +3 -65
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +17 -3
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +24 -44
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +3 -17
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +31 -3
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +19 -31
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +20 -19
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +28 -20
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +32 -27
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +3 -33
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +129 -3
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +43 -129
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +45 -41
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +7 -46
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +21 -8
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +103 -58
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +41 -37
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +23 -12
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +103 -100
- package/lib/sd-component-library24.js.map +1 -1
- package/lib/sd-component-library240.js +53 -21
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +58 -103
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +37 -41
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +12 -23
- 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 +26 -60
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +27 -41
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +21 -27
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +20 -2
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +2 -21
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +56 -19
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +23 -323
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +3 -5
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +21 -24
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +1 -1
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +324 -21
- 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-library260.js +30 -51
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +51 -30
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +1 -1
- package/lib/sd-component-library271.js +2 -9
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +2 -2
- package/lib/sd-component-library273.js +9 -2
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library277.js +2 -6
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +2 -2
- package/lib/sd-component-library279.js +70 -2
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +101 -69
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +95 -91
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +10 -106
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +6 -10
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library286.js +1 -1
- package/lib/sd-component-library311.js +2 -2
- package/lib/sd-component-library312.js +33 -91
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library313.js +91 -33
- package/lib/sd-component-library313.js.map +1 -1
- package/lib/sd-component-library318.js +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-library7.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-library85.js +1 -1
- package/lib/sd-component-library86.js +6 -6
- package/lib/sd-component-library87.js +2 -2
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +5 -5
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library92.js +6 -6
- package/lib/sd-component-library93.js +1 -1
- package/lib/sd-component-library94.js +7 -7
- package/lib/sd-component-library95.js +1 -1
- package/lib/sd-component-library98.js +2 -2
- package/lib/sd-component-library99.js +3 -3
- package/package.json +1 -1
|
@@ -1,78 +1,44 @@
|
|
|
1
1
|
import { j as n } from "./sd-component-library197.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
size: i,
|
|
11
|
-
mobile: a,
|
|
12
|
-
...c
|
|
2
|
+
import g from "./sd-component-library196.js";
|
|
3
|
+
import { getSegmentCoordinates as I } from "./sd-component-library244.js";
|
|
4
|
+
const w = ({
|
|
5
|
+
segment: e,
|
|
6
|
+
size: o,
|
|
7
|
+
segmentWidth: s,
|
|
8
|
+
outlineWidth: c,
|
|
9
|
+
isMatching: a
|
|
13
10
|
}) => {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} =
|
|
25
|
-
|
|
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: [
|
|
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: [
|
|
34
23
|
/* @__PURE__ */ n.jsx(
|
|
35
24
|
"path",
|
|
36
25
|
{
|
|
37
|
-
d: `M${r},${r} L${
|
|
38
|
-
fill:
|
|
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,
|
|
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,
|
|
47
29
|
stroke: "white"
|
|
48
30
|
}
|
|
49
31
|
),
|
|
50
32
|
/* @__PURE__ */ n.jsx(
|
|
51
33
|
"path",
|
|
52
34
|
{
|
|
53
|
-
d: `M${r},${r} L${
|
|
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
|
|
35
|
+
d: `M${r},${r} L${h},${p} A${$},${$} 0 ${i > 180 ? "1" : "0"},1 ${x},${u}Z`,
|
|
36
|
+
fill: "white"
|
|
71
37
|
}
|
|
72
38
|
)
|
|
73
39
|
] });
|
|
74
40
|
};
|
|
75
41
|
export {
|
|
76
|
-
|
|
42
|
+
w as CompactDonutGaugeSegment
|
|
77
43
|
};
|
|
78
44
|
//# sourceMappingURL=sd-component-library246.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library246.js","sources":["../src/components/meters/donut-
|
|
1
|
+
{"version":3,"file":"sd-component-library246.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;AAAA,EACN,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AACF,MAAM;AACE,QAAA,EAAE,OAAAC,EAAU,IAAAL,GAEZM,IAASL,IAAW,GACpBM,IAAcD,IAASJ,GAEvB;AAAA,IACJ,QAAAM;AAAA,IACA,QAAAC;AAAA,IACA,KAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,EACE,IAAAC,EAAsBjB,GAASM,GAAQJ,CAAY,GAEjDgB,IAASjB,IAAW;AAE1B,gCACG,KAEC,EAAA,UAAA;AAAA,IAAAkB,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAID,CAAM,IAAIA,CAAM,KAAKV,CAAM,IAAIC,CAAM,KAAKH,CAAM,IAAIA,CAAM,MAC/DI,IAAM,MAAM,MAAM,GACpB,MAAMK,CAAI,IAAIC,CAAI;AAAA,QAClB,MAAMZ,IAAaC,IAAQe,EAAM,OAAO;AAAA,QACxC,aAAajB;AAAA,QACb,QAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAGAgB,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAID,CAAM,IAAIA,CAAM,KAAKN,CAAW,IAAID,CAAW,KAAKJ,CAAW,IAAIA,CAAW,MACnFG,IAAM,MAAM,MAAM,GACpB,MAAMI,CAAS,IAAID,CAAS;AAAA,QAC5B,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,44 +1,30 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
segment: e,
|
|
6
|
-
size: o
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
};
|
|
1
|
+
import { j as t } from "./sd-component-library197.js";
|
|
2
|
+
import { FlexCenter as s } from "./sd-component-library34.js";
|
|
3
|
+
import { ResponsiveTextV2 as i } from "./sd-component-library150.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: "%"
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
) }) });
|
|
41
27
|
export {
|
|
42
|
-
|
|
28
|
+
l as CompactDonutGaugeValueIndicator
|
|
43
29
|
};
|
|
44
30
|
//# sourceMappingURL=sd-component-library247.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library247.js","sources":["../src/components/meters/compact-donut-gauge/partials/compact-donut-gauge-
|
|
1
|
+
{"version":3,"file":"sd-component-library247.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,30 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children: "%"
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
) }) });
|
|
1
|
+
import { j as x } from "./sd-component-library197.js";
|
|
2
|
+
import { Box as n } from "rebass";
|
|
3
|
+
const $ = ({
|
|
4
|
+
idx: o,
|
|
5
|
+
color: t,
|
|
6
|
+
total: i,
|
|
7
|
+
segmentHeight: r
|
|
8
|
+
}) => {
|
|
9
|
+
const s = `${o === 0 ? r / 2 : 0}px`, a = `${o === i - 1 ? r / 2 : 0}px`;
|
|
10
|
+
return /* @__PURE__ */ x.jsx(
|
|
11
|
+
n,
|
|
12
|
+
{
|
|
13
|
+
bg: t,
|
|
14
|
+
height: r,
|
|
15
|
+
sx: {
|
|
16
|
+
borderRadius: `${s} ${[...Array(2)].fill(a).join(" ")} ${s}`
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
27
21
|
export {
|
|
28
|
-
|
|
22
|
+
$ as LinearGaugeSegment
|
|
29
23
|
};
|
|
30
24
|
//# sourceMappingURL=sd-component-library248.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library248.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library248.js","sources":["../src/components/meters/linear-gauge-meter-partials/linear-gauge-segment/linear-gauge-segment.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { LinearGaugeSegmentProps as Props } from \"./interfaces\";\n\nexport const LinearGaugeSegment: React.FC<Props> = ({\n idx,\n color,\n total,\n segmentHeight,\n}) => {\n const leftRadius = `${idx === 0 ? segmentHeight / 2 : 0}px`;\n const rightRadius = `${idx === total - 1 ? segmentHeight / 2 : 0}px`;\n\n return (\n <Box\n bg={color}\n height={segmentHeight}\n sx={{\n borderRadius: `${leftRadius} ${[...Array(2)]\n .fill(rightRadius)\n .join(\" \")} ${leftRadius}`,\n }}\n />\n );\n};\n"],"names":["LinearGaugeSegment","idx","color","total","segmentHeight","leftRadius","rightRadius","jsx","Box"],"mappings":";;AAMO,MAAMA,IAAsC,CAAC;AAAA,EAClD,KAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAMC,IAAa,GAAGJ,MAAQ,IAAIG,IAAgB,IAAI,CAAC,MACjDE,IAAc,GAAGL,MAAQE,IAAQ,IAAIC,IAAgB,IAAI,CAAC;AAG9D,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAIN;AAAA,MACJ,QAAQE;AAAA,MACR,IAAI;AAAA,QACF,cAAc,GAAGC,CAAU,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,EACxC,KAAKC,CAAW,EAChB,KAAK,GAAG,CAAC,IAAID,CAAU;AAAA,MAC5B;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as o } from "./sd-component-library197.js";
|
|
2
|
+
import { ResponsiveTextV2 as r } from "./sd-component-library150.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
text: e,
|
|
5
|
+
color: t,
|
|
6
|
+
...i
|
|
7
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
8
|
+
r,
|
|
9
|
+
{
|
|
10
|
+
height: "12px",
|
|
11
|
+
fontSizeWeight: [10, "semi-bold"],
|
|
12
|
+
color: t,
|
|
13
|
+
mx: "auto",
|
|
14
|
+
maxWidth: "100%",
|
|
15
|
+
textAlign: "center",
|
|
16
|
+
...i,
|
|
17
|
+
children: e
|
|
18
|
+
}
|
|
19
|
+
);
|
|
2
20
|
export {
|
|
3
|
-
|
|
21
|
+
m as LinearGaugeLabel
|
|
4
22
|
};
|
|
5
23
|
//# sourceMappingURL=sd-component-library249.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library249.js","sources":["../src/components/meters/linear-
|
|
1
|
+
{"version":3,"file":"sd-component-library249.js","sources":["../src/components/meters/linear-gauge-meter-partials/linear-gauge-label/linear-gauge-label.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../texts\";\nimport { LinearGaugeLabelProps as Props } from \"./interfaces\";\n\nexport const LinearGaugeLabel: React.FC<Props> = ({\n text,\n color,\n ...restOfProps\n}) => {\n return (\n <ResponsiveTextV2\n height=\"12px\"\n fontSizeWeight={[10, \"semi-bold\"]}\n color={color}\n mx=\"auto\"\n maxWidth=\"100%\"\n textAlign=\"center\"\n {...restOfProps}\n >\n {text}\n </ResponsiveTextV2>\n );\n};\n"],"names":["LinearGaugeLabel","text","color","restOfProps","jsx","ResponsiveTextV2"],"mappings":";;AAKO,MAAMA,IAAoC,CAAC;AAAA,EAChD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,GAAGC;AACL,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,QAAO;AAAA,IACP,gBAAgB,CAAC,IAAI,WAAW;AAAA,IAChC,OAAAH;AAAA,IACA,IAAG;AAAA,IACH,UAAS;AAAA,IACT,WAAU;AAAA,IACT,GAAGC;AAAA,IAEH,UAAAF;AAAA,EAAA;AAAA;"}
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box as n } from "rebass";
|
|
3
|
-
const $ = ({
|
|
4
|
-
idx: o,
|
|
5
|
-
color: t,
|
|
6
|
-
total: i,
|
|
7
|
-
segmentHeight: r
|
|
8
|
-
}) => {
|
|
9
|
-
const s = `${o === 0 ? r / 2 : 0}px`, a = `${o === i - 1 ? r / 2 : 0}px`;
|
|
10
|
-
return /* @__PURE__ */ x.jsx(
|
|
11
|
-
n,
|
|
12
|
-
{
|
|
13
|
-
bg: t,
|
|
14
|
-
height: r,
|
|
15
|
-
sx: {
|
|
16
|
-
borderRadius: `${s} ${[...Array(2)].fill(a).join(" ")} ${s}`
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
1
|
+
const i = ({ start: g, end: t }, c) => c >= g && (t === 1 ? c <= t : c < t);
|
|
21
2
|
export {
|
|
22
|
-
|
|
3
|
+
i as isMatchingRange
|
|
23
4
|
};
|
|
24
5
|
//# sourceMappingURL=sd-component-library250.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library250.js","sources":["../src/components/meters/linear-gauge-meter
|
|
1
|
+
{"version":3,"file":"sd-component-library250.js","sources":["../src/components/meters/linear-numeric-gauge-meter/utils.ts"],"sourcesContent":["import { LinearNumericGaugeMeterSegment } from \"./interfaces\";\n\nexport const isMatchingRange = (\n { start, end }: Pick<LinearNumericGaugeMeterSegment, \"start\" | \"end\">,\n value: number\n) => value >= start && (end === 1 ? value <= end : value < end);\n"],"names":["isMatchingRange","start","end","value"],"mappings":"AAEO,MAAMA,IAAkB,CAC7B,EAAE,OAAAC,GAAO,KAAAC,EAAI,GACbC,MACGA,KAASF,MAAUC,MAAQ,IAAIC,KAASD,IAAMC,IAAQD;"}
|
|
@@ -1,23 +1,60 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
color: t,
|
|
6
|
-
...i
|
|
7
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
8
|
-
r,
|
|
1
|
+
import { j as t } from "./sd-component-library197.js";
|
|
2
|
+
import { Crumb as c } from "./sd-component-library17.js";
|
|
3
|
+
const l = (s, h, p) => s.map(({ title: e, dontTranslate: r, onClick: u }, o) => /* @__PURE__ */ t.jsx(
|
|
4
|
+
c,
|
|
9
5
|
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
)
|
|
6
|
+
variant: h,
|
|
7
|
+
crumb: { title: e, dontTranslate: r },
|
|
8
|
+
isLast: o === s.length - 1,
|
|
9
|
+
textTransform: p,
|
|
10
|
+
onClick: u
|
|
11
|
+
},
|
|
12
|
+
e + o
|
|
13
|
+
)), a = (s, h, p) => {
|
|
14
|
+
const e = [];
|
|
15
|
+
return s.slice(0, 2).forEach(({ title: r, dontTranslate: u, onClick: o }, m) => {
|
|
16
|
+
e.push(
|
|
17
|
+
/* @__PURE__ */ t.jsx(
|
|
18
|
+
c,
|
|
19
|
+
{
|
|
20
|
+
variant: h,
|
|
21
|
+
crumb: { title: r, dontTranslate: u },
|
|
22
|
+
isLast: !1,
|
|
23
|
+
textTransform: p,
|
|
24
|
+
onClick: o
|
|
25
|
+
},
|
|
26
|
+
r + m
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
}), e.push(
|
|
30
|
+
/* @__PURE__ */ t.jsx(
|
|
31
|
+
c,
|
|
32
|
+
{
|
|
33
|
+
variant: h,
|
|
34
|
+
crumb: { title: "..." },
|
|
35
|
+
isLast: !1,
|
|
36
|
+
textTransform: p
|
|
37
|
+
},
|
|
38
|
+
"..."
|
|
39
|
+
)
|
|
40
|
+
), s.slice(s.length - 2, s.length).forEach(({ title: r, onClick: u, dontTranslate: o }, m) => {
|
|
41
|
+
e.push(
|
|
42
|
+
/* @__PURE__ */ t.jsx(
|
|
43
|
+
c,
|
|
44
|
+
{
|
|
45
|
+
variant: h,
|
|
46
|
+
crumb: { title: r, dontTranslate: o },
|
|
47
|
+
isLast: m === 1,
|
|
48
|
+
textTransform: p,
|
|
49
|
+
onClick: u
|
|
50
|
+
},
|
|
51
|
+
r + m
|
|
52
|
+
)
|
|
53
|
+
);
|
|
54
|
+
}), e;
|
|
55
|
+
};
|
|
20
56
|
export {
|
|
21
|
-
|
|
57
|
+
a as renderMoreThanFiveCrumbs,
|
|
58
|
+
l as renderUpToFiveCrumbs
|
|
22
59
|
};
|
|
23
60
|
//# sourceMappingURL=sd-component-library251.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library251.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library251.js","sources":["../src/components/breadcrumbs/breadcrumb/functions.tsx"],"sourcesContent":["import React, { CSSProperties } from \"react\";\n\nimport { Crumb, CrumbType } from \"./crumb\";\n\nexport const renderUpToFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n return crumbs.map(({ title, dontTranslate, onClick }, index: number) => (\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === crumbs.length - 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n ));\n};\n\nexport const renderMoreThanFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n const elements: JSX.Element[] = [];\n\n crumbs\n .slice(0, 2)\n .forEach(({ title, dontTranslate, onClick }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={false}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title: \"...\" }}\n isLast={false}\n textTransform={textTransform}\n key=\"...\"\n />\n );\n\n crumbs\n .slice(crumbs.length - 2, crumbs.length)\n .forEach(({ title, onClick, dontTranslate }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n return elements;\n};\n"],"names":["renderUpToFiveCrumbs","crumbs","variant","textTransform","title","dontTranslate","onClick","index","jsx","Crumb","renderMoreThanFiveCrumbs","elements"],"mappings":";;AAIO,MAAMA,IAAuB,CAClCC,GACAC,GACAC,MAEOF,EAAO,IAAI,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAA,GAAWC,MACpDC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAAP;AAAA,IACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,IAC9B,QAAQE,MAAUN,EAAO,SAAS;AAAA,IAElC,eAAAE;AAAA,IACA,SAAAG;AAAA,EAAA;AAAA,EAFKF,IAAQG;AAAA,CAIhB,GAGUG,IAA2B,CACtCT,GACAC,GACAC,MACG;AACH,QAAMQ,IAA0B,CAAA;AAG7B,SAAAV,EAAA,MAAM,GAAG,CAAC,EACV,QAAQ,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAQ,GAAGC,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQ;AAAA,UAER,eAAAF;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACMI,EAAA;AAAA,IACPH,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAAP;AAAA,QACA,OAAO,EAAE,OAAO,MAAM;AAAA,QACtB,QAAQ;AAAA,QACR,eAAAC;AAAA,MAAA;AAAA,MACI;AAAA,IACN;AAAA,EAAA,GAGFF,EACG,MAAMA,EAAO,SAAS,GAAGA,EAAO,MAAM,EACtC,QAAQ,CAAC,EAAE,OAAAG,GAAO,SAAAE,GAAS,eAAAD,EAAA,GAAiBE,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQE,MAAU;AAAA,UAElB,eAAAJ;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACII;AACT;"}
|