@selfdecode/sd-component-library 4.0.123 → 4.0.125
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/inputs/number-input/interfaces.d.ts +1 -1
- package/lib/sd-component-library103.js +1 -1
- package/lib/sd-component-library104.js +2 -2
- package/lib/sd-component-library106.js +4 -4
- package/lib/sd-component-library108.js +4 -4
- package/lib/sd-component-library114.js +1 -1
- package/lib/sd-component-library120.js +1 -1
- package/lib/sd-component-library128.js +2 -2
- package/lib/sd-component-library129.js +2 -2
- 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-library16.js +1 -1
- package/lib/sd-component-library169.js +1 -1
- package/lib/sd-component-library174.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-library206.js +23 -55
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +14 -20
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +5 -19
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +57 -5
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library212.js +40 -21
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +129 -3
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +13 -3
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +14 -40
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +3 -129
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +3 -13
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +63 -12
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +2 -2
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +2 -2
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +52 -3
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +45 -51
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +13 -61
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +21 -3
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +3 -46
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +3 -17
- package/lib/sd-component-library226.js.map +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 +31 -19
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +19 -20
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +20 -28
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +27 -32
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +29 -22
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library237.js +129 -64
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library239.js +40 -36
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +7 -12
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +64 -129
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +36 -40
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +12 -7
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library245.js +1 -1
- package/lib/sd-component-library248.js +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library255.js +2 -325
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +29 -5
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +3 -2
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +17 -18
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +1 -1
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library26.js +1 -1
- package/lib/sd-component-library260.js +324 -21
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +5 -3
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +21 -25
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +22 -24
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library266.js +1 -1
- package/lib/sd-component-library267.js +54 -52
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +52 -54
- package/lib/sd-component-library268.js.map +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 -29
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +121 -17
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +109 -112
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library282.js +10 -2
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +2 -2
- package/lib/sd-component-library284.js +2 -70
- package/lib/sd-component-library284.js.map +1 -1
- package/lib/sd-component-library285.js +69 -101
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library286.js +91 -95
- package/lib/sd-component-library286.js.map +1 -1
- package/lib/sd-component-library287.js +106 -10
- package/lib/sd-component-library287.js.map +1 -1
- package/lib/sd-component-library316.js +1 -1
- package/lib/sd-component-library317.js +2 -2
- package/lib/sd-component-library318.js +24 -4
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library320.js +4 -24
- package/lib/sd-component-library320.js.map +1 -1
- package/lib/sd-component-library323.js +1 -1
- package/lib/sd-component-library53.js +3 -3
- package/lib/sd-component-library57.js +21 -19
- package/lib/sd-component-library57.js.map +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library62.js +1 -1
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +4 -4
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library66.js +2 -2
- package/lib/sd-component-library67.js +1 -1
- package/lib/sd-component-library7.js +1 -1
- package/lib/sd-component-library72.js +2 -2
- package/lib/sd-component-library74.js +3 -3
- package/lib/sd-component-library76.js +2 -2
- package/lib/sd-component-library77.js +3 -3
- package/lib/sd-component-library78.js +23 -21
- package/lib/sd-component-library78.js.map +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library81.js +1 -1
- package/lib/sd-component-library82.js +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-library91.js +4 -4
- 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 +1 -1
- package/lib/sd-component-library97.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { j as x } from "./sd-component-library198.js";
|
|
2
|
+
import { getInnerX as u, degToRad as r, getInnerY as i } from "./sd-component-library93.js";
|
|
3
|
+
const j = (p) => {
|
|
4
|
+
const {
|
|
5
|
+
startX: $,
|
|
6
|
+
startY: e,
|
|
7
|
+
endX: a,
|
|
8
|
+
endY: d,
|
|
9
|
+
radius: n,
|
|
10
|
+
color: A,
|
|
11
|
+
width: t,
|
|
12
|
+
roundStart: l = !0,
|
|
13
|
+
roundEnd: I = !0,
|
|
14
|
+
startAlpha: o,
|
|
15
|
+
endAlpha: s
|
|
16
|
+
} = p, c = s - o, m = u($, r(o), t), X = i(e, r(o), t), Y = u(a, r(s), t), h = i(d, r(s), t);
|
|
17
|
+
return /* @__PURE__ */ x.jsx(
|
|
18
|
+
"path",
|
|
19
|
+
{
|
|
20
|
+
d: `M${$},${e} A${n},${n} 0 ${c > 180 ? "1" : "0"},1 ${a},${d} ${I ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${Y},${h} A${n - t},${n - t} 0 ${c > 180 ? "1" : "0"},0 ${m},${X} ${l ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${$},${e}`,
|
|
21
|
+
fill: A
|
|
22
|
+
}
|
|
23
|
+
);
|
|
4
24
|
};
|
|
5
25
|
export {
|
|
6
|
-
|
|
26
|
+
j as BaseOutlineArc
|
|
7
27
|
};
|
|
8
28
|
//# 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-outline-arc/base-outline-arc.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { degToRad, getInnerX, getInnerY } from \"../../utils\";\nimport { BaseOutlineArcProps as Props } from \"./interfaces\";\n\nexport const BaseOutlineArc: React.FC<Props> = (props) => {\n const {\n startX,\n startY,\n endX,\n endY,\n radius,\n color,\n width,\n roundStart = true,\n roundEnd = true,\n startAlpha,\n endAlpha,\n } = props;\n\n const arc = endAlpha - startAlpha;\n\n const startInnerX = getInnerX(startX, degToRad(startAlpha), width);\n const startInnerY = getInnerY(startY, degToRad(startAlpha), width);\n\n const endInnerX = getInnerX(endX, degToRad(endAlpha), width);\n const endInnerY = getInnerY(endY, degToRad(endAlpha), width);\n\n return (\n <path\n d={`M${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY} ${\n roundEnd ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${endInnerX},${endInnerY} A${radius - width},${radius - width} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },0 ${startInnerX},${startInnerY} ${\n roundStart ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${startX},${startY}`}\n fill={color}\n />\n );\n};\n"],"names":["BaseOutlineArc","props","startX","startY","endX","endY","radius","color","width","roundStart","roundEnd","startAlpha","endAlpha","arc","startInnerX","getInnerX","degToRad","startInnerY","getInnerY","endInnerX","endInnerY","jsx"],"mappings":";;AAKa,MAAAA,IAAkC,CAACC,MAAU;AAClD,QAAA;AAAA,IACJ,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,UAAAC,IAAW;AAAA,IACX,YAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAX,GAEEY,IAAMD,IAAWD,GAEjBG,IAAcC,EAAUb,GAAQc,EAASL,CAAU,GAAGH,CAAK,GAC3DS,IAAcC,EAAUf,GAAQa,EAASL,CAAU,GAAGH,CAAK,GAE3DW,IAAYJ,EAAUX,GAAMY,EAASJ,CAAQ,GAAGJ,CAAK,GACrDY,IAAYF,EAAUb,GAAMW,EAASJ,CAAQ,GAAGJ,CAAK;AAGzD,SAAAa,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAG,IAAInB,CAAM,IAAIC,CAAM,KAAKG,CAAM,IAAIA,CAAM,MAC1CO,IAAM,MAAM,MAAM,GACpB,MAAMT,CAAI,IAAIC,CAAI,IAChBK,IAAW,IAAIF,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACnD,GAAGW,CAAS,IAAIC,CAAS,KAAKd,IAASE,CAAK,IAAIF,IAASE,CAAK,MAC5DK,IAAM,MAAM,MAAM,GACpB,MAAMC,CAAW,IAAIG,CAAW,IAC9BR,IAAa,IAAID,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACrD,GAAGN,CAAM,IAAIC,CAAM;AAAA,MACnB,MAAMI;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const {
|
|
5
|
-
startX: $,
|
|
6
|
-
startY: e,
|
|
7
|
-
endX: a,
|
|
8
|
-
endY: d,
|
|
9
|
-
radius: n,
|
|
10
|
-
color: A,
|
|
11
|
-
width: t,
|
|
12
|
-
roundStart: l = !0,
|
|
13
|
-
roundEnd: I = !0,
|
|
14
|
-
startAlpha: o,
|
|
15
|
-
endAlpha: s
|
|
16
|
-
} = p, c = s - o, m = u($, r(o), t), X = i(e, r(o), t), Y = u(a, r(s), t), h = i(d, r(s), t);
|
|
17
|
-
return /* @__PURE__ */ x.jsx(
|
|
18
|
-
"path",
|
|
19
|
-
{
|
|
20
|
-
d: `M${$},${e} A${n},${n} 0 ${c > 180 ? "1" : "0"},1 ${a},${d} ${I ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${Y},${h} A${n - t},${n - t} 0 ${c > 180 ? "1" : "0"},0 ${m},${X} ${l ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${$},${e}`,
|
|
21
|
-
fill: A
|
|
22
|
-
}
|
|
23
|
-
);
|
|
1
|
+
const p = (c, r, n, t) => {
|
|
2
|
+
const o = c - (r - 1) * n, s = t / r, e = (t + 1) / r, a = (360 - c) / 2 + n * t + o * s, S = a + o * (e - s);
|
|
3
|
+
return { rangeArcStart: a, rangeArcEnd: S };
|
|
24
4
|
};
|
|
25
5
|
export {
|
|
26
|
-
|
|
6
|
+
p as getRangeProperties
|
|
27
7
|
};
|
|
28
8
|
//# sourceMappingURL=sd-component-library320.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library320.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library320.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/utils.ts"],"sourcesContent":["export const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n\n const start = idx / totalRanges;\n const end = (idx + 1) / totalRanges;\n\n const arcStart = (360 - arc) / 2; // deg\n\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n return { rangeArcStart, rangeArcEnd };\n};\n"],"names":["getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","arcForRanges","start","end","rangeArcStart","rangeArcEnd"],"mappings":"AAAO,MAAMA,IAAqB,CAChCC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeJ,KAAOC,IAAc,KAAKC,GAEzCG,IAAQF,IAAMF,GACdK,KAAOH,IAAM,KAAKF,GAIlBM,KAFY,MAAMP,KAAO,IAGlBE,IAAwBC,IAAMC,IAAeC,GAEpDG,IAAcD,IAAgBH,KAAgBE,IAAMD;AAEnD,SAAA,EAAE,eAAAE,GAAe,aAAAC;AAC1B;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library198.js";
|
|
2
|
-
import { getSelectedRangeText as l } from "./sd-component-
|
|
2
|
+
import { getSelectedRangeText as l } from "./sd-component-library285.js";
|
|
3
3
|
import { FourteenRegular as n } from "./sd-component-library146.js";
|
|
4
4
|
import { FourteenSb as p } from "./sd-component-library147.js";
|
|
5
5
|
import { BaseGridContainer as i } from "./sd-component-library37.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library198.js";
|
|
2
|
-
import { BaseBooleanFeedback as m } from "./sd-component-
|
|
2
|
+
import { BaseBooleanFeedback as m } from "./sd-component-library224.js";
|
|
3
3
|
import { IconButton as n } from "./sd-component-library23.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-library225.js";
|
|
5
|
+
import { ReactComponent as u } from "./sd-component-library226.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,19 +1,19 @@
|
|
|
1
1
|
import { j as i } from "./sd-component-library198.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Input as
|
|
2
|
+
import { useState as V, useEffect as y, useCallback as B } from "react";
|
|
3
|
+
import { Input as I } from "@rebass/forms";
|
|
4
4
|
import { translatedTextSuffix as d } from "./sd-component-library5.js";
|
|
5
|
-
import { InputContainer as
|
|
6
|
-
import { InvalidInputError as
|
|
7
|
-
const
|
|
5
|
+
import { InputContainer as E } from "./sd-component-library60.js";
|
|
6
|
+
import { InvalidInputError as W } from "./sd-component-library70.js";
|
|
7
|
+
const S = (a, n, s) => (r) => {
|
|
8
8
|
const e = r.target.value;
|
|
9
9
|
try {
|
|
10
10
|
const o = s(e);
|
|
11
11
|
a(e), o && n(e);
|
|
12
12
|
} catch (o) {
|
|
13
|
-
if (!(o instanceof
|
|
13
|
+
if (!(o instanceof W))
|
|
14
14
|
throw o;
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, D = ({
|
|
17
17
|
value: a,
|
|
18
18
|
onChange: n,
|
|
19
19
|
validateValue: s = () => !0,
|
|
@@ -24,21 +24,21 @@ const W = (a, n, s) => (r) => {
|
|
|
24
24
|
let t = a;
|
|
25
25
|
const c = e;
|
|
26
26
|
t.endsWith(d) && (t = t.slice(0, -d.length), c.concat("no-translate"));
|
|
27
|
-
const [p, m] =
|
|
28
|
-
|
|
27
|
+
const [p, m] = V(t);
|
|
28
|
+
y(() => {
|
|
29
29
|
t !== void 0 && m(t);
|
|
30
30
|
}, [t]);
|
|
31
|
-
const f =
|
|
31
|
+
const f = B(
|
|
32
32
|
(l) => {
|
|
33
33
|
r && (l == null || l.focus());
|
|
34
34
|
},
|
|
35
35
|
[r]
|
|
36
36
|
);
|
|
37
37
|
return /* @__PURE__ */ i.jsx(
|
|
38
|
-
|
|
38
|
+
I,
|
|
39
39
|
{
|
|
40
40
|
variant: "_inputs.v2",
|
|
41
|
-
onChange:
|
|
41
|
+
onChange: S(m, n, s),
|
|
42
42
|
value: p,
|
|
43
43
|
...o,
|
|
44
44
|
sx: {
|
|
@@ -53,7 +53,7 @@ const W = (a, n, s) => (r) => {
|
|
|
53
53
|
ref: f
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
|
-
}, h = "16px",
|
|
56
|
+
}, h = "16px", L = ({
|
|
57
57
|
value: a,
|
|
58
58
|
onChange: n,
|
|
59
59
|
id: s,
|
|
@@ -72,16 +72,17 @@ const W = (a, n, s) => (r) => {
|
|
|
72
72
|
inputPr: g,
|
|
73
73
|
inputMode: w,
|
|
74
74
|
type: b,
|
|
75
|
-
|
|
75
|
+
className: j,
|
|
76
|
+
...C
|
|
76
77
|
}) => /* @__PURE__ */ i.jsxs(
|
|
77
|
-
|
|
78
|
+
E,
|
|
78
79
|
{
|
|
79
80
|
id: s,
|
|
80
81
|
cursor: r ? "not-allowed" : "pointer",
|
|
81
|
-
...
|
|
82
|
+
...C,
|
|
82
83
|
children: [
|
|
83
84
|
/* @__PURE__ */ i.jsx(
|
|
84
|
-
|
|
85
|
+
D,
|
|
85
86
|
{
|
|
86
87
|
value: a,
|
|
87
88
|
onChange: n,
|
|
@@ -97,6 +98,7 @@ const W = (a, n, s) => (r) => {
|
|
|
97
98
|
maxLength: l,
|
|
98
99
|
inputMode: w,
|
|
99
100
|
type: b,
|
|
101
|
+
className: j,
|
|
100
102
|
pr: g ?? (u ? `calc(${h} + ${x} + 2px)` : void 0)
|
|
101
103
|
}
|
|
102
104
|
),
|
|
@@ -128,7 +130,7 @@ const W = (a, n, s) => (r) => {
|
|
|
128
130
|
}
|
|
129
131
|
);
|
|
130
132
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
D as FormV2Input,
|
|
134
|
+
L as FormV2InputWithContainer
|
|
133
135
|
};
|
|
134
136
|
//# 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 className = \"\",\n ...props\n}) => {\n let valueToUse = value;\n const finalClassName = className;\n\n if (valueToUse.endsWith(translatedTextSuffix)) {\n valueToUse = valueToUse.slice(0, -translatedTextSuffix.length);\n finalClassName.concat(\"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={finalClassName}\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 inputMode,\n type,\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 inputMode,\n type,\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","className","props","valueToUse","finalClassName","translatedTextSuffix","displayedValue","useState","useEffect","ref","useCallback","input","jsx","RebassInput","checkMarkWidth","FormV2InputWithContainer","id","disabled","onFocus","onBlur","placeholder","autoFocus","onKeyPress","maxLength","showCheckMark","checkmarkRight","children","inputPr","inputMode","type","containerProps","jsxs","InputContainer"],"mappings":";;;;;;AASA,MAAMA,IACJ,CACEC,GACAC,GACAC,MAEF,CAACC,MAA+C;AACxC,QAAAC,IAAWD,EAAM,OAAO;AAC1B,MAAA;AACI,UAAAE,IAAUH,EAAcE,CAAQ;AACtC,IAAAJ,EAAkBI,CAAQ,GAC1BC,KAAWJ,EAASG,CAAQ;AAAA,WACrBE,GAAO;AACd,QAAI,EAAEA,aAAiBC;AAA0B,YAAAD;AAAA,EACnD;AACF,GAEWE,IAA+B,CAAC;AAAA,EAC3C,OAAAC;AAAA,EACA,UAAAR;AAAA,EACA,eAAAC,IAAgB,MAAM;AAAA,EACtB,YAAAQ;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,MAAM;AACJ,MAAIC,IAAaJ;AACjB,QAAMK,IAAiBH;AAEnB,EAAAE,EAAW,SAASE,CAAoB,MAC1CF,IAAaA,EAAW,MAAM,GAAG,CAACE,EAAqB,MAAM,GAC7DD,EAAe,OAAO,cAAc;AAGtC,QAAM,CAACE,GAAgBhB,CAAiB,IAAIiB,EAASJ,CAAU;AAE/D,EAAAK,EAAU,MAAM;AACC,IAAAL,MAAA,UAAab,EAAkBa,CAAU;AAAA,EAAA,GACvD,CAACA,CAAU,CAAC;AAEf,QAAMM,IAAMC;AAAA,IACV,CAACC,MAAmC;AAClC,MAAAX,MAAcW,KAAA,QAAAA,EAAO;AAAA,IACvB;AAAA,IACA,CAACX,CAAU;AAAA,EAAA;AAIX,SAAAY,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,UAAUxB,EAAoBC,GAAmBC,GAAUC,CAAa;AAAA,MACxE,OAAOc;AAAA,MACN,GAAGJ;AAAA,MACJ,IAAI;AAAA,QACF,UAAU;AAAA,UACR,mBAAmB;AAAA,UACnB,mBAAmB;AAAA,UACnB,mBAAmB;AAAA,UACnB,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,WAAWE;AAAA,MACX,KAAAK;AAAA,IAAA;AAAA,EAAA;AAGN,GAEMK,IAAiB,QAEVC,IAOT,CAAC;AAAA,EACH,OAAAhB;AAAA,EACA,UAAAR;AAAA,EACA,IAAAyB;AAAA,EACA,UAAAC;AAAA,EACA,eAAAzB;AAAA,EACA,SAAA0B;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAtB;AAAA,EACA,WAAAuB;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,
|
|
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 className = \"\",\n ...props\n}) => {\n let valueToUse = value;\n const finalClassName = className;\n\n if (valueToUse.endsWith(translatedTextSuffix)) {\n valueToUse = valueToUse.slice(0, -translatedTextSuffix.length);\n finalClassName.concat(\"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={finalClassName}\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 inputMode,\n type,\n className,\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 inputMode,\n type,\n className,\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","className","props","valueToUse","finalClassName","translatedTextSuffix","displayedValue","useState","useEffect","ref","useCallback","input","jsx","RebassInput","checkMarkWidth","FormV2InputWithContainer","id","disabled","onFocus","onBlur","placeholder","autoFocus","onKeyPress","maxLength","showCheckMark","checkmarkRight","children","inputPr","inputMode","type","containerProps","jsxs","InputContainer"],"mappings":"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"}
|
|
@@ -2,7 +2,7 @@ import { j as e } from "./sd-component-library198.js";
|
|
|
2
2
|
import { useRef as T, useState as q, useCallback as J } from "react";
|
|
3
3
|
import { Box as o } from "rebass";
|
|
4
4
|
import { useResize as K } from "./sd-component-library3.js";
|
|
5
|
-
import { ReactComponent as L } from "./sd-component-
|
|
5
|
+
import { ReactComponent as L } from "./sd-component-library205.js";
|
|
6
6
|
const Z = (p) => {
|
|
7
7
|
const {
|
|
8
8
|
width: x = ["100%"],
|
|
@@ -3,7 +3,7 @@ import { useState as d, useRef as w, useCallback as I, useMemo as L } from "reac
|
|
|
3
3
|
import { Box as V } from "rebass";
|
|
4
4
|
import { useOnClickOutside as _ } from "./sd-component-library3.js";
|
|
5
5
|
import { SecondaryTextInput as $ } from "./sd-component-library79.js";
|
|
6
|
-
import { ResultsBox as A } from "./sd-component-
|
|
6
|
+
import { ResultsBox as A } from "./sd-component-library212.js";
|
|
7
7
|
function P(i, l, a) {
|
|
8
8
|
const o = (c) => {
|
|
9
9
|
const t = c.toLowerCase().indexOf(a.toLowerCase());
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "./sd-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";
|
|
5
4
|
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,12 +1,12 @@
|
|
|
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";
|
|
4
3
|
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
|
-
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-library285.js";
|
|
8
|
+
import { BaseDateRangeInputMobile as O } from "./sd-component-library286.js";
|
|
9
|
+
import { BaseDateRangeInputDesktop as P } from "./sd-component-library287.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-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-library282.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,8 +2,8 @@ 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-
|
|
6
|
-
import { BaseLabel as E } from "./sd-component-
|
|
5
|
+
import { ReactComponent as z } from "./sd-component-library282.js";
|
|
6
|
+
import { BaseLabel as E } from "./sd-component-library223.js";
|
|
7
7
|
import { OutsideClickBox as J } from "./sd-component-library12.js";
|
|
8
8
|
import { BaseDateRangeInput as L } from "./sd-component-library64.js";
|
|
9
9
|
import { IconButton as X } from "./sd-component-library23.js";
|
|
@@ -4,7 +4,7 @@ import { format as k } from "date-fns";
|
|
|
4
4
|
import { random as G } from "lodash-es";
|
|
5
5
|
import { Box as r } from "rebass";
|
|
6
6
|
import { BaseDateInput as I } from "./sd-component-library63.js";
|
|
7
|
-
import { BaseLabel as M } from "./sd-component-
|
|
7
|
+
import { BaseLabel as M } from "./sd-component-library223.js";
|
|
8
8
|
import { ReactComponent as A } from "./sd-component-library189.js";
|
|
9
9
|
import { FrMaxContainer as L } from "./sd-component-library39.js";
|
|
10
10
|
import { ResponsiveText as P } from "./sd-component-library150.js";
|
|
@@ -4,7 +4,7 @@ import { Box as i, Flex as b } from "rebass";
|
|
|
4
4
|
import { isPDFFlow as v } from "./sd-component-library4.js";
|
|
5
5
|
import { SecondaryBadge as C } from "./sd-component-library10.js";
|
|
6
6
|
import { MaxFrContainer as E } from "./sd-component-library41.js";
|
|
7
|
-
import { ReactComponent as S } from "./sd-component-
|
|
7
|
+
import { ReactComponent as S } from "./sd-component-library205.js";
|
|
8
8
|
const $ = (d) => {
|
|
9
9
|
const {
|
|
10
10
|
header: s,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as n } from "./sd-component-library198.js";
|
|
2
2
|
import { useState as z } from "react";
|
|
3
|
-
import D from "./sd-component-
|
|
3
|
+
import D from "./sd-component-library213.js";
|
|
4
4
|
import u from "./sd-component-library197.js";
|
|
5
|
-
import { escapeWrapper as F, unescapeWrapper as d } from "./sd-component-
|
|
5
|
+
import { escapeWrapper as F, unescapeWrapper as d } from "./sd-component-library214.js";
|
|
6
6
|
import { GridContainerV2 as G } from "./sd-component-library40.js";
|
|
7
7
|
import { BaseTextV2 as T } from "./sd-component-library140.js";
|
|
8
8
|
import { HorizontalDivider as B } from "./sd-component-library50.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as i } from "./sd-component-library198.js";
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { Flex as R } from "rebass";
|
|
4
|
-
import { CircleButton as a } from "./sd-component-
|
|
5
|
-
import { ReactComponent as _ } from "./sd-component-
|
|
4
|
+
import { CircleButton as a } from "./sd-component-library215.js";
|
|
5
|
+
import { ReactComponent as _ } from "./sd-component-library216.js";
|
|
6
6
|
import { NumberInput as D } from "./sd-component-library73.js";
|
|
7
|
-
import { ReactComponent as I } from "./sd-component-
|
|
7
|
+
import { ReactComponent as I } from "./sd-component-library217.js";
|
|
8
8
|
function m(d, t) {
|
|
9
9
|
return (r, o) => {
|
|
10
10
|
t == null || t(r, o), d(r);
|
|
@@ -2,8 +2,8 @@ import { j as t } from "./sd-component-library198.js";
|
|
|
2
2
|
import { useState as d } from "react";
|
|
3
3
|
import { OutsideClickBox as g } from "./sd-component-library12.js";
|
|
4
4
|
import { SecondaryTextInput as j } from "./sd-component-library79.js";
|
|
5
|
-
import { ReactComponent as v } from "./sd-component-
|
|
6
|
-
import { SearchAutocompleteResultsBox as C } from "./sd-component-
|
|
5
|
+
import { ReactComponent as v } from "./sd-component-library219.js";
|
|
6
|
+
import { SearchAutocompleteResultsBox as C } from "./sd-component-library221.js";
|
|
7
7
|
const F = (s) => {
|
|
8
8
|
const {
|
|
9
9
|
searchValue: r,
|
|
@@ -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-library218.js";
|
|
5
5
|
import { OutsideClickBox as G } from "./sd-component-library12.js";
|
|
6
6
|
import { PrimaryTextInput as H } from "./sd-component-library75.js";
|
|
7
|
-
import { ReactComponent as J } from "./sd-component-
|
|
8
|
-
import { ReactComponent as M } from "./sd-component-
|
|
7
|
+
import { ReactComponent as J } from "./sd-component-library219.js";
|
|
8
|
+
import { ReactComponent as M } from "./sd-component-library220.js";
|
|
9
9
|
function f(i, o, e, t) {
|
|
10
10
|
t == null || t(i, o), e(i);
|
|
11
11
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library198.js";
|
|
2
|
-
import { Box as
|
|
3
|
-
import { SecondaryInputLabels as
|
|
2
|
+
import { Box as B } from "rebass";
|
|
3
|
+
import { SecondaryInputLabels as N } from "./sd-component-library222.js";
|
|
4
4
|
import { NumberInput as A } from "./sd-component-library73.js";
|
|
5
|
-
const
|
|
5
|
+
const w = (e) => {
|
|
6
6
|
const {
|
|
7
|
-
placeholder:
|
|
7
|
+
placeholder: n,
|
|
8
8
|
value: t,
|
|
9
|
-
onChange:
|
|
10
|
-
focusInput:
|
|
11
|
-
m
|
|
12
|
-
mb:
|
|
13
|
-
ml:
|
|
14
|
-
mr:
|
|
9
|
+
onChange: a,
|
|
10
|
+
focusInput: o,
|
|
11
|
+
m,
|
|
12
|
+
mb: s,
|
|
13
|
+
ml: d,
|
|
14
|
+
mr: i,
|
|
15
15
|
mt: u,
|
|
16
16
|
width: p,
|
|
17
17
|
padding: c,
|
|
@@ -23,18 +23,19 @@ const k = (n) => {
|
|
|
23
23
|
inputMode: h,
|
|
24
24
|
useAdvancedBehavior: j,
|
|
25
25
|
errorBackground: y,
|
|
26
|
-
onFocus: v
|
|
27
|
-
|
|
26
|
+
onFocus: v,
|
|
27
|
+
className: I
|
|
28
|
+
} = e;
|
|
28
29
|
return /* @__PURE__ */ r.jsxs(
|
|
29
|
-
|
|
30
|
+
B,
|
|
30
31
|
{
|
|
31
|
-
sx: { m
|
|
32
|
+
sx: { m, mb: s, ml: d, mr: i, mt: u, width: p, padding: c },
|
|
32
33
|
"data-testid": "secondary-number-input",
|
|
33
34
|
children: [
|
|
34
35
|
/* @__PURE__ */ r.jsx(
|
|
35
|
-
|
|
36
|
+
N,
|
|
36
37
|
{
|
|
37
|
-
...
|
|
38
|
+
...e,
|
|
38
39
|
"data-testid": "secondary-number-input-labels"
|
|
39
40
|
}
|
|
40
41
|
),
|
|
@@ -46,14 +47,15 @@ const k = (n) => {
|
|
|
46
47
|
max: g,
|
|
47
48
|
textAlign: l,
|
|
48
49
|
value: t,
|
|
49
|
-
placeholder:
|
|
50
|
-
focusInput:
|
|
51
|
-
onChange:
|
|
50
|
+
placeholder: n,
|
|
51
|
+
focusInput: o,
|
|
52
|
+
onChange: a,
|
|
52
53
|
padding: x,
|
|
53
54
|
inputMode: h,
|
|
54
55
|
useAdvancedBehavior: j,
|
|
55
56
|
errorBackground: y,
|
|
56
|
-
onFocus: v
|
|
57
|
+
onFocus: v,
|
|
58
|
+
className: I
|
|
57
59
|
}
|
|
58
60
|
)
|
|
59
61
|
]
|
|
@@ -61,6 +63,6 @@ const k = (n) => {
|
|
|
61
63
|
);
|
|
62
64
|
};
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
w as SecondaryNumberInput
|
|
65
67
|
};
|
|
66
68
|
//# sourceMappingURL=sd-component-library78.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library78.js","sources":["../src/components/inputs/secondary-number-input/secondary-number-input.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { NumberInput } from \"../number-input\";\nimport { SecondaryInputLabels } from \"../secondary-text-input/partials/secondary-input-labels\";\nimport { SecondaryNumberInputProps } from \"./interfaces\";\n\nexport const SecondaryNumberInput: React.FC<SecondaryNumberInputProps> = (\n props\n) => {\n const {\n placeholder,\n value,\n onChange,\n focusInput,\n m,\n mb,\n ml,\n mr,\n mt,\n width,\n padding,\n inputPadding = [\"14px 0\"],\n textAlign,\n min,\n max,\n errorMessage,\n inputMode,\n useAdvancedBehavior,\n errorBackground,\n onFocus,\n } = props;\n\n return (\n <Box\n sx={{ m, mb, ml, mr, mt, width, padding }}\n data-testid=\"secondary-number-input\"\n >\n <SecondaryInputLabels\n {...props}\n data-testid=\"secondary-number-input-labels\"\n />\n\n <NumberInput\n variant={`primary${errorMessage ? \"Error\" : \"\"}`}\n min={min}\n max={max}\n textAlign={textAlign}\n value={value}\n placeholder={placeholder}\n focusInput={focusInput}\n onChange={onChange}\n padding={inputPadding}\n inputMode={inputMode}\n useAdvancedBehavior={useAdvancedBehavior}\n errorBackground={errorBackground}\n onFocus={onFocus}\n />\n </Box>\n );\n};\n"],"names":["SecondaryNumberInput","props","placeholder","value","onChange","focusInput","
|
|
1
|
+
{"version":3,"file":"sd-component-library78.js","sources":["../src/components/inputs/secondary-number-input/secondary-number-input.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { NumberInput } from \"../number-input\";\nimport { SecondaryInputLabels } from \"../secondary-text-input/partials/secondary-input-labels\";\nimport { SecondaryNumberInputProps } from \"./interfaces\";\n\nexport const SecondaryNumberInput: React.FC<SecondaryNumberInputProps> = (\n props\n) => {\n const {\n placeholder,\n value,\n onChange,\n focusInput,\n m,\n mb,\n ml,\n mr,\n mt,\n width,\n padding,\n inputPadding = [\"14px 0\"],\n textAlign,\n min,\n max,\n errorMessage,\n inputMode,\n useAdvancedBehavior,\n errorBackground,\n onFocus,\n className,\n } = props;\n\n return (\n <Box\n sx={{ m, mb, ml, mr, mt, width, padding }}\n data-testid=\"secondary-number-input\"\n >\n <SecondaryInputLabels\n {...props}\n data-testid=\"secondary-number-input-labels\"\n />\n\n <NumberInput\n variant={`primary${errorMessage ? \"Error\" : \"\"}`}\n min={min}\n max={max}\n textAlign={textAlign}\n value={value}\n placeholder={placeholder}\n focusInput={focusInput}\n onChange={onChange}\n padding={inputPadding}\n inputMode={inputMode}\n useAdvancedBehavior={useAdvancedBehavior}\n errorBackground={errorBackground}\n onFocus={onFocus}\n className={className}\n />\n </Box>\n );\n};\n"],"names":["SecondaryNumberInput","props","placeholder","value","onChange","focusInput","mb","ml","mr","mt","width","padding","inputPadding","textAlign","min","max","errorMessage","inputMode","useAdvancedBehavior","errorBackground","onFocus","className","jsxs","Box","jsx","SecondaryInputLabels","NumberInput"],"mappings":";;;;AAQa,MAAAA,IAA4D,CACvEC,MACG;AACG,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC,IAAe,CAAC,QAAQ;AAAA,IACxB,WAAAC;AAAA,IACA,KAAAC;AAAA,IACA,KAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,EACE,IAAApB;AAGF,SAAAqB,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI,EAAE,GAAG,IAAAjB,GAAI,IAAAC,GAAI,IAAAC,GAAI,IAAAC,GAAI,OAAAC,GAAO,SAAAC,EAAQ;AAAA,MACxC,eAAY;AAAA,MAEZ,UAAA;AAAA,QAAAa,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACE,GAAGxB;AAAA,YACJ,eAAY;AAAA,UAAA;AAAA,QACd;AAAA,QAEAuB,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,SAAS,UAAUV,IAAe,UAAU,EAAE;AAAA,YAC9C,KAAAF;AAAA,YACA,KAAAC;AAAA,YACA,WAAAF;AAAA,YACA,OAAAV;AAAA,YACA,aAAAD;AAAA,YACA,YAAAG;AAAA,YACA,UAAAD;AAAA,YACA,SAASQ;AAAA,YACT,WAAAK;AAAA,YACA,qBAAAC;AAAA,YACA,iBAAAC;AAAA,YACA,SAAAC;AAAA,YACA,WAAAC;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -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-library222.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,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as p } from "rebass";
|
|
3
3
|
import { PrimaryTextInput as x } from "./sd-component-library75.js";
|
|
4
|
-
import { ReactComponent as m } from "./sd-component-
|
|
4
|
+
import { ReactComponent as m } from "./sd-component-library219.js";
|
|
5
5
|
const j = ({
|
|
6
6
|
placeholder: s = "Enter your Search",
|
|
7
7
|
searchStyle: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library198.js";
|
|
2
2
|
import { Box as c } from "rebass";
|
|
3
|
-
import { BaseLabel as e } from "./sd-component-
|
|
3
|
+
import { BaseLabel as e } from "./sd-component-library223.js";
|
|
4
4
|
import { TextInput as m } from "./sd-component-library80.js";
|
|
5
5
|
import { BaseTextV2 as s } from "./sd-component-library140.js";
|
|
6
6
|
const _ = ({
|
|
@@ -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-library230.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-library231.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-library232.js";
|
|
8
|
+
import { isCorrectSmileyMeterConfig as Z, getIsHorizontal as ee } from "./sd-component-library233.js";
|
|
9
|
+
import { SmileyMeterRanges as te } from "./sd-component-library234.js";
|
|
10
|
+
import { MatchedRangeLabelBox as ie } from "./sd-component-library235.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-library231.js";
|
|
3
|
+
import { smallSmileyMeterWidth as d, smallSmileyMeterHeight as h, smallSmileyGaugeWidth as S, smallSmileyWidth as u, smallSmileyInnerPointRadius as y, smallSmileyInnerPointStrokeWidth as g } from "./sd-component-library232.js";
|
|
4
4
|
import { SmileyMeterV2 as W } from "./sd-component-library88.js";
|
|
5
5
|
const k = (e) => {
|
|
6
6
|
const {
|
|
@@ -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-library231.js";
|
|
4
4
|
import { isCorrectOutlineMeterConfig as ae } from "./sd-component-library93.js";
|
|
5
|
-
import { OutlineMeterRange as re } from "./sd-component-
|
|
5
|
+
import { OutlineMeterRange as re } from "./sd-component-library237.js";
|
|
6
6
|
import { OutlineMeterScale as ie } from "./sd-component-library238.js";
|
|
7
|
-
import { OutlineMeterNeedle as se } from "./sd-component-
|
|
8
|
-
import { OutlineMeterLabelBox as oe } from "./sd-component-
|
|
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-library231.js";
|
|
3
3
|
import { OutlineMeter as C } from "./sd-component-library91.js";
|
|
4
4
|
const T = (e) => {
|
|
5
5
|
const {
|