@selfdecode/sd-component-library 4.0.103 → 4.0.105
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/input-container/interfaces.d.ts +1 -0
- package/lib/sd-component-library100.js +3 -3
- package/lib/sd-component-library101.js +2 -2
- package/lib/sd-component-library102.js +3 -3
- package/lib/sd-component-library103.js +2 -2
- package/lib/sd-component-library105.js +2 -2
- package/lib/sd-component-library107.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library168.js +1 -1
- package/lib/sd-component-library173.js +1 -1
- package/lib/sd-component-library205.js +55 -23
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +23 -55
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library210.js +21 -18
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +3 -21
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +1 -1
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +18 -3
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library228.js +26 -3
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +3 -31
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +31 -19
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +19 -20
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +20 -28
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +27 -32
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +33 -3
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +3 -129
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +129 -43
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +41 -45
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +46 -7
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +8 -64
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library240.js +62 -41
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +43 -13
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +13 -21
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +21 -109
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +106 -44
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +46 -23
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +23 -52
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +52 -47
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +46 -73
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +60 -26
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library250.js +41 -27
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +27 -21
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +20 -19
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +20 -2
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +323 -24
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +5 -325
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +2 -5
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +21 -25
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library259.js +22 -24
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library261.js +25 -21
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +24 -22
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library281.js +2 -10
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +2 -2
- package/lib/sd-component-library283.js +70 -2
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library284.js +101 -69
- package/lib/sd-component-library284.js.map +1 -1
- package/lib/sd-component-library285.js +95 -91
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library286.js +10 -106
- package/lib/sd-component-library286.js.map +1 -1
- package/lib/sd-component-library290.js +4 -4
- package/lib/sd-component-library291.js +3 -2
- package/lib/sd-component-library291.js.map +1 -1
- package/lib/sd-component-library292.js +3 -8
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +3 -328
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +2 -51
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +8 -3
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +328 -3
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +51 -3
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library315.js +2 -2
- package/lib/sd-component-library316.js +91 -33
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library318.js +33 -91
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library322.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library50.js +1 -1
- package/lib/sd-component-library52.js +3 -3
- package/lib/sd-component-library59.js +15 -14
- package/lib/sd-component-library59.js.map +1 -1
- package/lib/sd-component-library62.js +1 -1
- package/lib/sd-component-library63.js +4 -4
- package/lib/sd-component-library64.js +1 -1
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library66.js +3 -3
- package/lib/sd-component-library66.js.map +1 -1
- package/lib/sd-component-library86.js +1 -1
- package/lib/sd-component-library87.js +6 -6
- package/lib/sd-component-library88.js +2 -2
- package/lib/sd-component-library89.js +1 -1
- package/lib/sd-component-library90.js +5 -5
- package/lib/sd-component-library91.js +1 -1
- package/lib/sd-component-library93.js +6 -6
- package/lib/sd-component-library94.js +1 -1
- package/lib/sd-component-library95.js +7 -7
- package/lib/sd-component-library96.js +1 -1
- package/lib/sd-component-library99.js +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library316.js","sources":["../src/components/meters/outline-meter
|
|
1
|
+
{"version":3,"file":"sd-component-library316.js","sources":["../src/components/meters/common-outline-meter-partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { ResponsiveTextV2 } from \"../../../texts/responsive-text-v2\";\nimport { labelPaddingX, labelWidth } from \"../../outline-meter/contants\";\nimport { getCoordinateForArc } from \"../../outline-meter/utils\";\nimport { MatchedRangeLabelBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const {\n label,\n color,\n alpha,\n radius,\n horizontal,\n pointerLength,\n round,\n pointY,\n } = props;\n\n const [textHeight, setTextHeight] = useState(0);\n const [textY, setTextY] = useState(0);\n\n const ref = useCallback((node: HTMLElement) => {\n if (node) {\n const { height, y } = node.getBoundingClientRect();\n setTextHeight(height);\n setTextY(y);\n }\n }, []);\n\n let { x: pointerEndX, y: pointerEndY } = getCoordinateForArc(\n radius + pointerLength,\n alpha,\n radius\n );\n\n const isOnTop = alpha === 180;\n const isOnLeft = alpha < 180;\n const isOnRight = alpha > 180;\n\n if (horizontal) {\n const { x: pointerStartX, y: pointerStartY } = getCoordinateForArc(\n radius,\n alpha,\n radius\n );\n\n pointerEndX = pointerStartX + pointerLength * (isOnLeft ? -1 : 1);\n pointerEndY = pointerStartY;\n }\n\n if (!label) return null;\n\n let borderRadius = round || isOnTop ? `${labelPaddingX}px` : undefined;\n if (!borderRadius && pointY) {\n const textTopY = textY - textHeight;\n const textBottomY = textY;\n\n borderRadius = [\n isOnLeft || pointY > textTopY,\n isOnRight || pointY > textTopY,\n isOnRight || pointY < textBottomY,\n isOnLeft || pointY < textBottomY,\n ]\n .map((flag) => (flag ? `${labelPaddingX}px` : \"0\"))\n .join(\" \");\n }\n\n return (\n <Box\n sx={{\n position: \"absolute\",\n left: `${pointerEndX}px`,\n top: `${pointerEndY}px`,\n }}\n >\n <Box\n sx={{\n boxSizing: \"content-box\",\n position: \"relative\",\n top: `calc(-${textHeight}px)`,\n left: isOnTop ? \"-50%\" : isOnLeft ? \"-100%\" : undefined,\n py: \"7px\",\n px: `${labelPaddingX}px`,\n borderColor: color,\n borderWidth: \"2px\",\n borderStyle: \"solid\",\n borderRadius,\n bg: \"cl_white\",\n \"& > div\": {\n maxWidth: isOnTop ? undefined : `${labelWidth}px`,\n },\n }}\n ref={ref}\n >\n <ResponsiveTextV2\n fontSizeWeight={[[12, \"semi-bold\"]]}\n width=\"max-content\"\n color={color !== \"#CCD0DB\" ? color : \"cl_darkGrey\"}\n textTransform=\"uppercase\"\n letterSpacing=\"1.8px\"\n >\n {label}\n </ResponsiveTextV2>\n </Box>\n </Box>\n );\n};\n"],"names":["MatchedRangeLabelBox","props","label","color","alpha","radius","horizontal","pointerLength","round","pointY","textHeight","setTextHeight","useState","textY","setTextY","ref","useCallback","node","height","y","pointerEndX","pointerEndY","getCoordinateForArc","isOnTop","isOnLeft","isOnRight","pointerStartX","pointerStartY","borderRadius","labelPaddingX","textTopY","textBottomY","flag","jsx","Box","labelWidth","ResponsiveTextV2"],"mappings":";;;;;;AASa,MAAAA,IAAwC,CAACC,MAAU;AACxD,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACE,IAAAR,GAEE,CAACS,GAAYC,CAAa,IAAIC,EAAS,CAAC,GACxC,CAACC,GAAOC,C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A;AAAA,UACC,IAAI;AAAA,YACF,WAAW;AAAA,YACX,UAAU;AAAA,YACV,KAAK,SAASxB,CAAU;AAAA,YACxB,MAAMa,IAAU,SAASC,IAAW,UAAU;AAAA,YAC9C,IAAI;AAAA,YACJ,IAAI,GAAGK,CAAa;AAAA,YACpB,aAAa1B;AAAA,YACb,aAAa;AAAA,YACb,aAAa;AAAA,YACb,cAAAyB;AAAA,YACA,IAAI;AAAA,YACJ,WAAW;AAAA,cACT,UAAUL,IAAU,SAAY,GAAGY,CAAU;AAAA,YAC/C;AAAA,UACF;AAAA,UACA,KAAApB;AAAA,UAEA,UAAAkB,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,CAAC,IAAI,WAAW,CAAC;AAAA,cAClC,OAAM;AAAA,cACN,OAAOjC,MAAU,YAAYA,IAAQ;AAAA,cACrC,eAAc;AAAA,cACd,eAAc;AAAA,cAEb,UAAAD;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,96 +1,38 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
import { Box as Y } from "rebass";
|
|
4
|
-
import { labelPaddingX as c, labelWidth as W } from "./sd-component-library229.js";
|
|
5
|
-
import { getCoordinateForArc as $ } from "./sd-component-library92.js";
|
|
6
|
-
import { ResponsiveTextV2 as z } from "./sd-component-library151.js";
|
|
7
|
-
const D = (j) => {
|
|
1
|
+
import { j as t } from "./sd-component-library197.js";
|
|
2
|
+
const h = (n) => {
|
|
8
3
|
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
let x = y || s ? `${c}px` : void 0;
|
|
40
|
-
if (!x && i) {
|
|
41
|
-
const t = f - h, o = f;
|
|
42
|
-
x = [
|
|
43
|
-
n || i > t,
|
|
44
|
-
u || i > t,
|
|
45
|
-
u || i < o,
|
|
46
|
-
n || i < o
|
|
47
|
-
].map((l) => l ? `${c}px` : "0").join(" ");
|
|
48
|
-
}
|
|
49
|
-
return /* @__PURE__ */ a.jsx(
|
|
50
|
-
Y,
|
|
51
|
-
{
|
|
52
|
-
sx: {
|
|
53
|
-
position: "absolute",
|
|
54
|
-
left: `${b}px`,
|
|
55
|
-
top: `${g}px`
|
|
56
|
-
},
|
|
57
|
-
children: /* @__PURE__ */ a.jsx(
|
|
58
|
-
Y,
|
|
59
|
-
{
|
|
60
|
-
sx: {
|
|
61
|
-
boxSizing: "content-box",
|
|
62
|
-
position: "relative",
|
|
63
|
-
top: `calc(-${h}px)`,
|
|
64
|
-
left: s ? "-50%" : n ? "-100%" : void 0,
|
|
65
|
-
py: "7px",
|
|
66
|
-
px: `${c}px`,
|
|
67
|
-
borderColor: p,
|
|
68
|
-
borderWidth: "2px",
|
|
69
|
-
borderStyle: "solid",
|
|
70
|
-
borderRadius: x,
|
|
71
|
-
bg: "cl_white",
|
|
72
|
-
"& > div": {
|
|
73
|
-
maxWidth: s ? void 0 : `${W}px`
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
ref: T,
|
|
77
|
-
children: /* @__PURE__ */ a.jsx(
|
|
78
|
-
z,
|
|
79
|
-
{
|
|
80
|
-
fontSizeWeight: [[12, "semi-bold"]],
|
|
81
|
-
width: "max-content",
|
|
82
|
-
color: p !== "#CCD0DB" ? p : "cl_darkGrey",
|
|
83
|
-
textTransform: "uppercase",
|
|
84
|
-
letterSpacing: "1.8px",
|
|
85
|
-
children: d
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
}
|
|
91
|
-
);
|
|
4
|
+
color: s,
|
|
5
|
+
innerCircleRadius: $,
|
|
6
|
+
innerCircleStrokeWidth: d,
|
|
7
|
+
dx: i,
|
|
8
|
+
dy: r,
|
|
9
|
+
radius: e,
|
|
10
|
+
tipX: l,
|
|
11
|
+
tipY: o,
|
|
12
|
+
needleWidth: c
|
|
13
|
+
} = n;
|
|
14
|
+
return /* @__PURE__ */ t.jsxs("g", { children: [
|
|
15
|
+
/* @__PURE__ */ t.jsx(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: `M${l - i},${o - r} A${c / 2},${c / 2} 0 0,0 ${l + i},${o + r} L${e + i},${e + r} L${e - i},${e - r} Z`,
|
|
19
|
+
fill: s
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ t.jsx(
|
|
23
|
+
"circle",
|
|
24
|
+
{
|
|
25
|
+
cx: e,
|
|
26
|
+
cy: e,
|
|
27
|
+
r: $ + d,
|
|
28
|
+
strokeWidth: d,
|
|
29
|
+
stroke: s,
|
|
30
|
+
fill: "white"
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] });
|
|
92
34
|
};
|
|
93
35
|
export {
|
|
94
|
-
|
|
36
|
+
h as BaseNeedle
|
|
95
37
|
};
|
|
96
38
|
//# sourceMappingURL=sd-component-library318.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library318.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library318.js","sources":["../src/components/meters/outline-meter/partials/base-needle/base-needle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { BaseNeedleProps as Props } from \"./interfaces\";\n\nexport const BaseNeedle: React.FC<Props> = (props) => {\n const {\n color,\n innerCircleRadius,\n innerCircleStrokeWidth,\n dx,\n dy,\n radius,\n tipX,\n tipY,\n needleWidth,\n } = props;\n\n return (\n <g>\n <path\n d={`M${tipX - dx},${tipY - dy} A${needleWidth / 2},${\n needleWidth / 2\n } 0 0,0 ${tipX + dx},${tipY + dy} L${radius + dx},${radius + dy} L${\n radius - dx\n },${radius - dy} Z`}\n fill={color}\n />\n <circle\n cx={radius}\n cy={radius}\n r={innerCircleRadius + innerCircleStrokeWidth}\n strokeWidth={innerCircleStrokeWidth}\n stroke={color}\n fill=\"white\"\n />\n </g>\n );\n};\n"],"names":["BaseNeedle","props","color","innerCircleRadius","innerCircleStrokeWidth","dx","dy","radius","tipX","tipY","needleWidth","jsx"],"mappings":";AAIa,MAAAA,IAA8B,CAACC,MAAU;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,EACE,IAAAT;AAEJ,gCACG,KACC,EAAA,UAAA;AAAA,IAAAU,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIH,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKI,IAAc,CAAC,IAC/CA,IAAc,CAChB,UAAUF,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKC,IAASF,CAAE,IAAIE,IAASD,CAAE,KAC7DC,IAASF,CACX,IAAIE,IAASD,CAAE;AAAA,QACf,MAAMJ;AAAA,MAAA;AAAA,IACR;AAAA,IACAS,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAIJ;AAAA,QACJ,IAAIA;AAAA,QACJ,GAAGJ,IAAoBC;AAAA,QACvB,aAAaA;AAAA,QACb,QAAQF;AAAA,QACR,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library197.js";
|
|
2
|
-
import { getSelectedRangeText as l } from "./sd-component-
|
|
2
|
+
import { getSelectedRangeText as l } from "./sd-component-library283.js";
|
|
3
3
|
import { FourteenRegular as n } from "./sd-component-library145.js";
|
|
4
4
|
import { FourteenSb as p } from "./sd-component-library146.js";
|
|
5
5
|
import { BaseGridContainer as i } from "./sd-component-library36.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library197.js";
|
|
2
|
-
import { BaseBooleanFeedback as m } from "./sd-component-
|
|
2
|
+
import { BaseBooleanFeedback as m } from "./sd-component-library210.js";
|
|
3
3
|
import { IconButton as n } from "./sd-component-library22.js";
|
|
4
|
-
import { ReactComponent as c } from "./sd-component-
|
|
5
|
-
import { ReactComponent as u } from "./sd-component-
|
|
4
|
+
import { ReactComponent as c } from "./sd-component-library211.js";
|
|
5
|
+
import { ReactComponent as u } from "./sd-component-library212.js";
|
|
6
6
|
const f = (i) => {
|
|
7
7
|
const { title: s, onPositiveFeedback: r, onNegativeFeedback: d, optionSelected: e } = i, a = (o) => /* @__PURE__ */ t.jsx(n, { onClick: o, "data-testid": "thumbs-up-button", children: /* @__PURE__ */ t.jsx(
|
|
8
8
|
c,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as n } from "./sd-component-library197.js";
|
|
2
|
-
import { InputLabel as
|
|
3
|
-
import { GridContainerV2 as
|
|
2
|
+
import { InputLabel as z } from "./sd-component-library60.js";
|
|
3
|
+
import { GridContainerV2 as C } from "./sd-component-library39.js";
|
|
4
4
|
import { BaseTextV2 as p } from "./sd-component-library139.js";
|
|
5
|
-
const
|
|
5
|
+
const w = ({
|
|
6
6
|
gap: f = "0px",
|
|
7
7
|
cursor: m = "pointer",
|
|
8
8
|
sx: d,
|
|
@@ -16,18 +16,19 @@ const k = ({
|
|
|
16
16
|
showErrorMessageText: r = !0,
|
|
17
17
|
errorMessage: t,
|
|
18
18
|
errorMessageProps: x,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
baseBgColor: j = "white",
|
|
20
|
+
bg: _ = t ? "rgba(255, 0, 0, 0.05)" : j,
|
|
21
|
+
id: a,
|
|
22
|
+
children: S,
|
|
23
|
+
...v
|
|
23
24
|
}) => /* @__PURE__ */ n.jsxs(
|
|
24
|
-
|
|
25
|
+
C,
|
|
25
26
|
{
|
|
26
27
|
width: h,
|
|
27
28
|
gap: f,
|
|
28
|
-
bg:
|
|
29
|
+
bg: _,
|
|
29
30
|
textAlign: e,
|
|
30
|
-
...
|
|
31
|
+
...v,
|
|
31
32
|
sx: {
|
|
32
33
|
position: "relative",
|
|
33
34
|
cursor: m,
|
|
@@ -37,9 +38,9 @@ const k = ({
|
|
|
37
38
|
},
|
|
38
39
|
children: [
|
|
39
40
|
c && /* @__PURE__ */ n.jsxs(
|
|
40
|
-
|
|
41
|
+
z,
|
|
41
42
|
{
|
|
42
|
-
htmlFor:
|
|
43
|
+
htmlFor: a,
|
|
43
44
|
maxWidth: "100%",
|
|
44
45
|
color: t ? "cl_red" : "cl_darkGrey",
|
|
45
46
|
fontSize: 10,
|
|
@@ -68,7 +69,7 @@ const k = ({
|
|
|
68
69
|
]
|
|
69
70
|
}
|
|
70
71
|
),
|
|
71
|
-
|
|
72
|
+
S,
|
|
72
73
|
r && !!t && /* @__PURE__ */ n.jsx(
|
|
73
74
|
p,
|
|
74
75
|
{
|
|
@@ -91,6 +92,6 @@ const k = ({
|
|
|
91
92
|
}
|
|
92
93
|
);
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
w as InputContainer
|
|
95
96
|
};
|
|
96
97
|
//# sourceMappingURL=sd-component-library59.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library59.js","sources":["../src/components/forms-v2/input-container/input-container.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Grid } from \"../../containers\";\nimport { BaseTextV2 } from \"../../texts\";\nimport { InputLabel } from \"../input-label\";\nimport { InputContainerProps as Props } from \"./interfaces\";\n\nexport const InputContainer: React.FC<Props> = ({\n gap = \"0px\",\n cursor = \"pointer\",\n sx,\n required = false,\n textAlign = \"left\",\n width = \"240px\",\n label,\n labelProps,\n secondaryLabel = required ? \"*\" : undefined,\n secondaryLabelProps = required\n ? { color: \"cl_purple\", fontSize: 16, lineHeight: \"12px\" }\n : undefined,\n showErrorMessageText = true,\n errorMessage,\n errorMessageProps,\n bg = errorMessage ? \"rgba(255, 0, 0, 0.05)\" :
|
|
1
|
+
{"version":3,"file":"sd-component-library59.js","sources":["../src/components/forms-v2/input-container/input-container.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Grid } from \"../../containers\";\nimport { BaseTextV2 } from \"../../texts\";\nimport { InputLabel } from \"../input-label\";\nimport { InputContainerProps as Props } from \"./interfaces\";\n\nexport const InputContainer: React.FC<Props> = ({\n gap = \"0px\",\n cursor = \"pointer\",\n sx,\n required = false,\n textAlign = \"left\",\n width = \"240px\",\n label,\n labelProps,\n secondaryLabel = required ? \"*\" : undefined,\n secondaryLabelProps = required\n ? { color: \"cl_purple\", fontSize: 16, lineHeight: \"12px\" }\n : undefined,\n showErrorMessageText = true,\n errorMessage,\n errorMessageProps,\n baseBgColor = \"white\",\n bg = errorMessage ? \"rgba(255, 0, 0, 0.05)\" : baseBgColor,\n id,\n children,\n ...props\n}) => (\n <Grid\n {...{ width, gap, bg, textAlign }}\n {...props}\n sx={{\n position: \"relative\",\n cursor,\n flexGrow: 1,\n \"> * \": !!errorMessage ? { borderBottomColor: \"cl_red\" } : {},\n ...sx,\n }}\n >\n {label && (\n <InputLabel\n htmlFor={id}\n maxWidth=\"100%\"\n color={!!errorMessage ? \"cl_red\" : \"cl_darkGrey\"}\n fontSize={10}\n fontWeight=\"600\"\n {...labelProps}\n sx={{\n letterSpacing: \"1px\",\n textTransform: \"uppercase\",\n cursor: \"default\",\n ...labelProps?.sx,\n }}\n >\n {label}\n\n {secondaryLabel && (\n <BaseTextV2\n display=\"inline-block\"\n textTransform=\"uppercase\"\n letterSpacing=\"1px\"\n color=\"cl_grey\"\n ml=\"3px\"\n {...secondaryLabelProps}\n >\n {secondaryLabel}\n </BaseTextV2>\n )}\n </InputLabel>\n )}\n\n {children}\n\n {showErrorMessageText && !!errorMessage && (\n <BaseTextV2\n fontSize=\"12px\"\n lineHeight=\"12px\"\n color=\"cl_red\"\n maxWidth=\"100%\"\n {...errorMessageProps}\n sx={{\n position: \"absolute\",\n top: \"calc(100% + 5px)\",\n left: 0,\n cursor: \"default\",\n ...errorMessageProps?.sx,\n }}\n >\n {errorMessage}\n </BaseTextV2>\n )}\n </Grid>\n);\n"],"names":["InputContainer","gap","cursor","sx","required","textAlign","width","label","labelProps","secondaryLabel","secondaryLabelProps","showErrorMessageText","errorMessage","errorMessageProps","baseBgColor","bg","id","children","props","jsxs","Grid","InputLabel","jsx","BaseTextV2"],"mappings":";;;;AAOO,MAAMA,IAAkC,CAAC;AAAA,EAC9C,KAAAC,IAAM;AAAA,EACN,QAAAC,IAAS;AAAA,EACT,IAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,WAAAC,IAAY;AAAA,EACZ,OAAAC,IAAQ;AAAA,EACR,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,gBAAAC,IAAiBL,IAAW,MAAM;AAAA,EAClC,qBAAAM,IAAsBN,IAClB,EAAE,OAAO,aAAa,UAAU,IAAI,YAAY,OAChD,IAAA;AAAA,EACJ,sBAAAO,IAAuB;AAAA,EACvB,cAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,IAAAC,IAAKH,IAAe,0BAA0BE;AAAA,EAC9C,IAAAE;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MACEC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACO,OAAAd;AAAA,IAAO,KAAAL;AAAA,IAAK,IAAAc;AAAA,IAAI,WAAA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2
|
import { useCallback as p, useMemo as u } from "react";
|
|
3
3
|
import { Calendar as g } from "react-date-range";
|
|
4
|
+
import "./sd-component-library281.js";
|
|
4
5
|
import "./sd-component-library282.js";
|
|
5
|
-
import "./sd-component-library283.js";
|
|
6
6
|
import { Box as o } from "rebass";
|
|
7
7
|
import { TenSb as b } from "./sd-component-library154.js";
|
|
8
8
|
const B = (a) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library197.js";
|
|
2
2
|
import { useState as v, useRef as w } from "react";
|
|
3
|
+
import "./sd-component-library281.js";
|
|
3
4
|
import "./sd-component-library282.js";
|
|
4
|
-
import "./sd-component-library283.js";
|
|
5
5
|
import { Box as s } from "rebass";
|
|
6
6
|
import { useBreakPoints as M, useDependantState as y } from "./sd-component-library3.js";
|
|
7
|
-
import { getStaticRanges as E } from "./sd-component-
|
|
8
|
-
import { BaseDateRangeInputMobile as O } from "./sd-component-
|
|
9
|
-
import { BaseDateRangeInputDesktop as P } from "./sd-component-
|
|
7
|
+
import { getStaticRanges as E } from "./sd-component-library283.js";
|
|
8
|
+
import { BaseDateRangeInputMobile as O } from "./sd-component-library284.js";
|
|
9
|
+
import { BaseDateRangeInputDesktop as P } from "./sd-component-library285.js";
|
|
10
10
|
const J = (n) => {
|
|
11
11
|
const {
|
|
12
12
|
color: d = "#9E1CB5",
|
|
@@ -2,7 +2,7 @@ import { j as t } from "./sd-component-library197.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-library62.js";
|
|
5
|
-
import { ReactComponent as S } from "./sd-component-
|
|
5
|
+
import { ReactComponent as S } from "./sd-component-library286.js";
|
|
6
6
|
import { Button as D } from "./sd-component-library25.js";
|
|
7
7
|
import { FrMaxContainer as b } from "./sd-component-library38.js";
|
|
8
8
|
const k = (r) => {
|
|
@@ -2,7 +2,7 @@ import { j as e } from "./sd-component-library197.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-library286.js";
|
|
6
6
|
import { BaseLabel as E } from "./sd-component-library227.js";
|
|
7
7
|
import { OutsideClickBox as J } from "./sd-component-library11.js";
|
|
8
8
|
import { BaseDateRangeInput as L } from "./sd-component-library63.js";
|
|
@@ -19,9 +19,9 @@ const N = (u) => {
|
|
|
19
19
|
alignCalendar: y = "left",
|
|
20
20
|
maxDate: C,
|
|
21
21
|
minDate: w,
|
|
22
|
-
labelVariant: D = "selectors.secondary",
|
|
23
|
-
labelMargin: S,
|
|
24
22
|
errorMessage: a,
|
|
23
|
+
labelVariant: D,
|
|
24
|
+
labelMargin: S,
|
|
25
25
|
errorBackground: v,
|
|
26
26
|
onFocus: d,
|
|
27
27
|
sx: B
|
|
@@ -68,7 +68,7 @@ const N = (u) => {
|
|
|
68
68
|
M,
|
|
69
69
|
{
|
|
70
70
|
"data-testid": "primary-date-input-label",
|
|
71
|
-
variant:
|
|
71
|
+
variant: D ?? `selectors.secondary${a ? "Error" : ""}`,
|
|
72
72
|
label: l,
|
|
73
73
|
height: [""],
|
|
74
74
|
m: S
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library66.js","sources":["../src/components/inputs/date-inputs/primary-date-input/primary-date-input.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { format } from \"date-fns\";\nimport { random } from \"lodash-es\";\nimport { Box } from \"rebass\";\n\nimport { FrMaxContainer } from \"../../../containers\";\nimport { ShortDownArrowIcon } from \"../../../icons/short-dropdown-arrow-icon\";\nimport { BaseLabel } from \"../../../labels/base-label\";\nimport { ResponsiveText } from \"../../../texts\";\nimport { BaseDateInput } from \"../base-date-input\";\nimport { PrimaryDateInputProps as Props } from \"./interfaces\";\n\nexport const PrimaryDateInput: React.FC<Props> = (props) => {\n const {\n label,\n selectedDate,\n onDateSelect,\n defaultPlaceholder,\n gap = [\"12px\"],\n width = [\"180px\"],\n alignCalendar = \"left\",\n maxDate,\n minDate,\n
|
|
1
|
+
{"version":3,"file":"sd-component-library66.js","sources":["../src/components/inputs/date-inputs/primary-date-input/primary-date-input.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { format } from \"date-fns\";\nimport { random } from \"lodash-es\";\nimport { Box } from \"rebass\";\n\nimport { FrMaxContainer } from \"../../../containers\";\nimport { ShortDownArrowIcon } from \"../../../icons/short-dropdown-arrow-icon\";\nimport { BaseLabel } from \"../../../labels/base-label\";\nimport { ResponsiveText } from \"../../../texts\";\nimport { BaseDateInput } from \"../base-date-input\";\nimport { PrimaryDateInputProps as Props } from \"./interfaces\";\n\nexport const PrimaryDateInput: React.FC<Props> = (props) => {\n const {\n label,\n selectedDate,\n onDateSelect,\n defaultPlaceholder,\n gap = [\"12px\"],\n width = [\"180px\"],\n alignCalendar = \"left\",\n maxDate,\n minDate,\n errorMessage,\n labelVariant,\n labelMargin,\n errorBackground,\n onFocus,\n sx,\n } = props;\n\n const [showCalendar, setShowCalendar] = useState(false);\n\n const handleDateSelect = (date: Date) => {\n onDateSelect(date);\n setShowCalendar(false);\n };\n\n const [hasFocus, setHasFocus] = useState(false);\n const boxRef = useRef<HTMLDivElement>();\n // Use a random negative tab index to make collisions very unlikely\n const tabIndex = useMemo(() => -1 * random(1, 100000), []);\n\n /**\n * When focus changes on the document, determine if it's inside this component\n */\n const onFocusChange = () => {\n if (boxRef.current?.contains(document.activeElement)) {\n setHasFocus(true);\n } else {\n setHasFocus(false);\n }\n };\n\n useEffect(() => {\n document.addEventListener(\"focusin\", onFocusChange);\n return () => {\n document.removeEventListener(\"focusin\", onFocusChange);\n };\n }, []);\n\n // Hide calendar if focus is lost\n useEffect(() => {\n if (!hasFocus) setShowCalendar(false);\n }, [hasFocus]);\n\n return (\n <Box\n ref={boxRef}\n tabIndex={tabIndex}\n sx={{\n outline: \"none\",\n ...sx,\n }}\n data-testid=\"primary-date-input\"\n >\n <BaseDateInput\n showCalendar={hasFocus && showCalendar}\n selectedDate={selectedDate}\n onDateSelect={handleDateSelect}\n alignCalendar={alignCalendar}\n maxDate={maxDate}\n minDate={minDate}\n width={width}\n >\n <Box\n sx={{\n display: \"grid\",\n gridTemplateColumns: \"1fr\",\n rowGap: gap,\n }}\n >\n {label && (\n <BaseLabel\n data-testid=\"primary-date-input-label\"\n variant={\n labelVariant ??\n `selectors.secondary${errorMessage ? \"Error\" : \"\"}`\n }\n label={label}\n height={[\"\"]}\n m={labelMargin}\n />\n )}\n\n <Box\n data-testid=\"primary-date-input-field\"\n onClick={() => {\n setShowCalendar(!showCalendar);\n if (!showCalendar) {\n !!onFocus && onFocus();\n }\n }}\n width=\"100%\"\n sx={{\n cursor: \"pointer\",\n width: \"max-content\",\n backgroundColor: errorBackground ? \"rgba(255, 0, 0, 0.05)\" : \"\",\n }}\n >\n <FrMaxContainer>\n <Box\n sx={{\n paddingY: \"14px\",\n borderBottom: \"solid 2px\",\n borderColor: errorMessage ? \"cl_red\" : \"cl_lightGrey\",\n }}\n >\n <ResponsiveText\n fontSizeWeight={[\n [16, \"regular\"],\n [18, \"regular\"],\n ]}\n textAlign=\"left\"\n cursor=\"pointer\"\n color={selectedDate ? \"cl_darkGrey\" : \"cl_grey\"}\n >\n {selectedDate\n ? format(selectedDate, \"P\")\n : defaultPlaceholder}\n </ResponsiveText>\n </Box>\n <Box\n sx={{\n width: [\"10px\"],\n height: [\"50px\", \"52px\"],\n display: \"flex\",\n borderBottom: \"solid 2px\",\n borderColor: errorMessage ? \"cl_red\" : \"cl_lightGrey\",\n }}\n >\n <ShortDownArrowIcon\n style={{\n width: \"100%\",\n fill: \"#434A54\",\n }}\n />\n </Box>\n </FrMaxContainer>\n </Box>\n </Box>\n </BaseDateInput>\n </Box>\n );\n};\n"],"names":["PrimaryDateInput","props","label","selectedDate","onDateSelect","defaultPlaceholder","gap","width","alignCalendar","maxDate","minDate","errorMessage","labelVariant","labelMargin","errorBackground","onFocus","sx","showCalendar","setShowCalendar","useState","handleDateSelect","date","hasFocus","setHasFocus","boxRef","useRef","tabIndex","useMemo","random","onFocusChange","_a","useEffect","jsx","Box","BaseDateInput","jsxs","BaseLabel","FrMaxContainer","ResponsiveText","format","ShortDownArrowIcon"],"mappings":";;;;;;;;;;AAaa,MAAAA,IAAoC,CAACC,MAAU;AACpD,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,KAAAC,IAAM,CAAC,MAAM;AAAA,IACb,OAAAC,IAAQ,CAAC,OAAO;AAAA,IAChB,eAAAC,IAAgB;AAAA,IAChB,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,SAAAC;AAAA,IACA,IAAAC;AAAA,EACE,IAAAf,GAEE,CAACgB,GAAcC,CAAe,IAAIC,EAAS,EAAK,GAEhDC,IAAmB,CAACC,MAAe;AACvC,IAAAjB,EAAaiB,CAAI,GACjBH,EAAgB,EAAK;AAAA,EAAA,GAGjB,CAACI,GAAUC,CAAW,IAAIJ,EAAS,EAAK,GACxCK,IAASC,KAETC,IAAWC,EAAQ,MAAM,KAAKC,EAAO,GAAG,GAAM,GAAG,CAAA,CAAE,GAKnDC,IAAgB,MAAM;;AAC1B,KAAIC,IAAAN,EAAO,YAAP,QAAAM,EAAgB,SAAS,SAAS,iBACpCP,EAAY,EAAI,IAEhBA,EAAY,EAAK;AAAA,EACnB;AAGF,SAAAQ,EAAU,OACC,SAAA,iBAAiB,WAAWF,CAAa,GAC3C,MAAM;AACF,aAAA,oBAAoB,WAAWA,CAAa;AAAA,EAAA,IAEtD,CAAE,CAAA,GA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BACC,IAAI;AAAA,4BACF,UAAU;AAAA,4BACV,cAAc;AAAA,4BACd,aAAatB,IAAe,WAAW;AAAA,0BACzC;AAAA,0BAEA,UAAAqB,gBAAAA,EAAA;AAAA,4BAACM;AAAA,4BAAA;AAAA,8BACC,gBAAgB;AAAA,gCACd,CAAC,IAAI,SAAS;AAAA,gCACd,CAAC,IAAI,SAAS;AAAA,8BAChB;AAAA,8BACA,WAAU;AAAA,8BACV,QAAO;AAAA,8BACP,OAAOnC,IAAe,gBAAgB;AAAA,8BAErC,UACGA,IAAAoC,EAAOpC,GAAc,GAAG,IACxBE;AAAA,4BAAA;AAAA,0BACN;AAAA,wBAAA;AAAA,sBACF;AAAA,sBACA2B,gBAAAA,EAAA;AAAA,wBAACC;AAAA,wBAAA;AAAA,0BACC,IAAI;AAAA,4BACF,OAAO,CAAC,MAAM;AAAA,4BACd,QAAQ,CAAC,QAAQ,MAAM;AAAA,4BACvB,SAAS;AAAA,4BACT,cAAc;AAAA,4BACd,aAAatB,IAAe,WAAW;AAAA,0BACzC;AAAA,0BAEA,UAAAqB,gBAAAA,EAAA;AAAA,4BAACQ;AAAAA,4BAAA;AAAA,8BACC,OAAO;AAAA,gCACL,OAAO;AAAA,gCACP,MAAM;AAAA,8BACR;AAAA,4BAAA;AAAA,0BACF;AAAA,wBAAA;AAAA,sBACF;AAAA,oBAAA,GACF;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -5,7 +5,7 @@ import { useHover as R } from "./sd-component-library3.js";
|
|
|
5
5
|
import { getResponsiveClick as H } from "./sd-component-library4.js";
|
|
6
6
|
import { OutsideClickBox as W } from "./sd-component-library11.js";
|
|
7
7
|
import { ReactComponent as $ } from "./sd-component-library188.js";
|
|
8
|
-
import { ActionBox as A } from "./sd-component-
|
|
8
|
+
import { ActionBox as A } from "./sd-component-library228.js";
|
|
9
9
|
import { FlexCenter as M } from "./sd-component-library35.js";
|
|
10
10
|
import { HorizontalDivider as a } from "./sd-component-library49.js";
|
|
11
11
|
const G = (d) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library197.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-library229.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-library230.js";
|
|
6
6
|
import { isValueInRange as J } from "./sd-component-library92.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-library231.js";
|
|
8
|
+
import { isCorrectSmileyMeterConfig as Z, getIsHorizontal as ee } from "./sd-component-library232.js";
|
|
9
|
+
import { SmileyMeterRanges as te } from "./sd-component-library233.js";
|
|
10
|
+
import { MatchedRangeLabelBox as ie } from "./sd-component-library234.js";
|
|
11
11
|
import { FlexCenter as oe } from "./sd-component-library35.js";
|
|
12
12
|
const xe = ($) => {
|
|
13
13
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as s } from "./sd-component-library197.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-library230.js";
|
|
3
|
+
import { smallSmileyMeterWidth as d, smallSmileyMeterHeight as h, smallSmileyGaugeWidth as S, smallSmileyWidth as u, smallSmileyInnerPointRadius as y, smallSmileyInnerPointStrokeWidth as g } from "./sd-component-library231.js";
|
|
4
4
|
import { SmileyMeterV2 as W } from "./sd-component-library87.js";
|
|
5
5
|
const k = (e) => {
|
|
6
6
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as l } from "./sd-component-library197.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-library235.js";
|
|
4
4
|
import { BaseGridContainer as h } from "./sd-component-library36.js";
|
|
5
5
|
const F = [
|
|
6
6
|
"#5CA13A",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library197.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-library230.js";
|
|
4
4
|
import { isCorrectOutlineMeterConfig as ae } from "./sd-component-library92.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-library236.js";
|
|
6
|
+
import { OutlineMeterScale as ie } from "./sd-component-library237.js";
|
|
7
|
+
import { OutlineMeterNeedle as se } from "./sd-component-library238.js";
|
|
8
|
+
import { OutlineMeterLabelBox as oe } from "./sd-component-library239.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-library197.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-library230.js";
|
|
3
3
|
import { OutlineMeter as C } from "./sd-component-library90.js";
|
|
4
4
|
const T = (e) => {
|
|
5
5
|
const {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.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-library230.js";
|
|
4
|
+
import { defaultPointerWidth as ae } from "./sd-component-library229.js";
|
|
5
|
+
import { DiscreteRange as oe } from "./sd-component-library240.js";
|
|
6
|
+
import { OutlineMeterScale as le } from "./sd-component-library237.js";
|
|
7
|
+
import { DiscreteMeterNeedle as re } from "./sd-component-library241.js";
|
|
8
|
+
import { MatchedRangeLabelBox as ne } from "./sd-component-library242.js";
|
|
9
9
|
function fe(x) {
|
|
10
10
|
const {
|
|
11
11
|
marginTop: b = "50px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.js";
|
|
2
|
-
import { smallMeterWidth as u, smallMeterHeight as M, smallMeterInnerCircleStrokeWidth as c, smallMeterInnerCircleRadius as h, smallMeterGaugeWidth as g, smallMeterDistanceBetweenRanges as R, smallMeterDistanceFromRangesToNeedle as W, smallMeterNeedleWidth as p, smallMeterMaskBorderRadius as f } from "./sd-component-
|
|
2
|
+
import { smallMeterWidth as u, smallMeterHeight as M, smallMeterInnerCircleStrokeWidth as c, smallMeterInnerCircleRadius as h, smallMeterGaugeWidth as g, smallMeterDistanceBetweenRanges as R, smallMeterDistanceFromRangesToNeedle as W, smallMeterNeedleWidth as p, smallMeterMaskBorderRadius as f } from "./sd-component-library230.js";
|
|
3
3
|
import { MultiOptionDiscreteOutlineMeter as k } from "./sd-component-library93.js";
|
|
4
4
|
function C(e) {
|
|
5
5
|
const {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library197.js";
|
|
2
2
|
import { Box as H } from "rebass";
|
|
3
|
-
import { defaultWidth as V, defaultHeight as X, labelWidth as Y, defaultDistanceFromLabelToRanges as p, labelPaddingX as z, defaultGaugeWidth as E, defaultInnerPointRadius as _, defaultPointStrokeWidth as q, defaultArc as J, defaultDistanceFromRangesToScale as K, defaultDashHeight as Q, defaultDashWidth as U, defaultNumberOfDashes as Z, defaultNeedleWidth as ee, defaultInnerCircleRadius as te, defaultInnerCircleStrokeWidth as re, defaultDistanceFromRangesToNeedle as ae, defaultMaskBorderRadius as oe } from "./sd-component-
|
|
4
|
-
import { mapAdjacent as ie, isLabelActive as x, flipPosition as R } from "./sd-component-
|
|
5
|
-
import { GradientMeterRange as ne } from "./sd-component-
|
|
6
|
-
import { OutlineMeterScale as se } from "./sd-component-
|
|
7
|
-
import { GradientMeterNeedle as de } from "./sd-component-
|
|
8
|
-
import { OutlineMeterLabelPointer as le } from "./sd-component-
|
|
9
|
-
import { BaseMeterLabelBox as ue } from "./sd-component-
|
|
3
|
+
import { defaultWidth as V, defaultHeight as X, labelWidth as Y, defaultDistanceFromLabelToRanges as p, labelPaddingX as z, defaultGaugeWidth as E, defaultInnerPointRadius as _, defaultPointStrokeWidth as q, defaultArc as J, defaultDistanceFromRangesToScale as K, defaultDashHeight as Q, defaultDashWidth as U, defaultNumberOfDashes as Z, defaultNeedleWidth as ee, defaultInnerCircleRadius as te, defaultInnerCircleStrokeWidth as re, defaultDistanceFromRangesToNeedle as ae, defaultMaskBorderRadius as oe } from "./sd-component-library230.js";
|
|
4
|
+
import { mapAdjacent as ie, isLabelActive as x, flipPosition as R } from "./sd-component-library243.js";
|
|
5
|
+
import { GradientMeterRange as ne } from "./sd-component-library244.js";
|
|
6
|
+
import { OutlineMeterScale as se } from "./sd-component-library237.js";
|
|
7
|
+
import { GradientMeterNeedle as de } from "./sd-component-library245.js";
|
|
8
|
+
import { OutlineMeterLabelPointer as le } from "./sd-component-library246.js";
|
|
9
|
+
import { BaseMeterLabelBox as ue } from "./sd-component-library247.js";
|
|
10
10
|
const je = (b) => {
|
|
11
11
|
const {
|
|
12
12
|
width: o = V,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as m } from "./sd-component-library197.js";
|
|
2
|
-
import { smallMeterWidth as h, smallMeterHeight as u, smallMeterGaugeWidth as M, smallMeterDistanceFromRangesToNeedle as c, smallMeterInnerCircleStrokeWidth as g, smallMeterInnerCircleRadius as W, smallMeterPointStrokeWidth as R, smallMeterPointRadius as S, smallMeterNeedleWidth as p } from "./sd-component-
|
|
2
|
+
import { smallMeterWidth as h, smallMeterHeight as u, smallMeterGaugeWidth as M, smallMeterDistanceFromRangesToNeedle as c, smallMeterInnerCircleStrokeWidth as g, smallMeterInnerCircleRadius as W, smallMeterPointStrokeWidth as R, smallMeterPointRadius as S, smallMeterNeedleWidth as p } from "./sd-component-library230.js";
|
|
3
3
|
import { GradientOutlineMeter as f } from "./sd-component-library95.js";
|
|
4
4
|
const j = (e) => {
|
|
5
5
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.js";
|
|
2
2
|
import { Box as j } from "rebass";
|
|
3
3
|
import { isPDFFlow as g } from "./sd-component-library4.js";
|
|
4
|
-
import { areSegmentsValid as v } from "./sd-component-
|
|
5
|
-
import { Segment as w } from "./sd-component-
|
|
4
|
+
import { areSegmentsValid as v } from "./sd-component-library248.js";
|
|
5
|
+
import { Segment as w } from "./sd-component-library249.js";
|
|
6
6
|
const E = ({
|
|
7
7
|
segments: x,
|
|
8
8
|
outlineWidth: e = 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfdecode/sd-component-library",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.105",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"prebuild": "npm run clean",
|
|
43
43
|
"postbuild": "npm run copy",
|
|
44
44
|
"build": "tsc & vite build",
|
|
45
|
-
"prepublishOnly": "npm run
|
|
45
|
+
"prepublishOnly": "npm run build",
|
|
46
46
|
"storybook": "storybook dev -p 6006",
|
|
47
47
|
"build-storybook": "storybook build"
|
|
48
48
|
},
|