@selfdecode/sd-component-library 4.0.108 → 4.0.110
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/sd-component-library119.js +1 -1
- package/lib/sd-component-library120.js +1 -1
- package/lib/sd-component-library122.js +1 -1
- package/lib/sd-component-library123.js +1 -1
- package/lib/sd-component-library128.js +1 -1
- package/lib/sd-component-library129.js +1 -1
- 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-library198.js +3 -3
- package/lib/sd-component-library202.js +2 -3
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +30 -2
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +590 -21
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +3 -599
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library212.js +62 -19
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +23 -3
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +21 -3
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +3 -64
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +3 -23
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library218.js +1 -1
- package/lib/sd-component-library229.js +26 -3
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +3 -31
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +3 -19
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +31 -20
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +19 -28
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +19 -32
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +28 -26
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +33 -3
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +2 -2
- package/lib/sd-component-library240.js +1 -1
- package/lib/sd-component-library241.js +21 -64
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +107 -41
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +46 -12
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +24 -21
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +47 -103
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +63 -46
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +43 -24
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +12 -52
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library250.js +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 +13 -43
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +112 -118
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +105 -57
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +9 -75
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +50 -30
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +29 -20
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +44 -118
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +113 -104
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +73 -9
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +68 -42
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library282.js +6 -10
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library288.js +10 -6
- package/lib/sd-component-library288.js.map +1 -1
- package/lib/sd-component-library291.js +1 -1
- package/lib/sd-component-library316.js +88 -20
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +1 -1
- package/lib/sd-component-library319.js +20 -88
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library325.js +90 -32
- package/lib/sd-component-library325.js.map +1 -1
- package/lib/sd-component-library326.js +32 -90
- package/lib/sd-component-library326.js.map +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-library6.js +1 -1
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library66.js +1 -1
- package/lib/sd-component-library7.js +1 -1
- package/lib/sd-component-library71.js +47 -42
- package/lib/sd-component-library71.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 +1 -1
- package/lib/sd-component-library92.js +1 -1
- package/lib/sd-component-library94.js +5 -5
- package/lib/sd-component-library95.js +1 -1
- package/lib/sd-component-library96.js +6 -6
- package/lib/sd-component-library97.js +1 -1
- package/package.json +2 -2
|
@@ -1,50 +1,67 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { j as a } from "./sd-component-library198.js";
|
|
2
|
+
import { getCoordinateForArc as i } from "./sd-component-library93.js";
|
|
3
|
+
import { defaultTextBottomMargin as X } from "./sd-component-library231.js";
|
|
4
|
+
import { getRangeProperties as Y } from "./sd-component-library320.js";
|
|
5
|
+
import { BaseOutlineArc as b } from "./sd-component-library319.js";
|
|
6
|
+
import { DiscreteMeterLabelPointer as w } from "./sd-component-library321.js";
|
|
7
|
+
function z(s) {
|
|
6
8
|
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
),
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
9
|
+
color: n,
|
|
10
|
+
idx: c,
|
|
11
|
+
gaugeWidth: d,
|
|
12
|
+
diameter: g,
|
|
13
|
+
arc: m,
|
|
14
|
+
distanceBetweenRanges: l,
|
|
15
|
+
totalRanges: p,
|
|
16
|
+
showLabel: h,
|
|
17
|
+
label: o,
|
|
18
|
+
isMatchedRange: x,
|
|
19
|
+
pointerWidth: f,
|
|
20
|
+
pointerLength: A,
|
|
21
|
+
horizontal: u
|
|
22
|
+
} = s, t = g / 2, { rangeArcStart: r, rangeArcEnd: e } = Y(
|
|
23
|
+
m,
|
|
24
|
+
p,
|
|
25
|
+
l,
|
|
26
|
+
c
|
|
27
|
+
), { x: R, y: j } = i(
|
|
28
|
+
t,
|
|
29
|
+
r
|
|
30
|
+
), { x: B, y: E } = i(
|
|
31
|
+
t,
|
|
32
|
+
e
|
|
33
|
+
), M = (r + e) / 2;
|
|
34
|
+
return /* @__PURE__ */ a.jsxs("g", { children: [
|
|
35
|
+
/* @__PURE__ */ a.jsx(
|
|
36
|
+
b,
|
|
37
|
+
{
|
|
38
|
+
startX: R,
|
|
39
|
+
startY: j,
|
|
40
|
+
endX: B,
|
|
41
|
+
endY: E,
|
|
42
|
+
startAlpha: r,
|
|
43
|
+
endAlpha: e,
|
|
44
|
+
color: n,
|
|
45
|
+
radius: t,
|
|
46
|
+
width: d
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
h && o && !x && /* @__PURE__ */ a.jsx(
|
|
50
|
+
w,
|
|
51
|
+
{
|
|
52
|
+
alpha: M,
|
|
53
|
+
pointerLength: A,
|
|
54
|
+
pointerWidth: f,
|
|
55
|
+
radius: t,
|
|
56
|
+
color: n,
|
|
57
|
+
textBottomMargin: X,
|
|
58
|
+
label: o,
|
|
59
|
+
horizontal: u
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
47
64
|
export {
|
|
48
|
-
|
|
65
|
+
z as DiscreteRange
|
|
49
66
|
};
|
|
50
67
|
//# sourceMappingURL=sd-component-library246.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library246.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library246.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/discrete-range.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseOutlineArc } from \"../../../outline-meter/partials/base-outline-arc\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { defaultTextBottomMargin } from \"../../constants\";\nimport { getRangeProperties } from \"../../utils\";\nimport { DiscreteMeterLabelPointer } from \"../discrete-meter-label-pointer\";\nimport { DiscreteRangeProps as Props } from \"./interfaces\";\n\nexport function DiscreteRange<T>(props: PropsWithChildren<Props<T>>) {\n const {\n color,\n idx,\n gaugeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n totalRanges,\n showLabel,\n label,\n isMatchedRange,\n pointerWidth,\n pointerLength,\n horizontal,\n } = props;\n\n const radius = diameter / 2;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const { x: rangeStartX, y: rangeStartY } = getCoordinateForArc(\n radius,\n rangeArcStart\n );\n const { x: rangeEndX, y: rangeEndY } = getCoordinateForArc(\n radius,\n rangeArcEnd\n );\n\n const middleArcAlpha = (rangeArcStart + rangeArcEnd) / 2;\n\n return (\n <g>\n <BaseOutlineArc\n startX={rangeStartX}\n startY={rangeStartY}\n endX={rangeEndX}\n endY={rangeEndY}\n startAlpha={rangeArcStart}\n endAlpha={rangeArcEnd}\n color={color}\n radius={radius}\n width={gaugeWidth}\n />\n\n {showLabel && label && !isMatchedRange && (\n <DiscreteMeterLabelPointer\n alpha={middleArcAlpha}\n pointerLength={pointerLength}\n pointerWidth={pointerWidth}\n radius={radius}\n color={color}\n textBottomMargin={defaultTextBottomMargin}\n label={label}\n horizontal={horizontal}\n />\n )}\n </g>\n );\n}\n"],"names":["DiscreteRange","props","color","idx","gaugeWidth","diameter","arc","distanceBetweenRanges","totalRanges","showLabel","label","isMatchedRange","pointerWidth","pointerLength","horizontal","radius","rangeArcStart","rangeArcEnd","getRangeProperties","rangeStartX","rangeStartY","getCoordinateForArc","rangeEndX","rangeEndY","middleArcAlpha","jsx","BaseOutlineArc","DiscreteMeterLabelPointer","defaultTextBottomMargin"],"mappings":";;;;;;AASO,SAASA,EAAiBC,GAAoC;AAC7D,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAb,GAEEc,IAASV,IAAW,GAEpB,EAAE,eAAAW,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCZ;AAAA,IACAE;AAAA,IACAD;AAAA,IACAJ;AAAA,EAAA,GAGI,EAAE,GAAGgB,GAAa,GAAGC,EAAgB,IAAAC;AAAA,IACzCN;AAAA,IACAC;AAAA,EAAA,GAEI,EAAE,GAAGM,GAAW,GAAGC,EAAc,IAAAF;AAAA,IACrCN;AAAA,IACAE;AAAA,EAAA,GAGIO,KAAkBR,IAAgBC,KAAe;AAEvD,gCACG,KACC,EAAA,UAAA;AAAA,IAAAQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QAAQP;AAAA,QACR,QAAQC;AAAA,QACR,MAAME;AAAA,QACN,MAAMC;AAAA,QACN,YAAYP;AAAA,QACZ,UAAUC;AAAA,QACV,OAAAf;AAAA,QACA,QAAAa;AAAA,QACA,OAAOX;AAAA,MAAA;AAAA,IACT;AAAA,IAECK,KAAaC,KAAS,CAACC,KACtBc,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,OAAOH;AAAA,QACP,eAAAX;AAAA,QACA,cAAAD;AAAA,QACA,QAAAG;AAAA,QACA,OAAAb;AAAA,QACA,kBAAkB0B;AAAA,QAClB,OAAAlB;AAAA,QACA,YAAAI;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,27 +1,46 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { j as M } from "./sd-component-library198.js";
|
|
2
|
+
import { getInnerX as T, getInnerY as W, degToRad as r, getCoordinateForArc as y } from "./sd-component-library93.js";
|
|
3
|
+
import { BaseNeedle as B } from "./sd-component-library318.js";
|
|
4
|
+
function E(p) {
|
|
5
|
+
const {
|
|
6
|
+
needleColor: u,
|
|
7
|
+
options: n,
|
|
8
|
+
value: h,
|
|
9
|
+
needleWidth: e,
|
|
10
|
+
innerCircleRadius: m,
|
|
11
|
+
innerCircleStrokeWidth: x,
|
|
12
|
+
diameter: R,
|
|
13
|
+
arc: a,
|
|
14
|
+
distanceBetweenRanges: c,
|
|
15
|
+
distanceFromRange: s,
|
|
16
|
+
gaugeWidth: i
|
|
17
|
+
} = p, o = n.findIndex(
|
|
18
|
+
(F) => h === F.value
|
|
19
|
+
), d = R / 2, f = (360 - a) / 2, l = a - (n.length - 1) * c, g = o / n.length, v = (o + 1) / n.length, A = l * (v - g), t = f + c * o + l * g + A / 2, { x: C, y: I } = y(d, t), S = T(
|
|
20
|
+
C,
|
|
21
|
+
r(t),
|
|
22
|
+
s + i + e / 2
|
|
23
|
+
), X = W(
|
|
24
|
+
I,
|
|
25
|
+
r(t),
|
|
26
|
+
s + i + e / 2
|
|
27
|
+
), Y = e / 2 * Math.cos(r(t)), j = e / 2 * Math.sin(r(t));
|
|
28
|
+
return /* @__PURE__ */ M.jsx(
|
|
29
|
+
B,
|
|
30
|
+
{
|
|
31
|
+
dx: Y,
|
|
32
|
+
dy: j,
|
|
33
|
+
color: u,
|
|
34
|
+
radius: d,
|
|
35
|
+
tipX: S,
|
|
36
|
+
tipY: X,
|
|
37
|
+
innerCircleStrokeWidth: x,
|
|
38
|
+
innerCircleRadius: m,
|
|
39
|
+
needleWidth: e
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
24
43
|
export {
|
|
25
|
-
|
|
44
|
+
E as DiscreteMeterNeedle
|
|
26
45
|
};
|
|
27
46
|
//# sourceMappingURL=sd-component-library247.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library247.js","sources":["../src/components/meters/outline-meter/partials/
|
|
1
|
+
{"version":3,"file":"sd-component-library247.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/discrete-meter-needle.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseNeedle } from \"../../../outline-meter/partials/base-needle\";\nimport {\n degToRad,\n getCoordinateForArc,\n getInnerX,\n getInnerY,\n} from \"../../../outline-meter/utils\";\nimport { DiscreteMeterNeedleProps as Props } from \"./interfaces\";\n\nexport function DiscreteMeterNeedle<T>(props: PropsWithChildren<Props<T>>) {\n const {\n needleColor,\n options,\n value,\n needleWidth,\n innerCircleRadius,\n innerCircleStrokeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n distanceFromRange,\n gaugeWidth,\n } = props;\n\n const matchingRangeIndex = options.findIndex(\n (option) => value === option.value\n );\n\n const radius = diameter / 2;\n\n const arcStart = (360 - arc) / 2;\n const arcForRanges = arc - (options.length - 1) * distanceBetweenRanges;\n\n const start = matchingRangeIndex / options.length;\n const end = (matchingRangeIndex + 1) / options.length;\n\n const rangeArc = arcForRanges * (end - start);\n\n const rangeArcStart =\n arcStart +\n distanceBetweenRanges * matchingRangeIndex +\n arcForRanges * start;\n\n const valueAlpha = rangeArcStart + rangeArc / 2;\n const { x: valueX, y: valueY } = getCoordinateForArc(radius, valueAlpha);\n\n const needleTipX = getInnerX(\n valueX,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n const needleTipY = getInnerY(\n valueY,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n\n const dx = (needleWidth / 2) * Math.cos(degToRad(valueAlpha));\n const dy = (needleWidth / 2) * Math.sin(degToRad(valueAlpha));\n\n return (\n <BaseNeedle\n dx={dx}\n dy={dy}\n color={needleColor}\n radius={radius}\n tipX={needleTipX}\n tipY={needleTipY}\n innerCircleStrokeWidth={innerCircleStrokeWidth}\n innerCircleRadius={innerCircleRadius}\n needleWidth={needleWidth}\n />\n );\n}\n"],"names":["DiscreteMeterNeedle","props","needleColor","options","value","needleWidth","innerCircleRadius","innerCircleStrokeWidth","diameter","arc","distanceBetweenRanges","distanceFromRange","gaugeWidth","matchingRangeIndex","option","radius","arcStart","arcForRanges","start","end","rangeArc","valueAlpha","valueX","valueY","getCoordinateForArc","needleTipX","getInnerX","degToRad","needleTipY","getInnerY","dx","dy","jsx","BaseNeedle"],"mappings":";;;AAWO,SAASA,EAAuBC,GAAoC;AACnE,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAX,GAEEY,IAAqBV,EAAQ;AAAA,IACjC,CAACW,MAAWV,MAAUU,EAAO;AAAA,EAAA,GAGzBC,IAASP,IAAW,GAEpBQ,KAAY,MAAMP,KAAO,GACzBQ,IAAeR,KAAON,EAAQ,SAAS,KAAKO,GAE5CQ,IAAQL,IAAqBV,EAAQ,QACrCgB,KAAON,IAAqB,KAAKV,EAAQ,QAEzCiB,IAAWH,KAAgBE,IAAMD,IAOjCG,IAJJL,IACAN,IAAwBG,IACxBI,IAAeC,IAEkBE,IAAW,GACxC,EAAE,GAAGE,GAAQ,GAAGC,MAAWC,EAAoBT,GAAQM,CAAU,GAEjEI,IAAaC;AAAA,IACjBJ;AAAA,IACAK,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAE3CuB,IAAaC;AAAA,IACjBN;AAAA,IACAI,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAG3CyB,IAAMzB,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC,GACtDU,IAAM1B,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC;AAG1D,SAAAW,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAAH;AAAA,MACA,IAAAC;AAAA,MACA,OAAO7B;AAAA,MACP,QAAAa;AAAA,MACA,MAAMU;AAAA,MACN,MAAMG;AAAA,MACN,wBAAArB;AAAA,MACA,mBAAAD;AAAA,MACA,aAAAD;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,56 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isInRange: e,
|
|
13
|
-
color: n
|
|
14
|
-
} = x, i = g(), [c, a] = $(0);
|
|
15
|
-
b(() => {
|
|
16
|
-
i.current && a(i.current.getBoundingClientRect().height);
|
|
17
|
-
}, [i]);
|
|
18
|
-
const h = t === "right" ? `${r + p}px` : t === "top" ? `${r / 2}px` : void 0, m = t === "left" ? `${r + p}px` : void 0, f = t === "left" || t === "right" ? `${r / 2}px` : `${-p}px`;
|
|
19
|
-
return /* @__PURE__ */ s.jsx(l, { sx: { position: "absolute", left: h, top: f, right: m }, children: /* @__PURE__ */ s.jsx(
|
|
20
|
-
l,
|
|
21
|
-
{
|
|
22
|
-
sx: {
|
|
23
|
-
position: "relative",
|
|
24
|
-
top: `-${c}px`,
|
|
25
|
-
left: t === "top" ? "-50%" : void 0,
|
|
26
|
-
py: "7px",
|
|
27
|
-
px: e ? `${o}px` : "0",
|
|
28
|
-
borderColor: e ? n : "cl_lightGrey",
|
|
29
|
-
borderWidth: e ? "2px" : "1pt",
|
|
30
|
-
borderStyle: e ? "solid" : "none",
|
|
31
|
-
borderBottomStyle: !e && t === "top" ? "none" : "solid",
|
|
32
|
-
borderRadius: e ? `${o}px ${o}px ${t !== "left" ? `${o}px` : "0"} ${t !== "right" ? `${o}px` : "0"}` : "0",
|
|
33
|
-
bg: "cl_white",
|
|
34
|
-
"& > div": {
|
|
35
|
-
maxWidth: t === "top" ? void 0 : `${u}px`
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
ref: i,
|
|
39
|
-
children: /* @__PURE__ */ s.jsx(
|
|
40
|
-
v,
|
|
41
|
-
{
|
|
42
|
-
width: "max-content",
|
|
43
|
-
fontSizeWeight: [[12, "semi-bold"]],
|
|
44
|
-
color: e && n !== "#CCD0DB" ? n : "cl_darkGrey",
|
|
45
|
-
textTransform: "uppercase",
|
|
46
|
-
letterSpacing: "1.8px",
|
|
47
|
-
children: d
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
) });
|
|
1
|
+
import { j as g } from "./sd-component-library198.js";
|
|
2
|
+
import { getRangeProperties as d } from "./sd-component-library320.js";
|
|
3
|
+
import { MatchedRangeLabelBox as x } from "./sd-component-library316.js";
|
|
4
|
+
const h = (e) => {
|
|
5
|
+
const { idx: t, totalRanges: a, distanceBetweenRanges: r, arc: n } = e, { rangeArcStart: o, rangeArcEnd: s } = d(
|
|
6
|
+
n,
|
|
7
|
+
a,
|
|
8
|
+
r,
|
|
9
|
+
t
|
|
10
|
+
), c = Math.round((o + s) / 2);
|
|
11
|
+
return /* @__PURE__ */ g.jsx(x, { ...e, alpha: c, round: !0 });
|
|
52
12
|
};
|
|
53
13
|
export {
|
|
54
|
-
|
|
14
|
+
h as MatchedRangeLabelBox
|
|
55
15
|
};
|
|
56
16
|
//# sourceMappingURL=sd-component-library248.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library248.js","sources":["../src/components/meters/outline-meter/partials/
|
|
1
|
+
{"version":3,"file":"sd-component-library248.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { MatchedRangeLabelBox as LabelBox } from \"../../../common-outline-meter-partials\";\nimport { getRangeProperties } from \"../../utils\";\nimport { MatchedRangeLabelBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const { idx, totalRanges, distanceBetweenRanges, arc } = props;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const alpha = Math.round((rangeArcStart + rangeArcEnd) / 2);\n\n return <LabelBox {...props} alpha={alpha} round />;\n};\n"],"names":["MatchedRangeLabelBox","props","idx","totalRanges","distanceBetweenRanges","arc","rangeArcStart","rangeArcEnd","getRangeProperties","alpha","LabelBox"],"mappings":";;;AAMa,MAAAA,IAAwC,CAACC,MAAU;AAC9D,QAAM,EAAE,KAAAC,GAAK,aAAAC,GAAa,uBAAAC,GAAuB,KAAAC,MAAQJ,GAEnD,EAAE,eAAAK,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCH;AAAA,IACAF;AAAA,IACAC;AAAA,IACAF;AAAA,EAAA,GAGIO,IAAQ,KAAK,OAAOH,IAAgBC,KAAe,CAAC;AAE1D,+BAAQG,GAAU,EAAA,GAAGT,GAAO,OAAAQ,GAAc,OAAK,GAAC,CAAA;AAClD;"}
|
|
@@ -2,7 +2,7 @@ import { j as n } from "./sd-component-library198.js";
|
|
|
2
2
|
import { useHover as Z } from "./sd-component-library3.js";
|
|
3
3
|
import { getCoordinateForArc as l } from "./sd-component-library93.js";
|
|
4
4
|
import { getSegmentCoordinates as O } from "./sd-component-library249.js";
|
|
5
|
-
import { SegmentLabel as q } from "./sd-component-
|
|
5
|
+
import { SegmentLabel as q } from "./sd-component-library325.js";
|
|
6
6
|
const h = 300, G = ({
|
|
7
7
|
segment: o,
|
|
8
8
|
segmentWidth: $,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
secondaryText: r,
|
|
7
|
-
textTransform: o,
|
|
8
|
-
...n
|
|
9
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
10
|
-
p,
|
|
1
|
+
import { j as r } from "./sd-component-library198.js";
|
|
2
|
+
import { ReactComponent as s } from "./sd-component-library194.js";
|
|
3
|
+
import { FlexItemsCenter as i } from "./sd-component-library36.js";
|
|
4
|
+
const l = ({ width: e, direction: t, onClick: o }) => /* @__PURE__ */ r.jsx(
|
|
5
|
+
i,
|
|
11
6
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
justifyContent: t === "right" ? "flex-end" : "flex-start",
|
|
8
|
+
sx: {
|
|
9
|
+
position: "absolute",
|
|
10
|
+
...t === "right" ? { right: 0 } : 0,
|
|
11
|
+
top: 0,
|
|
12
|
+
width: e,
|
|
13
|
+
height: "100%",
|
|
14
|
+
stroke: "cl_blue",
|
|
15
|
+
cursor: "pointer",
|
|
16
|
+
bg: "cl_white",
|
|
17
|
+
":hover": { stroke: "cl_purple" },
|
|
18
|
+
zIndex: 1
|
|
19
|
+
},
|
|
20
|
+
onClick: o,
|
|
21
|
+
children: /* @__PURE__ */ r.jsx(
|
|
22
|
+
s,
|
|
23
|
+
{
|
|
24
|
+
width: "18px",
|
|
25
|
+
transform: `rotate(${t === "right" ? 180 : 0})`
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
l as ArrowButton
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=sd-component-library264.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library264.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library264.js","sources":["../src/components/tabs/tab-bar/partials/arrow-button/arrow-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FlexItemsCenter } from \"../../../../containers\";\nimport { ThinArrowLeftIcon } from \"../../../../icons\";\nimport { ArrowButtonProps as Props } from \"./interfaces\";\n\nexport const ArrowButton: React.FC<Props> = ({ width, direction, onClick }) => {\n return (\n <FlexItemsCenter\n justifyContent={direction === \"right\" ? \"flex-end\" : \"flex-start\"}\n sx={{\n position: \"absolute\",\n ...(direction === \"right\" ? { right: 0 } : { left: 0 } ? 0 : undefined),\n top: 0,\n width,\n height: \"100%\",\n stroke: \"cl_blue\",\n cursor: \"pointer\",\n bg: \"cl_white\",\n \":hover\": { stroke: \"cl_purple\" },\n zIndex: 1,\n }}\n onClick={onClick}\n >\n <ThinArrowLeftIcon\n width=\"18px\"\n transform={`rotate(${direction === \"right\" ? 180 : 0})`}\n />\n </FlexItemsCenter>\n );\n};\n"],"names":["ArrowButton","width","direction","onClick","jsx","FlexItemsCenter","ThinArrowLeftIcon"],"mappings":";;;AAMO,MAAMA,IAA+B,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,SAAAC,QAE7DC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,gBAAgBH,MAAc,UAAU,aAAa;AAAA,IACrD,IAAI;AAAA,MACF,UAAU;AAAA,MACV,GAAIA,MAAc,UAAU,EAAE,OAAO,EAAE,IAAkB;AAAA,MACzD,KAAK;AAAA,MACL,OAAAD;AAAA,MACA,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,UAAU,EAAE,QAAQ,YAAY;AAAA,MAChC,QAAQ;AAAA,IACV;AAAA,IACA,SAAAE;AAAA,IAEA,UAAAC,gBAAAA,EAAA;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,WAAW,UAAUJ,MAAc,UAAU,MAAM,CAAC;AAAA,MAAA;AAAA,IACtD;AAAA,EAAA;AAAA;"}
|
|
@@ -1,54 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import s from "react";
|
|
1
|
+
import { j as e } from "./sd-component-library198.js";
|
|
3
2
|
import { Box as n } from "rebass";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const f = ({
|
|
8
|
-
options: t,
|
|
9
|
-
onSelect: l
|
|
10
|
-
}) => {
|
|
11
|
-
const c = (o) => () => l(o);
|
|
12
|
-
return /* @__PURE__ */ r.jsxs(
|
|
3
|
+
const g = ({ width: s, direction: t, offset: o }) => {
|
|
4
|
+
const r = "#000000AA", a = "#00000000";
|
|
5
|
+
return /* @__PURE__ */ e.jsx(
|
|
13
6
|
n,
|
|
14
7
|
{
|
|
15
8
|
sx: {
|
|
16
9
|
position: "absolute",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
t.map((o, e) => /* @__PURE__ */ r.jsxs(s.Fragment, { children: [
|
|
26
|
-
e !== 0 && /* @__PURE__ */ r.jsx(
|
|
27
|
-
i,
|
|
28
|
-
{
|
|
29
|
-
color: "cl_headerLine",
|
|
30
|
-
sx: {
|
|
31
|
-
borderStyle: "none solid",
|
|
32
|
-
borderColor: "cl_lightGrey",
|
|
33
|
-
borderWidth: "1px"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
),
|
|
37
|
-
/* @__PURE__ */ r.jsx(
|
|
38
|
-
x,
|
|
39
|
-
{
|
|
40
|
-
title: o.title,
|
|
41
|
-
onClick: c(o),
|
|
42
|
-
isLast: e === t.length - 1
|
|
43
|
-
},
|
|
44
|
-
o.id
|
|
45
|
-
)
|
|
46
|
-
] }, o.id))
|
|
47
|
-
]
|
|
10
|
+
top: 0,
|
|
11
|
+
left: t === "left" ? o : void 0,
|
|
12
|
+
right: t === "right" ? o : void 0,
|
|
13
|
+
height: "100%",
|
|
14
|
+
width: s,
|
|
15
|
+
background: `transparent linear-gradient(-90deg, ${t === "left" ? a : r} 0%, ${t === "right" ? a : r} 100%) 0% 0% no-repeat padding-box`,
|
|
16
|
+
opacity: 0.05
|
|
17
|
+
}
|
|
48
18
|
}
|
|
49
19
|
);
|
|
50
20
|
};
|
|
51
21
|
export {
|
|
52
|
-
|
|
22
|
+
g as Mask
|
|
53
23
|
};
|
|
54
24
|
//# sourceMappingURL=sd-component-library265.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library265.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library265.js","sources":["../src/components/tabs/tab-bar/partials/mask/mask.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { MaskProps as Props } from \"./interfaces\";\n\nexport const Mask: React.FC<Props> = ({ width, direction, offset }) => {\n const startColor = \"#000000AA\";\n const endColor = \"#00000000\";\n\n return (\n <Box\n sx={{\n position: \"absolute\",\n top: 0,\n left: direction === \"left\" ? offset : undefined,\n right: direction === \"right\" ? offset : undefined,\n height: \"100%\",\n width,\n background: `transparent linear-gradient(-90deg, ${\n direction === \"left\" ? endColor : startColor\n } 0%, ${\n direction === \"right\" ? endColor : startColor\n } 100%) 0% 0% no-repeat padding-box`,\n opacity: 0.05,\n }}\n />\n );\n};\n"],"names":["Mask","width","direction","offset","startColor","endColor","jsx","Box"],"mappings":";;AAMO,MAAMA,IAAwB,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,QAAAC,QAAa;AACrE,QAAMC,IAAa,aACbC,IAAW;AAGf,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAML,MAAc,SAASC,IAAS;AAAA,QACtC,OAAOD,MAAc,UAAUC,IAAS;AAAA,QACxC,QAAQ;AAAA,QACR,OAAAF;AAAA,QACA,YAAY,uCACVC,MAAc,SAASG,IAAWD,CACpC,QACEF,MAAc,UAAUG,IAAWD,CACrC;AAAA,QACA,SAAS;AAAA,MACX;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|