@selfdecode/sd-component-library 4.0.145 → 4.0.146
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-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library102.js +2 -2
- package/lib/sd-component-library104.js +4 -4
- package/lib/sd-component-library106.js +4 -4
- package/lib/sd-component-library111.js +1 -1
- 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-library133.js +3 -3
- package/lib/sd-component-library134.js +1 -1
- package/lib/sd-component-library136.js +2 -2
- package/lib/sd-component-library16.js +1 -1
- package/lib/sd-component-library168.js +1 -1
- package/lib/sd-component-library171.js +1 -1
- package/lib/sd-component-library172.js +4 -4
- package/lib/sd-component-library197.js +3 -3
- package/lib/sd-component-library200.js +60 -2
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +2 -30
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +21 -590
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +595 -56
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library205.js +24 -55
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +55 -24
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library208.js +19 -62
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +3 -23
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +3 -40
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +62 -19
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +23 -3
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +40 -3
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library221.js +64 -45
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +3 -65
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +46 -3
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library233.js +129 -64
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library235.js +40 -36
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +7 -12
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +64 -21
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +41 -107
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +12 -46
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +1 -1
- package/lib/sd-component-library240.js +21 -24
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +103 -47
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +43 -17
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +24 -20
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +52 -47
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +46 -39
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +74 -26
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +21 -2
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +20 -75
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +2 -29
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +41 -3
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +26 -23
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +325 -3
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +5 -325
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +29 -5
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +3 -2
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +24 -2
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +3 -129
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +21 -43
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +22 -8
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +30 -25
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +50 -21
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +134 -30
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +59 -119
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +63 -38
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +30 -74
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +15 -70
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +120 -25
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +117 -16
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +10 -125
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +39 -111
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +9 -10
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +49 -48
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +89 -8
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +89 -48
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library275.js +2 -90
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +2 -92
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library297.js +1 -1
- package/lib/sd-component-library298.js +24 -4
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +33 -23
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +9 -4
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +5 -35
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +3 -8
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +19 -5
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +3 -4
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +5 -19
- package/lib/sd-component-library305.js.map +1 -1
- package/lib/sd-component-library306.js +4 -3
- package/lib/sd-component-library306.js.map +1 -1
- package/lib/sd-component-library51.js +3 -3
- package/lib/sd-component-library52.js +2 -2
- package/lib/sd-component-library53.js +2 -2
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library75.js +2 -2
- package/lib/sd-component-library76.js +1 -1
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library81.js +1 -1
- package/lib/sd-component-library81.js.map +1 -1
- package/lib/sd-component-library89.js +3 -3
- package/lib/sd-component-library92.js +3 -3
- package/lib/sd-component-library94.js +5 -5
- package/lib/sd-component-library98.js +2 -2
- package/lib/sd-component-library99.js +3 -3
- package/package.json +1 -1
|
@@ -1,132 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { isValueInRange as Z, inValueHigherThanRange as F, getCoordinateForArc as d, getInnerX as $, getInnerY as tt, degToRad as L } from "./sd-component-library91.js";
|
|
4
|
-
import { BaseOutlineArc as X } from "./sd-component-library299.js";
|
|
5
|
-
import { OutlineMeterLabelPointer as O } from "./sd-component-library240.js";
|
|
6
|
-
const st = U.forwardRef(
|
|
7
|
-
(D, M) => {
|
|
8
|
-
const {
|
|
9
|
-
start: n,
|
|
10
|
-
end: r,
|
|
11
|
-
color: x,
|
|
12
|
-
bounds: R,
|
|
13
|
-
diameter: o,
|
|
14
|
-
arc: v,
|
|
15
|
-
distanceBetweenRanges: l,
|
|
16
|
-
totalRanges: y,
|
|
17
|
-
value: g,
|
|
18
|
-
gaugeWidth: s,
|
|
19
|
-
segmented: f,
|
|
20
|
-
idx: m,
|
|
21
|
-
pointStrokeWidth: I,
|
|
22
|
-
innerPointRadius: T,
|
|
23
|
-
distanceFromRanges: b,
|
|
24
|
-
label: w,
|
|
25
|
-
labelPosition: V,
|
|
26
|
-
hideLabels: E,
|
|
27
|
-
connected: _
|
|
28
|
-
} = D, S = "#CCD0DB", A = v - (y - 1) * l, H = A * (r - n), Y = Z(g, n, r, R), q = (360 - v) / 2, t = o / 2, a = q + l * m + A * n, C = _ && F(g, r, R), i = a + A * (r - n) + (C ? l : 0), { x: P, y: j } = d(
|
|
29
|
-
t,
|
|
30
|
-
a
|
|
31
|
-
), { x: W, y: k } = d(
|
|
32
|
-
t,
|
|
33
|
-
i
|
|
34
|
-
), u = V || m === 0 ? "left" : m === y - 1 ? "right" : "top";
|
|
35
|
-
if (f || !Y) {
|
|
36
|
-
const J = f && Y || !f && F(g, r, R) ? x : S, B = C ? i - l : i, { y: K } = d(
|
|
37
|
-
t,
|
|
38
|
-
B
|
|
39
|
-
), { x: N, y: Q } = d(
|
|
40
|
-
t,
|
|
41
|
-
(a + B) / 2
|
|
42
|
-
);
|
|
43
|
-
return /* @__PURE__ */ e.jsxs("g", { children: [
|
|
44
|
-
/* @__PURE__ */ e.jsx(
|
|
45
|
-
X,
|
|
46
|
-
{
|
|
47
|
-
startX: P,
|
|
48
|
-
startY: j,
|
|
49
|
-
endX: W,
|
|
50
|
-
endY: k,
|
|
51
|
-
startAlpha: a,
|
|
52
|
-
endAlpha: i,
|
|
53
|
-
color: J,
|
|
54
|
-
radius: t,
|
|
55
|
-
width: s
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
!E && w && /* @__PURE__ */ e.jsx(
|
|
59
|
-
O,
|
|
60
|
-
{
|
|
61
|
-
diameter: o,
|
|
62
|
-
position: u,
|
|
63
|
-
distanceFromRanges: b,
|
|
64
|
-
isInRange: Y,
|
|
65
|
-
...u === "right" && j > o / 2 || u === "left" && K > o / 2 ? {
|
|
66
|
-
rangeX: N,
|
|
67
|
-
rangeY: Q
|
|
68
|
-
} : void 0
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
] });
|
|
72
|
-
}
|
|
73
|
-
const c = a + (g - n) / (r - n) * H, { x: h, y: p } = d(t, c), z = $(h, L(c), s), G = tt(p, L(c), s);
|
|
74
|
-
return /* @__PURE__ */ e.jsxs("g", { children: [
|
|
75
|
-
/* @__PURE__ */ e.jsx(
|
|
76
|
-
X,
|
|
77
|
-
{
|
|
78
|
-
startX: P,
|
|
79
|
-
startY: j,
|
|
80
|
-
endX: h,
|
|
81
|
-
endY: p,
|
|
82
|
-
startAlpha: a,
|
|
83
|
-
endAlpha: c,
|
|
84
|
-
color: x,
|
|
85
|
-
radius: t,
|
|
86
|
-
width: s,
|
|
87
|
-
roundEnd: !1
|
|
88
|
-
}
|
|
89
|
-
),
|
|
90
|
-
/* @__PURE__ */ e.jsx(
|
|
91
|
-
X,
|
|
92
|
-
{
|
|
93
|
-
startX: h,
|
|
94
|
-
startY: p,
|
|
95
|
-
endX: W,
|
|
96
|
-
endY: k,
|
|
97
|
-
startAlpha: c,
|
|
98
|
-
endAlpha: i,
|
|
99
|
-
color: S,
|
|
100
|
-
radius: t,
|
|
101
|
-
width: s,
|
|
102
|
-
roundStart: !1
|
|
103
|
-
}
|
|
104
|
-
),
|
|
105
|
-
/* @__PURE__ */ e.jsx(
|
|
106
|
-
"circle",
|
|
107
|
-
{
|
|
108
|
-
cx: (h + z) / 2,
|
|
109
|
-
cy: (p + G) / 2,
|
|
110
|
-
r: I + T,
|
|
111
|
-
strokeWidth: I,
|
|
112
|
-
stroke: x,
|
|
113
|
-
fill: "white",
|
|
114
|
-
ref: M
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
!E && w && /* @__PURE__ */ e.jsx(
|
|
118
|
-
O,
|
|
119
|
-
{
|
|
120
|
-
diameter: o,
|
|
121
|
-
isInRange: !0,
|
|
122
|
-
position: u,
|
|
123
|
-
distanceFromRanges: b
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
] });
|
|
127
|
-
}
|
|
128
|
-
);
|
|
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)" }));
|
|
129
3
|
export {
|
|
130
|
-
|
|
4
|
+
e as ReactComponent
|
|
131
5
|
};
|
|
132
6
|
//# sourceMappingURL=sd-component-library257.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library257.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library257.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,50 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
innerCircleRadius: I,
|
|
12
|
-
innerCircleStrokeWidth: A,
|
|
13
|
-
distanceFromRange: d,
|
|
14
|
-
needleWidth: e,
|
|
15
|
-
needleColor: C,
|
|
16
|
-
distanceBetweenRanges: l,
|
|
17
|
-
gaugeWidth: g
|
|
18
|
-
} = x, a = o.find(
|
|
19
|
-
({ start: s, end: y, bounds: N }) => w(c, s, y, N)
|
|
20
|
-
);
|
|
21
|
-
if (!a)
|
|
22
|
-
return null;
|
|
23
|
-
const u = f / 2, S = (360 - i) / 2, m = i - (o.length - 1) * l, { start: t, end: h, color: X } = a, Y = o.findIndex((s) => s === a), p = m * (h - t), R = S + l * Y + m * t, n = v ? R + p / 2 : R + (c - t) / (h - t) * p, { x: j, y: B } = V(u, n), F = E(
|
|
24
|
-
j,
|
|
25
|
-
r(n),
|
|
26
|
-
d + g + e / 2
|
|
27
|
-
), M = O(
|
|
28
|
-
B,
|
|
29
|
-
r(n),
|
|
30
|
-
d + g + e / 2
|
|
31
|
-
), T = e / 2 * Math.cos(r(n)), W = e / 2 * Math.sin(r(n));
|
|
32
|
-
return /* @__PURE__ */ k.jsx(
|
|
33
|
-
b,
|
|
1
|
+
import { j as i } from "./sd-component-library197.js";
|
|
2
|
+
import { FlexCenter as l } from "./sd-component-library34.js";
|
|
3
|
+
const x = ({
|
|
4
|
+
children: t,
|
|
5
|
+
disabled: o,
|
|
6
|
+
onClick: e
|
|
7
|
+
}) => {
|
|
8
|
+
const r = o ? "cl_lightGrey" : "cl_blue";
|
|
9
|
+
return /* @__PURE__ */ i.jsx(
|
|
10
|
+
l,
|
|
34
11
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
height: "100%",
|
|
13
|
+
sx: {
|
|
14
|
+
borderWidth: "2px",
|
|
15
|
+
borderColor: r,
|
|
16
|
+
borderStyle: "solid",
|
|
17
|
+
borderRadius: "5px",
|
|
18
|
+
fill: r
|
|
19
|
+
},
|
|
20
|
+
onClick: o ? void 0 : e,
|
|
21
|
+
children: t
|
|
44
22
|
}
|
|
45
23
|
);
|
|
46
24
|
};
|
|
47
25
|
export {
|
|
48
|
-
|
|
26
|
+
x as PaginationBarButton
|
|
49
27
|
};
|
|
50
28
|
//# sourceMappingURL=sd-component-library258.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library258.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library258.js","sources":["../src/components/pagination-bars/pagination-bar-mobile/partials/pagination-bar-button/pagination-bar-button.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { FlexCenter } from \"../../../../containers\";\nimport { PaginationBarButtonProps as Props } from \"./interfaces\";\n\nexport const PaginationBarButton: React.FC<PropsWithChildren<Props>> = ({\n children,\n disabled,\n onClick,\n}) => {\n const color = disabled ? \"cl_lightGrey\" : \"cl_blue\";\n return (\n <FlexCenter\n height=\"100%\"\n sx={{\n borderWidth: \"2px\",\n borderColor: color,\n borderStyle: \"solid\",\n borderRadius: \"5px\",\n fill: color,\n }}\n onClick={disabled ? undefined : onClick}\n >\n {children}\n </FlexCenter>\n );\n};\n"],"names":["PaginationBarButton","children","disabled","onClick","color","jsx","FlexCenter"],"mappings":";;AAKO,MAAMA,IAA0D,CAAC;AAAA,EACtE,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AACF,MAAM;AACE,QAAAC,IAAQF,IAAW,iBAAiB;AAExC,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAO;AAAA,MACP,IAAI;AAAA,QACF,aAAa;AAAA,QACb,aAAaF;AAAA,QACb,aAAa;AAAA,QACb,cAAc;AAAA,QACd,MAAMA;AAAA,MACR;AAAA,MACA,SAASF,IAAW,SAAYC;AAAA,MAE/B,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { j as r } from "./sd-component-library197.js";
|
|
2
|
+
import { ResponsiveTextV2 as t } from "./sd-component-library150.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
|
+
);
|
|
8
22
|
export {
|
|
9
|
-
|
|
23
|
+
n as PaginationBarCurrentPage
|
|
10
24
|
};
|
|
11
25
|
//# sourceMappingURL=sd-component-library259.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library259.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library259.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,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-library197.js";
|
|
2
|
+
import { FlexCenterSpaceBetween as p } from "./sd-component-library34.js";
|
|
3
|
+
import { ResponsiveTextV2 as t } from "./sd-component-library150.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-library260.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library260.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library260.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-library197.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-library191.js";
|
|
5
|
+
import { SecondaryCustomSelectorOptionRow as x } from "./sd-component-library319.js";
|
|
6
|
+
import { HorizontalDivider as i } from "./sd-component-library48.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-library261.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library261.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library261.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-library197.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-library112.js";
|
|
6
|
+
import { BaseLabel as D } from "./sd-component-library224.js";
|
|
7
|
+
import { MaxMaxContainer as G } from "./sd-component-library40.js";
|
|
8
|
+
import { ResponsiveTextV2 as H } from "./sd-component-library150.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-library262.js.map
|