qaema-ui 0.0.25 → 0.0.26
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/TotalsSummary.d.ts +2 -2
- package/dist/components/TotalsSummary.js +61 -71
- package/package.json +1 -1
- package/dist/assets/svg/RiyalGreen.svg.js +0 -4
- package/dist/assets/svg/RiyalGrey.svg.js +0 -4
|
@@ -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';
|
|
@@ -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
|
};
|
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
|
-
};
|