@selfdecode/sd-component-library 4.0.115 → 4.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/forms-v2/form-v2-input/form-v2-input.d.ts +1 -0
- package/lib/sd-component-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library102.js +2 -2
- package/lib/sd-component-library103.js +3 -3
- 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-library174.js +3 -3
- package/lib/sd-component-library175.js +1 -1
- package/lib/sd-component-library204.js +1 -1
- package/lib/sd-component-library205.js +1 -1
- package/lib/sd-component-library223.js +64 -45
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +3 -65
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +46 -3
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library230.js +3 -3
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +3 -31
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +31 -19
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +19 -20
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +20 -28
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +27 -32
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +32 -128
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +129 -43
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +41 -45
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +46 -7
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library240.js +8 -64
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +21 -43
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +107 -11
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +47 -3
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +22 -46
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +51 -73
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +64 -21
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +41 -107
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +12 -46
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +46 -22
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +73 -51
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +41 -2
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +27 -21
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +20 -19
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +20 -41
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +2 -27
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library265.js +1 -1
- package/lib/sd-component-library268.js +1 -1
- package/lib/sd-component-library269.js +30 -122
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +20 -9
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +116 -41
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +122 -30
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +9 -20
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +41 -116
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library276.js +2 -51
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library277.js +2 -90
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +48 -89
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +89 -48
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +92 -2
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +49 -2
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +2 -10
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +2 -2
- package/lib/sd-component-library284.js +10 -2
- package/lib/sd-component-library284.js.map +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 +2 -2
- package/lib/sd-component-library318.js +33 -91
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library319.js +23 -33
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library320.js +4 -33
- package/lib/sd-component-library320.js.map +1 -1
- package/lib/sd-component-library321.js +4 -5
- package/lib/sd-component-library321.js.map +1 -1
- package/lib/sd-component-library322.js +34 -4
- package/lib/sd-component-library322.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-library57.js +21 -20
- package/lib/sd-component-library57.js.map +1 -1
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +1 -1
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library66.js +1 -1
- package/lib/sd-component-library77.js +2 -2
- package/lib/sd-component-library78.js +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library88.js +6 -6
- package/lib/sd-component-library89.js +2 -2
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library91.js +5 -5
- package/lib/sd-component-library92.js +1 -1
- package/lib/sd-component-library94.js +6 -6
- package/lib/sd-component-library95.js +1 -1
- package/lib/sd-component-library96.js +7 -7
- package/lib/sd-component-library97.js +1 -1
- package/package.json +1 -1
|
@@ -1,35 +1,93 @@
|
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { j as o } from "./sd-component-library198.js";
|
|
2
|
+
import { useState as L, useCallback as M } from "react";
|
|
3
|
+
import V from "./sd-component-library197.js";
|
|
4
|
+
import { getCoordinateForArc as f } from "./sd-component-library93.js";
|
|
5
|
+
import { GridContainerV2 as X } from "./sd-component-library40.js";
|
|
6
|
+
import { ResponsiveTextV2 as g } from "./sd-component-library152.js";
|
|
7
|
+
const y = "21.5px", w = 10, j = `${w}px`, J = ({
|
|
8
|
+
segment: $,
|
|
9
|
+
isHover: r,
|
|
10
|
+
animationDuration: S,
|
|
11
|
+
labelOffset: i,
|
|
12
|
+
labelPointerOffset: k,
|
|
13
|
+
radius: c,
|
|
14
|
+
mobile: e,
|
|
15
|
+
labelOffsetMobile: u
|
|
16
|
+
}) => {
|
|
17
|
+
const { start: p, end: a, text: R, color: z, secondaryText: C } = $, d = c * 2, t = (p + a) / 2, h = Math.round(t * 360), { x: _, y: x } = f(c, h), [n, A] = L(), G = M((m) => {
|
|
18
|
+
m && A(m.getBoundingClientRect());
|
|
19
|
+
}, []), l = `all ${S}ms`, s = t > 0.5 ? "right" : "left", I = d + i, { x: T, y: W } = f(
|
|
20
|
+
c + u,
|
|
21
|
+
h,
|
|
22
|
+
c
|
|
23
|
+
), b = t < 0.5, B = t < 0.15 || t > 0.85, F = t > 0.35 || t < 0.65;
|
|
24
|
+
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
25
|
+
!e && /* @__PURE__ */ o.jsx(
|
|
26
|
+
"line",
|
|
27
|
+
{
|
|
28
|
+
x1: _ + (s === "left" ? -1 : 1) * k,
|
|
29
|
+
x2: s === "left" ? -i : d + i,
|
|
30
|
+
y1: x,
|
|
31
|
+
y2: x,
|
|
32
|
+
stroke: V.colors.cl_lightGrey,
|
|
33
|
+
strokeWidth: 1
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ o.jsx(
|
|
37
|
+
"foreignObject",
|
|
38
|
+
{
|
|
39
|
+
x: e ? T : s === "left" ? -i : I - ((n == null ? void 0 : n.width) ?? 0),
|
|
40
|
+
y: e ? W : x,
|
|
41
|
+
width: ((n == null ? void 0 : n.width) ?? 0) + w,
|
|
42
|
+
height: 50,
|
|
43
|
+
style: { overflow: "visible" },
|
|
44
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
45
|
+
X,
|
|
46
|
+
{
|
|
47
|
+
width: "fit-content",
|
|
48
|
+
justifyItems: "flex-start",
|
|
49
|
+
gap: r ? "1px" : "4px",
|
|
50
|
+
sx: {
|
|
51
|
+
transform: e ? `translate(${b ? -100 : 0}%, calc(${y} * ${B ? 0 : F ? -1 : -0.5}))` : `translateY(calc(${y} / -2)) scale(${r ? 1.3 : 1})`,
|
|
52
|
+
transition: l,
|
|
53
|
+
transformOrigin: s,
|
|
54
|
+
...e ? {
|
|
55
|
+
borderRadius: "4px",
|
|
56
|
+
boxShadow: "0px 3px 6px #00000029",
|
|
57
|
+
px: "5px",
|
|
58
|
+
py: "3px"
|
|
59
|
+
} : s === "left" ? { pr: j } : { pl: j }
|
|
60
|
+
},
|
|
61
|
+
bg: "cl_white",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ o.jsx(
|
|
64
|
+
g,
|
|
65
|
+
{
|
|
66
|
+
width: "fit-content",
|
|
67
|
+
fontSizeWeight: [18, "bold"],
|
|
68
|
+
color: z,
|
|
69
|
+
sx: { transition: l },
|
|
70
|
+
ref: G,
|
|
71
|
+
children: R
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ o.jsx(
|
|
75
|
+
g,
|
|
76
|
+
{
|
|
77
|
+
fontSizeWeight: [r ? 13 : 14, "bold"],
|
|
78
|
+
color: r ? "cl_darkGrey" : "cl_grey",
|
|
79
|
+
sx: { transition: l },
|
|
80
|
+
children: C ?? `${Math.round((a - p) * 100)}%`
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] });
|
|
89
|
+
};
|
|
32
90
|
export {
|
|
33
|
-
|
|
91
|
+
J as SegmentLabel
|
|
34
92
|
};
|
|
35
93
|
//# sourceMappingURL=sd-component-library325.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library325.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library325.js","sources":["../src/components/meters/donut-diagram/partials/segment-label/segment-label.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\n\nimport theme from \"../../../../../core/theme\";\nimport { Grid } from \"../../../../containers\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { DonutSegmentLabelPosition } from \"../../interfaces\";\nimport { SegmentLabelProps as Props } from \"./interfaces\";\n\nconst rowHeight = \"21.5px\";\nconst maskSize = 10;\nconst maskSizePx = `${maskSize}px`;\n\nexport const SegmentLabel: React.FC<Props> = ({\n segment,\n isHover,\n animationDuration,\n labelOffset,\n labelPointerOffset,\n radius,\n mobile,\n labelOffsetMobile,\n}) => {\n const { start, end, text, color, secondaryText } = segment;\n const diameter = radius * 2;\n const middle = (start + end) / 2;\n const middleAlpha = Math.round(middle * 360);\n const { x, y } = getCoordinateForArc(radius, middleAlpha);\n\n const [rect, setRect] = useState<DOMRect>();\n const ref = useCallback((node: HTMLDivElement) => {\n if (node) {\n setRect(node.getBoundingClientRect());\n }\n }, []);\n\n const transition = `all ${animationDuration}ms`;\n\n const position: DonutSegmentLabelPosition = middle > 0.5 ? \"right\" : \"left\";\n const maxX = diameter + labelOffset;\n\n const { x: pointerX, y: pointerY } = getCoordinateForArc(\n radius + labelOffsetMobile,\n middleAlpha,\n radius\n );\n\n const isAtLeft = middle < 0.5;\n const isInBottom = middle < 0.15 || middle > 0.85;\n const isInTop = middle > 0.35 || middle < 0.65;\n\n return (\n <>\n {!mobile && (\n <line\n x1={x + (position === \"left\" ? -1 : 1) * labelPointerOffset}\n x2={position === \"left\" ? -labelOffset : diameter + labelOffset}\n y1={y}\n y2={y}\n stroke={theme.colors[\"cl_lightGrey\"]}\n strokeWidth={1}\n />\n )}\n\n <foreignObject\n x={\n mobile\n ? pointerX\n : position === \"left\"\n ? -labelOffset\n : maxX - (rect?.width ?? 0)\n }\n y={mobile ? pointerY : y}\n width={(rect?.width ?? 0) + maskSize}\n height={50}\n style={{ overflow: \"visible\" }}\n >\n <Grid\n width=\"fit-content\"\n justifyItems=\"flex-start\"\n gap={isHover ? \"1px\" : \"4px\"}\n sx={{\n transform: mobile\n ? `translate(${isAtLeft ? -100 : 0}%, calc(${rowHeight} * ${\n isInBottom ? 0 : isInTop ? -1 : -0.5\n }))`\n : `translateY(calc(${rowHeight} / -2)) scale(${\n isHover ? 1.3 : 1\n })`,\n transition,\n transformOrigin: position,\n ...(mobile\n ? {\n borderRadius: \"4px\",\n boxShadow: \"0px 3px 6px #00000029\",\n px: \"5px\",\n py: \"3px\",\n }\n : position === \"left\"\n ? { pr: maskSizePx }\n : { pl: maskSizePx }),\n }}\n bg=\"cl_white\"\n >\n <ResponsiveTextV2\n width=\"fit-content\"\n fontSizeWeight={[18, \"bold\"]}\n color={color}\n sx={{ transition }}\n ref={ref}\n >\n {text}\n </ResponsiveTextV2>\n\n <ResponsiveTextV2\n fontSizeWeight={[isHover ? 13 : 14, \"bold\"]}\n color={isHover ? \"cl_darkGrey\" : \"cl_grey\"}\n sx={{ transition }}\n >\n {secondaryText ?? `${Math.round((end - start) * 100)}%`}\n </ResponsiveTextV2>\n </Grid>\n </foreignObject>\n </>\n );\n};\n"],"names":["rowHeight","maskSize","maskSizePx","SegmentLabel","segment","isHover","animationDuration","labelOffset","labelPointerOffset","radius","mobile","labelOffsetMobile","start","end","text","color","secondaryText","diameter","middle","middleAlpha","x","y","getCoordinateForArc","rect","setRect","useState","ref","useCallback","node","transition","position","maxX","pointerX","pointerY","isAtLeft","isInBottom","isInTop","jsxs","Fragment","jsx","theme","Grid","ResponsiveTextV2"],"mappings":";;;;;;AASA,MAAMA,IAAY,UACZC,IAAW,IACXC,IAAa,GAAGD,CAAQ,MAEjBE,IAAgC,CAAC;AAAA,EAC5C,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,mBAAAC;AACF,MAAM;AACJ,QAAM,EAAE,OAAAC,GAAO,KAAAC,GAAK,MAAAC,GAAM,OAAAC,GAAO,eAAAC,EAAkB,IAAAZ,GAC7Ca,IAAWR,IAAS,GACpBS,KAAUN,IAAQC,KAAO,GACzBM,IAAc,KAAK,MAAMD,IAAS,GAAG,GACrC,EAAE,GAAAE,GAAG,GAAAC,EAAA,IAAMC,EAAoBb,GAAQU,CAAW,GAElD,CAACI,GAAMC,CAAO,IAAIC,EAAkB,GACpCC,IAAMC,EAAY,CAACC,MAAyB;AAChD,IAAIA,KACMJ,EAAAI,EAAK,uBAAuB;AAAA,EAExC,GAAG,CAAE,CAAA,GAECC,IAAa,OAAOvB,CAAiB,MAErCwB,IAAsCZ,IAAS,MAAM,UAAU,QAC/Da,IAAOd,IAAWV,GAElB,EAAE,GAAGyB,GAAU,GAAGC,EAAa,IA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o.jsx(
|
|
37
|
-
"foreignObject",
|
|
38
|
-
{
|
|
39
|
-
x: e ? T : s === "left" ? -i : I - ((n == null ? void 0 : n.width) ?? 0),
|
|
40
|
-
y: e ? W : x,
|
|
41
|
-
width: ((n == null ? void 0 : n.width) ?? 0) + w,
|
|
42
|
-
height: 50,
|
|
43
|
-
style: { overflow: "visible" },
|
|
44
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
45
|
-
X,
|
|
46
|
-
{
|
|
47
|
-
width: "fit-content",
|
|
48
|
-
justifyItems: "flex-start",
|
|
49
|
-
gap: r ? "1px" : "4px",
|
|
50
|
-
sx: {
|
|
51
|
-
transform: e ? `translate(${b ? -100 : 0}%, calc(${y} * ${B ? 0 : F ? -1 : -0.5}))` : `translateY(calc(${y} / -2)) scale(${r ? 1.3 : 1})`,
|
|
52
|
-
transition: l,
|
|
53
|
-
transformOrigin: s,
|
|
54
|
-
...e ? {
|
|
55
|
-
borderRadius: "4px",
|
|
56
|
-
boxShadow: "0px 3px 6px #00000029",
|
|
57
|
-
px: "5px",
|
|
58
|
-
py: "3px"
|
|
59
|
-
} : s === "left" ? { pr: j } : { pl: j }
|
|
60
|
-
},
|
|
61
|
-
bg: "cl_white",
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ o.jsx(
|
|
64
|
-
g,
|
|
65
|
-
{
|
|
66
|
-
width: "fit-content",
|
|
67
|
-
fontSizeWeight: [18, "bold"],
|
|
68
|
-
color: z,
|
|
69
|
-
sx: { transition: l },
|
|
70
|
-
ref: G,
|
|
71
|
-
children: R
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ o.jsx(
|
|
75
|
-
g,
|
|
76
|
-
{
|
|
77
|
-
fontSizeWeight: [r ? 13 : 14, "bold"],
|
|
78
|
-
color: r ? "cl_darkGrey" : "cl_grey",
|
|
79
|
-
sx: { transition: l },
|
|
80
|
-
children: C ?? `${Math.round((a - p) * 100)}%`
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
] });
|
|
89
|
-
};
|
|
1
|
+
import { j as t } from "./sd-component-library198.js";
|
|
2
|
+
import { ResponsiveTextV2 as l } from "./sd-component-library152.js";
|
|
3
|
+
const n = ({
|
|
4
|
+
title: e,
|
|
5
|
+
onClick: o,
|
|
6
|
+
isLast: r
|
|
7
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
8
|
+
l,
|
|
9
|
+
{
|
|
10
|
+
fontSizeWeight: [14, "regular"],
|
|
11
|
+
sx: {
|
|
12
|
+
height: "48px",
|
|
13
|
+
px: "15px",
|
|
14
|
+
display: "flex",
|
|
15
|
+
justifyContent: "flex-end",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
borderWidth: "1px",
|
|
18
|
+
borderStyle: "solid",
|
|
19
|
+
borderTopStyle: "none",
|
|
20
|
+
borderColor: "cl_lightGrey",
|
|
21
|
+
...r ? { borderRadius: "0 0 3px 3px", borderBottomStyle: "solid" } : { borderBottomStyle: "none" },
|
|
22
|
+
":hover": {
|
|
23
|
+
borderLeftColor: "cl_purple",
|
|
24
|
+
borderLeftWidth: "2px"
|
|
25
|
+
},
|
|
26
|
+
bg: "cl_white"
|
|
27
|
+
},
|
|
28
|
+
onClick: o,
|
|
29
|
+
children: e
|
|
30
|
+
}
|
|
31
|
+
);
|
|
90
32
|
export {
|
|
91
|
-
|
|
33
|
+
n as SecondaryCustomSelectorOptionRow
|
|
92
34
|
};
|
|
93
35
|
//# sourceMappingURL=sd-component-library326.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library326.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library326.js","sources":["../src/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/secondary-custom-selector-option-row.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { SecondaryCustomSelectorOptionRowProps as Props } from \"./interfaces\";\n\nexport const SecondaryCustomSelectorOptionRow: React.FC<Props> = ({\n title,\n onClick,\n isLast,\n}) => {\n return (\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n height: \"48px\",\n px: \"15px\",\n display: \"flex\",\n justifyContent: \"flex-end\",\n alignItems: \"center\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n borderTopStyle: \"none\",\n borderColor: \"cl_lightGrey\",\n ...(isLast\n ? { borderRadius: \"0 0 3px 3px\", borderBottomStyle: \"solid\" }\n : { borderBottomStyle: \"none\" }),\n \":hover\": {\n borderLeftColor: \"cl_purple\",\n borderLeftWidth: \"2px\",\n },\n bg: \"cl_white\",\n }}\n onClick={onClick}\n >\n {title}\n </ResponsiveTextV2>\n );\n};\n"],"names":["SecondaryCustomSelectorOptionRow","title","onClick","isLast","jsx","ResponsiveTextV2"],"mappings":";;AAKO,MAAMA,IAAoD,CAAC;AAAA,EAChE,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AACF,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,IAC9B,IAAI;AAAA,MACF,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,GAAIF,IACA,EAAE,cAAc,eAAe,mBAAmB,QAAQ,IAC1D,EAAE,mBAAmB,OAAO;AAAA,MAChC,UAAU;AAAA,QACR,iBAAiB;AAAA,QACjB,iBAAiB;AAAA,MACnB;AAAA,MACA,IAAI;AAAA,IACN;AAAA,IACA,SAAAD;AAAA,IAEC,UAAAD;AAAA,EAAA;AAAA;"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { j as n } from "./sd-component-library198.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Input as
|
|
2
|
+
import { useState as b, useEffect as j, useCallback as C } from "react";
|
|
3
|
+
import { Input as V } from "@rebass/forms";
|
|
4
4
|
import { translatedTextSuffix as x } from "./sd-component-library5.js";
|
|
5
|
-
import { InputContainer as
|
|
6
|
-
import { InvalidInputError as
|
|
7
|
-
const
|
|
5
|
+
import { InputContainer as y } from "./sd-component-library60.js";
|
|
6
|
+
import { InvalidInputError as B } from "./sd-component-library70.js";
|
|
7
|
+
const I = (s, a, e) => (o) => {
|
|
8
8
|
const r = o.target.value;
|
|
9
9
|
try {
|
|
10
10
|
const t = e(r);
|
|
11
11
|
s(r), t && a(r);
|
|
12
12
|
} catch (t) {
|
|
13
|
-
if (!(t instanceof
|
|
13
|
+
if (!(t instanceof B))
|
|
14
14
|
throw t;
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, E = ({
|
|
17
17
|
value: s,
|
|
18
18
|
onChange: a,
|
|
19
19
|
validateValue: e = () => !0,
|
|
@@ -22,21 +22,21 @@ const B = (s, a, e) => (o) => {
|
|
|
22
22
|
}) => {
|
|
23
23
|
let t = s, i = "";
|
|
24
24
|
t.endsWith(x) && (t = t.slice(0, -x.length), i = "no-translate");
|
|
25
|
-
const [m, c] =
|
|
26
|
-
|
|
25
|
+
const [m, c] = b(t);
|
|
26
|
+
j(() => {
|
|
27
27
|
t !== void 0 && c(t);
|
|
28
28
|
}, [t]);
|
|
29
|
-
const p =
|
|
29
|
+
const p = C(
|
|
30
30
|
(l) => {
|
|
31
31
|
o && (l == null || l.focus());
|
|
32
32
|
},
|
|
33
33
|
[o]
|
|
34
34
|
);
|
|
35
35
|
return /* @__PURE__ */ n.jsx(
|
|
36
|
-
|
|
36
|
+
V,
|
|
37
37
|
{
|
|
38
38
|
variant: "_inputs.v2",
|
|
39
|
-
onChange:
|
|
39
|
+
onChange: I(c, a, e),
|
|
40
40
|
value: m,
|
|
41
41
|
...r,
|
|
42
42
|
sx: {
|
|
@@ -51,7 +51,7 @@ const B = (s, a, e) => (o) => {
|
|
|
51
51
|
ref: p
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
}, d = "16px",
|
|
54
|
+
}, d = "16px", $ = ({
|
|
55
55
|
value: s,
|
|
56
56
|
onChange: a,
|
|
57
57
|
id: e,
|
|
@@ -67,16 +67,17 @@ const B = (s, a, e) => (o) => {
|
|
|
67
67
|
showCheckMark: u,
|
|
68
68
|
checkmarkRight: f = "0px",
|
|
69
69
|
children: v,
|
|
70
|
-
|
|
70
|
+
inputPr: g,
|
|
71
|
+
...w
|
|
71
72
|
}) => /* @__PURE__ */ n.jsxs(
|
|
72
|
-
|
|
73
|
+
y,
|
|
73
74
|
{
|
|
74
75
|
id: e,
|
|
75
76
|
cursor: o ? "not-allowed" : "pointer",
|
|
76
|
-
...
|
|
77
|
+
...w,
|
|
77
78
|
children: [
|
|
78
79
|
/* @__PURE__ */ n.jsx(
|
|
79
|
-
|
|
80
|
+
E,
|
|
80
81
|
{
|
|
81
82
|
value: s,
|
|
82
83
|
onChange: a,
|
|
@@ -90,7 +91,7 @@ const B = (s, a, e) => (o) => {
|
|
|
90
91
|
onKeyPress: p,
|
|
91
92
|
focusInput: l,
|
|
92
93
|
maxLength: h,
|
|
93
|
-
pr: u ? `calc(${d} + ${f} + 2px)` : void 0
|
|
94
|
+
pr: g ?? (u ? `calc(${d} + ${f} + 2px)` : void 0)
|
|
94
95
|
}
|
|
95
96
|
),
|
|
96
97
|
u && /* @__PURE__ */ n.jsx(
|
|
@@ -121,7 +122,7 @@ const B = (s, a, e) => (o) => {
|
|
|
121
122
|
}
|
|
122
123
|
);
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
E as FormV2Input,
|
|
126
|
+
$ as FormV2InputWithContainer
|
|
126
127
|
};
|
|
127
128
|
//# sourceMappingURL=sd-component-library57.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library57.js","sources":["../src/components/forms-v2/form-v2-input/form-v2-input.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from \"react\";\n\nimport { Input as RebassInput } from \"@rebass/forms\";\n\nimport { translatedTextSuffix } from \"../../../core/constants\";\nimport { InvalidInputError } from \"../../inputs\";\nimport { InputContainer, InputContainerProps } from \"../input-container\";\nimport { FormV2InputProps as Props } from \"./interfaces\";\n\nconst getOnChangeCallback =\n (\n setDisplayedValue: (newValue: string) => void,\n onChange: Props[\"onChange\"],\n validateValue: Required<Props>[\"validateValue\"]\n ) =>\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = event.target.value;\n try {\n const isValid = validateValue(newValue);\n setDisplayedValue(newValue);\n isValid && onChange(newValue);\n } catch (error) {\n if (!(error instanceof InvalidInputError)) throw error;\n }\n };\n\nexport const FormV2Input: React.FC<Props> = ({\n value,\n onChange,\n validateValue = () => true,\n focusInput,\n ...props\n}) => {\n let valueToUse = value;\n let className: string = \"\";\n\n if (valueToUse.endsWith(translatedTextSuffix)) {\n valueToUse = valueToUse.slice(0, -translatedTextSuffix.length);\n className = \"no-translate\";\n }\n\n const [displayedValue, setDisplayedValue] = useState(valueToUse);\n\n useEffect(() => {\n valueToUse !== undefined && setDisplayedValue(valueToUse);\n }, [valueToUse]);\n\n const ref = useCallback(\n (input: HTMLInputElement | null) => {\n focusInput && input?.focus();\n },\n [focusInput]\n );\n\n return (\n <RebassInput\n variant=\"_inputs.v2\"\n onChange={getOnChangeCallback(setDisplayedValue, onChange, validateValue)}\n value={displayedValue}\n {...props}\n sx={{\n \":focus\": {\n borderBottomStyle: \"solid\",\n borderBottomWidth: \"2px\",\n borderBottomColor: \"cl_blue\",\n outline: \"none\",\n },\n }}\n className={className}\n ref={ref}\n />\n );\n};\n\nconst checkMarkWidth = \"16px\";\n\nexport const FormV2InputWithContainer: React.FC<\n Omit<Props, \"pr\"> &\n InputContainerProps & {
|
|
1
|
+
{"version":3,"file":"sd-component-library57.js","sources":["../src/components/forms-v2/form-v2-input/form-v2-input.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from \"react\";\n\nimport { Input as RebassInput } from \"@rebass/forms\";\n\nimport { translatedTextSuffix } from \"../../../core/constants\";\nimport { InvalidInputError } from \"../../inputs\";\nimport { InputContainer, InputContainerProps } from \"../input-container\";\nimport { FormV2InputProps as Props } from \"./interfaces\";\n\nconst getOnChangeCallback =\n (\n setDisplayedValue: (newValue: string) => void,\n onChange: Props[\"onChange\"],\n validateValue: Required<Props>[\"validateValue\"]\n ) =>\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = event.target.value;\n try {\n const isValid = validateValue(newValue);\n setDisplayedValue(newValue);\n isValid && onChange(newValue);\n } catch (error) {\n if (!(error instanceof InvalidInputError)) throw error;\n }\n };\n\nexport const FormV2Input: React.FC<Props> = ({\n value,\n onChange,\n validateValue = () => true,\n focusInput,\n ...props\n}) => {\n let valueToUse = value;\n let className: string = \"\";\n\n if (valueToUse.endsWith(translatedTextSuffix)) {\n valueToUse = valueToUse.slice(0, -translatedTextSuffix.length);\n className = \"no-translate\";\n }\n\n const [displayedValue, setDisplayedValue] = useState(valueToUse);\n\n useEffect(() => {\n valueToUse !== undefined && setDisplayedValue(valueToUse);\n }, [valueToUse]);\n\n const ref = useCallback(\n (input: HTMLInputElement | null) => {\n focusInput && input?.focus();\n },\n [focusInput]\n );\n\n return (\n <RebassInput\n variant=\"_inputs.v2\"\n onChange={getOnChangeCallback(setDisplayedValue, onChange, validateValue)}\n value={displayedValue}\n {...props}\n sx={{\n \":focus\": {\n borderBottomStyle: \"solid\",\n borderBottomWidth: \"2px\",\n borderBottomColor: \"cl_blue\",\n outline: \"none\",\n },\n }}\n className={className}\n ref={ref}\n />\n );\n};\n\nconst checkMarkWidth = \"16px\";\n\nexport const FormV2InputWithContainer: React.FC<\n Omit<Props, \"pr\"> &\n InputContainerProps & {\n showCheckMark?: boolean;\n checkmarkRight?: string;\n inputPr?: Props[\"pr\"];\n }\n> = ({\n value,\n onChange,\n id,\n disabled,\n validateValue,\n onFocus,\n onBlur,\n placeholder,\n autoFocus,\n onKeyPress,\n focusInput,\n maxLength,\n showCheckMark,\n checkmarkRight = \"0px\",\n children,\n inputPr,\n ...containerProps\n}) => (\n <InputContainer\n id={id}\n cursor={disabled ? \"not-allowed\" : \"pointer\"}\n {...containerProps}\n >\n <FormV2Input\n {...{\n value,\n onChange,\n validateValue,\n id,\n disabled,\n placeholder,\n onFocus,\n onBlur,\n autoFocus,\n onKeyPress,\n focusInput,\n maxLength,\n }}\n pr={\n inputPr ??\n (showCheckMark\n ? `calc(${checkMarkWidth} + ${checkmarkRight} + 2px)`\n : undefined)\n }\n />\n\n {showCheckMark && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={checkMarkWidth}\n height=\"11.931\"\n viewBox=\"0 0 16 11.931\"\n fill=\"#3DEB24\"\n style={{\n position: \"absolute\",\n right: checkmarkRight,\n bottom: \"16px\",\n transform: \"translateY(-50%)\",\n }}\n >\n <path\n d=\"M5.434,16.274l-5.2-5.2a.8.8,0,0,1,0-1.131L1.366,8.812a.8.8,0,0,1,1.131,0l3.5,3.5,7.5-7.5a.8.8,0,0,1,1.131,0l1.131,1.131a.8.8,0,0,1,0,1.131l-9.2,9.2A.8.8,0,0,1,5.434,16.274Z\"\n transform=\"translate(0 -4.577)\"\n />\n </svg>\n )}\n\n {children}\n </InputContainer>\n);\n"],"names":["getOnChangeCallback","setDisplayedValue","onChange","validateValue","event","newValue","isValid","error","InvalidInputError","FormV2Input","value","focusInput","props","valueToUse","className","translatedTextSuffix","displayedValue","useState","useEffect","ref","useCallback","input","jsx","RebassInput","checkMarkWidth","FormV2InputWithContainer","id","disabled","onFocus","onBlur","placeholder","autoFocus","onKeyPress","maxLength","showCheckMark","checkmarkRight","children","inputPr","containerProps","jsxs","InputContainer"],"mappings":";;;;;;AASA,MAAMA,IACJ,CACEC,GACAC,GACAC,MAEF,CAACC,MAA+C;AACxC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-component-library198.js";
|
|
2
2
|
import { useCallback as p, useMemo as u } from "react";
|
|
3
3
|
import { Calendar as g } from "react-date-range";
|
|
4
|
+
import "./sd-component-library282.js";
|
|
4
5
|
import "./sd-component-library283.js";
|
|
5
|
-
import "./sd-component-library284.js";
|
|
6
6
|
import { Box as o } from "rebass";
|
|
7
7
|
import { TenSb as b } from "./sd-component-library155.js";
|
|
8
8
|
const B = (a) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library198.js";
|
|
2
2
|
import { useState as v, useRef as w } from "react";
|
|
3
|
+
import "./sd-component-library282.js";
|
|
3
4
|
import "./sd-component-library283.js";
|
|
4
|
-
import "./sd-component-library284.js";
|
|
5
5
|
import { Box as s } from "rebass";
|
|
6
6
|
import { useBreakPoints as M, useDependantState as y } from "./sd-component-library3.js";
|
|
7
7
|
import { getStaticRanges as E } from "./sd-component-library285.js";
|
|
@@ -2,7 +2,7 @@ import { j as t } from "./sd-component-library198.js";
|
|
|
2
2
|
import { useState as u } from "react";
|
|
3
3
|
import { Flex as g } from "rebass";
|
|
4
4
|
import { BaseDateInput as C } from "./sd-component-library63.js";
|
|
5
|
-
import { ReactComponent as S } from "./sd-component-
|
|
5
|
+
import { ReactComponent as S } from "./sd-component-library284.js";
|
|
6
6
|
import { Button as D } from "./sd-component-library26.js";
|
|
7
7
|
import { FrMaxContainer as b } from "./sd-component-library39.js";
|
|
8
8
|
const k = (r) => {
|
|
@@ -2,7 +2,7 @@ import { j as e } from "./sd-component-library198.js";
|
|
|
2
2
|
import { useState as I, useCallback as M, useMemo as v } from "react";
|
|
3
3
|
import { Box as F, Flex as O } from "rebass";
|
|
4
4
|
import { useBreakPoints as W } from "./sd-component-library3.js";
|
|
5
|
-
import { ReactComponent as z } from "./sd-component-
|
|
5
|
+
import { ReactComponent as z } from "./sd-component-library284.js";
|
|
6
6
|
import { BaseLabel as E } from "./sd-component-library226.js";
|
|
7
7
|
import { OutsideClickBox as J } from "./sd-component-library12.js";
|
|
8
8
|
import { BaseDateRangeInput as L } from "./sd-component-library64.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as s } from "./sd-component-library198.js";
|
|
2
2
|
import { useState as V } from "react";
|
|
3
3
|
import { useDependantState as q } from "./sd-component-library3.js";
|
|
4
|
-
import { SearchBox as z } from "./sd-component-
|
|
4
|
+
import { SearchBox as z } from "./sd-component-library223.js";
|
|
5
5
|
import { OutsideClickBox as G } from "./sd-component-library12.js";
|
|
6
6
|
import { PrimaryTextInput as H } from "./sd-component-library75.js";
|
|
7
7
|
import { ReactComponent as J } from "./sd-component-library221.js";
|
|
8
|
-
import { ReactComponent as M } from "./sd-component-
|
|
8
|
+
import { ReactComponent as M } from "./sd-component-library224.js";
|
|
9
9
|
function f(i, o, e, t) {
|
|
10
10
|
t == null || t(i, o), e(i);
|
|
11
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as I } from "rebass";
|
|
3
|
-
import { SecondaryInputLabels as B } from "./sd-component-
|
|
3
|
+
import { SecondaryInputLabels as B } from "./sd-component-library225.js";
|
|
4
4
|
import { NumberInput as A } from "./sd-component-library73.js";
|
|
5
5
|
const k = (n) => {
|
|
6
6
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as c } from "rebass";
|
|
3
|
-
import { SecondaryInputLabels as u } from "./sd-component-
|
|
3
|
+
import { SecondaryInputLabels as u } from "./sd-component-library225.js";
|
|
4
4
|
import { PrimaryTextInput as f } from "./sd-component-library75.js";
|
|
5
5
|
const T = (e) => {
|
|
6
6
|
const { m: r, mb: s, ml: n, mr: o, mt: a, width: m, padding: p, sx: x, inputSx: d, ...i } = e;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as R } from "rebass";
|
|
3
3
|
import { useElementCoordinates as _ } from "./sd-component-library3.js";
|
|
4
|
-
import { defaultPointerWidth as z, defaultTextBottomMargin as X } from "./sd-component-
|
|
5
|
-
import { labelWidth as Y, defaultDistanceFromLabelToRanges as W, labelPaddingX as A, defaultWidth as D, defaultHeight as E, defaultArc as G, defaultPointStrokeWidth as H, defaultInnerPointRadius as V, defaultGaugeWidth as q, defaultMaskBorderRadius as N } from "./sd-component-
|
|
4
|
+
import { defaultPointerWidth as z, defaultTextBottomMargin as X } from "./sd-component-library231.js";
|
|
5
|
+
import { labelWidth as Y, defaultDistanceFromLabelToRanges as W, labelPaddingX as A, defaultWidth as D, defaultHeight as E, defaultArc as G, defaultPointStrokeWidth as H, defaultInnerPointRadius as V, defaultGaugeWidth as q, defaultMaskBorderRadius as N } from "./sd-component-library232.js";
|
|
6
6
|
import { isValueInRange as J } from "./sd-component-library93.js";
|
|
7
|
-
import { COLOR_TO_ICON_MAP as K, defaultSmileyWidth as Q, defaultDistanceBetweenRanges as U } from "./sd-component-
|
|
8
|
-
import { isCorrectSmileyMeterConfig as Z, getIsHorizontal as ee } from "./sd-component-
|
|
9
|
-
import { SmileyMeterRanges as te } from "./sd-component-
|
|
10
|
-
import { MatchedRangeLabelBox as ie } from "./sd-component-
|
|
7
|
+
import { COLOR_TO_ICON_MAP as K, defaultSmileyWidth as Q, defaultDistanceBetweenRanges as U } from "./sd-component-library233.js";
|
|
8
|
+
import { isCorrectSmileyMeterConfig as Z, getIsHorizontal as ee } from "./sd-component-library234.js";
|
|
9
|
+
import { SmileyMeterRanges as te } from "./sd-component-library235.js";
|
|
10
|
+
import { MatchedRangeLabelBox as ie } from "./sd-component-library236.js";
|
|
11
11
|
import { FlexCenter as oe } from "./sd-component-library36.js";
|
|
12
12
|
const xe = ($) => {
|
|
13
13
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as s } from "./sd-component-library198.js";
|
|
2
|
-
import { smallMeterMaskBorderRadius as n } from "./sd-component-
|
|
3
|
-
import { smallSmileyMeterWidth as d, smallSmileyMeterHeight as h, smallSmileyGaugeWidth as S, smallSmileyWidth as u, smallSmileyInnerPointRadius as y, smallSmileyInnerPointStrokeWidth as g } from "./sd-component-
|
|
2
|
+
import { smallMeterMaskBorderRadius as n } from "./sd-component-library232.js";
|
|
3
|
+
import { smallSmileyMeterWidth as d, smallSmileyMeterHeight as h, smallSmileyGaugeWidth as S, smallSmileyWidth as u, smallSmileyInnerPointRadius as y, smallSmileyInnerPointStrokeWidth as g } from "./sd-component-library233.js";
|
|
4
4
|
import { SmileyMeterV2 as W } from "./sd-component-library88.js";
|
|
5
5
|
const k = (e) => {
|
|
6
6
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as l } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as f } from "rebass";
|
|
3
|
-
import { ReactComponent as d } from "./sd-component-
|
|
3
|
+
import { ReactComponent as d } from "./sd-component-library230.js";
|
|
4
4
|
import { BaseGridContainer as h } from "./sd-component-library37.js";
|
|
5
5
|
const F = [
|
|
6
6
|
"#5CA13A",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as H } from "rebass";
|
|
3
|
-
import { labelWidth as I, defaultDistanceFromLabelToRanges as p, labelPaddingX as X, defaultArc as A, defaultWidth as E, defaultHeight as G, defaultDistanceBetweenRanges as Y, defaultGaugeWidth as q, defaultPointStrokeWidth as y, defaultInnerPointRadius as z, defaultDistanceFromRangesToNeedle as J, defaultInnerCircleStrokeWidth as K, defaultInnerCircleRadius as Q, defaultNeedleWidth as U, defaultNumberOfDashes as V, defaultDashHeight as Z, defaultDashWidth as _, defaultDistanceFromRangesToScale as ee, defaultMaskBorderRadius as te } from "./sd-component-
|
|
3
|
+
import { labelWidth as I, defaultDistanceFromLabelToRanges as p, labelPaddingX as X, defaultArc as A, defaultWidth as E, defaultHeight as G, defaultDistanceBetweenRanges as Y, defaultGaugeWidth as q, defaultPointStrokeWidth as y, defaultInnerPointRadius as z, defaultDistanceFromRangesToNeedle as J, defaultInnerCircleStrokeWidth as K, defaultInnerCircleRadius as Q, defaultNeedleWidth as U, defaultNumberOfDashes as V, defaultDashHeight as Z, defaultDashWidth as _, defaultDistanceFromRangesToScale as ee, defaultMaskBorderRadius as te } from "./sd-component-library232.js";
|
|
4
4
|
import { isCorrectOutlineMeterConfig as ae } from "./sd-component-library93.js";
|
|
5
|
-
import { OutlineMeterRange as re } from "./sd-component-
|
|
6
|
-
import { OutlineMeterScale as ie } from "./sd-component-
|
|
7
|
-
import { OutlineMeterNeedle as se } from "./sd-component-
|
|
8
|
-
import { OutlineMeterLabelBox as oe } from "./sd-component-
|
|
5
|
+
import { OutlineMeterRange as re } from "./sd-component-library237.js";
|
|
6
|
+
import { OutlineMeterScale as ie } from "./sd-component-library238.js";
|
|
7
|
+
import { OutlineMeterNeedle as se } from "./sd-component-library239.js";
|
|
8
|
+
import { OutlineMeterLabelBox as oe } from "./sd-component-library240.js";
|
|
9
9
|
const ge = (R) => {
|
|
10
10
|
const {
|
|
11
11
|
marginTop: x = "50px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as u } from "./sd-component-library198.js";
|
|
2
|
-
import { smallMeterWidth as g, smallMeterHeight as c, smallMeterPointStrokeWidth as R, smallMeterPointRadius as W, smallMeterInnerCircleStrokeWidth as k, smallMeterInnerCircleRadius as S, smallMeterGaugeWidth as p, smallMeterDistanceBetweenRanges as f, smallMeterDistanceFromRangesToNeedle as w, smallMeterNeedleWidth as x, smallMeterMaskBorderRadius as B } from "./sd-component-
|
|
2
|
+
import { smallMeterWidth as g, smallMeterHeight as c, smallMeterPointStrokeWidth as R, smallMeterPointRadius as W, smallMeterInnerCircleStrokeWidth as k, smallMeterInnerCircleRadius as S, smallMeterGaugeWidth as p, smallMeterDistanceBetweenRanges as f, smallMeterDistanceFromRangesToNeedle as w, smallMeterNeedleWidth as x, smallMeterMaskBorderRadius as B } from "./sd-component-library232.js";
|
|
3
3
|
import { OutlineMeter as C } from "./sd-component-library91.js";
|
|
4
4
|
const T = (e) => {
|
|
5
5
|
const {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as y } from "rebass";
|
|
3
|
-
import { labelWidth as E, defaultDistanceFromLabelToRanges as R, labelPaddingX as G, defaultArc as P, defaultWidth as X, defaultHeight as Y, defaultDistanceBetweenRanges as A, defaultGaugeWidth as V, defaultDistanceFromRangesToNeedle as _, defaultInnerCircleStrokeWidth as q, defaultInnerCircleRadius as J, defaultNeedleWidth as K, defaultNumberOfDashes as Q, defaultDashHeight as U, defaultDashWidth as Z, defaultDistanceFromRangesToScale as ee, defaultMaskBorderRadius as te } from "./sd-component-
|
|
4
|
-
import { defaultPointerWidth as ae } from "./sd-component-
|
|
5
|
-
import { DiscreteRange as oe } from "./sd-component-
|
|
6
|
-
import { OutlineMeterScale as le } from "./sd-component-
|
|
7
|
-
import { DiscreteMeterNeedle as re } from "./sd-component-
|
|
8
|
-
import { MatchedRangeLabelBox as ne } from "./sd-component-
|
|
3
|
+
import { labelWidth as E, defaultDistanceFromLabelToRanges as R, labelPaddingX as G, defaultArc as P, defaultWidth as X, defaultHeight as Y, defaultDistanceBetweenRanges as A, defaultGaugeWidth as V, defaultDistanceFromRangesToNeedle as _, defaultInnerCircleStrokeWidth as q, defaultInnerCircleRadius as J, defaultNeedleWidth as K, defaultNumberOfDashes as Q, defaultDashHeight as U, defaultDashWidth as Z, defaultDistanceFromRangesToScale as ee, defaultMaskBorderRadius as te } from "./sd-component-library232.js";
|
|
4
|
+
import { defaultPointerWidth as ae } from "./sd-component-library231.js";
|
|
5
|
+
import { DiscreteRange as oe } from "./sd-component-library246.js";
|
|
6
|
+
import { OutlineMeterScale as le } from "./sd-component-library238.js";
|
|
7
|
+
import { DiscreteMeterNeedle as re } from "./sd-component-library247.js";
|
|
8
|
+
import { MatchedRangeLabelBox as ne } from "./sd-component-library248.js";
|
|
9
9
|
function fe(x) {
|
|
10
10
|
const {
|
|
11
11
|
marginTop: b = "50px",
|