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.
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type SaudiRiyalIconProps = React.SVGProps<SVGSVGElement> & {
3
+ color?: string;
4
+ };
5
+ export default function SaudiRiyalIcon({ color, ...props }: SaudiRiyalIconProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -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, highlightIndex, }: TotalsSummaryProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function TotalsSummary({ title, items, showCurrencyIcon, currencyIconWidth, }: TotalsSummaryProps): import("react/jsx-runtime").JSX.Element;
@@ -1,94 +1,84 @@
1
- import { j as e } from "../_virtual/jsx-runtime.js";
2
- import i from "styled-components";
3
- import h from "../assets/svg/RiyalGreen.svg.js";
4
- import y from "../assets/svg/RiyalGrey.svg.js";
5
- import { device as a } from "../constants/breakPoints.constant.js";
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
- `, $ = i.div`
9
- font-family: ${({ theme: t }) => t.fonts.english};
10
- font-weight: ${({ theme: t }) => t.typography.weights.semiBold};
11
- font-size: ${({ theme: t }) => t.typography.sizes.s7};
12
- line-height: ${({ theme: t }) => t.typography.lineHeights.l};
13
- letter-spacing: ${({ theme: t }) => t.typography.letterSpacings.normal};
14
- color: ${({ theme: t }) => t.colors.grey.n800};
15
- margin-bottom: ${({ theme: t }) => t.spacing.m};
16
- `, f = i.div`
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: t }) => t.spacing.xl};
18
+ gap: ${({ theme: e }) => e.spacing.xl};
20
19
  flex-wrap: wrap;
21
20
 
22
- @media ${a.tablet} {
23
- gap: ${({ theme: t }) => t.spacing.l};
21
+ @media ${n.tablet} {
22
+ gap: ${({ theme: e }) => e.spacing.l};
24
23
  }
25
- `, d = i.div`
24
+ `, y = o.div`
26
25
  display: flex;
27
26
  flex-direction: column;
28
- gap: ${({ theme: t }) => t.spacing.xs};
27
+ gap: ${({ theme: e }) => e.spacing.xs};
29
28
  min-width: 10.5rem;
30
29
 
31
- @media ${a.tablet} {
30
+ @media ${n.tablet} {
32
31
  min-width: 9.5rem;
33
32
  }
34
- `, x = i.div`
35
- font-family: ${({ theme: t }) => t.fonts.english};
36
- font-weight: ${({ theme: t }) => t.typography.weights.semiBold};
37
- font-size: ${({ theme: t }) => t.typography.sizes.s4};
38
- line-height: ${({ theme: t }) => t.typography.lineHeights.s};
39
- letter-spacing: ${({ theme: t }) => t.typography.letterSpacings.balancedNarrow};
40
- color: ${({ theme: t }) => t.colors.grey.n650};
41
- `, w = i.div`
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: t }) => t.spacing.xxs};
43
+ gap: ${({ theme: e }) => e.spacing.xxs};
45
44
  direction: ltr;
46
- `, u = i.img`
47
- width: ${({ $width: t = "18px" }) => t};
48
- height: ${({ $height: t = "20px" }) => t};
49
- object-fit: contain;
50
- flex-shrink: 0;
51
- `, j = i.span`
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: t, $highlight: s }) => s ? t.colors.state.success.n450 : t.colors.grey.n400};
59
- `, b = i.span`
60
- font-family: ${({ theme: t }) => t.fonts.english};
61
- font-weight: ${({ theme: t }) => t.typography.weights.regular};
62
- font-size: ${({ theme: t }) => t.typography.sizes.s2};
63
- line-height: ${({ theme: t }) => t.typography.lineHeights.xs};
64
- letter-spacing: ${({ theme: t }) => t.typography.letterSpacings.normal};
65
- color: ${({ theme: t, $highlight: s }) => s ? t.colors.state.success.n450 : t.colors.grey.n400};
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 B({
68
- title: t,
61
+ function b({
62
+ title: e,
69
63
  items: s,
70
- showCurrencyIcon: p = !0,
71
- currencyIconWidth: g = "18px",
72
- highlightIndex: r
64
+ showCurrencyIcon: r = !0,
65
+ currencyIconWidth: l = "18px"
73
66
  }) {
74
- return /* @__PURE__ */ e.jsxs(m, { children: [
75
- /* @__PURE__ */ e.jsx($, { children: t }),
76
- /* @__PURE__ */ e.jsx(f, { children: s.map((o, l) => {
77
- const n = typeof r == "number" && l === r, c = n ? h : y;
78
- return /* @__PURE__ */ e.jsxs(d, { children: [
79
- /* @__PURE__ */ e.jsx(x, { children: o.title }),
80
- /* @__PURE__ */ e.jsxs(w, { children: [
81
- p && /* @__PURE__ */ e.jsx(u, { src: c, alt: "Riyal", $width: g, $height: "20px" }),
82
- /* @__PURE__ */ e.jsx(j, { $highlight: n, children: o.amount }),
83
- o.decimal ? /* @__PURE__ */ e.jsxs(b, { $highlight: n, children: [
84
- ".",
85
- o.decimal
86
- ] }) : null
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
- B as default
83
+ b as default
94
84
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qaema-ui",
3
3
  "private": false,
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -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
- };