qaema-ui 0.0.25 → 0.0.27
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/assets/icons/RiyalIcon.d.ts +6 -0
- package/dist/assets/icons/RiyalIcon.js +26 -0
- package/dist/assets/icons/index.d.ts +1 -0
- package/dist/components/DropDownWithTable/DropDownWithTable.js +69 -64
- package/dist/components/DropDownWithTable/DropDownWithTable.types.d.ts +1 -0
- package/dist/components/TotalsSummary.d.ts +2 -2
- package/dist/components/TotalsSummary.js +61 -71
- package/dist/styles/Dropdown.styles.d.ts +1 -0
- package/dist/styles/Dropdown.styles.js +18 -11
- package/package.json +1 -1
- package/dist/assets/svg/RiyalGreen.svg.js +0 -4
- package/dist/assets/svg/RiyalGrey.svg.js +0 -4
- package/dist/node_modules/react-bootstrap/esm/Spinner.js +0 -26
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as i } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import "react";
|
|
3
|
+
function e({ color: t = "#6D798A", ...l }) {
|
|
4
|
+
return /* @__PURE__ */ i.jsxs("svg", { width: "18", height: "20", viewBox: "0 0 18 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l, children: [
|
|
5
|
+
/* @__PURE__ */ i.jsxs("g", { clipPath: "url(#clip0_7331_7983)", children: [
|
|
6
|
+
/* @__PURE__ */ i.jsx(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
d: "M11.2024 17.7177C10.8812 18.4258 10.6689 19.1942 10.5875 20L17.3849 18.5635C17.7061 17.8556 17.9182 17.0871 17.9998 16.2812L11.2024 17.7177Z",
|
|
10
|
+
fill: t
|
|
11
|
+
}
|
|
12
|
+
),
|
|
13
|
+
/* @__PURE__ */ i.jsx(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M17.385 14.2599C17.7062 13.552 17.9185 12.7835 17.9999 11.9777L12.705 13.0972V10.945L17.3848 9.9563C17.7061 9.2484 17.9184 8.47985 17.9997 7.67405L12.7048 8.79265V1.0527C11.8934 1.50558 11.1729 2.10842 10.5872 2.81951V9.24028L8.46955 9.68776V0C7.65821 0.452726 6.93766 1.05572 6.35193 1.76681V10.1351L1.61375 11.136C1.29255 11.8439 1.08006 12.6125 0.998561 13.4183L6.35193 12.2873V14.9976L0.614748 16.2096C0.293542 16.9175 0.0812201 17.6861 -0.00012207 18.4919L6.00511 17.2232C6.49396 17.1221 6.91412 16.8347 7.18729 16.4393L8.28861 14.8161V14.8158C8.40294 14.6478 8.46955 14.4454 8.46955 14.2273V11.8398L10.5872 11.3923V15.6967L17.3848 14.2596L17.385 14.2599Z",
|
|
17
|
+
fill: t
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_7331_7983", children: /* @__PURE__ */ i.jsx("rect", { width: "18", height: "20", fill: "white" }) }) })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
e as default
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SaudiRiyalIcon } from './RiyalIcon';
|
|
@@ -1,21 +1,21 @@
|
|
|
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 {
|
|
12
|
-
import Ce from "
|
|
13
|
-
import
|
|
14
|
-
const
|
|
2
|
+
import { useRef as g, useState as v, useCallback as re, useEffect as D } from "react";
|
|
3
|
+
import { createPortal as oe } from "react-dom";
|
|
4
|
+
import { FaTimes as k, FaAngleDown as le } from "../../node_modules/react-icons/fa/index.js";
|
|
5
|
+
import { useTheme as ie } from "styled-components";
|
|
6
|
+
import { HelperTextWrapper as se } from "../PhoneInputField.js";
|
|
7
|
+
import ae from "../SearchBar.js";
|
|
8
|
+
import ce from "../Spinner.js";
|
|
9
|
+
import de from "../Typography.js";
|
|
10
|
+
import ue from "../../hooks/useZIndex.js";
|
|
11
|
+
import { useQaemaCoreTranslation as fe } from "../../i18n/i18n.js";
|
|
12
|
+
import { StyledDropDownContainer as me, StyledlabelContainer as he, StyledDropDown as pe, StyledDropDownToggle as xe, StyledDropDownTitle as Se, IconsContainer as je, StyledDropDownMenu as we, SearchContainer as ye, StyledOptionsContainer as ge, SpinnerRow as ve, SelectedTagsContainer as Ce, SelectedTag as be } from "../../styles/Dropdown.styles.js";
|
|
13
|
+
import De from "./Table/Table.js";
|
|
14
|
+
const Me = (d) => {
|
|
15
15
|
const {
|
|
16
16
|
label: T,
|
|
17
|
-
options:
|
|
18
|
-
placeholder:
|
|
17
|
+
options: R,
|
|
18
|
+
placeholder: P = "Select Something",
|
|
19
19
|
optional: W = !1,
|
|
20
20
|
error: s = "",
|
|
21
21
|
disabled: S = !1,
|
|
@@ -26,21 +26,22 @@ const He = (d) => {
|
|
|
26
26
|
icon: F,
|
|
27
27
|
allowSearch: H,
|
|
28
28
|
searchHandler: M,
|
|
29
|
-
searchPlaceholder:
|
|
29
|
+
searchPlaceholder: N,
|
|
30
30
|
onToggle: i,
|
|
31
31
|
multiSelect: f = !1,
|
|
32
|
-
isLoading:
|
|
32
|
+
isLoading: B = !1,
|
|
33
33
|
currentSelectedOptions: h = [],
|
|
34
|
-
isInteractive:
|
|
34
|
+
isInteractive: E = !1,
|
|
35
35
|
//Table related props
|
|
36
36
|
columns: A,
|
|
37
37
|
isTableHeadVisible: V = !1,
|
|
38
38
|
getDisplayValue: y,
|
|
39
|
-
isRowDisabled: Q
|
|
40
|
-
|
|
39
|
+
isRowDisabled: Q,
|
|
40
|
+
rowClassName: X
|
|
41
|
+
} = d, p = ie(), { t: I } = fe(), C = g(null), a = g(null), Y = g(null), Z = g(d.currentSelectedOptions !== void 0), [u, b] = v(!1), [q, G] = v(0), [L, J] = v({ top: 0, left: 0 }), [l, x] = v(h), O = F ?? /* @__PURE__ */ t.jsx(t.Fragment, {}), K = ue("dropdown"), m = re(() => {
|
|
41
42
|
if (a != null && a.current) {
|
|
42
43
|
const e = a.current.getBoundingClientRect();
|
|
43
|
-
|
|
44
|
+
G(a.current.offsetWidth / 16), J({
|
|
44
45
|
top: e.bottom + window.scrollY,
|
|
45
46
|
left: e.left + window.scrollX
|
|
46
47
|
});
|
|
@@ -49,24 +50,24 @@ const He = (d) => {
|
|
|
49
50
|
D(() => (u && (m(), window.addEventListener("resize", m), window.addEventListener("scroll", m, !0)), () => {
|
|
50
51
|
window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0);
|
|
51
52
|
}), [u, m]), D(() => {
|
|
52
|
-
if (!
|
|
53
|
+
if (!Z.current) return;
|
|
53
54
|
(h.length !== l.length || h.some((n, o) => {
|
|
54
55
|
var c;
|
|
55
56
|
return n[r] !== ((c = l[o]) == null ? void 0 : c[r]);
|
|
56
57
|
})) && x(h);
|
|
57
58
|
}, [h]);
|
|
58
|
-
const
|
|
59
|
+
const U = (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), _ = (e) => {
|
|
59
60
|
if (f) {
|
|
60
|
-
const n =
|
|
61
|
+
const n = $(e);
|
|
61
62
|
let o;
|
|
62
63
|
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);
|
|
63
64
|
} else
|
|
64
65
|
x([e]), w(e), b(!1), i == null || i(!1);
|
|
65
|
-
},
|
|
66
|
+
}, ee = (e) => {
|
|
66
67
|
const n = l.filter((o) => typeof o == "object" && typeof e == "object" ? o[r] !== e[r] : o.value !== e.value);
|
|
67
68
|
x(n), w(n);
|
|
68
|
-
},
|
|
69
|
-
if (e.length === 0) return
|
|
69
|
+
}, te = (e) => {
|
|
70
|
+
if (e.length === 0) return P;
|
|
70
71
|
if (!f) {
|
|
71
72
|
const n = e[0];
|
|
72
73
|
if (y)
|
|
@@ -76,7 +77,7 @@ const He = (d) => {
|
|
|
76
77
|
if (r)
|
|
77
78
|
return String(n == null ? void 0 : n[r]);
|
|
78
79
|
}
|
|
79
|
-
return `${e.length} ${
|
|
80
|
+
return `${e.length} ${I("SELECTED")}`;
|
|
80
81
|
};
|
|
81
82
|
D(() => {
|
|
82
83
|
const e = (n) => {
|
|
@@ -86,14 +87,14 @@ const He = (d) => {
|
|
|
86
87
|
document.removeEventListener("mousedown", e);
|
|
87
88
|
};
|
|
88
89
|
}, [u, i]);
|
|
89
|
-
const
|
|
90
|
-
return /* @__PURE__ */ t.jsxs(
|
|
91
|
-
T && /* @__PURE__ */ t.jsxs(
|
|
90
|
+
const ne = () => E || (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ t.jsx(se, { error: s, children: s });
|
|
91
|
+
return /* @__PURE__ */ t.jsxs(me, { children: [
|
|
92
|
+
T && /* @__PURE__ */ t.jsxs(he, { children: [
|
|
92
93
|
/* @__PURE__ */ t.jsx("label", { children: T }),
|
|
93
|
-
W && /* @__PURE__ */ t.jsx("span", { children:
|
|
94
|
+
W && /* @__PURE__ */ t.jsx("span", { children: I("OPTIONAL") })
|
|
94
95
|
] }),
|
|
95
96
|
/* @__PURE__ */ t.jsxs(
|
|
96
|
-
|
|
97
|
+
pe,
|
|
97
98
|
{
|
|
98
99
|
show: u,
|
|
99
100
|
onToggle: () => {
|
|
@@ -102,20 +103,20 @@ const He = (d) => {
|
|
|
102
103
|
placement: "bottom-start",
|
|
103
104
|
autoClose: f ? "outside" : !0,
|
|
104
105
|
children: [
|
|
105
|
-
/* @__PURE__ */ t.jsx(
|
|
106
|
+
/* @__PURE__ */ t.jsx(xe, { disabled: S, ref: a, $valid: !s, $variant: d.variant || "default", children: /* @__PURE__ */ t.jsx(Se, { $valid: !s, $isInteractive: E, children: /* @__PURE__ */ t.jsxs("div", { className: "title-container", children: [
|
|
106
107
|
/* @__PURE__ */ t.jsxs("div", { className: "heading-container", children: [
|
|
107
|
-
z && typeof
|
|
108
|
+
z && typeof O == "function" && /* @__PURE__ */ t.jsx(O, {}),
|
|
108
109
|
/* @__PURE__ */ t.jsx(
|
|
109
|
-
|
|
110
|
+
de,
|
|
110
111
|
{
|
|
111
112
|
component: "span",
|
|
112
113
|
variant: "mdText",
|
|
113
|
-
color:
|
|
114
|
-
children:
|
|
114
|
+
color: U(s, l.length > 0, S, d.variant || "default"),
|
|
115
|
+
children: te(l)
|
|
115
116
|
}
|
|
116
117
|
)
|
|
117
118
|
] }),
|
|
118
|
-
/* @__PURE__ */ t.jsxs(
|
|
119
|
+
/* @__PURE__ */ t.jsxs(je, { children: [
|
|
119
120
|
!f && l.length > 0 && !S && /* @__PURE__ */ t.jsx(
|
|
120
121
|
k,
|
|
121
122
|
{
|
|
@@ -125,43 +126,47 @@ const He = (d) => {
|
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
),
|
|
128
|
-
!S && /* @__PURE__ */ t.jsx(
|
|
129
|
+
!S && /* @__PURE__ */ t.jsx(le, {})
|
|
129
130
|
] })
|
|
130
131
|
] }) }) }),
|
|
131
|
-
u &&
|
|
132
|
+
u && oe(
|
|
132
133
|
/* @__PURE__ */ t.jsxs(
|
|
133
|
-
|
|
134
|
+
we,
|
|
134
135
|
{
|
|
135
136
|
ref: C,
|
|
136
|
-
$menuWidth:
|
|
137
|
-
$zIndex:
|
|
137
|
+
$menuWidth: q,
|
|
138
|
+
$zIndex: K,
|
|
138
139
|
style: {
|
|
139
140
|
position: "fixed",
|
|
140
141
|
top: `${L.top}px`,
|
|
141
142
|
left: `${L.left}px`
|
|
142
143
|
},
|
|
143
144
|
children: [
|
|
144
|
-
H && /* @__PURE__ */ t.jsx(
|
|
145
|
-
/* @__PURE__ */ t.
|
|
146
|
-
|
|
145
|
+
H && /* @__PURE__ */ t.jsx(ye, { children: /* @__PURE__ */ t.jsx(ae, { placeholder: N, onSearch: M }) }),
|
|
146
|
+
/* @__PURE__ */ t.jsxs(
|
|
147
|
+
ge,
|
|
147
148
|
{
|
|
148
|
-
ref:
|
|
149
|
+
ref: Y,
|
|
149
150
|
onScroll: (e) => {
|
|
150
151
|
var n;
|
|
151
152
|
(n = d.onScroll) == null || n.call(d, e);
|
|
152
153
|
},
|
|
153
|
-
children:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
children: [
|
|
155
|
+
/* @__PURE__ */ t.jsx(
|
|
156
|
+
De,
|
|
157
|
+
{
|
|
158
|
+
keyField: r,
|
|
159
|
+
data: R,
|
|
160
|
+
columns: A,
|
|
161
|
+
onRowClick: (e) => _(e),
|
|
162
|
+
isRowSelected: (e) => $(e),
|
|
163
|
+
isTableHeadVisible: V,
|
|
164
|
+
isRowDisabled: Q,
|
|
165
|
+
rowClassName: X
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
B && /* @__PURE__ */ t.jsx(ve, { children: /* @__PURE__ */ t.jsx(ce, {}) })
|
|
169
|
+
]
|
|
165
170
|
}
|
|
166
171
|
)
|
|
167
172
|
]
|
|
@@ -172,13 +177,13 @@ const He = (d) => {
|
|
|
172
177
|
]
|
|
173
178
|
}
|
|
174
179
|
),
|
|
175
|
-
f && l.length > 0 && /* @__PURE__ */ t.jsx(
|
|
180
|
+
f && l.length > 0 && /* @__PURE__ */ t.jsx(Ce, { children: l.map((e) => /* @__PURE__ */ t.jsxs(be, { children: [
|
|
176
181
|
y ? y(e) : String(j ? e[j] : e[r]),
|
|
177
|
-
/* @__PURE__ */ t.jsx(k, { onClick: () =>
|
|
182
|
+
/* @__PURE__ */ t.jsx(k, { onClick: () => ee(e) })
|
|
178
183
|
] }, String(e[r]))) }),
|
|
179
|
-
|
|
184
|
+
ne()
|
|
180
185
|
] });
|
|
181
186
|
};
|
|
182
187
|
export {
|
|
183
|
-
|
|
188
|
+
Me as default
|
|
184
189
|
};
|
|
@@ -2,12 +2,12 @@ export type TotalsSummaryItem = {
|
|
|
2
2
|
title: string;
|
|
3
3
|
amount: string;
|
|
4
4
|
decimal?: string;
|
|
5
|
+
color?: string;
|
|
5
6
|
};
|
|
6
7
|
export type TotalsSummaryProps = {
|
|
7
8
|
title: string;
|
|
8
9
|
items: TotalsSummaryItem[];
|
|
9
10
|
showCurrencyIcon?: boolean;
|
|
10
11
|
currencyIconWidth?: string;
|
|
11
|
-
highlightIndex?: number;
|
|
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,94 +1,84 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const m = i.div`
|
|
1
|
+
import { j as t } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import o from "styled-components";
|
|
3
|
+
import { device as n } from "../constants/breakPoints.constant.js";
|
|
4
|
+
import p from "../assets/icons/RiyalIcon.js";
|
|
5
|
+
const g = o.div`
|
|
7
6
|
width: 100%;
|
|
8
|
-
`,
|
|
9
|
-
font-family: ${({ theme:
|
|
10
|
-
font-weight: ${({ theme:
|
|
11
|
-
font-size: ${({ theme:
|
|
12
|
-
line-height: ${({ theme:
|
|
13
|
-
letter-spacing: ${({ theme:
|
|
14
|
-
color: ${({ theme:
|
|
15
|
-
margin-bottom: ${({ theme:
|
|
16
|
-
`,
|
|
7
|
+
`, c = o.div`
|
|
8
|
+
font-family: ${({ theme: e }) => e.fonts.english};
|
|
9
|
+
font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
|
|
10
|
+
font-size: ${({ theme: e }) => e.typography.sizes.s7};
|
|
11
|
+
line-height: ${({ theme: e }) => e.typography.lineHeights.l};
|
|
12
|
+
letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.normal};
|
|
13
|
+
color: ${({ theme: e }) => e.colors.grey.n800};
|
|
14
|
+
margin-bottom: ${({ theme: e }) => e.spacing.m};
|
|
15
|
+
`, h = o.div`
|
|
17
16
|
display: flex;
|
|
18
17
|
align-items: flex-start;
|
|
19
|
-
gap: ${({ theme:
|
|
18
|
+
gap: ${({ theme: e }) => e.spacing.xl};
|
|
20
19
|
flex-wrap: wrap;
|
|
21
20
|
|
|
22
|
-
@media ${
|
|
23
|
-
gap: ${({ theme:
|
|
21
|
+
@media ${n.tablet} {
|
|
22
|
+
gap: ${({ theme: e }) => e.spacing.l};
|
|
24
23
|
}
|
|
25
|
-
`,
|
|
24
|
+
`, y = o.div`
|
|
26
25
|
display: flex;
|
|
27
26
|
flex-direction: column;
|
|
28
|
-
gap: ${({ theme:
|
|
27
|
+
gap: ${({ theme: e }) => e.spacing.xs};
|
|
29
28
|
min-width: 10.5rem;
|
|
30
29
|
|
|
31
|
-
@media ${
|
|
30
|
+
@media ${n.tablet} {
|
|
32
31
|
min-width: 9.5rem;
|
|
33
32
|
}
|
|
34
|
-
`,
|
|
35
|
-
font-family: ${({ theme:
|
|
36
|
-
font-weight: ${({ theme:
|
|
37
|
-
font-size: ${({ theme:
|
|
38
|
-
line-height: ${({ theme:
|
|
39
|
-
letter-spacing: ${({ theme:
|
|
40
|
-
color: ${({ theme:
|
|
41
|
-
`,
|
|
33
|
+
`, m = o.div`
|
|
34
|
+
font-family: ${({ theme: e }) => e.fonts.english};
|
|
35
|
+
font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
|
|
36
|
+
font-size: ${({ theme: e }) => e.typography.sizes.s4};
|
|
37
|
+
line-height: ${({ theme: e }) => e.typography.lineHeights.s};
|
|
38
|
+
letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.balancedNarrow};
|
|
39
|
+
color: ${({ theme: e }) => e.colors.grey.n650};
|
|
40
|
+
`, d = o.div`
|
|
42
41
|
display: flex;
|
|
43
42
|
align-items: baseline;
|
|
44
|
-
gap: ${({ theme:
|
|
43
|
+
gap: ${({ theme: e }) => e.spacing.xxs};
|
|
45
44
|
direction: ltr;
|
|
46
|
-
`,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
font-family: ${({ theme: t }) => t.fonts.arabic};
|
|
53
|
-
font-weight: ${({ theme: t }) => t.typography.weights.bold};
|
|
54
|
-
font-size: ${({ theme: t }) => t.typography.sizes.s10};
|
|
55
|
-
line-height: ${({ theme: t }) => t.typography.lineHeights.xl};
|
|
56
|
-
letter-spacing: ${({ theme: t }) => t.typography.letterSpacings.balancedNarrow};
|
|
45
|
+
`, $ = o.span`
|
|
46
|
+
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
47
|
+
font-weight: ${({ theme: e }) => e.typography.weights.bold};
|
|
48
|
+
font-size: ${({ theme: e }) => e.typography.sizes.s10};
|
|
49
|
+
line-height: ${({ theme: e }) => e.typography.lineHeights.xl};
|
|
50
|
+
letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.balancedNarrow};
|
|
57
51
|
text-align: center;
|
|
58
|
-
color: ${({ theme:
|
|
59
|
-
`,
|
|
60
|
-
font-family: ${({ theme:
|
|
61
|
-
font-weight: ${({ theme:
|
|
62
|
-
font-size: ${({ theme:
|
|
63
|
-
line-height: ${({ theme:
|
|
64
|
-
letter-spacing: ${({ theme:
|
|
65
|
-
color: ${({ theme:
|
|
52
|
+
color: ${({ theme: e, $color: s }) => s || e.colors.grey.n400};
|
|
53
|
+
`, f = o.span`
|
|
54
|
+
font-family: ${({ theme: e }) => e.fonts.english};
|
|
55
|
+
font-weight: ${({ theme: e }) => e.typography.weights.regular};
|
|
56
|
+
font-size: ${({ theme: e }) => e.typography.sizes.s2};
|
|
57
|
+
line-height: ${({ theme: e }) => e.typography.lineHeights.xs};
|
|
58
|
+
letter-spacing: ${({ theme: e }) => e.typography.letterSpacings.normal};
|
|
59
|
+
color: ${({ theme: e, $color: s }) => s || e.colors.grey.n400};
|
|
66
60
|
`;
|
|
67
|
-
function
|
|
68
|
-
title:
|
|
61
|
+
function b({
|
|
62
|
+
title: e,
|
|
69
63
|
items: s,
|
|
70
|
-
showCurrencyIcon:
|
|
71
|
-
currencyIconWidth:
|
|
72
|
-
highlightIndex: r
|
|
64
|
+
showCurrencyIcon: r = !0,
|
|
65
|
+
currencyIconWidth: l = "18px"
|
|
73
66
|
}) {
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
] })
|
|
88
|
-
] }, `${o.title}-${l}`);
|
|
89
|
-
}) })
|
|
67
|
+
return /* @__PURE__ */ t.jsxs(g, { children: [
|
|
68
|
+
/* @__PURE__ */ t.jsx(c, { children: e }),
|
|
69
|
+
/* @__PURE__ */ t.jsx(h, { children: s.map((i, a) => /* @__PURE__ */ t.jsxs(y, { children: [
|
|
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: [
|
|
75
|
+
".",
|
|
76
|
+
i.decimal
|
|
77
|
+
] }) : null
|
|
78
|
+
] })
|
|
79
|
+
] }, `${i.title}-${a}`)) })
|
|
90
80
|
] });
|
|
91
81
|
}
|
|
92
82
|
export {
|
|
93
|
-
|
|
83
|
+
b as default
|
|
94
84
|
};
|
|
@@ -35,6 +35,7 @@ export declare const StyledDropItem: import('styled-components/dist/types').ISty
|
|
|
35
35
|
}, {
|
|
36
36
|
$selected: boolean;
|
|
37
37
|
}>> & string & Omit<import('react-bootstrap/esm/helpers').BsPrefixRefForwardingComponent<"a", import('react-bootstrap').DropdownItemProps>, keyof import('react').Component<any, {}, any>>;
|
|
38
|
+
export declare const SpinnerRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
39
|
export declare const TypographyContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
39
40
|
export declare const IconsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
40
41
|
export declare const SearchContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r, { css as n } from "styled-components";
|
|
2
2
|
import { Scrollbar as i } from "./Scrollbar.styles.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import t from "../node_modules/react-bootstrap/esm/Dropdown.js";
|
|
4
|
+
import s from "../node_modules/react-bootstrap/esm/DropdownToggle.js";
|
|
5
5
|
import a from "../node_modules/react-bootstrap/esm/DropdownMenu.js";
|
|
6
6
|
import l from "../node_modules/react-bootstrap/esm/DropdownItem.js";
|
|
7
7
|
const x = r.div`
|
|
@@ -30,7 +30,7 @@ const x = r.div`
|
|
|
30
30
|
flex-wrap: wrap;
|
|
31
31
|
gap: ${({ theme: o }) => o.spacing.xs};
|
|
32
32
|
margin-top: ${({ theme: o }) => o.spacing.xs};
|
|
33
|
-
`,
|
|
33
|
+
`, w = r.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: center;
|
|
36
36
|
background-color: ${({ theme: o }) => o.colors.grey.n100};
|
|
@@ -47,11 +47,11 @@ const x = r.div`
|
|
|
47
47
|
color: ${({ theme: o }) => o.colors.state.error.n450};
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`, u = r(t)`
|
|
51
51
|
width: 100%;
|
|
52
52
|
max-height: 3.5rem;
|
|
53
53
|
min-width: 5rem !important;
|
|
54
|
-
`, f = r(
|
|
54
|
+
`, f = r(s)`
|
|
55
55
|
width: 100%;
|
|
56
56
|
box-shadow: ${({ $valid: o }) => o ? "0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);" : "none"};
|
|
57
57
|
padding: 0px;
|
|
@@ -150,6 +150,12 @@ const x = r.div`
|
|
|
150
150
|
&:hover {
|
|
151
151
|
background-color: ${({ theme: o }) => o.colors.grey.n100};
|
|
152
152
|
}
|
|
153
|
+
`, k = r.div`
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
align-items: center;
|
|
157
|
+
padding: ${({ theme: o }) => o.spacing.sm};
|
|
158
|
+
width: 100%;
|
|
153
159
|
`;
|
|
154
160
|
r.div`
|
|
155
161
|
overflow: hidden;
|
|
@@ -157,13 +163,13 @@ r.div`
|
|
|
157
163
|
white-space: nowrap;
|
|
158
164
|
width: 100%;
|
|
159
165
|
`;
|
|
160
|
-
const
|
|
166
|
+
const z = r.div`
|
|
161
167
|
display: flex;
|
|
162
168
|
flex-direction: row;
|
|
163
169
|
align-items: center;
|
|
164
170
|
justify-content: flex-end;
|
|
165
171
|
gap: ${({ theme: o }) => o.spacing.xs};
|
|
166
|
-
`,
|
|
172
|
+
`, C = r.div`
|
|
167
173
|
display: flex;
|
|
168
174
|
align-items: center;
|
|
169
175
|
column-gap: 0.625rem;
|
|
@@ -171,11 +177,12 @@ const k = r.div`
|
|
|
171
177
|
padding: ${({ theme: o }) => o.spacing.xs} 1.25rem;
|
|
172
178
|
`;
|
|
173
179
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
180
|
+
z as IconsContainer,
|
|
181
|
+
C as SearchContainer,
|
|
182
|
+
w as SelectedTag,
|
|
177
183
|
h as SelectedTagsContainer,
|
|
178
|
-
|
|
184
|
+
k as SpinnerRow,
|
|
185
|
+
u as StyledDropDown,
|
|
179
186
|
x as StyledDropDownContainer,
|
|
180
187
|
v as StyledDropDownMenu,
|
|
181
188
|
b as StyledDropDownTitle,
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='18'%20height='20'%20viewBox='0%200%2018%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7331_6281)'%3e%3cpath%20d='M11.2023%2017.7177C10.8811%2018.4258%2010.6687%2019.1942%2010.5874%2020L17.3848%2018.5635C17.706%2017.8556%2017.9181%2017.0871%2017.9996%2016.2812L11.2023%2017.7177Z'%20fill='%231DBA63'/%3e%3cpath%20d='M17.3851%2014.2599C17.7063%2013.552%2017.9187%2012.7835%2018%2011.9777L12.7051%2013.0972V10.945L17.385%209.9563C17.7062%209.2484%2017.9185%208.47985%2017.9998%207.67405L12.7049%208.79265V1.0527C11.8936%201.50558%2011.173%202.10842%2010.5873%202.81951V9.24028L8.46968%209.68776V0C7.65833%200.452726%206.93778%201.05572%206.35206%201.76681V10.1351L1.61387%2011.136C1.29267%2011.8439%201.08019%2012.6125%200.998683%2013.4183L6.35206%2012.2873V14.9976L0.61487%2016.2096C0.293664%2016.9175%200.0813422%2017.6861%200%2018.4919L6.00523%2017.2232C6.49408%2017.1221%206.91425%2016.8347%207.18741%2016.4393L8.28874%2014.8161V14.8158C8.40306%2014.6478%208.46968%2014.4454%208.46968%2014.2273V11.8398L10.5873%2011.3923V15.6967L17.385%2014.2596L17.3851%2014.2599Z'%20fill='%231DBA63'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7331_6281'%3e%3crect%20width='18'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
e as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='18'%20height='21'%20viewBox='0%200%2018%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7331_6256)'%3e%3cpath%20d='M11.2023%2018.7177C10.8811%2019.4258%2010.6687%2020.1942%2010.5874%2021L17.3848%2019.5635C17.706%2018.8556%2017.9181%2018.0871%2017.9996%2017.2812L11.2023%2018.7177Z'%20fill='%236D798A'/%3e%3cpath%20d='M17.3851%2015.2599C17.7063%2014.552%2017.9187%2013.7835%2018%2012.9777L12.7051%2014.0972V11.945L17.385%2010.9563C17.7062%2010.2484%2017.9185%209.47985%2017.9998%208.67405L12.7049%209.79265V2.0527C11.8936%202.50558%2011.173%203.10842%2010.5873%203.81951V10.2403L8.46968%2010.6878V1C7.65833%201.45273%206.93778%202.05572%206.35206%202.76681V11.1351L1.61387%2012.136C1.29267%2012.8439%201.08019%2013.6125%200.998683%2014.4183L6.35206%2013.2873V15.9976L0.61487%2017.2096C0.293664%2017.9175%200.0813422%2018.6861%200%2019.4919L6.00523%2018.2232C6.49408%2018.1221%206.91425%2017.8347%207.18741%2017.4393L8.28874%2015.8161V15.8158C8.40306%2015.6478%208.46968%2015.4454%208.46968%2015.2273V12.8398L10.5873%2012.3923V16.6967L17.385%2015.2596L17.3851%2015.2599Z'%20fill='%236D798A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7331_6256'%3e%3crect%20width='18'%20height='20'%20fill='white'%20transform='translate(0%201)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
e as default
|
|
4
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import i from "../../../_virtual/index.js";
|
|
2
|
-
import * as f from "react";
|
|
3
|
-
import { useBootstrapPrefix as c } from "./ThemeProvider.js";
|
|
4
|
-
import { j as d } from "../../../_virtual/jsx-runtime.js";
|
|
5
|
-
const x = /* @__PURE__ */ f.forwardRef(({
|
|
6
|
-
bsPrefix: r,
|
|
7
|
-
variant: e,
|
|
8
|
-
animation: t = "border",
|
|
9
|
-
size: o,
|
|
10
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
11
|
-
as: a = "div",
|
|
12
|
-
className: m,
|
|
13
|
-
...p
|
|
14
|
-
}, n) => {
|
|
15
|
-
r = c(r, "spinner");
|
|
16
|
-
const s = `${r}-${t}`;
|
|
17
|
-
return /* @__PURE__ */ d.jsx(a, {
|
|
18
|
-
ref: n,
|
|
19
|
-
...p,
|
|
20
|
-
className: i(m, s, o && `${s}-${o}`, e && `text-${e}`)
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
x.displayName = "Spinner";
|
|
24
|
-
export {
|
|
25
|
-
x as default
|
|
26
|
-
};
|