@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,69 +1,74 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Input as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { j as w } from "./sd-component-library198.js";
|
|
2
|
+
import { useRef as C, useState as E, useEffect as g } from "react";
|
|
3
|
+
import { Input as K } from "@rebass/forms";
|
|
4
|
+
import { translatedTextSuffix as x } from "./sd-component-library5.js";
|
|
5
|
+
import { InvalidInputError as P } from "./sd-component-library70.js";
|
|
6
|
+
function M(t, s, n) {
|
|
7
|
+
return (i) => {
|
|
8
|
+
const o = i.target.value;
|
|
8
9
|
let r = !1;
|
|
9
10
|
try {
|
|
10
11
|
n == null || n(o, t);
|
|
11
|
-
} catch (
|
|
12
|
-
if (r = !0, !(
|
|
13
|
-
throw
|
|
12
|
+
} catch (a) {
|
|
13
|
+
if (r = !0, !(a instanceof P))
|
|
14
|
+
throw a;
|
|
14
15
|
} finally {
|
|
15
|
-
!r &&
|
|
16
|
+
!r && s(o), r && s(t);
|
|
16
17
|
}
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
|
-
const
|
|
20
|
+
const B = (t) => {
|
|
20
21
|
const {
|
|
21
|
-
value:
|
|
22
|
+
value: s = "",
|
|
22
23
|
textAlign: n,
|
|
23
|
-
type:
|
|
24
|
+
type: i,
|
|
24
25
|
padding: o,
|
|
25
26
|
width: r = "100%",
|
|
26
|
-
onChange:
|
|
27
|
-
onKeyPress:
|
|
28
|
-
focusInput:
|
|
29
|
-
variant:
|
|
30
|
-
inputMode:
|
|
31
|
-
autoFocus:
|
|
32
|
-
errorBackground:
|
|
33
|
-
sx:
|
|
34
|
-
} = t
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
onChange: a,
|
|
28
|
+
onKeyPress: f = {},
|
|
29
|
+
focusInput: p = !1,
|
|
30
|
+
variant: h,
|
|
31
|
+
inputMode: y,
|
|
32
|
+
autoFocus: v = !1,
|
|
33
|
+
errorBackground: I = !1,
|
|
34
|
+
sx: R
|
|
35
|
+
} = t;
|
|
36
|
+
let e = s, l = "";
|
|
37
|
+
e.endsWith(x) && (e = e.slice(0, -x.length), l = "no-translate");
|
|
38
|
+
const u = C(null), [c, m] = E(e);
|
|
39
|
+
g(() => {
|
|
40
|
+
m(e);
|
|
41
|
+
}, [e]), g(() => {
|
|
42
|
+
!p || !u.current || u.current.focus();
|
|
43
|
+
}, [u, p]);
|
|
44
|
+
const j = (d) => {
|
|
45
|
+
d.key in f && f[d.key]();
|
|
42
46
|
};
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
47
|
+
return /* @__PURE__ */ w.jsx(
|
|
48
|
+
K,
|
|
45
49
|
{
|
|
46
50
|
"data-testid": "base-input",
|
|
47
51
|
...t,
|
|
48
|
-
variant: `_inputs.${
|
|
52
|
+
variant: `_inputs.${h}`,
|
|
49
53
|
sx: {
|
|
50
54
|
textAlign: n,
|
|
51
55
|
padding: o,
|
|
52
56
|
width: r,
|
|
53
|
-
backgroundColor:
|
|
54
|
-
...
|
|
57
|
+
backgroundColor: I ? "rgba(255, 0, 0, 0.05)" : "",
|
|
58
|
+
...R
|
|
55
59
|
},
|
|
56
|
-
value:
|
|
57
|
-
autoFocus:
|
|
58
|
-
type:
|
|
59
|
-
onChange:
|
|
60
|
-
onKeyPress:
|
|
60
|
+
value: c,
|
|
61
|
+
autoFocus: v,
|
|
62
|
+
type: i,
|
|
63
|
+
onChange: M(c, m, a),
|
|
64
|
+
onKeyPress: j,
|
|
61
65
|
ref: u,
|
|
62
|
-
inputMode:
|
|
66
|
+
inputMode: y,
|
|
67
|
+
className: l
|
|
63
68
|
}
|
|
64
69
|
);
|
|
65
70
|
};
|
|
66
71
|
export {
|
|
67
|
-
|
|
72
|
+
B as Input
|
|
68
73
|
};
|
|
69
74
|
//# sourceMappingURL=sd-component-library71.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library71.js","sources":["../src/components/inputs/input/input.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\n\nimport { Input as RebassInput } from \"@rebass/forms\";\n\nimport { InvalidInputError } from \".\";\nimport { InputProps as Props } from \"./interfaces\";\n\n/**\n * Validate and update the input field's value.\n *\n * @param oldValue The previous input value.\n * @param setValue The new input value.\n * @param callback The callback funciton to run when input changes.\n */\nfunction changeWrapper(\n oldValue: string,\n setValue: React.Dispatch<React.SetStateAction<string>>,\n callback?: (newValue: string, oldValue: string) => void\n): (event: React.ChangeEvent<HTMLInputElement>) => void {\n return (event: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = event.target.value;\n let exceptionRaised = false;\n try {\n callback?.(newValue, oldValue);\n } catch (error) {\n exceptionRaised = true;\n if (!(error instanceof InvalidInputError)) {\n throw error;\n }\n } finally {\n !exceptionRaised && setValue(newValue);\n exceptionRaised && setValue(oldValue);\n }\n };\n}\n\n/**\n * Base input component. Other input components should be built from this.\n */\nexport const Input: React.FC<Props> = (props) => {\n const {\n value = \"\",\n textAlign,\n type,\n padding,\n width = \"100%\",\n onChange,\n onKeyPress = {},\n focusInput = false,\n variant,\n inputMode,\n autoFocus = false,\n errorBackground = false,\n sx,\n } = props;\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n const [mValue, setMValue] = useState(
|
|
1
|
+
{"version":3,"file":"sd-component-library71.js","sources":["../src/components/inputs/input/input.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\n\nimport { Input as RebassInput } from \"@rebass/forms\";\n\nimport { InvalidInputError } from \".\";\nimport { translatedTextSuffix } from \"../../../core/constants\";\nimport { InputProps as Props } from \"./interfaces\";\n\n/**\n * Validate and update the input field's value.\n *\n * @param oldValue The previous input value.\n * @param setValue The new input value.\n * @param callback The callback funciton to run when input changes.\n */\nfunction changeWrapper(\n oldValue: string,\n setValue: React.Dispatch<React.SetStateAction<string>>,\n callback?: (newValue: string, oldValue: string) => void\n): (event: React.ChangeEvent<HTMLInputElement>) => void {\n return (event: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = event.target.value;\n let exceptionRaised = false;\n try {\n callback?.(newValue, oldValue);\n } catch (error) {\n exceptionRaised = true;\n if (!(error instanceof InvalidInputError)) {\n throw error;\n }\n } finally {\n !exceptionRaised && setValue(newValue);\n exceptionRaised && setValue(oldValue);\n }\n };\n}\n\n/**\n * Base input component. Other input components should be built from this.\n */\nexport const Input: React.FC<Props> = (props) => {\n const {\n value = \"\",\n textAlign,\n type,\n padding,\n width = \"100%\",\n onChange,\n onKeyPress = {},\n focusInput = false,\n variant,\n inputMode,\n autoFocus = false,\n errorBackground = false,\n sx,\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 inputRef = useRef<HTMLInputElement>(null);\n\n const [mValue, setMValue] = useState(valueToUse);\n\n useEffect(() => {\n setMValue(valueToUse);\n }, [valueToUse]);\n\n useEffect(() => {\n if (!focusInput || !inputRef.current) return;\n\n inputRef.current.focus();\n }, [inputRef, focusInput]);\n\n const handleOnKeyPress = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key in onKeyPress) {\n onKeyPress[e.key]();\n }\n };\n\n return (\n <RebassInput\n data-testid=\"base-input\"\n {...props}\n variant={`_inputs.${variant}`}\n sx={{\n textAlign,\n padding,\n width,\n backgroundColor: errorBackground ? \"rgba(255, 0, 0, 0.05)\" : \"\",\n ...sx,\n }}\n value={mValue}\n autoFocus={autoFocus}\n type={type}\n onChange={changeWrapper(mValue, setMValue, onChange)}\n onKeyPress={handleOnKeyPress}\n ref={inputRef}\n inputMode={inputMode}\n className={className}\n />\n );\n};\n"],"names":["changeWrapper","oldValue","setValue","callback","event","newValue","exceptionRaised","error","InvalidInputError","Input","props","value","textAlign","type","padding","width","onChange","onKeyPress","focusInput","variant","inputMode","autoFocus","errorBackground","sx","valueToUse","className","translatedTextSuffix","inputRef","useRef","mValue","setMValue","useState","useEffect","handleOnKeyPress","e","jsx","RebassInput"],"mappings":";;;;;AAeA,SAASA,EACPC,GACAC,GACAC,GACsD;AACtD,SAAO,CAACC,MAA+C;AAC/C,UAAAC,IAAWD,EAAM,OAAO;AAC9B,QAAIE,IAAkB;AAClB,QAAA;AACF,MAAAH,KAAA,QAAAA,EAAWE,GAAUJ;AAAA,aACdM,GAAO;AAEV,UADcD,IAAA,IACd,EAAEC,aAAiBC;AACf,cAAAD;AAAA,IACR,UACA;AACC,OAAAD,KAAmBJ,EAASG,CAAQ,GACrCC,KAAmBJ,EAASD,CAAQ;AAAA,IACtC;AAAA,EAAA;AAEJ;AAKa,MAAAQ,IAAyB,CAACC,MAAU;AACzC,QAAA;AAAA,IACJ,OAAAC,IAAQ;AAAA,IACR,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,UAAAC;AAAA,IACA,YAAAC,IAAa,CAAC;AAAA,IACd,YAAAC,IAAa;AAAA,IACb,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,iBAAAC,IAAkB;AAAA,IAClB,IAAAC;AAAA,EACE,IAAAb;AAEJ,MAAIc,IAAab,GACbc,IAAoB;AAEpB,EAAAD,EAAW,SAASE,CAAoB,MAC1CF,IAAaA,EAAW,MAAM,GAAG,CAACE,EAAqB,MAAM,GACjDD,IAAA;AAGR,QAAAE,IAAWC,EAAyB,IAAI,GAExC,CAACC,GAAQC,CAAS,IAAIC,EAASP,CAAU;AAE/C,EAAAQ,EAAU,MAAM;AACd,IAAAF,EAAUN,CAAU;AAAA,EAAA,GACnB,CAACA,CAAU,CAAC,GAEfQ,EAAU,MAAM;AACV,IAAA,CAACd,KAAc,CAACS,EAAS,WAE7BA,EAAS,QAAQ;EAAM,GACtB,CAACA,GAAUT,CAAU,CAAC;AAEnB,QAAAe,IAAmB,CAACC,MAA6C;AACjE,IAAAA,EAAE,OAAOjB,KACAA,EAAAiB,EAAE,GAAG;EAClB;AAIA,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACX,GAAG1B;AAAA,MACJ,SAAS,WAAWS,CAAO;AAAA,MAC3B,IAAI;AAAA,QACF,WAAAP;AAAA,QACA,SAAAE;AAAA,QACA,OAAAC;AAAA,QACA,iBAAiBO,IAAkB,0BAA0B;AAAA,QAC7D,GAAGC;AAAA,MACL;AAAA,MACA,OAAOM;AAAA,MACP,WAAAR;AAAA,MACA,MAAAR;AAAA,MACA,UAAUb,EAAc6B,GAAQC,GAAWd,CAAQ;AAAA,MACnD,YAAYiB;AAAA,MACZ,KAAKN;AAAA,MACL,WAAAP;AAAA,MACA,WAAAK;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-library12.js";
|
|
7
7
|
import { ReactComponent as $ } from "./sd-component-library189.js";
|
|
8
|
-
import { ActionBox as A } from "./sd-component-
|
|
8
|
+
import { ActionBox as A } from "./sd-component-library229.js";
|
|
9
9
|
import { FlexCenter as M } from "./sd-component-library36.js";
|
|
10
10
|
import { HorizontalDivider as a } from "./sd-component-library50.js";
|
|
11
11
|
const G = (d) => {
|
|
@@ -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,6 +1,6 @@
|
|
|
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
5
|
import { OutlineMeterRange as re } from "./sd-component-library237.js";
|
|
6
6
|
import { OutlineMeterScale as ie } from "./sd-component-library238.js";
|
|
@@ -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-
|
|
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
6
|
import { OutlineMeterScale as le } from "./sd-component-library238.js";
|
|
7
|
-
import { DiscreteMeterNeedle as re } from "./sd-component-
|
|
8
|
-
import { MatchedRangeLabelBox as ne } from "./sd-component-
|
|
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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library198.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-library232.js";
|
|
3
3
|
import { MultiOptionDiscreteOutlineMeter as k } from "./sd-component-library94.js";
|
|
4
4
|
function C(e) {
|
|
5
5
|
const {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library198.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-
|
|
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-library232.js";
|
|
4
|
+
import { mapAdjacent as ie, isLabelActive as x, flipPosition as R } from "./sd-component-library241.js";
|
|
5
|
+
import { GradientMeterRange as ne } from "./sd-component-library242.js";
|
|
6
6
|
import { OutlineMeterScale as se } from "./sd-component-library238.js";
|
|
7
|
-
import { GradientMeterNeedle as de } from "./sd-component-
|
|
8
|
-
import { OutlineMeterLabelPointer as le } from "./sd-component-
|
|
9
|
-
import { BaseMeterLabelBox as ue } from "./sd-component-
|
|
7
|
+
import { GradientMeterNeedle as de } from "./sd-component-library243.js";
|
|
8
|
+
import { OutlineMeterLabelPointer as le } from "./sd-component-library244.js";
|
|
9
|
+
import { BaseMeterLabelBox as ue } from "./sd-component-library245.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-library198.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-library232.js";
|
|
3
3
|
import { GradientOutlineMeter as f } from "./sd-component-library96.js";
|
|
4
4
|
const j = (e) => {
|
|
5
5
|
const {
|
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.110",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@rebass/forms": "^4.0.6",
|
|
118
118
|
"date-fns": "^2.30.0",
|
|
119
|
-
"emotion-theming": "^10.0.
|
|
119
|
+
"emotion-theming": "^10.0.27",
|
|
120
120
|
"lodash-es": "^4.17.21",
|
|
121
121
|
"react": "^18.2.0",
|
|
122
122
|
"react-date-range": "1.1.3",
|