@selfdecode/sd-component-library 4.0.87 → 4.0.88
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-library117.js +1 -1
- package/lib/sd-component-library118.js +1 -1
- package/lib/sd-component-library120.js +1 -1
- package/lib/sd-component-library121.js +1 -1
- package/lib/sd-component-library126.js +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library129.js +1 -1
- package/lib/sd-component-library132.js +3 -3
- package/lib/sd-component-library133.js +1 -1
- package/lib/sd-component-library135.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library195.js +3 -3
- package/lib/sd-component-library199.js +2 -57
- package/lib/sd-component-library199.js.map +1 -1
- package/lib/sd-component-library200.js +30 -3
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +599 -2
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +3 -30
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +57 -599
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +19 -59
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +14 -20
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +5 -19
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +3 -3
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +65 -5
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library23.js +2 -2
- package/lib/sd-component-library231.js +1 -1
- package/lib/sd-component-library232.js +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library262.js +27 -27
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +13 -43
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +112 -118
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +105 -57
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +9 -75
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +50 -30
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +29 -20
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +44 -118
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +113 -104
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +73 -9
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +68 -42
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library314.js +89 -47
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library315.js +47 -89
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library32.js +1 -1
- package/lib/sd-component-library33.js +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library57.js +54 -54
- package/lib/sd-component-library57.js.map +1 -1
- package/lib/sd-component-library58.js +9 -8
- package/lib/sd-component-library58.js.map +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,68 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { j as r } from "./sd-component-library195.js";
|
|
2
|
+
import { Box as n } from "rebass";
|
|
3
|
+
import { useHover as S } from "./sd-component-library3.js";
|
|
4
|
+
import { isTouchScreen as j } from "./sd-component-library4.js";
|
|
5
|
+
import { FlexItemsCenter as v, FlexCenter as z } from "./sd-component-library35.js";
|
|
6
|
+
const g = "10px", e = "20px", B = "5px", R = ({
|
|
7
|
+
disabled: o,
|
|
8
|
+
containerSx: x,
|
|
9
|
+
showHoverCheckbox: c,
|
|
10
|
+
bg: s,
|
|
11
|
+
showBGColorWhenIdle: l,
|
|
12
|
+
disabledColor: p = "cl_grey",
|
|
13
|
+
color: h = "cl_blue",
|
|
14
|
+
children: d,
|
|
15
|
+
showInnerBox: m,
|
|
16
|
+
onClick: u,
|
|
17
|
+
borderRadius: C = "3px",
|
|
18
|
+
borderWidth: a = "2px",
|
|
19
|
+
innerBoxSx: f
|
|
20
|
+
}) => {
|
|
21
|
+
const { isHover: b, hoverCallbacks: k } = S(), t = b || !c || j(), i = o ? p : h;
|
|
22
|
+
return /* @__PURE__ */ r.jsxs(
|
|
23
|
+
v,
|
|
24
|
+
{
|
|
25
|
+
onClick: o ? void 0 : u,
|
|
26
|
+
sx: {
|
|
27
|
+
cursor: o ? "default" : "pointer",
|
|
28
|
+
gap: "10px",
|
|
29
|
+
...x
|
|
30
|
+
},
|
|
31
|
+
...k,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ r.jsx(n, { size: e, sx: { flexShrink: 0 }, children: /* @__PURE__ */ r.jsx(
|
|
34
|
+
z,
|
|
35
|
+
{
|
|
36
|
+
width: t ? e : B,
|
|
37
|
+
height: e,
|
|
38
|
+
bg: l && t ? "" : s,
|
|
39
|
+
sx: {
|
|
40
|
+
flexShrink: 0,
|
|
41
|
+
borderRadius: C,
|
|
42
|
+
borderWidth: a,
|
|
43
|
+
borderColor: i,
|
|
44
|
+
borderStyle: "solid",
|
|
45
|
+
transition: "width 0.1s ease-in"
|
|
46
|
+
},
|
|
47
|
+
children: m && /* @__PURE__ */ r.jsx(
|
|
48
|
+
n,
|
|
49
|
+
{
|
|
50
|
+
sx: {
|
|
51
|
+
border: `calc(${g} / 2) solid`,
|
|
52
|
+
borderColor: i,
|
|
53
|
+
borderRadius: "2px",
|
|
54
|
+
...f
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
) }),
|
|
60
|
+
d
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
};
|
|
5
65
|
export {
|
|
6
|
-
|
|
66
|
+
R as CheckboxV2Container
|
|
7
67
|
};
|
|
8
68
|
//# sourceMappingURL=sd-component-library208.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library208.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library208.js","sources":["../src/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/checkbox-v2-container.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { useHover } from \"../../../../../core/custom-hooks\";\nimport { isTouchScreen } from \"../../../../../core/functions\";\nimport { FlexCenter, FlexItemsCenter } from \"../../../../containers\";\nimport { CheckboxV2ContainerProps as Props } from \"./interfaces\";\n\nconst innerBoxSize = \"10px\";\nconst outerBoxSize = \"20px\";\n\nconst shrankSize = \"5px\";\n\nexport const CheckboxV2Container: React.FC<Props> = ({\n disabled,\n containerSx,\n showHoverCheckbox,\n bg,\n showBGColorWhenIdle,\n disabledColor = \"cl_grey\",\n color = \"cl_blue\",\n children,\n showInnerBox,\n onClick,\n borderRadius = \"3px\",\n borderWidth = \"2px\",\n innerBoxSx,\n}) => {\n const { isHover, hoverCallbacks } = useHover();\n const isCheckboxExtended = isHover || !showHoverCheckbox || isTouchScreen();\n const currentColor = disabled ? disabledColor : color;\n\n return (\n <FlexItemsCenter\n onClick={disabled ? undefined : onClick}\n sx={{\n cursor: disabled ? \"default\" : \"pointer\",\n gap: \"10px\",\n ...containerSx,\n }}\n {...hoverCallbacks}\n >\n <Box size={outerBoxSize} sx={{ flexShrink: 0 }}>\n <FlexCenter\n width={isCheckboxExtended ? outerBoxSize : shrankSize}\n height={outerBoxSize}\n bg={showBGColorWhenIdle ? (isCheckboxExtended ? \"\" : bg) : bg}\n sx={{\n flexShrink: 0,\n borderRadius,\n borderWidth,\n borderColor: currentColor,\n borderStyle: \"solid\",\n transition: \"width 0.1s ease-in\",\n }}\n >\n {showInnerBox && (\n <Box\n sx={{\n border: `calc(${innerBoxSize} / 2) solid`,\n borderColor: currentColor,\n borderRadius: \"2px\",\n ...innerBoxSx,\n }}\n />\n )}\n </FlexCenter>\n </Box>\n\n {children}\n </FlexItemsCenter>\n );\n};\n"],"names":["innerBoxSize","outerBoxSize","shrankSize","CheckboxV2Container","disabled","containerSx","showHoverCheckbox","bg","showBGColorWhenIdle","disabledColor","color","children","showInnerBox","onClick","borderRadius","borderWidth","innerBoxSx","isHover","hoverCallbacks","useHover","isCheckboxExtended","isTouchScreen","currentColor","jsxs","FlexItemsCenter","jsx","Box","FlexCenter"],"mappings":";;;;;AASA,MAAMA,IAAe,QACfC,IAAe,QAEfC,IAAa,OAENC,IAAuC,CAAC;AAAA,EACnD,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,IAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,OAAAC,IAAQ;AAAA,EACR,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,aAAAC,IAAc;AAAA,EACd,YAAAC;AACF,MAAM;AACJ,QAAM,EAAE,SAAAC,GAAS,gBAAAC,EAAe,IAAIC,EAAS,GACvCC,IAAqBH,KAAW,CAACX,KAAqBe,EAAc,GACpEC,IAAelB,IAAWK,IAAgBC;AAG9C,SAAAa,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAASpB,IAAW,SAAYS;AAAA,MAChC,IAAI;AAAA,QACF,QAAQT,IAAW,YAAY;AAAA,QAC/B,KAAK;AAAA,QACL,GAAGC;AAAA,MACL;AAAA,MACC,GAAGa;AAAA,MAEJ,UAAA;AAAA,QAAAO,gBAAAA,MAACC,KAAI,MAAMzB,GAAc,IAAI,EAAE,YAAY,KACzC,UAAAwB,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,OAAOP,IAAqBnB,IAAeC;AAAA,YAC3C,QAAQD;AAAA,YACR,IAAIO,KAAuBY,IAAqB,KAAWb;AAAA,YAC3D,IAAI;AAAA,cACF,YAAY;AAAA,cACZ,cAAAO;AAAA,cACA,aAAAC;AAAA,cACA,aAAaO;AAAA,cACb,aAAa;AAAA,cACb,YAAY;AAAA,YACd;AAAA,YAEC,UACCV,KAAAa,gBAAAA,EAAA;AAAA,cAACC;AAAA,cAAA;AAAA,gBACC,IAAI;AAAA,kBACF,QAAQ,QAAQ1B,CAAY;AAAA,kBAC5B,aAAasB;AAAA,kBACb,cAAc;AAAA,kBACd,GAAGN;AAAA,gBACL;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAAA,GAGN;AAAA,QAECL;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library195.js";
|
|
2
|
-
import { LogoButton as e } from "./sd-component-
|
|
3
|
-
import { ReactComponent as r } from "./sd-component-
|
|
2
|
+
import { LogoButton as e } from "./sd-component-library205.js";
|
|
3
|
+
import { ReactComponent as r } from "./sd-component-library206.js";
|
|
4
4
|
const s = (t) => /* @__PURE__ */ o.jsx(
|
|
5
5
|
e,
|
|
6
6
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as a } from "./sd-component-library195.js";
|
|
2
2
|
import R, { createElement as g } from "react";
|
|
3
3
|
import { isValueInRange as f } from "./sd-component-library91.js";
|
|
4
|
-
import { SmileyMeterRange as d } from "./sd-component-
|
|
4
|
+
import { SmileyMeterRange as d } from "./sd-component-library315.js";
|
|
5
5
|
const j = R.forwardRef(
|
|
6
6
|
(r, m) => {
|
|
7
7
|
const { value: s, ranges: n, distanceFromRanges: c } = r, o = n.findIndex(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as h } from "./sd-component-library195.js";
|
|
2
2
|
import { getRangeProperties as p } from "./sd-component-library230.js";
|
|
3
|
-
import { MatchedRangeLabelBox as u } from "./sd-component-
|
|
3
|
+
import { MatchedRangeLabelBox as u } from "./sd-component-library314.js";
|
|
4
4
|
const b = (e) => {
|
|
5
5
|
const {
|
|
6
6
|
range: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library195.js";
|
|
2
|
-
import { LogoButton as e } from "./sd-component-
|
|
3
|
-
import { ReactComponent as r } from "./sd-component-
|
|
2
|
+
import { LogoButton as e } from "./sd-component-library205.js";
|
|
3
|
+
import { ReactComponent as r } from "./sd-component-library207.js";
|
|
4
4
|
const p = (t) => /* @__PURE__ */ o.jsx(
|
|
5
5
|
e,
|
|
6
6
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as g } from "./sd-component-library195.js";
|
|
2
2
|
import { getRangeProperties as d } from "./sd-component-library318.js";
|
|
3
|
-
import { MatchedRangeLabelBox as x } from "./sd-component-
|
|
3
|
+
import { MatchedRangeLabelBox as x } from "./sd-component-library314.js";
|
|
4
4
|
const h = (e) => {
|
|
5
5
|
const { idx: t, totalRanges: a, distanceBetweenRanges: r, arc: n } = e, { rangeArcStart: o, rangeArcEnd: s } = d(
|
|
6
6
|
n,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library195.js";
|
|
2
2
|
import { Link as O } from "react-router-dom";
|
|
3
3
|
import { Button as Q, Flex as T } from "rebass";
|
|
4
|
-
import { LoadingSpinner as U } from "./sd-component-
|
|
4
|
+
import { LoadingSpinner as U } from "./sd-component-library204.js";
|
|
5
5
|
function V(t, e, o) {
|
|
6
6
|
return (n) => {
|
|
7
7
|
t == null || t(n), e && (`#${e}` !== window.location.hash && (o != null && o.replace(
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
secondaryText: r,
|
|
7
|
-
textTransform: o,
|
|
8
|
-
...n
|
|
9
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
10
|
-
p,
|
|
1
|
+
import { j as r } from "./sd-component-library195.js";
|
|
2
|
+
import { ReactComponent as s } from "./sd-component-library191.js";
|
|
3
|
+
import { FlexItemsCenter as i } from "./sd-component-library35.js";
|
|
4
|
+
const l = ({ width: e, direction: t, onClick: o }) => /* @__PURE__ */ r.jsx(
|
|
5
|
+
i,
|
|
11
6
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
justifyContent: t === "right" ? "flex-end" : "flex-start",
|
|
8
|
+
sx: {
|
|
9
|
+
position: "absolute",
|
|
10
|
+
...t === "right" ? { right: 0 } : 0,
|
|
11
|
+
top: 0,
|
|
12
|
+
width: e,
|
|
13
|
+
height: "100%",
|
|
14
|
+
stroke: "cl_blue",
|
|
15
|
+
cursor: "pointer",
|
|
16
|
+
bg: "cl_white",
|
|
17
|
+
":hover": { stroke: "cl_purple" },
|
|
18
|
+
zIndex: 1
|
|
19
|
+
},
|
|
20
|
+
onClick: o,
|
|
21
|
+
children: /* @__PURE__ */ r.jsx(
|
|
22
|
+
s,
|
|
23
|
+
{
|
|
24
|
+
width: "18px",
|
|
25
|
+
transform: `rotate(${t === "right" ? 180 : 0})`
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
l as ArrowButton
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=sd-component-library262.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library262.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library262.js","sources":["../src/components/tabs/tab-bar/partials/arrow-button/arrow-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FlexItemsCenter } from \"../../../../containers\";\nimport { ThinArrowLeftIcon } from \"../../../../icons\";\nimport { ArrowButtonProps as Props } from \"./interfaces\";\n\nexport const ArrowButton: React.FC<Props> = ({ width, direction, onClick }) => {\n return (\n <FlexItemsCenter\n justifyContent={direction === \"right\" ? \"flex-end\" : \"flex-start\"}\n sx={{\n position: \"absolute\",\n ...(direction === \"right\" ? { right: 0 } : { left: 0 } ? 0 : undefined),\n top: 0,\n width,\n height: \"100%\",\n stroke: \"cl_blue\",\n cursor: \"pointer\",\n bg: \"cl_white\",\n \":hover\": { stroke: \"cl_purple\" },\n zIndex: 1,\n }}\n onClick={onClick}\n >\n <ThinArrowLeftIcon\n width=\"18px\"\n transform={`rotate(${direction === \"right\" ? 180 : 0})`}\n />\n </FlexItemsCenter>\n );\n};\n"],"names":["ArrowButton","width","direction","onClick","jsx","FlexItemsCenter","ThinArrowLeftIcon"],"mappings":";;;AAMO,MAAMA,IAA+B,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,SAAAC,QAE7DC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,gBAAgBH,MAAc,UAAU,aAAa;AAAA,IACrD,IAAI;AAAA,MACF,UAAU;AAAA,MACV,GAAIA,MAAc,UAAU,EAAE,OAAO,EAAE,IAAkB;AAAA,MACzD,KAAK;AAAA,MACL,OAAAD;AAAA,MACA,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,UAAU,EAAE,QAAQ,YAAY;AAAA,MAChC,QAAQ;AAAA,IACV;AAAA,IACA,SAAAE;AAAA,IAEA,UAAAC,gBAAAA,EAAA;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,WAAW,UAAUJ,MAAc,UAAU,MAAM,CAAC;AAAA,MAAA;AAAA,IACtD;AAAA,EAAA;AAAA;"}
|
|
@@ -1,54 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import s from "react";
|
|
1
|
+
import { j as e } from "./sd-component-library195.js";
|
|
3
2
|
import { Box as n } from "rebass";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const f = ({
|
|
8
|
-
options: t,
|
|
9
|
-
onSelect: l
|
|
10
|
-
}) => {
|
|
11
|
-
const c = (o) => () => l(o);
|
|
12
|
-
return /* @__PURE__ */ r.jsxs(
|
|
3
|
+
const g = ({ width: s, direction: t, offset: o }) => {
|
|
4
|
+
const r = "#000000AA", a = "#00000000";
|
|
5
|
+
return /* @__PURE__ */ e.jsx(
|
|
13
6
|
n,
|
|
14
7
|
{
|
|
15
8
|
sx: {
|
|
16
9
|
position: "absolute",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
t.map((o, e) => /* @__PURE__ */ r.jsxs(s.Fragment, { children: [
|
|
26
|
-
e !== 0 && /* @__PURE__ */ r.jsx(
|
|
27
|
-
i,
|
|
28
|
-
{
|
|
29
|
-
color: "cl_headerLine",
|
|
30
|
-
sx: {
|
|
31
|
-
borderStyle: "none solid",
|
|
32
|
-
borderColor: "cl_lightGrey",
|
|
33
|
-
borderWidth: "1px"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
),
|
|
37
|
-
/* @__PURE__ */ r.jsx(
|
|
38
|
-
x,
|
|
39
|
-
{
|
|
40
|
-
title: o.title,
|
|
41
|
-
onClick: c(o),
|
|
42
|
-
isLast: e === t.length - 1
|
|
43
|
-
},
|
|
44
|
-
o.id
|
|
45
|
-
)
|
|
46
|
-
] }, o.id))
|
|
47
|
-
]
|
|
10
|
+
top: 0,
|
|
11
|
+
left: t === "left" ? o : void 0,
|
|
12
|
+
right: t === "right" ? o : void 0,
|
|
13
|
+
height: "100%",
|
|
14
|
+
width: s,
|
|
15
|
+
background: `transparent linear-gradient(-90deg, ${t === "left" ? a : r} 0%, ${t === "right" ? a : r} 100%) 0% 0% no-repeat padding-box`,
|
|
16
|
+
opacity: 0.05
|
|
17
|
+
}
|
|
48
18
|
}
|
|
49
19
|
);
|
|
50
20
|
};
|
|
51
21
|
export {
|
|
52
|
-
|
|
22
|
+
g as Mask
|
|
53
23
|
};
|
|
54
24
|
//# sourceMappingURL=sd-component-library263.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library263.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library263.js","sources":["../src/components/tabs/tab-bar/partials/mask/mask.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { MaskProps as Props } from \"./interfaces\";\n\nexport const Mask: React.FC<Props> = ({ width, direction, offset }) => {\n const startColor = \"#000000AA\";\n const endColor = \"#00000000\";\n\n return (\n <Box\n sx={{\n position: \"absolute\",\n top: 0,\n left: direction === \"left\" ? offset : undefined,\n right: direction === \"right\" ? offset : undefined,\n height: \"100%\",\n width,\n background: `transparent linear-gradient(-90deg, ${\n direction === \"left\" ? endColor : startColor\n } 0%, ${\n direction === \"right\" ? endColor : startColor\n } 100%) 0% 0% no-repeat padding-box`,\n opacity: 0.05,\n }}\n />\n );\n};\n"],"names":["Mask","width","direction","offset","startColor","endColor","jsx","Box"],"mappings":";;AAMO,MAAMA,IAAwB,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,QAAAC,QAAa;AACrE,QAAMC,IAAa,aACbC,IAAW;AAGf,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAML,MAAc,SAASC,IAAS;AAAA,QACtC,OAAOD,MAAc,UAAUC,IAAS;AAAA,QACxC,QAAQ;AAAA,QACR,OAAAF;AAAA,QACA,YAAY,uCACVC,MAAc,SAASG,IAAWD,CACpC,QACEF,MAAc,UAAUG,IAAWD,CACrC;AAAA,QACA,SAAS;AAAA,MACX;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,134 +1,128 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library195.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
import { Flex as f, Box as W } from "rebass";
|
|
3
|
+
import { Button as y } from "./sd-component-library25.js";
|
|
4
|
+
import { ResponsiveTextV2 as m } from "./sd-component-library149.js";
|
|
5
|
+
const z = ({
|
|
6
|
+
active: n = !1,
|
|
7
|
+
activeColor: s = "cl_purple",
|
|
8
|
+
color: r = "transparent"
|
|
9
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
10
|
+
W,
|
|
11
|
+
{
|
|
12
|
+
height: 4,
|
|
13
|
+
width: "100%",
|
|
14
|
+
bg: n ? s : r,
|
|
15
|
+
sx: {
|
|
16
|
+
mt: "auto",
|
|
17
|
+
transition: "all 175ms ease"
|
|
18
|
+
},
|
|
19
|
+
"data-testid": "tab-ribbon"
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
function E({
|
|
23
|
+
width: n,
|
|
24
|
+
height: s,
|
|
25
|
+
label: r,
|
|
26
|
+
secondaryText: x,
|
|
27
|
+
icon: p,
|
|
28
|
+
id: d,
|
|
29
|
+
onClick: h,
|
|
30
|
+
selected: i = !1,
|
|
31
|
+
activeColor: e = "cl_purple",
|
|
32
|
+
color: l = "cl_darkGrey",
|
|
33
|
+
tabPadding: u,
|
|
34
|
+
bg: o = "cl_transparent",
|
|
35
|
+
activeBg: c = "cl_transparent",
|
|
36
|
+
activeRibbonColor: b,
|
|
37
|
+
borderRadius: j = "4px",
|
|
38
|
+
tabHeaderComponent: a,
|
|
39
|
+
elementId: g,
|
|
40
|
+
maxWidth: _,
|
|
41
|
+
labelSx: R,
|
|
42
|
+
secondaryTextSx: S,
|
|
43
|
+
containerSx: w
|
|
44
|
+
}) {
|
|
45
|
+
const T = a ? i ? c : o : b || e;
|
|
46
46
|
return /* @__PURE__ */ t.jsxs(
|
|
47
|
-
|
|
47
|
+
f,
|
|
48
48
|
{
|
|
49
|
-
|
|
49
|
+
flexDirection: "column",
|
|
50
50
|
sx: {
|
|
51
|
-
width:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
mb: j,
|
|
56
|
-
ml: v,
|
|
57
|
-
position: "relative",
|
|
58
|
-
...R ? {
|
|
59
|
-
svg: {
|
|
60
|
-
transform: `translate(-2px,${W ? 0 : 5}px) scale(.78)`,
|
|
61
|
-
fill: "#4568F8"
|
|
62
|
-
}
|
|
63
|
-
} : {},
|
|
64
|
-
path: {
|
|
65
|
-
d: "path('M12,8.6L6.72,3.29C6.32,2.9,5.68,2.9,5.29,3.29C4.90,3.69,4.9,4.33,5.29,4.73L11.23,10.7C11.44,10.91,11.72,11.01,12,11C12.27,11.01,12.55,10.91,12.76,10.7L18.7,4.73C19.09,4.33,19.09,3.69,18.7,3.29C18.31,2.9,17.67,2.9,17.27,3.29Z M12,8.6')"
|
|
66
|
-
},
|
|
67
|
-
gap: $
|
|
51
|
+
width: "fit-content",
|
|
52
|
+
maxWidth: _,
|
|
53
|
+
minWidth: "fit-content",
|
|
54
|
+
...w
|
|
68
55
|
},
|
|
69
|
-
"data-testid": "base-selector-v2",
|
|
70
56
|
children: [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
57
|
+
/* @__PURE__ */ t.jsxs(
|
|
58
|
+
y,
|
|
59
|
+
{
|
|
60
|
+
id: g,
|
|
61
|
+
width: n,
|
|
62
|
+
height: s,
|
|
63
|
+
bg: i ? c : o,
|
|
64
|
+
onClick: h,
|
|
65
|
+
borderRadius: j,
|
|
66
|
+
"data-testid": `tab-${d}`,
|
|
67
|
+
padding: u,
|
|
68
|
+
disabled: i,
|
|
69
|
+
display: "flex",
|
|
70
|
+
children: [
|
|
71
|
+
r && /* @__PURE__ */ t.jsx(
|
|
72
|
+
m,
|
|
73
|
+
{
|
|
74
|
+
fontSizeWeight: [[13, "bold"]],
|
|
75
|
+
sx: {
|
|
76
|
+
letterSpacing: "1.3px",
|
|
77
|
+
textTransform: "uppercase",
|
|
78
|
+
...R
|
|
79
|
+
},
|
|
80
|
+
"data-testid": "tab-text",
|
|
81
|
+
color: i ? e : l,
|
|
82
|
+
children: r
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
x && /* @__PURE__ */ t.jsx(
|
|
86
|
+
m,
|
|
87
|
+
{
|
|
88
|
+
fontSizeWeight: [[10, "semi-bold"]],
|
|
89
|
+
sx: {
|
|
90
|
+
letterSpacing: "1px",
|
|
91
|
+
textTransform: "uppercase",
|
|
92
|
+
...S
|
|
93
|
+
},
|
|
94
|
+
color: i ? e : l,
|
|
95
|
+
children: x
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
p && /* @__PURE__ */ t.jsx(
|
|
99
|
+
f,
|
|
100
|
+
{
|
|
101
|
+
height: "16px",
|
|
102
|
+
flexDirection: "column",
|
|
103
|
+
justifyContent: "space-between",
|
|
104
|
+
ml: "10px",
|
|
105
|
+
children: p
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
a
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
),
|
|
96
112
|
/* @__PURE__ */ t.jsx(
|
|
97
|
-
|
|
113
|
+
z,
|
|
98
114
|
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
value: a ? n : l.title.trim(),
|
|
103
|
-
variant: `_selectors.${r}${m ? "Error" : ""}`,
|
|
104
|
-
onChange: (s) => S(s.target.value),
|
|
105
|
-
onFocus: E,
|
|
106
|
-
backgroundColor: M ? "rgba(255, 0, 0, 0.05)" : "",
|
|
107
|
-
sx: {
|
|
108
|
-
textTransform: N,
|
|
109
|
-
...c && l.value === null ? { color: c } : {},
|
|
110
|
-
pl: I
|
|
111
|
-
},
|
|
112
|
-
disabled: z || a,
|
|
113
|
-
children: a ? /* @__PURE__ */ t.jsx("option", { "data-test": "disabled-option", children: n }, "disabledTextValue") : /* @__PURE__ */ t.jsx(t.Fragment, { children: u.slice(
|
|
114
|
-
// should default option be hidden?
|
|
115
|
-
B && y && l.value !== null ? 1 : 0
|
|
116
|
-
).map((s) => /* @__PURE__ */ t.jsx(
|
|
117
|
-
"option",
|
|
118
|
-
{
|
|
119
|
-
"data-testid": "selector-option",
|
|
120
|
-
className: s.value === null ? k : w,
|
|
121
|
-
children: s.title
|
|
122
|
-
},
|
|
123
|
-
s.id
|
|
124
|
-
)) })
|
|
115
|
+
active: i || !!a,
|
|
116
|
+
activeColor: T,
|
|
117
|
+
color: o
|
|
125
118
|
}
|
|
126
119
|
)
|
|
127
120
|
]
|
|
128
121
|
}
|
|
129
122
|
);
|
|
130
|
-
}
|
|
123
|
+
}
|
|
131
124
|
export {
|
|
132
|
-
|
|
125
|
+
z as Ribbon,
|
|
126
|
+
E as Tab
|
|
133
127
|
};
|
|
134
128
|
//# sourceMappingURL=sd-component-library264.js.map
|