qaema-ui 0.0.30 → 0.0.32
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/dist/_virtual/index2.js +4 -4
- package/dist/_virtual/index3.js +4 -4
- package/dist/_virtual/index4.js +4 -4
- package/dist/components/DropDownWithTable/DropDownWithTable.js +49 -47
- package/dist/components/DropDownWithTable/DropDownWithTable.types.d.ts +1 -0
- package/dist/components/StepperProcess.d.ts +1 -0
- package/dist/components/StepperProcess.js +71 -71
- package/dist/components/SummaryCard.js +28 -32
- package/dist/components/TotalsSummary.d.ts +1 -1
- package/dist/components/TotalsSummary.js +30 -27
- package/dist/node_modules/react-bootstrap/esm/CloseButton.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Feedback.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Form.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Image.js +1 -1
- package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
- package/dist/node_modules/react-smooth/es6/Animate.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as t } from "../node_modules/react-helmet-async/node_modules/react-fast-compare/index.js";
|
|
3
|
+
var a = t();
|
|
4
|
+
const m = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var a =
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/shallowequal/index.js";
|
|
3
|
+
var a = o();
|
|
4
|
+
const t = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as o } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/prop-types/index.js";
|
|
3
|
+
var p = /* @__PURE__ */ o();
|
|
4
|
+
const s = /* @__PURE__ */ r(p);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useRef as g, useState as v, useCallback as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { FaTimes as k, FaAngleDown as
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import { HelperTextWrapper as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useQaemaCoreTranslation as
|
|
12
|
-
import { StyledDropDownContainer as
|
|
13
|
-
import
|
|
14
|
-
const
|
|
2
|
+
import { useRef as g, useState as v, useCallback as oe, useEffect as D } from "react";
|
|
3
|
+
import { createPortal as le } from "react-dom";
|
|
4
|
+
import { FaTimes as k, FaAngleDown as ie } from "../../node_modules/react-icons/fa/index.js";
|
|
5
|
+
import { useTheme as se } from "styled-components";
|
|
6
|
+
import { HelperTextWrapper as ae } from "../PhoneInputField.js";
|
|
7
|
+
import ce from "../SearchBar.js";
|
|
8
|
+
import de from "../Spinner.js";
|
|
9
|
+
import ue from "../Typography.js";
|
|
10
|
+
import fe from "../../hooks/useZIndex.js";
|
|
11
|
+
import { useQaemaCoreTranslation as me } from "../../i18n/i18n.js";
|
|
12
|
+
import { StyledDropDownContainer as he, StyledlabelContainer as pe, StyledDropDown as xe, StyledDropDownToggle as Se, StyledDropDownTitle as je, IconsContainer as we, StyledDropDownMenu as ye, SearchContainer as ge, StyledOptionsContainer as ve, SpinnerRow as Ce, SelectedTagsContainer as be, SelectedTag as De } from "../../styles/Dropdown.styles.js";
|
|
13
|
+
import Te from "./Table/Table.js";
|
|
14
|
+
const Ne = (d) => {
|
|
15
15
|
const {
|
|
16
16
|
label: T,
|
|
17
17
|
options: R,
|
|
@@ -31,17 +31,18 @@ const Me = (d) => {
|
|
|
31
31
|
multiSelect: f = !1,
|
|
32
32
|
isLoading: B = !1,
|
|
33
33
|
currentSelectedOptions: h = [],
|
|
34
|
-
isInteractive:
|
|
34
|
+
isInteractive: I = !1,
|
|
35
35
|
//Table related props
|
|
36
36
|
columns: A,
|
|
37
37
|
isTableHeadVisible: V = !1,
|
|
38
38
|
getDisplayValue: y,
|
|
39
39
|
isRowDisabled: Q,
|
|
40
|
-
rowClassName: X
|
|
41
|
-
|
|
40
|
+
rowClassName: X,
|
|
41
|
+
endIcon: Y
|
|
42
|
+
} = d, p = se(), { t: E } = me(), C = g(null), a = g(null), Z = g(null), q = g(d.currentSelectedOptions !== void 0), [u, b] = v(!1), [G, J] = v(0), [L, K] = v({ top: 0, left: 0 }), [l, x] = v(h), O = F ?? /* @__PURE__ */ t.jsx(t.Fragment, {}), U = fe("dropdown"), m = oe(() => {
|
|
42
43
|
if (a != null && a.current) {
|
|
43
44
|
const e = a.current.getBoundingClientRect();
|
|
44
|
-
|
|
45
|
+
J(a.current.offsetWidth / 16), K({
|
|
45
46
|
top: e.bottom + window.scrollY,
|
|
46
47
|
left: e.left + window.scrollX
|
|
47
48
|
});
|
|
@@ -50,23 +51,23 @@ const Me = (d) => {
|
|
|
50
51
|
D(() => (u && (m(), window.addEventListener("resize", m), window.addEventListener("scroll", m, !0)), () => {
|
|
51
52
|
window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0);
|
|
52
53
|
}), [u, m]), D(() => {
|
|
53
|
-
if (!
|
|
54
|
+
if (!q.current) return;
|
|
54
55
|
(h.length !== l.length || h.some((n, o) => {
|
|
55
56
|
var c;
|
|
56
57
|
return n[r] !== ((c = l[o]) == null ? void 0 : c[r]);
|
|
57
58
|
})) && x(h);
|
|
58
59
|
}, [h]);
|
|
59
|
-
const
|
|
60
|
+
const _ = (e, n, o, c = "default") => o ? p.colors.grey.n400 : e ? p.colors.state.error.n450 : n ? p.colors.primary.dark.n600 : c === "light-primary" ? p.colors.primary.purple.n450 : p.colors.grey.n300, $ = (e) => l.some((n) => typeof n == "object" && typeof e == "object" ? n[r] === e[r] : n.value === e.value), ee = (e) => {
|
|
60
61
|
if (f) {
|
|
61
62
|
const n = $(e);
|
|
62
63
|
let o;
|
|
63
64
|
n ? o = l.filter((c) => typeof c == "object" && typeof e == "object" ? c[r] !== e[r] : c.value !== e.value) : o = [...l, e], x(o), w(o);
|
|
64
65
|
} else
|
|
65
66
|
x([e]), w(e), b(!1), i == null || i(!1);
|
|
66
|
-
},
|
|
67
|
+
}, te = (e) => {
|
|
67
68
|
const n = l.filter((o) => typeof o == "object" && typeof e == "object" ? o[r] !== e[r] : o.value !== e.value);
|
|
68
69
|
x(n), w(n);
|
|
69
|
-
},
|
|
70
|
+
}, ne = (e) => {
|
|
70
71
|
if (e.length === 0) return P;
|
|
71
72
|
if (!f) {
|
|
72
73
|
const n = e[0];
|
|
@@ -77,7 +78,7 @@ const Me = (d) => {
|
|
|
77
78
|
if (r)
|
|
78
79
|
return String(n == null ? void 0 : n[r]);
|
|
79
80
|
}
|
|
80
|
-
return `${e.length} ${
|
|
81
|
+
return `${e.length} ${E("SELECTED")}`;
|
|
81
82
|
};
|
|
82
83
|
D(() => {
|
|
83
84
|
const e = (n) => {
|
|
@@ -87,14 +88,14 @@ const Me = (d) => {
|
|
|
87
88
|
document.removeEventListener("mousedown", e);
|
|
88
89
|
};
|
|
89
90
|
}, [u, i]);
|
|
90
|
-
const
|
|
91
|
-
return /* @__PURE__ */ t.jsxs(
|
|
92
|
-
T && /* @__PURE__ */ t.jsxs(
|
|
91
|
+
const re = () => I || (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ t.jsx(ae, { error: s, children: s });
|
|
92
|
+
return /* @__PURE__ */ t.jsxs(he, { children: [
|
|
93
|
+
T && /* @__PURE__ */ t.jsxs(pe, { children: [
|
|
93
94
|
/* @__PURE__ */ t.jsx("label", { children: T }),
|
|
94
|
-
W && /* @__PURE__ */ t.jsx("span", { children:
|
|
95
|
+
W && /* @__PURE__ */ t.jsx("span", { children: E("OPTIONAL") })
|
|
95
96
|
] }),
|
|
96
97
|
/* @__PURE__ */ t.jsxs(
|
|
97
|
-
|
|
98
|
+
xe,
|
|
98
99
|
{
|
|
99
100
|
show: u,
|
|
100
101
|
onToggle: () => {
|
|
@@ -103,20 +104,21 @@ const Me = (d) => {
|
|
|
103
104
|
placement: "bottom-start",
|
|
104
105
|
autoClose: f ? "outside" : !0,
|
|
105
106
|
children: [
|
|
106
|
-
/* @__PURE__ */ t.jsx(
|
|
107
|
+
/* @__PURE__ */ t.jsx(Se, { disabled: S, ref: a, $valid: !s, $variant: d.variant || "default", children: /* @__PURE__ */ t.jsx(je, { $valid: !s, $isInteractive: I, children: /* @__PURE__ */ t.jsxs("div", { className: "title-container", children: [
|
|
107
108
|
/* @__PURE__ */ t.jsxs("div", { className: "heading-container", children: [
|
|
108
109
|
z && typeof O == "function" && /* @__PURE__ */ t.jsx(O, {}),
|
|
109
110
|
/* @__PURE__ */ t.jsx(
|
|
110
|
-
|
|
111
|
+
ue,
|
|
111
112
|
{
|
|
112
113
|
component: "span",
|
|
113
114
|
variant: "mdText",
|
|
114
|
-
color:
|
|
115
|
-
children:
|
|
115
|
+
color: _(s, l.length > 0, S, d.variant || "default"),
|
|
116
|
+
children: ne(l)
|
|
116
117
|
}
|
|
117
118
|
)
|
|
118
119
|
] }),
|
|
119
|
-
/* @__PURE__ */ t.jsxs(
|
|
120
|
+
/* @__PURE__ */ t.jsxs(we, { children: [
|
|
121
|
+
Y,
|
|
120
122
|
!f && l.length > 0 && !S && /* @__PURE__ */ t.jsx(
|
|
121
123
|
k,
|
|
122
124
|
{
|
|
@@ -126,46 +128,46 @@ const Me = (d) => {
|
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
),
|
|
129
|
-
!S && /* @__PURE__ */ t.jsx(
|
|
131
|
+
!S && /* @__PURE__ */ t.jsx(ie, {})
|
|
130
132
|
] })
|
|
131
133
|
] }) }) }),
|
|
132
|
-
u &&
|
|
134
|
+
u && le(
|
|
133
135
|
/* @__PURE__ */ t.jsxs(
|
|
134
|
-
|
|
136
|
+
ye,
|
|
135
137
|
{
|
|
136
138
|
ref: C,
|
|
137
|
-
$menuWidth:
|
|
138
|
-
$zIndex:
|
|
139
|
+
$menuWidth: G,
|
|
140
|
+
$zIndex: U,
|
|
139
141
|
style: {
|
|
140
142
|
position: "fixed",
|
|
141
143
|
top: `${L.top}px`,
|
|
142
144
|
left: `${L.left}px`
|
|
143
145
|
},
|
|
144
146
|
children: [
|
|
145
|
-
H && /* @__PURE__ */ t.jsx(
|
|
147
|
+
H && /* @__PURE__ */ t.jsx(ge, { children: /* @__PURE__ */ t.jsx(ce, { placeholder: N, onSearch: M }) }),
|
|
146
148
|
/* @__PURE__ */ t.jsxs(
|
|
147
|
-
|
|
149
|
+
ve,
|
|
148
150
|
{
|
|
149
|
-
ref:
|
|
151
|
+
ref: Z,
|
|
150
152
|
onScroll: (e) => {
|
|
151
153
|
var n;
|
|
152
154
|
(n = d.onScroll) == null || n.call(d, e);
|
|
153
155
|
},
|
|
154
156
|
children: [
|
|
155
157
|
/* @__PURE__ */ t.jsx(
|
|
156
|
-
|
|
158
|
+
Te,
|
|
157
159
|
{
|
|
158
160
|
keyField: r,
|
|
159
161
|
data: R,
|
|
160
162
|
columns: A,
|
|
161
|
-
onRowClick: (e) =>
|
|
163
|
+
onRowClick: (e) => ee(e),
|
|
162
164
|
isRowSelected: (e) => $(e),
|
|
163
165
|
isTableHeadVisible: V,
|
|
164
166
|
isRowDisabled: Q,
|
|
165
167
|
rowClassName: X
|
|
166
168
|
}
|
|
167
169
|
),
|
|
168
|
-
B && /* @__PURE__ */ t.jsx(
|
|
170
|
+
B && /* @__PURE__ */ t.jsx(Ce, { children: /* @__PURE__ */ t.jsx(de, {}) })
|
|
169
171
|
]
|
|
170
172
|
}
|
|
171
173
|
)
|
|
@@ -177,13 +179,13 @@ const Me = (d) => {
|
|
|
177
179
|
]
|
|
178
180
|
}
|
|
179
181
|
),
|
|
180
|
-
f && l.length > 0 && /* @__PURE__ */ t.jsx(
|
|
182
|
+
f && l.length > 0 && /* @__PURE__ */ t.jsx(be, { children: l.map((e) => /* @__PURE__ */ t.jsxs(De, { children: [
|
|
181
183
|
y ? y(e) : String(j ? e[j] : e[r]),
|
|
182
|
-
/* @__PURE__ */ t.jsx(k, { onClick: () =>
|
|
184
|
+
/* @__PURE__ */ t.jsx(k, { onClick: () => te(e) })
|
|
183
185
|
] }, String(e[r]))) }),
|
|
184
|
-
|
|
186
|
+
re()
|
|
185
187
|
] });
|
|
186
188
|
};
|
|
187
189
|
export {
|
|
188
|
-
|
|
190
|
+
Ne as default
|
|
189
191
|
};
|
|
@@ -1159,6 +1159,7 @@ export declare const AnimatedMainContent: import("styled-components/dist/types")
|
|
|
1159
1159
|
viewBox?: string | import("@react-spring/shared").FluidValue<string, any> | undefined;
|
|
1160
1160
|
}, {
|
|
1161
1161
|
$variant: StepVariant;
|
|
1162
|
+
$showStepper: boolean;
|
|
1162
1163
|
}>> & string & Omit<import("@react-spring/web").AnimatedComponent<"div">, keyof React.Component<any, {}, any>>;
|
|
1163
1164
|
export declare const ScrollableContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
1164
1165
|
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
-
import
|
|
2
|
+
import o, { useState as I, useMemo as v, useEffect as D } from "react";
|
|
3
3
|
import { Container as tt, Row as et, Col as _ } from "react-grid-system";
|
|
4
|
-
import
|
|
4
|
+
import a, { useTheme as nt } from "styled-components";
|
|
5
5
|
import it from "../assets/svg/failed.svg.js";
|
|
6
6
|
import rt from "../assets/svg/success.svg.js";
|
|
7
7
|
import ot from "./Stepper.js";
|
|
@@ -9,38 +9,38 @@ import { breakPoints as st, device as u } from "../constants/breakPoints.constan
|
|
|
9
9
|
import at from "../hooks/useBreakpointCheck.js";
|
|
10
10
|
import N from "../hooks/useZIndex.js";
|
|
11
11
|
import { useQaemaCoreTranslation as dt } from "../i18n/i18n.js";
|
|
12
|
-
import { a as
|
|
12
|
+
import { a as m } from "../node_modules/@react-spring/web/dist/react-spring_web.modern.js";
|
|
13
13
|
import { Scrollbar as lt } from "../styles/Scrollbar.styles.js";
|
|
14
14
|
import { EmptyContent as ct, FeedbackHeader as mt, TextContainer as pt, ImageContainer as ft, StickyContent as ht } from "../styles/StatusFeedback.styles.js";
|
|
15
15
|
import gt from "./Image.js";
|
|
16
16
|
import ut from "./PageHeader.js";
|
|
17
17
|
import H from "./Typography.js";
|
|
18
18
|
import { useTransition as Y, useSpring as T } from "../node_modules/@react-spring/core/dist/react-spring_core.modern.js";
|
|
19
|
-
const xt =
|
|
19
|
+
const xt = a.div`
|
|
20
20
|
overflow: auto;
|
|
21
21
|
padding-bottom: 1.938rem;
|
|
22
22
|
height: 100vh;
|
|
23
23
|
width: 100%;
|
|
24
|
-
`, yt =
|
|
24
|
+
`, yt = a(m.div)`
|
|
25
25
|
background-color: ${({ theme: e }) => e.colors.secondary.lightBlue.n50};
|
|
26
26
|
padding: 0 9.438rem;
|
|
27
|
-
margin-top: ${({ $variant: e, theme: s }) => e === "step" ? "16.25rem" :
|
|
28
|
-
height: ${({ $variant: e }) => e === "step" ? "calc(100vh - 16.25rem)" : "auto"};
|
|
27
|
+
margin-top: ${({ $variant: e, theme: i, $showStepper: s }) => e === "step" ? s ? "16.25rem" : "11rem" : i.spacing.m};
|
|
28
|
+
height: ${({ $variant: e, $showStepper: i }) => e === "step" && i ? "calc(100vh - 16.25rem)" : "auto"};
|
|
29
29
|
width: 100%;
|
|
30
30
|
@media ${u.tablet} {
|
|
31
31
|
padding: 0 1.438rem;
|
|
32
|
-
margin-top: ${({ $variant: e, theme: s }) => e === "step" ? "12.25rem" :
|
|
32
|
+
margin-top: ${({ $variant: e, theme: i, $showStepper: s }) => e === "step" ? s ? "12.25rem" : "11rem" : i.spacing.m};
|
|
33
33
|
height: auto;
|
|
34
34
|
}
|
|
35
|
-
@media ${u.
|
|
36
|
-
margin-top: ${({ $variant: e, theme: s }) => e === "step" ? "8.25rem" :
|
|
35
|
+
@media ${u.mobile} {
|
|
36
|
+
margin-top: ${({ $variant: e, theme: i, $showStepper: s }) => e === "step" ? s ? "8.25rem" : "4rem" : i.spacing.m};
|
|
37
37
|
}
|
|
38
|
-
`, vt =
|
|
38
|
+
`, vt = a(lt)`
|
|
39
39
|
background: white;
|
|
40
40
|
height: 100%;
|
|
41
41
|
overflow-y: ${({ $variant: e }) => e === "step" ? "auto" : "unset"};
|
|
42
42
|
overflow-x: ${({ $variant: e }) => e === "step" ? "hidden" : "unset"};
|
|
43
|
-
`, jt =
|
|
43
|
+
`, jt = a(m.div)`
|
|
44
44
|
position: fixed;
|
|
45
45
|
top: 0;
|
|
46
46
|
left: 0;
|
|
@@ -51,12 +51,12 @@ const xt = o.div`
|
|
|
51
51
|
align-items: center;
|
|
52
52
|
z-index: ${({ $zIndex: e }) => e};
|
|
53
53
|
background-color: rgba(0, 0, 0, 0.5);
|
|
54
|
-
`, Ct =
|
|
54
|
+
`, Ct = a.div`
|
|
55
55
|
margin-inline-start: -60px;
|
|
56
56
|
@media ${u.mobile} {
|
|
57
57
|
margin-inline-start: -23px;
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`, $t = a(m.div)`
|
|
60
60
|
background-color: white;
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 100%;
|
|
@@ -65,10 +65,10 @@ const xt = o.div`
|
|
|
65
65
|
left: 0;
|
|
66
66
|
overscroll-behavior: contain;
|
|
67
67
|
direction: ${({ theme: e }) => e.dir};
|
|
68
|
-
`,
|
|
68
|
+
`, bt = a.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
|
-
`, wt =
|
|
71
|
+
`, wt = a(m.div)`
|
|
72
72
|
padding-top: 7.25rem;
|
|
73
73
|
padding-inline-start: 8.438rem;
|
|
74
74
|
@media ${u.tablet} {
|
|
@@ -80,27 +80,27 @@ const xt = o.div`
|
|
|
80
80
|
padding-inline-start: 0.5rem;
|
|
81
81
|
width: 100% !important;
|
|
82
82
|
}
|
|
83
|
-
`, At =
|
|
83
|
+
`, At = a.div`
|
|
84
84
|
padding-top: 1rem;
|
|
85
85
|
@media ${u.mobile} {
|
|
86
86
|
padding-top: 0;
|
|
87
87
|
}
|
|
88
|
-
`, St =
|
|
88
|
+
`, St = a(m.div)`
|
|
89
89
|
width: 100%;
|
|
90
90
|
height: 100%;
|
|
91
|
-
`, kt =
|
|
91
|
+
`, kt = a.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
|
-
`, Et =
|
|
94
|
+
`, Et = a(m.div)`
|
|
95
95
|
${({ theme: e }) => e.dir === "rtl" ? "left: 0" : "right: 0"};
|
|
96
|
-
`, W = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), F = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }),
|
|
97
|
-
const
|
|
98
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children:
|
|
96
|
+
`, W = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), F = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), A = ({ children: e }) => {
|
|
97
|
+
const i = o.Children.toArray(e).find((s) => o.isValidElement(s) && s.type === W);
|
|
98
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: i });
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const It = ({ isOpen: e, children:
|
|
103
|
-
const
|
|
100
|
+
A.LeftSide = W;
|
|
101
|
+
A.RightSide = F;
|
|
102
|
+
const It = ({ isOpen: e, children: i }) => {
|
|
103
|
+
const s = N("stepper"), p = T({
|
|
104
104
|
opacity: e ? 1 : 0,
|
|
105
105
|
pointerEvents: e ? "all" : "none",
|
|
106
106
|
config: { tension: 170, friction: 26 }
|
|
@@ -108,41 +108,41 @@ const It = ({ isOpen: e, children: s }) => {
|
|
|
108
108
|
transform: e ? "translateY(0)" : "translateY(100%)",
|
|
109
109
|
config: { tension: 170, friction: 26 }
|
|
110
110
|
});
|
|
111
|
-
return /* @__PURE__ */ t.jsx(jt, { style: p, $zIndex:
|
|
111
|
+
return /* @__PURE__ */ t.jsx(jt, { style: p, $zIndex: s, children: /* @__PURE__ */ t.jsx($t, { style: j, onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ t.jsx(xt, { children: /* @__PURE__ */ t.jsx(bt, { children: i }) }) }) });
|
|
112
112
|
}, O = ({
|
|
113
113
|
initialStep: e = 0,
|
|
114
|
-
headerTitle:
|
|
115
|
-
onHeaderBack:
|
|
114
|
+
headerTitle: i = "Welcoming Business Bundle",
|
|
115
|
+
onHeaderBack: s,
|
|
116
116
|
activeStep: p,
|
|
117
117
|
children: j,
|
|
118
|
-
showStepper:
|
|
118
|
+
showStepper: C = !0
|
|
119
119
|
}) => {
|
|
120
120
|
var z;
|
|
121
|
-
const S = nt(), M = S.dir === "rtl", [
|
|
122
|
-
const
|
|
123
|
-
return
|
|
124
|
-
if (
|
|
125
|
-
const
|
|
121
|
+
const S = nt(), M = S.dir === "rtl", [d, Q] = I(e), [R, P] = I("forward"), [k, $] = I(!1), U = at(st.mobile), { steps: f, rightContents: x } = v(() => {
|
|
122
|
+
const r = o.Children.toArray(j), h = [], g = {};
|
|
123
|
+
return r.flatMap((l) => o.isValidElement(l) && l.type === o.Fragment ? o.Children.toArray(l.props.children) : l).forEach((l, X) => {
|
|
124
|
+
if (o.isValidElement(l) && l.type === A) {
|
|
125
|
+
const c = l, w = X, E = o.Children.toArray(c.props.children).find((y) => o.isValidElement(y) && y.type === F);
|
|
126
126
|
h.push({
|
|
127
|
-
id:
|
|
128
|
-
title:
|
|
129
|
-
description:
|
|
130
|
-
variant:
|
|
131
|
-
statusProps:
|
|
132
|
-
element:
|
|
133
|
-
key: `step-${
|
|
134
|
-
id:
|
|
135
|
-
children:
|
|
127
|
+
id: w,
|
|
128
|
+
title: c.props.title,
|
|
129
|
+
description: c.props.description,
|
|
130
|
+
variant: c.props.variant,
|
|
131
|
+
statusProps: c.props.statusProps,
|
|
132
|
+
element: o.cloneElement(c, {
|
|
133
|
+
key: `step-${w}`,
|
|
134
|
+
id: w,
|
|
135
|
+
children: o.Children.toArray(c.props.children).filter((y) => !o.isValidElement(y) || y.type !== F)
|
|
136
136
|
})
|
|
137
|
-
}), E &&
|
|
137
|
+
}), E && o.isValidElement(E) && (g[w] = E.props.children);
|
|
138
138
|
}
|
|
139
139
|
}), { steps: h, rightContents: g };
|
|
140
|
-
}, [j]), n = v(() => f.find((
|
|
140
|
+
}, [j]), n = v(() => f.find((r) => r.id === d), [f, d]), b = v(() => !!x[d], [x, d]), { t: L } = dt(), Z = N("stepper");
|
|
141
141
|
D(() => {
|
|
142
142
|
window.scrollTo(0, 0), p <= f.length && !k && P("forward"), p - 1 >= 0 && !k && P("backward"), Q(p);
|
|
143
143
|
}, [p, k, f.length]);
|
|
144
|
-
const q = v(() => x[
|
|
145
|
-
keys: () => `right-content-${
|
|
144
|
+
const q = v(() => x[d], [d, x]), G = Y(b ? q : null, {
|
|
145
|
+
keys: () => `right-content-${d}`,
|
|
146
146
|
from: {
|
|
147
147
|
opacity: 0,
|
|
148
148
|
y: 66.5
|
|
@@ -160,18 +160,18 @@ const It = ({ isOpen: e, children: s }) => {
|
|
|
160
160
|
damping: 20,
|
|
161
161
|
mass: 1
|
|
162
162
|
},
|
|
163
|
-
onStart: () =>
|
|
163
|
+
onStart: () => $(!0),
|
|
164
164
|
onRest: () => {
|
|
165
|
-
|
|
165
|
+
$(!1);
|
|
166
166
|
}
|
|
167
167
|
}), J = T({
|
|
168
168
|
width: b ? "60%" : "90%",
|
|
169
169
|
config: { tension: 170, friction: 26 }
|
|
170
170
|
}), V = v(
|
|
171
|
-
() => (
|
|
171
|
+
() => (r) => M ? r === "forward" ? -750 : 793 : r === "forward" ? 750 : -793,
|
|
172
172
|
[M]
|
|
173
|
-
), K = Y(
|
|
174
|
-
keys: (
|
|
173
|
+
), K = Y(d, {
|
|
174
|
+
keys: (r) => r,
|
|
175
175
|
from: {
|
|
176
176
|
opacity: 0,
|
|
177
177
|
x: V(R),
|
|
@@ -202,8 +202,8 @@ const It = ({ isOpen: e, children: s }) => {
|
|
|
202
202
|
mass: 1
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
|
-
onStart: () =>
|
|
206
|
-
onRest: () =>
|
|
205
|
+
onStart: () => $(!0),
|
|
206
|
+
onRest: () => $(!1)
|
|
207
207
|
});
|
|
208
208
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
209
209
|
(n == null ? void 0 : n.variant) === "success" || (n == null ? void 0 : n.variant) === "fail" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -223,48 +223,48 @@ const It = ({ isOpen: e, children: s }) => {
|
|
|
223
223
|
) })
|
|
224
224
|
] })
|
|
225
225
|
] }) : /* @__PURE__ */ t.jsx(ht, { $zIndex: Z, children: /* @__PURE__ */ t.jsxs(wt, { style: J, children: [
|
|
226
|
-
/* @__PURE__ */ t.jsx(Ct, { children: /* @__PURE__ */ t.jsx(ut, { onHeaderBack:
|
|
227
|
-
|
|
226
|
+
/* @__PURE__ */ t.jsx(Ct, { children: /* @__PURE__ */ t.jsx(ut, { onHeaderBack: s, headerTitle: i }) }),
|
|
227
|
+
C && /* @__PURE__ */ t.jsx(kt, { children: n && /* @__PURE__ */ t.jsx(
|
|
228
228
|
ot,
|
|
229
229
|
{
|
|
230
230
|
currentStep: {
|
|
231
231
|
description: n.description,
|
|
232
|
-
number:
|
|
232
|
+
number: d + 1,
|
|
233
233
|
title: n.title
|
|
234
234
|
},
|
|
235
|
-
filledPercentage:
|
|
235
|
+
filledPercentage: d / f.length * 100
|
|
236
236
|
}
|
|
237
237
|
) })
|
|
238
238
|
] }) }),
|
|
239
|
-
/* @__PURE__ */ t.jsx(vt, { $variant: (n == null ? void 0 : n.variant) ?? "step", children: /* @__PURE__ */ t.jsx(yt, { $variant: (n == null ? void 0 : n.variant) ?? "step", children: /* @__PURE__ */ t.jsx(tt, { fluid: !0, style: { padding: 0 }, children: /* @__PURE__ */ t.jsxs(et, { children: [
|
|
240
|
-
/* @__PURE__ */ t.jsx(_, { md: b ? 8 : 12, children: /* @__PURE__ */ t.jsx(At, { children: K((
|
|
239
|
+
/* @__PURE__ */ t.jsx(vt, { $variant: (n == null ? void 0 : n.variant) ?? "step", children: /* @__PURE__ */ t.jsx(yt, { $variant: (n == null ? void 0 : n.variant) ?? "step", $showStepper: C, children: /* @__PURE__ */ t.jsx(tt, { fluid: !0, style: { padding: 0 }, children: /* @__PURE__ */ t.jsxs(et, { children: [
|
|
240
|
+
/* @__PURE__ */ t.jsx(_, { md: b ? 8 : 12, children: /* @__PURE__ */ t.jsx(At, { children: K((r, h) => {
|
|
241
241
|
const g = f.find((B) => B.id === h);
|
|
242
|
-
return /* @__PURE__ */ t.jsx(St, { style:
|
|
242
|
+
return /* @__PURE__ */ t.jsx(St, { style: r, children: g == null ? void 0 : g.element });
|
|
243
243
|
}) }) }),
|
|
244
|
-
b && /* @__PURE__ */ t.jsx(_, { md: 4, style: { padding: 0, paddingInlineStart: U ? "unset" : "1.5rem" }, children: /* @__PURE__ */ t.jsx(Et, { children: G((
|
|
245
|
-
|
|
244
|
+
b && /* @__PURE__ */ t.jsx(_, { md: 4, style: { padding: 0, paddingInlineStart: U ? "unset" : "1.5rem" }, children: /* @__PURE__ */ t.jsx(Et, { children: G((r) => /* @__PURE__ */ t.jsx(
|
|
245
|
+
m.div,
|
|
246
246
|
{
|
|
247
247
|
style: {
|
|
248
|
-
...
|
|
249
|
-
transform:
|
|
248
|
+
...r,
|
|
249
|
+
transform: r.y.to((h) => `translateY(${h}rem)`)
|
|
250
250
|
},
|
|
251
|
-
children: x[
|
|
251
|
+
children: x[d]
|
|
252
252
|
}
|
|
253
253
|
)) }) })
|
|
254
254
|
] }) }) }) })
|
|
255
255
|
] });
|
|
256
256
|
};
|
|
257
|
-
O.Step =
|
|
257
|
+
O.Step = A;
|
|
258
258
|
O.Layout = It;
|
|
259
259
|
export {
|
|
260
260
|
yt as AnimatedMainContent,
|
|
261
|
-
|
|
261
|
+
$t as AnimatedModal,
|
|
262
262
|
jt as AnimatedOverlay,
|
|
263
263
|
Et as AnimatedSideMenu,
|
|
264
264
|
St as AnimatedStepContent,
|
|
265
265
|
xt as Container,
|
|
266
266
|
At as FormContentContainer,
|
|
267
|
-
|
|
267
|
+
bt as MainContent,
|
|
268
268
|
Ct as Margin,
|
|
269
269
|
vt as ScrollableContent,
|
|
270
270
|
wt as StepHeader,
|
|
@@ -3,7 +3,7 @@ import a, { useTheme as b } from "styled-components";
|
|
|
3
3
|
import j from "./Badge.js";
|
|
4
4
|
import m from "./Button.js";
|
|
5
5
|
import { Card as v } from "./Card.js";
|
|
6
|
-
import
|
|
6
|
+
import l from "./Typography.js";
|
|
7
7
|
const w = a.div`
|
|
8
8
|
padding-bottom: ${(r) => r.theme.spacing.s};
|
|
9
9
|
border-bottom: 1px solid ${(r) => r.theme.colors.grey.n100};
|
|
@@ -11,7 +11,7 @@ const w = a.div`
|
|
|
11
11
|
display: inline-block;
|
|
12
12
|
text-align: start;
|
|
13
13
|
}
|
|
14
|
-
`, k = a(
|
|
14
|
+
`, k = a(l)`
|
|
15
15
|
font-family: ${({ theme: r }) => r.fonts.arabic};
|
|
16
16
|
font-weight: ${({ theme: r }) => r.typography.weights.semiBold};
|
|
17
17
|
font-size: 15px;
|
|
@@ -26,7 +26,7 @@ const w = a.div`
|
|
|
26
26
|
border-radius: ${({ theme: r }) => r.borderRadius.md};
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: space-between;
|
|
29
|
-
align-items:
|
|
29
|
+
align-items: center;
|
|
30
30
|
|
|
31
31
|
${({ $variant: r, theme: e }) => {
|
|
32
32
|
switch (r) {
|
|
@@ -54,20 +54,14 @@ const w = a.div`
|
|
|
54
54
|
}
|
|
55
55
|
}}
|
|
56
56
|
`, T = a.button`
|
|
57
|
-
width: 3.9375rem;
|
|
58
|
-
height: 2rem;
|
|
59
57
|
padding: 0.75rem;
|
|
60
58
|
border-radius: 0.25rem;
|
|
61
59
|
border: none;
|
|
62
60
|
cursor: pointer;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
background:${e.colors.secondary.orange.n150};
|
|
68
|
-
color: ${i};
|
|
69
|
-
`;
|
|
70
|
-
}}
|
|
61
|
+
${({ $variant: r, theme: e }) => `
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: ${r === "information" ? e.colors.primary.purple.n450 : r === "error" ? e.colors.state.error.n450 : r === "success" ? e.colors.state.success.n450 : e.colors.secondary.orange.n450};
|
|
64
|
+
`}
|
|
71
65
|
|
|
72
66
|
font-weight: ${({ theme: r }) => r.typography.weights.semiBold};
|
|
73
67
|
font-size: ${({ theme: r }) => r.typography.sizes.s2};
|
|
@@ -91,7 +85,7 @@ const w = a.div`
|
|
|
91
85
|
display: flex;
|
|
92
86
|
flex-direction: column;
|
|
93
87
|
gap: ${(r) => r.theme.spacing.s};
|
|
94
|
-
`, z = a(
|
|
88
|
+
`, z = a(l)`
|
|
95
89
|
font-family: ${({ theme: r }) => r.fonts.arabic};
|
|
96
90
|
font-weight: ${({ theme: r }) => r.typography.weights.regular};
|
|
97
91
|
font-size: ${({ theme: r }) => r.typography.sizes.s2};
|
|
@@ -113,21 +107,23 @@ const w = a.div`
|
|
|
113
107
|
value: i,
|
|
114
108
|
color: g
|
|
115
109
|
}) => {
|
|
116
|
-
const
|
|
117
|
-
let
|
|
110
|
+
const y = b();
|
|
111
|
+
let c = null;
|
|
118
112
|
if (r === "badge") {
|
|
119
113
|
const s = i;
|
|
120
|
-
|
|
114
|
+
c = /* @__PURE__ */ n.jsx(j, { ...s });
|
|
121
115
|
} else if (r === "trend") {
|
|
122
|
-
const s = typeof i == "object" && i !== null ? i : { value: i }, t = s.direction ?? "neutral", d =
|
|
123
|
-
|
|
124
|
-
} else
|
|
116
|
+
const s = typeof i == "object" && i !== null ? i : { value: i }, t = s.direction ?? "neutral", d = y.colors.state.success.n450, o = y.colors.state.error.n450, h = t === "up" ? d : t === "down" ? o : g;
|
|
117
|
+
c = /* @__PURE__ */ n.jsx(l, { variant: "smText", color: h, children: typeof s.value == "number" ? s.value.toString() : s.value });
|
|
118
|
+
} else if (r === "component")
|
|
119
|
+
c = i;
|
|
120
|
+
else {
|
|
125
121
|
const s = i;
|
|
126
|
-
|
|
122
|
+
c = /* @__PURE__ */ n.jsx(l, { variant: "smText", color: g, children: typeof s == "number" ? s.toString() : s });
|
|
127
123
|
}
|
|
128
124
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
129
|
-
/* @__PURE__ */ n.jsx(
|
|
130
|
-
|
|
125
|
+
r !== "component" && /* @__PURE__ */ n.jsx(l, { variant: "smText", weight: "semiBold", children: e }),
|
|
126
|
+
c
|
|
131
127
|
] });
|
|
132
128
|
};
|
|
133
129
|
function G({
|
|
@@ -135,8 +131,8 @@ function G({
|
|
|
135
131
|
total: e,
|
|
136
132
|
title: i,
|
|
137
133
|
subtitle: g,
|
|
138
|
-
btnLabel:
|
|
139
|
-
btnConfig:
|
|
134
|
+
btnLabel: y,
|
|
135
|
+
btnConfig: c,
|
|
140
136
|
trailingActionsConfig: s,
|
|
141
137
|
callout: t
|
|
142
138
|
}) {
|
|
@@ -144,19 +140,19 @@ function G({
|
|
|
144
140
|
return /* @__PURE__ */ n.jsxs(v, { padding: "2rem", shadowVariant: "none", hoverEffect: !1, border: `1px solid ${d.colors.grey.n100}`, children: [
|
|
145
141
|
/* @__PURE__ */ n.jsxs(w, { children: [
|
|
146
142
|
/* @__PURE__ */ n.jsxs(S, { children: [
|
|
147
|
-
/* @__PURE__ */ n.jsx(
|
|
148
|
-
|
|
149
|
-
|
|
143
|
+
/* @__PURE__ */ n.jsx(l, { variant: "h6", weight: "semiBold", children: i }),
|
|
144
|
+
c && /* @__PURE__ */ n.jsxs(m, { ...c, children: [
|
|
145
|
+
y ?? "",
|
|
150
146
|
" "
|
|
151
147
|
] })
|
|
152
148
|
] }),
|
|
153
|
-
/* @__PURE__ */ n.jsx(
|
|
149
|
+
/* @__PURE__ */ n.jsx(l, { variant: "caption", color: d.colors.grey.n400, children: g })
|
|
154
150
|
] }),
|
|
155
151
|
/* @__PURE__ */ n.jsxs(R, { children: [
|
|
156
152
|
r.map((o, u) => {
|
|
157
|
-
var
|
|
158
|
-
return ((
|
|
159
|
-
/* @__PURE__ */ n.jsx(
|
|
153
|
+
var h;
|
|
154
|
+
return ((h = o == null ? void 0 : o.items) == null ? void 0 : h.length) === 0 ? null : /* @__PURE__ */ n.jsxs(C, { children: [
|
|
155
|
+
/* @__PURE__ */ n.jsx(l, { variant: "span", weight: "regular", color: d.colors.grey.n400, children: o.title }),
|
|
160
156
|
o.items.map((p, $) => /* @__PURE__ */ n.jsx(f, { children: /* @__PURE__ */ n.jsx(x, { variant: p == null ? void 0 : p.variant, label: p.label, value: p.value, color: d.colors.grey.n400 }) }, `${u}-${$}`))
|
|
161
157
|
] }, o.title);
|
|
162
158
|
}),
|
|
@@ -10,4 +10,4 @@ export type TotalsSummaryProps = {
|
|
|
10
10
|
showCurrencyIcon?: boolean;
|
|
11
11
|
currencyIconWidth?: string;
|
|
12
12
|
};
|
|
13
|
-
export default function TotalsSummary({ title, items, showCurrencyIcon, currencyIconWidth
|
|
13
|
+
export default function TotalsSummary({ title, items, showCurrencyIcon, currencyIconWidth }: TotalsSummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as i } from "../_virtual/jsx-runtime.js";
|
|
2
2
|
import o from "styled-components";
|
|
3
|
-
import { device as n } from "../constants/breakPoints.constant.js";
|
|
4
3
|
import p from "../assets/icons/RiyalIcon.js";
|
|
4
|
+
import { device as n } from "../constants/breakPoints.constant.js";
|
|
5
5
|
const g = o.div`
|
|
6
6
|
width: 100%;
|
|
7
|
+
direction: inherit;
|
|
7
8
|
`, c = o.div`
|
|
8
9
|
font-family: ${({ theme: e }) => e.fonts.english};
|
|
9
10
|
font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
|
|
@@ -21,7 +22,7 @@ const g = o.div`
|
|
|
21
22
|
@media ${n.tablet} {
|
|
22
23
|
gap: ${({ theme: e }) => e.spacing.l};
|
|
23
24
|
}
|
|
24
|
-
`,
|
|
25
|
+
`, d = o.div`
|
|
25
26
|
display: flex;
|
|
26
27
|
flex-direction: column;
|
|
27
28
|
gap: ${({ theme: e }) => e.spacing.xs};
|
|
@@ -30,55 +31,57 @@ const g = o.div`
|
|
|
30
31
|
@media ${n.tablet} {
|
|
31
32
|
min-width: 9.5rem;
|
|
32
33
|
}
|
|
33
|
-
`,
|
|
34
|
+
`, y = o.div`
|
|
34
35
|
font-family: ${({ theme: e }) => e.fonts.english};
|
|
35
36
|
font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
|
|
36
37
|
font-size: ${({ theme: e }) => e.typography.sizes.s4};
|
|
37
38
|
line-height: ${({ theme: e }) => e.typography.lineHeights.s};
|
|
38
39
|
letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.balancedNarrow};
|
|
39
40
|
color: ${({ theme: e }) => e.colors.grey.n650};
|
|
40
|
-
`,
|
|
41
|
+
`, m = o.div`
|
|
41
42
|
display: flex;
|
|
42
43
|
align-items: baseline;
|
|
43
44
|
gap: ${({ theme: e }) => e.spacing.xxs};
|
|
44
|
-
direction:
|
|
45
|
-
|
|
45
|
+
direction: inherit;
|
|
46
|
+
[dir='rtl'] & {
|
|
47
|
+
flex-direction: row-reverse;
|
|
48
|
+
}
|
|
49
|
+
`, f = o.span`
|
|
46
50
|
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
47
51
|
font-weight: ${({ theme: e }) => e.typography.weights.bold};
|
|
48
52
|
font-size: ${({ theme: e }) => e.typography.sizes.s10};
|
|
49
53
|
line-height: ${({ theme: e }) => e.typography.lineHeights.xl};
|
|
50
54
|
letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.balancedNarrow};
|
|
51
55
|
text-align: center;
|
|
52
|
-
color: ${({ theme: e, $color:
|
|
53
|
-
|
|
56
|
+
color: ${({ theme: e, $color: r }) => r || e.colors.grey.n400};
|
|
57
|
+
direction: ltr;
|
|
58
|
+
unicode-bidi: plaintext;
|
|
59
|
+
`, $ = o.span`
|
|
54
60
|
font-family: ${({ theme: e }) => e.fonts.english};
|
|
55
61
|
font-weight: ${({ theme: e }) => e.typography.weights.regular};
|
|
56
62
|
font-size: ${({ theme: e }) => e.typography.sizes.s2};
|
|
57
63
|
line-height: ${({ theme: e }) => e.typography.lineHeights.xs};
|
|
58
64
|
letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.normal};
|
|
59
|
-
color: ${({ theme: e, $color:
|
|
65
|
+
color: ${({ theme: e, $color: r }) => r || e.colors.grey.n400};
|
|
66
|
+
direction: ltr;
|
|
67
|
+
unicode-bidi: plaintext;
|
|
60
68
|
`;
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */ t.jsx(m, { children: i.title }),
|
|
71
|
-
/* @__PURE__ */ t.jsxs(d, { children: [
|
|
72
|
-
r && /* @__PURE__ */ t.jsx(p, { width: l, height: "20", color: i.color }),
|
|
73
|
-
/* @__PURE__ */ t.jsx($, { $color: i.color, children: i.amount }),
|
|
74
|
-
i.decimal ? /* @__PURE__ */ t.jsxs(f, { $color: i.color, children: [
|
|
69
|
+
function j({ title: e, items: r, showCurrencyIcon: s = !0, currencyIconWidth: l = "18px" }) {
|
|
70
|
+
return /* @__PURE__ */ i.jsxs(g, { children: [
|
|
71
|
+
/* @__PURE__ */ i.jsx(c, { children: e }),
|
|
72
|
+
/* @__PURE__ */ i.jsx(h, { children: r.map((t, a) => /* @__PURE__ */ i.jsxs(d, { children: [
|
|
73
|
+
/* @__PURE__ */ i.jsx(y, { children: t.title }),
|
|
74
|
+
/* @__PURE__ */ i.jsxs(m, { children: [
|
|
75
|
+
s && /* @__PURE__ */ i.jsx(p, { width: l, height: "20", color: t.color }),
|
|
76
|
+
/* @__PURE__ */ i.jsx(f, { $color: t.color, children: t.amount }),
|
|
77
|
+
t.decimal ? /* @__PURE__ */ i.jsxs($, { $color: t.color, children: [
|
|
75
78
|
".",
|
|
76
|
-
|
|
79
|
+
t.decimal
|
|
77
80
|
] }) : null
|
|
78
81
|
] })
|
|
79
|
-
] }, `${
|
|
82
|
+
] }, `${t.title}-${a}`)) })
|
|
80
83
|
] });
|
|
81
84
|
}
|
|
82
85
|
export {
|
|
83
|
-
|
|
86
|
+
j as default
|
|
84
87
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import f from "../../../_virtual/index.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import o from "../../../_virtual/
|
|
3
|
+
import o from "../../../_virtual/index4.js";
|
|
4
4
|
import { useBootstrapPrefix as u } from "./ThemeProvider.js";
|
|
5
5
|
import { j as p } from "../../../_virtual/jsx-runtime.js";
|
|
6
6
|
o.string, o.bool, o.bool, o.bool, o.bool;
|
|
@@ -2,9 +2,9 @@ var Q = Object.defineProperty;
|
|
|
2
2
|
var X = (e, t, r) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var h = (e, t, r) => X(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import y, { Component as R } from "react";
|
|
5
|
-
import ee from "../../../_virtual/
|
|
5
|
+
import ee from "../../../_virtual/index2.js";
|
|
6
6
|
import F from "../../../_virtual/browser.js";
|
|
7
|
-
import te from "../../../_virtual/
|
|
7
|
+
import te from "../../../_virtual/index3.js";
|
|
8
8
|
var Y = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Y || {}), $ = {
|
|
9
9
|
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
10
10
|
script: { type: ["application/ld+json"] },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import x, { Children as w, cloneElement as z, PureComponent as F } from "react";
|
|
2
|
-
import a from "../../../_virtual/
|
|
2
|
+
import a from "../../../_virtual/index4.js";
|
|
3
3
|
import { deepEqual as H } from "../../fast-equals/dist/esm/index.js";
|
|
4
4
|
import L from "./AnimateManager.js";
|
|
5
5
|
import { configEasing as V } from "./easing.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
2
|
import D from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
3
|
-
import o from "../../../_virtual/
|
|
3
|
+
import o from "../../../_virtual/index4.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
import T from "./config.js";
|