@selfdecode/sd-component-library 4.0.150 → 4.0.151
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/links/link/interfaces.d.ts +2 -0
- package/lib/sd-component-library100.js +4 -4
- package/lib/sd-component-library104.js +1 -1
- package/lib/sd-component-library105.js +1 -1
- package/lib/sd-component-library110.js +1 -1
- package/lib/sd-component-library111.js +2 -2
- package/lib/sd-component-library113.js +1 -1
- package/lib/sd-component-library114.js +1 -1
- package/lib/sd-component-library119.js +2 -2
- package/lib/sd-component-library120.js +2 -2
- package/lib/sd-component-library122.js +1 -1
- package/lib/sd-component-library125.js +3 -3
- package/lib/sd-component-library126.js +1 -1
- package/lib/sd-component-library13.js +1 -1
- package/lib/sd-component-library141.js +1 -1
- package/lib/sd-component-library144.js +1 -1
- package/lib/sd-component-library145.js +4 -4
- package/lib/sd-component-library169.js +3 -3
- package/lib/sd-component-library172.js +60 -2
- package/lib/sd-component-library172.js.map +1 -1
- package/lib/sd-component-library173.js +2 -30
- package/lib/sd-component-library173.js.map +1 -1
- package/lib/sd-component-library174.js +21 -590
- package/lib/sd-component-library174.js.map +1 -1
- package/lib/sd-component-library175.js +595 -56
- package/lib/sd-component-library175.js.map +1 -1
- package/lib/sd-component-library176.js +57 -3
- package/lib/sd-component-library176.js.map +1 -1
- package/lib/sd-component-library177.js +3 -26
- package/lib/sd-component-library177.js.map +1 -1
- package/lib/sd-component-library178.js +24 -55
- package/lib/sd-component-library178.js.map +1 -1
- package/lib/sd-component-library180.js +55 -31
- package/lib/sd-component-library180.js.map +1 -1
- package/lib/sd-component-library181.js +21 -127
- package/lib/sd-component-library181.js.map +1 -1
- package/lib/sd-component-library182.js +40 -13
- package/lib/sd-component-library182.js.map +1 -1
- package/lib/sd-component-library183.js +128 -13
- package/lib/sd-component-library183.js.map +1 -1
- package/lib/sd-component-library184.js +13 -3
- package/lib/sd-component-library184.js.map +1 -1
- package/lib/sd-component-library185.js +14 -3
- package/lib/sd-component-library185.js.map +1 -1
- package/lib/sd-component-library186.js +2 -2
- package/lib/sd-component-library186.js.map +1 -1
- package/lib/sd-component-library187.js +3 -52
- package/lib/sd-component-library187.js.map +1 -1
- package/lib/sd-component-library188.js +3 -46
- package/lib/sd-component-library188.js.map +1 -1
- package/lib/sd-component-library189.js +37 -63
- package/lib/sd-component-library189.js.map +1 -1
- package/lib/sd-component-library190.js +78 -3
- package/lib/sd-component-library190.js.map +1 -1
- package/lib/sd-component-library191.js +3 -17
- package/lib/sd-component-library191.js.map +1 -1
- package/lib/sd-component-library192.js +44 -62
- package/lib/sd-component-library192.js.map +1 -1
- package/lib/sd-component-library193.js +17 -23
- package/lib/sd-component-library193.js.map +1 -1
- package/lib/sd-component-library194.js +3 -29
- package/lib/sd-component-library194.js.map +1 -1
- package/lib/sd-component-library195.js +31 -3
- package/lib/sd-component-library195.js.map +1 -1
- package/lib/sd-component-library196.js +18 -23
- package/lib/sd-component-library196.js.map +1 -1
- package/lib/sd-component-library197.js +20 -3
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library198.js +27 -324
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library199.js +33 -5
- package/lib/sd-component-library199.js.map +1 -1
- package/lib/sd-component-library201.js +3 -3
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +64 -31
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +43 -19
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +43 -20
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +13 -28
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +21 -33
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +109 -3
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +46 -128
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +23 -42
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library21.js +1 -1
- package/lib/sd-component-library210.js +49 -43
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +129 -8
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +45 -62
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +8 -43
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +47 -12
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +75 -21
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +35 -103
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +27 -47
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +20 -23
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +20 -53
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +2 -48
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +324 -74
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +5 -41
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +25 -27
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +3 -2
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +22 -2
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +3 -21
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +29 -20
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +24 -2
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +30 -25
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +50 -21
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +134 -30
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +62 -39
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +62 -120
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +30 -74
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +15 -70
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +120 -25
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +117 -16
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +9 -125
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +46 -117
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library240.js +89 -8
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +89 -48
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +2 -90
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +2 -92
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library247.js +2 -2
- package/lib/sd-component-library248.js +2 -2
- package/lib/sd-component-library259.js +3 -3
- package/lib/sd-component-library260.js +4 -4
- package/lib/sd-component-library261.js +1 -1
- package/lib/sd-component-library262.js +25 -12
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +93 -5
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +51 -4
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +35 -19
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +5 -3
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +21 -22
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +4 -93
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +13 -51
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +5 -35
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +3 -24
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +19 -5
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +3 -4
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library275.js +2 -28
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +76 -20
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library277.js +93 -2
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +50 -74
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +8 -92
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +4 -52
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +52 -8
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +28 -5
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +19 -51
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library47.js +2 -2
- package/lib/sd-component-library48.js +2 -2
- package/lib/sd-component-library55.js +1 -1
- package/lib/sd-component-library59.js +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library65.js +2 -2
- package/lib/sd-component-library67.js +3 -3
- package/lib/sd-component-library69.js +2 -2
- package/lib/sd-component-library7.js +1 -1
- package/lib/sd-component-library70.js +3 -3
- package/lib/sd-component-library71.js +1 -1
- package/lib/sd-component-library72.js +1 -1
- package/lib/sd-component-library74.js +1 -1
- package/lib/sd-component-library75.js +1 -1
- package/lib/sd-component-library76.js +9 -8
- package/lib/sd-component-library76.js.map +1 -1
- package/lib/sd-component-library81.js +6 -6
- package/lib/sd-component-library82.js +2 -2
- package/lib/sd-component-library83.js +1 -1
- package/lib/sd-component-library84.js +5 -5
- package/lib/sd-component-library85.js +1 -1
- package/lib/sd-component-library87.js +6 -6
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +7 -7
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library93.js +2 -2
- package/lib/sd-component-library94.js +3 -3
- package/lib/sd-component-library95.js +2 -2
- package/lib/sd-component-library96.js +3 -3
- package/lib/sd-component-library97.js +2 -2
- package/lib/sd-component-library98.js +4 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library224.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library224.js","sources":["../src/components/page-selectors/page-selector/assets/previous.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3IiBoZWlnaHQ9IjEzIiB2aWV3Qm94PSIwIDAgNyAxMyI+CiAgPHBhdGggaWQ9IkZvcm1hXzFfY29weV8zIiBkYXRhLW5hbWU9IkZvcm1hIDEgY29weSAzIiBkPSJNODAwOS43Miw1MjUxLjg4bC01LjYtNi4wOGEwLjQzNSwwLjQzNSwwLDAsMSwwLS42bDUuNi02LjA4YTAuMzU0LDAuMzU0LDAsMCwxLC4yOC0wLjEzLDAuMzQ5LDAuMzQ5LDAsMCwxLC4yNy4xM2wwLjYxLDAuNjVhMC40MzUsMC40MzUsMCwwLDEsMCwuNmwtNC43Myw1LjEzLDQuNzMsNS4xM2EwLjQyMywwLjQyMywwLDAsMSwuMTIuMywwLjQ0MSwwLjQ0MSwwLDAsMS0uMTIuM2wtMC42MS42NWEwLjM0OSwwLjM0OSwwLDAsMS0uMjcuMTNBMC4zNTQsMC4zNTQsMCwwLDEsODAwOS43Miw1MjUxLjg4WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTgwMDQgLTUyMzkpIi8+Cjwvc3ZnPgo=\""],"names":["SvgPrevious","props","React"],"mappings":";AACK,MAACA,IAAc,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,GAAG,QAAQ,IAAI,SAAS,YAAY,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,IAAI,kBAAkB,aAAa,kBAAkB,GAAG,6RAA6R,WAAW,yBAAwB,CAAE,CAAC;"}
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as r } from "./sd-component-library169.js";
|
|
2
|
+
import { ResponsiveTextV2 as t } from "./sd-component-library135.js";
|
|
3
|
+
const n = ({
|
|
4
|
+
children: e
|
|
5
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
6
|
+
t,
|
|
7
|
+
{
|
|
8
|
+
fontSizeWeight: [18, "regular"],
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
height: "100%",
|
|
14
|
+
borderRadius: "5px",
|
|
15
|
+
borderWidth: "1px",
|
|
16
|
+
borderColor: "cl_lightGrey",
|
|
17
|
+
borderStyle: "solid"
|
|
18
|
+
},
|
|
19
|
+
children: e
|
|
20
|
+
}
|
|
21
|
+
);
|
|
2
22
|
export {
|
|
3
|
-
|
|
23
|
+
n as PaginationBarCurrentPage
|
|
4
24
|
};
|
|
5
25
|
//# sourceMappingURL=sd-component-library225.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library225.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library225.js","sources":["../src/components/pagination-bars/pagination-bar-mobile/partials/pagination-bar-current-page/pagination-bar-current-page.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts\";\n\nexport const PaginationBarCurrentPage: React.FC<PropsWithChildren<{}>> = ({\n children,\n}) => {\n return (\n <ResponsiveTextV2\n fontSizeWeight={[18, \"regular\"]}\n sx={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n height: \"100%\",\n borderRadius: \"5px\",\n borderWidth: \"1px\",\n borderColor: \"cl_lightGrey\",\n borderStyle: \"solid\",\n }}\n >\n {children}\n </ResponsiveTextV2>\n );\n};\n"],"names":["PaginationBarCurrentPage","children","jsx","ResponsiveTextV2"],"mappings":";;AAIO,MAAMA,IAA4D,CAAC;AAAA,EACxE,UAAAC;AACF,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,IAC9B,IAAI;AAAA,MACF,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,QAAQ;AAAA,MACR,cAAc;AAAA,MACd,aAAa;AAAA,MACb,aAAa;AAAA,MACb,aAAa;AAAA,IACf;AAAA,IAEC,UAAAF;AAAA,EAAA;AAAA;"}
|
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const $ = ({
|
|
4
|
-
idx: o,
|
|
5
|
-
color: t,
|
|
6
|
-
total: i,
|
|
7
|
-
segmentHeight: r
|
|
8
|
-
}) => {
|
|
9
|
-
const s = `${o === 0 ? r / 2 : 0}px`, a = `${o === i - 1 ? r / 2 : 0}px`;
|
|
10
|
-
return /* @__PURE__ */ x.jsx(
|
|
11
|
-
n,
|
|
12
|
-
{
|
|
13
|
-
bg: t,
|
|
14
|
-
height: r,
|
|
15
|
-
sx: {
|
|
16
|
-
borderRadius: `${s} ${[...Array(2)].fill(a).join(" ")} ${s}`
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
const e = (t) => /* @__PURE__ */ a.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 7, height: 13, viewBox: "0 0 7 13", ...t }, /* @__PURE__ */ a.createElement("path", { id: "Forma_1_copy_3", "data-name": "Forma 1 copy 3", d: "M8105.27,5251.88l5.6-6.08a0.435,0.435,0,0,0,0-.6l-5.6-6.08a0.349,0.349,0,0,0-.27-0.13,0.354,0.354,0,0,0-.28.13l-0.6.65a0.435,0.435,0,0,0,0,.6l4.72,5.13-4.72,5.13a0.423,0.423,0,0,0-.12.3,0.441,0.441,0,0,0,.12.3l0.6,0.65a0.354,0.354,0,0,0,.28.13A0.349,0.349,0,0,0,8105.27,5251.88Z", transform: "translate(-8104 -5239)" }));
|
|
21
3
|
export {
|
|
22
|
-
|
|
4
|
+
e as ReactComponent
|
|
23
5
|
};
|
|
24
6
|
//# sourceMappingURL=sd-component-library226.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library226.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library226.js","sources":["../src/components/page-selectors/page-selector/assets/next.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3IiBoZWlnaHQ9IjEzIiB2aWV3Qm94PSIwIDAgNyAxMyI+CiAgPHBhdGggaWQ9IkZvcm1hXzFfY29weV8zIiBkYXRhLW5hbWU9IkZvcm1hIDEgY29weSAzIiBkPSJNODEwNS4yNyw1MjUxLjg4bDUuNi02LjA4YTAuNDM1LDAuNDM1LDAsMCwwLDAtLjZsLTUuNi02LjA4YTAuMzQ5LDAuMzQ5LDAsMCwwLS4yNy0wLjEzLDAuMzU0LDAuMzU0LDAsMCwwLS4yOC4xM2wtMC42LjY1YTAuNDM1LDAuNDM1LDAsMCwwLDAsLjZsNC43Miw1LjEzLTQuNzIsNS4xM2EwLjQyMywwLjQyMywwLDAsMC0uMTIuMywwLjQ0MSwwLjQ0MSwwLDAsMCwuMTIuM2wwLjYsMC42NWEwLjM1NCwwLjM1NCwwLDAsMCwuMjguMTNBMC4zNDksMC4zNDksMCwwLDAsODEwNS4yNyw1MjUxLjg4WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTgxMDQgLTUyMzkpIi8+Cjwvc3ZnPgo=\""],"names":["SvgNext","props","React"],"mappings":";AACK,MAACA,IAAU,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,GAAG,QAAQ,IAAI,SAAS,YAAY,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,IAAI,kBAAkB,aAAa,kBAAkB,GAAG,0RAA0R,WAAW,yBAAwB,CAAE,CAAC;"}
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
height:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { j as n } from "./sd-component-library169.js";
|
|
2
|
+
import { Button as a } from "./sd-component-library21.js";
|
|
3
|
+
const u = (r) => {
|
|
4
|
+
const {
|
|
5
|
+
borderColor: e,
|
|
6
|
+
borderStyle: o,
|
|
7
|
+
borderWidth: i,
|
|
8
|
+
fill: d,
|
|
9
|
+
width: l,
|
|
10
|
+
height: h,
|
|
11
|
+
disabled: t
|
|
12
|
+
} = r;
|
|
13
|
+
return /* @__PURE__ */ n.jsx(
|
|
14
|
+
a,
|
|
15
|
+
{
|
|
16
|
+
...r,
|
|
17
|
+
width: l || ["30px"],
|
|
18
|
+
height: h || ["30px"],
|
|
19
|
+
borderColor: t ? "cl_lightGrey" : e || "#4668F8",
|
|
20
|
+
borderStyle: o || "solid",
|
|
21
|
+
borderWidth: i || "2px",
|
|
22
|
+
fill: t ? "cl_lightGrey" : d || "#4668F8",
|
|
23
|
+
"data-testid": "square-button",
|
|
24
|
+
variant: "_square",
|
|
25
|
+
children: r.children
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
};
|
|
20
29
|
export {
|
|
21
|
-
|
|
30
|
+
u as SquareButton
|
|
22
31
|
};
|
|
23
32
|
//# sourceMappingURL=sd-component-library227.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library227.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library227.js","sources":["../src/components/buttons/partials/square-button/square-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Button } from \"../../button\";\nimport { SquareButtonProps } from \"./interfaces\";\n\n/**\n * The circle button.\n */\nexport const SquareButton: React.FC<SquareButtonProps> = (props) => {\n const {\n borderColor,\n borderStyle,\n borderWidth,\n fill,\n width,\n height,\n disabled,\n } = props;\n return (\n <Button\n {...props}\n width={width || [\"30px\"]}\n height={height || [\"30px\"]}\n borderColor={!disabled ? borderColor || \"#4668F8\" : \"cl_lightGrey\"}\n borderStyle={borderStyle || \"solid\"}\n borderWidth={borderWidth || \"2px\"}\n fill={!disabled ? fill || \"#4668F8\" : \"cl_lightGrey\"}\n data-testid=\"square-button\"\n variant=\"_square\"\n >\n {props.children}\n </Button>\n );\n};\n"],"names":["SquareButton","props","borderColor","borderStyle","borderWidth","fill","width","height","disabled","jsx","Button"],"mappings":";;AAQa,MAAAA,IAA4C,CAACC,MAAU;AAC5D,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAP;AAEF,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGT;AAAA,MACJ,OAAOK,KAAS,CAAC,MAAM;AAAA,MACvB,QAAQC,KAAU,CAAC,MAAM;AAAA,MACzB,aAAcC,IAAsC,iBAA3BN,KAAe;AAAA,MACxC,aAAaC,KAAe;AAAA,MAC5B,aAAaC,KAAe;AAAA,MAC5B,MAAOI,IAA+B,iBAApBH,KAAQ;AAAA,MAC1B,eAAY;AAAA,MACZ,SAAQ;AAAA,MAEP,UAAMJ,EAAA;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as t } from "./sd-component-library169.js";
|
|
2
|
+
import { ResponsiveTextV2 as o } from "./sd-component-library135.js";
|
|
3
|
+
const s = (e) => {
|
|
4
|
+
const { currentPage: r } = e;
|
|
5
|
+
return /* @__PURE__ */ t.jsx(
|
|
6
|
+
o,
|
|
7
|
+
{
|
|
8
|
+
fontSizeWeight: [14, "regular"],
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
borderColor: "cl_lightGrey",
|
|
14
|
+
borderWidth: 1,
|
|
15
|
+
borderStyle: "solid",
|
|
16
|
+
borderRadius: "3px",
|
|
17
|
+
height: "30px",
|
|
18
|
+
minWidth: "30px"
|
|
19
|
+
},
|
|
20
|
+
children: r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
2
24
|
export {
|
|
3
|
-
|
|
25
|
+
s as CurrentPage
|
|
4
26
|
};
|
|
5
27
|
//# sourceMappingURL=sd-component-library228.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library228.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library228.js","sources":["../src/components/page-selectors/page-selector/partials/current-page/current-page.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { CurrentPageProps as Props } from \"./interfaces\";\n\nexport const CurrentPage: React.FC<Props> = (props) => {\n const { currentPage } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderColor: \"cl_lightGrey\",\n borderWidth: 1,\n borderStyle: \"solid\",\n borderRadius: \"3px\",\n height: \"30px\",\n minWidth: \"30px\",\n }}\n >\n {currentPage}\n </ResponsiveTextV2>\n );\n};\n"],"names":["CurrentPage","props","currentPage","jsx","ResponsiveTextV2"],"mappings":";;AAKa,MAAAA,IAA+B,CAACC,MAAU;AAC/C,QAAA,EAAE,aAAAC,EAAgB,IAAAD;AAGtB,SAAAE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,MAC9B,IAAI;AAAA,QACF,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,aAAa;AAAA,QACb,aAAa;AAAA,QACb,aAAa;AAAA,QACb,cAAc;AAAA,QACd,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MAEC,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
1
|
+
import { j as e } from "./sd-component-library169.js";
|
|
2
|
+
import { FlexCenterSpaceBetween as p } from "./sd-component-library30.js";
|
|
3
|
+
import { ResponsiveTextV2 as t } from "./sd-component-library135.js";
|
|
4
|
+
const h = ({
|
|
5
|
+
title: i,
|
|
6
|
+
secondaryText: r,
|
|
7
|
+
textTransform: o,
|
|
8
|
+
...n
|
|
9
|
+
}) => /* @__PURE__ */ e.jsxs(
|
|
10
|
+
p,
|
|
11
|
+
{
|
|
12
|
+
width: "100%",
|
|
13
|
+
p: "12px 16px",
|
|
14
|
+
bg: "white",
|
|
15
|
+
sx: { cursor: "pointer" },
|
|
16
|
+
...n,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ e.jsx(
|
|
19
|
+
t,
|
|
20
|
+
{
|
|
21
|
+
fontSizeWeight: [16, "regular"],
|
|
22
|
+
textTransform: o,
|
|
23
|
+
children: i
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
r && /* @__PURE__ */ e.jsx(t, { fontSizeWeight: [14, "regular"], children: r })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
25
30
|
export {
|
|
26
|
-
|
|
31
|
+
h as CustomOptionBox
|
|
27
32
|
};
|
|
28
33
|
//# sourceMappingURL=sd-component-library229.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library229.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library229.js","sources":["../src/components/selectors/custom-selector/partials/custom-option-box/custom-option-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FlexCenterSpaceBetween } from \"../../../../containers\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { CustomOptionBoxProps as Props } from \"./interfaces\";\n\nexport const CustomOptionBox: React.FC<Props> = ({\n title,\n secondaryText,\n textTransform,\n ...props\n}) => {\n return (\n <FlexCenterSpaceBetween\n width=\"100%\"\n p=\"12px 16px\"\n bg=\"white\"\n sx={{ cursor: \"pointer\" }}\n {...props}\n >\n <ResponsiveTextV2\n fontSizeWeight={[16, \"regular\"]}\n textTransform={textTransform}\n >\n {title}\n </ResponsiveTextV2>\n\n {secondaryText && (\n <ResponsiveTextV2 fontSizeWeight={[14, \"regular\"]}>\n {secondaryText}\n </ResponsiveTextV2>\n )}\n </FlexCenterSpaceBetween>\n );\n};\n"],"names":["CustomOptionBox","title","secondaryText","textTransform","props","jsxs","FlexCenterSpaceBetween","jsx","ResponsiveTextV2"],"mappings":";;;AAMO,MAAMA,IAAmC,CAAC;AAAA,EAC/C,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,GAAGC;AACL,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,GAAE;AAAA,IACF,IAAG;AAAA,IACH,IAAI,EAAE,QAAQ,UAAU;AAAA,IACvB,GAAGF;AAAA,IAEJ,UAAA;AAAA,MAAAG,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,UAC9B,eAAAL;AAAA,UAEC,UAAAF;AAAA,QAAA;AAAA,MACH;AAAA,MAECC,2BACEM,GAAiB,EAAA,gBAAgB,CAAC,IAAI,SAAS,GAC7C,UACHN,GAAA;AAAA,IAAA;AAAA,EAAA;AAAA;"}
|
|
@@ -1,25 +1,54 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library169.js";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import s from "react";
|
|
3
|
+
import { Box as n } from "rebass";
|
|
4
|
+
import { TriangularPointerIcon as m } from "./sd-component-library163.js";
|
|
5
|
+
import { SecondaryCustomSelectorOptionRow as x } from "./sd-component-library286.js";
|
|
6
|
+
import { HorizontalDivider as i } from "./sd-component-library44.js";
|
|
7
|
+
const f = ({
|
|
8
|
+
options: t,
|
|
9
|
+
onSelect: l
|
|
10
|
+
}) => {
|
|
11
|
+
const c = (o) => () => l(o);
|
|
12
|
+
return /* @__PURE__ */ r.jsxs(
|
|
13
|
+
n,
|
|
14
|
+
{
|
|
15
|
+
sx: {
|
|
16
|
+
position: "absolute",
|
|
17
|
+
right: "-16px",
|
|
18
|
+
top: "calc(100% - 12px)",
|
|
19
|
+
minWidth: "calc(100% + 16px)",
|
|
20
|
+
zIndex: 1
|
|
21
|
+
},
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ r.jsx(m, { direction: "top", mr: "15px", ml: "auto" }),
|
|
24
|
+
/* @__PURE__ */ r.jsx(i, { height: "2px", color: "cl_purple" }),
|
|
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
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
22
51
|
export {
|
|
23
|
-
|
|
52
|
+
f as SecondaryCustomSelectorOptionsBox
|
|
24
53
|
};
|
|
25
54
|
//# sourceMappingURL=sd-component-library230.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library230.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library230.js","sources":["../src/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/secondary-custom-selector-options-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { HorizontalDivider } from \"../../../../dividers\";\nimport { TriangularPointerIcon } from \"../../../../icons\";\nimport { SelectorOptionV2 } from \"../../../selector-v2\";\nimport { SecondaryCustomSelectorOptionRow } from \"../secondary-custom-selector-option-row\";\nimport { SecondaryCustomSelectorOptionsBoxProps as Props } from \"./interfaces\";\n\nexport const SecondaryCustomSelectorOptionsBox = <T extends string = string>({\n options,\n onSelect,\n}: Props<T>) => {\n const onClick = (option: SelectorOptionV2<T>) => () => onSelect(option);\n\n return (\n <Box\n sx={{\n position: \"absolute\",\n right: \"-16px\",\n top: \"calc(100% - 12px)\",\n minWidth: \"calc(100% + 16px)\",\n zIndex: 1,\n }}\n >\n <TriangularPointerIcon direction=\"top\" mr=\"15px\" ml=\"auto\" />\n\n <HorizontalDivider height=\"2px\" color=\"cl_purple\" />\n\n {options.map((option, idx) => (\n <React.Fragment key={option.id}>\n {idx !== 0 && (\n <HorizontalDivider\n color=\"cl_headerLine\"\n sx={{\n borderStyle: \"none solid\",\n borderColor: \"cl_lightGrey\",\n borderWidth: \"1px\",\n }}\n />\n )}\n\n <SecondaryCustomSelectorOptionRow\n key={option.id}\n title={option.title}\n onClick={onClick(option)}\n isLast={idx === options.length - 1}\n />\n </React.Fragment>\n ))}\n </Box>\n );\n};\n"],"names":["SecondaryCustomSelectorOptionsBox","options","onSelect","onClick","option","jsxs","Box","jsx","TriangularPointerIcon","HorizontalDivider","idx","React","SecondaryCustomSelectorOptionRow"],"mappings":";;;;;;AAUO,MAAMA,IAAoC,CAA4B;AAAA,EAC3E,SAAAC;AAAA,EACA,UAAAC;AACF,MAAgB;AACd,QAAMC,IAAU,CAACC,MAAgC,MAAMF,EAASE,CAAM;AAGpE,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,OAAO;AAAA,QACP,KAAK;AAAA,QACL,UAAU;AAAA,QACV,QAAQ;AAAA,MACV;AAAA,MAEA,UAAA;AAAA,QAAAC,gBAAAA,MAACC,KAAsB,WAAU,OAAM,IAAG,QAAO,IAAG,QAAO;AAAA,QAE1DD,gBAAAA,EAAA,IAAAE,GAAA,EAAkB,QAAO,OAAM,OAAM,aAAY;AAAA,QAEjDR,EAAQ,IAAI,CAACG,GAAQM,MACnBL,gBAAAA,EAAAA,KAAAM,EAAM,UAAN,EACE,UAAA;AAAA,UAAAD,MAAQ,KACPH,gBAAAA,EAAA;AAAA,YAACE;AAAA,YAAA;AAAA,cACC,OAAM;AAAA,cACN,IAAI;AAAA,gBACF,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,aAAa;AAAA,cACf;AAAA,YAAA;AAAA,UACF;AAAA,UAGFF,gBAAAA,EAAA;AAAA,YAACK;AAAA,YAAA;AAAA,cAEC,OAAOR,EAAO;AAAA,cACd,SAASD,EAAQC,CAAM;AAAA,cACvB,QAAQM,MAAQT,EAAQ,SAAS;AAAA,YAAA;AAAA,YAH5BG,EAAO;AAAA,UAId;AAAA,QAAA,KAjBmBA,EAAO,EAkB5B,CACD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,33 +1,137 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { j as t } from "./sd-component-library169.js";
|
|
2
|
+
import { Select as A } from "@rebass/forms";
|
|
3
|
+
import { Box as Z } from "rebass";
|
|
4
|
+
import { generateTestLocator as q } from "./sd-component-library4.js";
|
|
5
|
+
import { getNoTranslateClass as p } from "./sd-component-library105.js";
|
|
6
|
+
import { BaseLabel as D } from "./sd-component-library193.js";
|
|
7
|
+
import { MaxMaxContainer as G } from "./sd-component-library36.js";
|
|
8
|
+
import { ResponsiveTextV2 as H } from "./sd-component-library135.js";
|
|
9
|
+
const O = ({
|
|
10
|
+
variant: r,
|
|
11
|
+
options: u,
|
|
12
|
+
width: f,
|
|
13
|
+
m: g,
|
|
14
|
+
mt: h,
|
|
15
|
+
mr: C,
|
|
16
|
+
mb: j,
|
|
17
|
+
ml: v,
|
|
18
|
+
gap: $,
|
|
19
|
+
selectorLabel: i,
|
|
20
|
+
secondLabel: e,
|
|
21
|
+
errorMessage: m,
|
|
22
|
+
disabledTextValue: n,
|
|
23
|
+
hideDefaultOnSelect: y,
|
|
24
|
+
labelMargin: b,
|
|
25
|
+
selectElementHeight: F,
|
|
26
|
+
defaultOptionColor: c,
|
|
27
|
+
textTransform: N,
|
|
28
|
+
onSelect: S,
|
|
29
|
+
noOptionsToSelect: o,
|
|
30
|
+
name: a,
|
|
31
|
+
selection: l,
|
|
32
|
+
hasDefaultValue: B,
|
|
33
|
+
onFocus: E,
|
|
34
|
+
errorBackground: M,
|
|
35
|
+
labelContainerAlignItems: V,
|
|
36
|
+
translateSelect: d = !0,
|
|
37
|
+
translateDefaultOption: x,
|
|
38
|
+
containerVariant: _,
|
|
39
|
+
disabled: z,
|
|
40
|
+
pl: I,
|
|
41
|
+
testLocatorId: R
|
|
42
|
+
}) => {
|
|
43
|
+
const T = !r || !["compact", "tertiary", "secondaryV2", "updatedSecondary"].includes(
|
|
44
|
+
r
|
|
45
|
+
), W = navigator.userAgent.toLowerCase().indexOf("firefox") > -1, k = p(
|
|
46
|
+
x !== !0 && !d || x === !1
|
|
47
|
+
), w = p(!d);
|
|
48
|
+
return /* @__PURE__ */ t.jsxs(
|
|
49
|
+
Z,
|
|
50
|
+
{
|
|
51
|
+
variant: `_containers.selectors.${_ || r}`,
|
|
52
|
+
sx: {
|
|
53
|
+
width: f,
|
|
54
|
+
m: g,
|
|
55
|
+
mt: h,
|
|
56
|
+
mr: C,
|
|
57
|
+
mb: j,
|
|
58
|
+
ml: v,
|
|
59
|
+
position: "relative",
|
|
60
|
+
...T ? {
|
|
61
|
+
svg: {
|
|
62
|
+
transform: `translate(-2px,${W ? 0 : 5}px) scale(.78)`,
|
|
63
|
+
fill: "#4568F8"
|
|
64
|
+
}
|
|
65
|
+
} : {},
|
|
66
|
+
path: {
|
|
67
|
+
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')"
|
|
68
|
+
},
|
|
69
|
+
gap: $
|
|
70
|
+
},
|
|
71
|
+
"data-testid": "base-selector-v2",
|
|
72
|
+
children: [
|
|
73
|
+
i && /* @__PURE__ */ t.jsxs(G, { gap: "0px", alignItems: V, children: [
|
|
74
|
+
/* @__PURE__ */ t.jsx(
|
|
75
|
+
D,
|
|
76
|
+
{
|
|
77
|
+
htmlFor: a,
|
|
78
|
+
variant: `selectors.${r}${m ? "Error" : ""}`,
|
|
79
|
+
label: i,
|
|
80
|
+
m: b,
|
|
81
|
+
"data-testid": "selector-label"
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
e && /* @__PURE__ */ t.jsx(
|
|
85
|
+
H,
|
|
86
|
+
{
|
|
87
|
+
letterSpacing: "1px",
|
|
88
|
+
textTransform: "uppercase",
|
|
89
|
+
mt: e.mt,
|
|
90
|
+
ml: e.ml || "3px",
|
|
91
|
+
color: e.color || "cl_grey",
|
|
92
|
+
fontSizeWeight: e.fontSizeWeight || [10, "semi-bold"],
|
|
93
|
+
"data-testid": "second-label",
|
|
94
|
+
children: e.text
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ t.jsx(
|
|
99
|
+
A,
|
|
100
|
+
{
|
|
101
|
+
id: a,
|
|
102
|
+
name: a,
|
|
103
|
+
height: F,
|
|
104
|
+
value: o ? n : l.title.trim(),
|
|
105
|
+
variant: `_selectors.${r}${m ? "Error" : ""}`,
|
|
106
|
+
onChange: (s) => S(s.target.value),
|
|
107
|
+
onFocus: E,
|
|
108
|
+
backgroundColor: M ? "rgba(255, 0, 0, 0.05)" : "",
|
|
109
|
+
sx: {
|
|
110
|
+
textTransform: N,
|
|
111
|
+
...c && l.value === null ? { color: c } : {},
|
|
112
|
+
pl: I
|
|
113
|
+
},
|
|
114
|
+
disabled: z || o,
|
|
115
|
+
...q(R),
|
|
116
|
+
children: o ? /* @__PURE__ */ t.jsx("option", { "data-test": "disabled-option", children: n }, "disabledTextValue") : /* @__PURE__ */ t.jsx(t.Fragment, { children: u.slice(
|
|
117
|
+
// should default option be hidden?
|
|
118
|
+
B && y && l.value !== null ? 1 : 0
|
|
119
|
+
).map((s) => /* @__PURE__ */ t.jsx(
|
|
120
|
+
"option",
|
|
121
|
+
{
|
|
122
|
+
"data-testid": "selector-option",
|
|
123
|
+
className: s.value === null ? k : w,
|
|
124
|
+
children: s.title
|
|
125
|
+
},
|
|
126
|
+
s.id
|
|
127
|
+
)) })
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
};
|
|
30
134
|
export {
|
|
31
|
-
|
|
135
|
+
O as BaseSelectorV2
|
|
32
136
|
};
|
|
33
137
|
//# sourceMappingURL=sd-component-library231.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library231.js","sources":["../src/components/selectors/
|
|
1
|
+
{"version":3,"file":"sd-component-library231.js","sources":["../src/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Select } from \"@rebass/forms\";\nimport { Box } from \"rebass\";\n\nimport { generateTestLocator } from \"../../../../../core/functions\";\nimport { MaxMaxContainer } from \"../../../../containers\";\nimport { BaseLabel } from \"../../../../labels/base-label\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { getNoTranslateClass } from \"../../../selector/selector\";\nimport { BaseSelectorV2Props as Props } from \"./interfaces\";\n\nexport const BaseSelectorV2 = <T extends string = string>({\n variant,\n options,\n width,\n m,\n mt,\n mr,\n mb,\n ml,\n gap,\n selectorLabel,\n secondLabel,\n errorMessage,\n disabledTextValue,\n hideDefaultOnSelect,\n labelMargin,\n selectElementHeight,\n defaultOptionColor,\n textTransform,\n onSelect,\n noOptionsToSelect,\n name,\n selection,\n hasDefaultValue,\n onFocus,\n errorBackground,\n labelContainerAlignItems,\n translateSelect = true,\n translateDefaultOption,\n containerVariant,\n disabled,\n pl,\n testLocatorId,\n}: Props<T>) => {\n const useDefaultIconStyles =\n !variant ||\n ![\"compact\", \"tertiary\", \"secondaryV2\", \"updatedSecondary\"].includes(\n variant\n );\n const isFirefox = navigator.userAgent.toLowerCase().indexOf(\"firefox\") > -1;\n\n const defaultOptionClassName = getNoTranslateClass(\n (translateDefaultOption !== true && !translateSelect) ||\n translateDefaultOption === false\n );\n const regularOptionClassName = getNoTranslateClass(!translateSelect);\n\n return (\n <Box\n variant={`_containers.selectors.${containerVariant || variant}`}\n sx={{\n width,\n m,\n mt,\n mr,\n mb,\n ml,\n position: \"relative\",\n ...(useDefaultIconStyles\n ? {\n svg: {\n transform: `translate(-2px,${isFirefox ? 0 : 5}px) scale(.78)`,\n fill: \"#4568F8\",\n },\n }\n : {}),\n path: {\n 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')\",\n },\n gap,\n }}\n data-testid=\"base-selector-v2\"\n >\n {selectorLabel && (\n <MaxMaxContainer gap=\"0px\" alignItems={labelContainerAlignItems}>\n <BaseLabel\n htmlFor={name}\n variant={`selectors.${variant}${errorMessage ? \"Error\" : \"\"}`}\n label={selectorLabel}\n m={labelMargin}\n data-testid=\"selector-label\"\n />\n\n {secondLabel && (\n <ResponsiveTextV2\n letterSpacing=\"1px\"\n textTransform=\"uppercase\"\n mt={secondLabel.mt}\n ml={secondLabel.ml || \"3px\"}\n color={secondLabel.color || \"cl_grey\"}\n fontSizeWeight={secondLabel.fontSizeWeight || [10, \"semi-bold\"]}\n data-testid=\"second-label\"\n >\n {secondLabel.text}\n </ResponsiveTextV2>\n )}\n </MaxMaxContainer>\n )}\n\n <Select\n id={name}\n name={name}\n height={selectElementHeight}\n value={noOptionsToSelect ? disabledTextValue : selection.title.trim()}\n variant={`_selectors.${variant}${errorMessage ? \"Error\" : \"\"}`}\n onChange={(event) => onSelect(event.target.value)}\n onFocus={onFocus}\n backgroundColor={errorBackground ? \"rgba(255, 0, 0, 0.05)\" : \"\"}\n sx={{\n textTransform,\n ...(defaultOptionColor && selection.value === null\n ? { color: defaultOptionColor }\n : {}),\n pl,\n }}\n disabled={disabled || noOptionsToSelect}\n {...generateTestLocator(testLocatorId)}\n >\n {noOptionsToSelect ? (\n <option key=\"disabledTextValue\" data-test=\"disabled-option\">\n {disabledTextValue}\n </option>\n ) : (\n <>\n {options\n .slice(\n // should default option be hidden?\n hasDefaultValue &&\n hideDefaultOnSelect &&\n selection.value !== null\n ? 1\n : 0\n )\n .map((option) => (\n <option\n key={option.id}\n data-testid=\"selector-option\"\n className={\n option.value === null\n ? defaultOptionClassName\n : regularOptionClassName\n }\n >\n {option.title}\n </option>\n ))}\n </>\n )}\n </Select>\n </Box>\n );\n};\n"],"names":["BaseSelectorV2","variant","options","width","m","mt","mr","mb","ml","gap","selectorLabel","secondLabel","errorMessage","disabledTextValue","hideDefaultOnSelect","labelMargin","selectElementHeight","defaultOptionColor","textTransform","onSelect","noOptionsToSelect","name","selection","hasDefaultValue","onFocus","errorBackground","labelContainerAlignItems","translateSelect","translateDefaultOption","containerVariant","disabled","pl","testLocatorId","useDefaultIconStyles","isFirefox","defaultOptionClassName","getNoTranslateClass","regularOptionClassName","jsxs","Box","MaxMaxContainer","jsx","BaseLabel","ResponsiveTextV2","Select","event","generateTestLocator","Fragment","option"],"mappings":"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"}
|