qaema-ui 0.0.64 → 0.0.65
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/components/PriceCard.js +22 -20
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { j as i } from "../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { FiCheck as S, FiX as T } from "../node_modules/react-icons/fi/index.js";
|
|
4
4
|
import o, { css as p } from "styled-components";
|
|
5
|
-
import
|
|
5
|
+
import y from "../assets/icons/RiyalIcon.js";
|
|
6
6
|
import { CurrencyContainer as H } from "../styles/Currency.styles.js";
|
|
7
7
|
import B from "../assets/svg/Riyal.svg.js";
|
|
8
8
|
import I from "./Badge.js";
|
|
@@ -24,13 +24,14 @@ const E = {
|
|
|
24
24
|
}, P = o.div`
|
|
25
25
|
width: 100%;
|
|
26
26
|
max-width: 28.458rem;
|
|
27
|
+
|
|
27
28
|
border-radius: ${({ theme: e }) => e.borderRadius.xl};
|
|
28
29
|
overflow: hidden;
|
|
29
30
|
display: flex;
|
|
30
31
|
flex-direction: column;
|
|
31
32
|
${({ $variant: e }) => E[e]};
|
|
32
33
|
`, W = o.div`
|
|
33
|
-
padding:
|
|
34
|
+
padding: 25px;
|
|
34
35
|
display: flex;
|
|
35
36
|
flex-direction: column;
|
|
36
37
|
gap: ${({ theme: e }) => e.spacing.sm};
|
|
@@ -39,17 +40,18 @@ const E = {
|
|
|
39
40
|
display: flex;
|
|
40
41
|
align-items: center;
|
|
41
42
|
justify-content: space-between;
|
|
42
|
-
gap: ${({ theme: e }) => e.spacing.
|
|
43
|
+
gap: ${({ theme: e }) => e.spacing.s};
|
|
43
44
|
flex-wrap: wrap;
|
|
44
45
|
`, L = o(a)`
|
|
45
46
|
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
46
47
|
font-weight: 600;
|
|
47
48
|
font-size: ${({ theme: e }) => {
|
|
48
49
|
var r;
|
|
49
|
-
return (r = e.typography.sizes) == null ? void 0 : r.
|
|
50
|
+
return (r = e.typography.sizes) == null ? void 0 : r.s3;
|
|
50
51
|
}};
|
|
51
52
|
line-height: 1.75rem;
|
|
52
53
|
color: ${({ theme: e }) => e.colors.grey.n400};
|
|
54
|
+
white-space: nowrap;
|
|
53
55
|
`, V = o.div`
|
|
54
56
|
display: flex;
|
|
55
57
|
flex-direction: column;
|
|
@@ -58,7 +60,7 @@ const E = {
|
|
|
58
60
|
display: flex;
|
|
59
61
|
align-items: center;
|
|
60
62
|
gap: ${({ theme: e }) => e.spacing.xs};
|
|
61
|
-
flex-wrap:
|
|
63
|
+
flex-wrap: nowrap;
|
|
62
64
|
span {
|
|
63
65
|
font-size: ${({ theme: e }) => {
|
|
64
66
|
var r;
|
|
@@ -70,15 +72,15 @@ const E = {
|
|
|
70
72
|
display: flex;
|
|
71
73
|
align-items: baseline;
|
|
72
74
|
gap: ${({ theme: e }) => e.spacing.xxs};
|
|
73
|
-
`, U = o(
|
|
75
|
+
`, U = o(y).attrs(({ theme: e }) => ({
|
|
74
76
|
color: e.colors.grey.n350,
|
|
75
77
|
width: "18",
|
|
76
78
|
height: "20"
|
|
77
79
|
}))``, X = o.span`
|
|
78
80
|
font-family: ${({ theme: e }) => e.fonts.english};
|
|
79
81
|
font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
|
|
80
|
-
font-size: 2.
|
|
81
|
-
line-height:
|
|
82
|
+
font-size: 2.25rem;
|
|
83
|
+
line-height: 2.5rem;
|
|
82
84
|
color: ${({ $color: e, theme: r }) => e ?? r.colors.grey.n800};
|
|
83
85
|
`, q = o.span`
|
|
84
86
|
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
@@ -94,7 +96,7 @@ const E = {
|
|
|
94
96
|
font-weight: ${({ theme: e }) => e.typography.weights.regular};
|
|
95
97
|
font-size: ${({ theme: e }) => {
|
|
96
98
|
var r;
|
|
97
|
-
return (r = e.typography.sizes) == null ? void 0 : r.
|
|
99
|
+
return (r = e.typography.sizes) == null ? void 0 : r.s2;
|
|
98
100
|
}};
|
|
99
101
|
line-height: ${({ theme: e }) => e.typography.lineHeights.m};
|
|
100
102
|
color: ${({ theme: e }) => e.colors.grey.n400};
|
|
@@ -102,13 +104,13 @@ const E = {
|
|
|
102
104
|
padding: 2rem 2rem 2.5rem 2rem;
|
|
103
105
|
display: flex;
|
|
104
106
|
flex-direction: column;
|
|
105
|
-
gap: ${({ theme: e }) => e.spacing.
|
|
107
|
+
gap: ${({ theme: e }) => e.spacing.s};
|
|
106
108
|
`, K = o(a)`
|
|
107
109
|
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
108
110
|
font-weight: ${({ theme: e }) => e.typography.weights.semiBold};
|
|
109
111
|
font-size: ${({ theme: e }) => {
|
|
110
112
|
var r;
|
|
111
|
-
return (r = e.typography.sizes) == null ? void 0 : r.
|
|
113
|
+
return (r = e.typography.sizes) == null ? void 0 : r.s3;
|
|
112
114
|
}};
|
|
113
115
|
line-height: 0.7rem;
|
|
114
116
|
color: ${({ theme: e }) => e.colors.grey.n650};
|
|
@@ -118,7 +120,7 @@ const E = {
|
|
|
118
120
|
font-weight: 500;
|
|
119
121
|
font-size: ${({ theme: e }) => {
|
|
120
122
|
var r;
|
|
121
|
-
return (r = e.typography.sizes) == null ? void 0 : r.
|
|
123
|
+
return (r = e.typography.sizes) == null ? void 0 : r.s2;
|
|
122
124
|
}};
|
|
123
125
|
line-height: ${({ theme: e }) => e.typography.lineHeights.m};
|
|
124
126
|
color: ${({ theme: e }) => e.colors.grey.n400};
|
|
@@ -176,7 +178,7 @@ const E = {
|
|
|
176
178
|
font-weight: 400;
|
|
177
179
|
font-size: ${({ theme: e }) => {
|
|
178
180
|
var r;
|
|
179
|
-
return (r = e.typography.sizes) == null ? void 0 : r.
|
|
181
|
+
return (r = e.typography.sizes) == null ? void 0 : r.s2;
|
|
180
182
|
}};
|
|
181
183
|
line-height: ${({ theme: e }) => e.typography.lineHeights.m};
|
|
182
184
|
color: ${({ theme: e }) => e.colors.grey.n400};
|
|
@@ -193,15 +195,15 @@ const E = {
|
|
|
193
195
|
`, fe = ({
|
|
194
196
|
title: e,
|
|
195
197
|
price: r,
|
|
196
|
-
description:
|
|
198
|
+
description: m,
|
|
197
199
|
hintComponent: $,
|
|
198
200
|
secondaryPrice: g,
|
|
199
201
|
features: u,
|
|
200
202
|
variant: b = "transparent",
|
|
201
203
|
badges: h = [],
|
|
202
|
-
showPrimaryAction:
|
|
204
|
+
showPrimaryAction: w = !1,
|
|
203
205
|
primaryAction: s,
|
|
204
|
-
showSecondaryAction:
|
|
206
|
+
showSecondaryAction: j = !1,
|
|
205
207
|
secondaryAction: n,
|
|
206
208
|
showFeatures: v = !0,
|
|
207
209
|
featuresTitle: z = "FEATURES",
|
|
@@ -240,7 +242,7 @@ const E = {
|
|
|
240
242
|
/* @__PURE__ */ i.jsx(Z, { children: g.amount }),
|
|
241
243
|
/* @__PURE__ */ i.jsx(_, { children: g.label })
|
|
242
244
|
] }),
|
|
243
|
-
/* @__PURE__ */ i.jsx(G, { children:
|
|
245
|
+
/* @__PURE__ */ i.jsx(G, { children: m }),
|
|
244
246
|
k && f.length > 0 && /* @__PURE__ */ i.jsx("div", { style: { marginTop: "0.50rem" }, children: /* @__PURE__ */ i.jsx(
|
|
245
247
|
"div",
|
|
246
248
|
{
|
|
@@ -293,7 +295,7 @@ const E = {
|
|
|
293
295
|
gap: "2px"
|
|
294
296
|
},
|
|
295
297
|
children: [
|
|
296
|
-
/* @__PURE__ */ i.jsx(
|
|
298
|
+
/* @__PURE__ */ i.jsx(y, { width: "9", height: "9", color: "#16181c" }),
|
|
297
299
|
t.baseFare,
|
|
298
300
|
" ",
|
|
299
301
|
F
|
|
@@ -308,8 +310,8 @@ const E = {
|
|
|
308
310
|
}
|
|
309
311
|
) }),
|
|
310
312
|
/* @__PURE__ */ i.jsxs(re, { children: [
|
|
311
|
-
|
|
312
|
-
|
|
313
|
+
w && /* @__PURE__ */ i.jsx(d, { variant: (s == null ? void 0 : s.variant) ?? "primary", onClick: s == null ? void 0 : s.onPrimaryActionClick, children: s == null ? void 0 : s.label }),
|
|
314
|
+
j && /* @__PURE__ */ i.jsx(d, { variant: (n == null ? void 0 : n.variant) ?? "light-primary", onClick: n == null ? void 0 : n.onSecondaryActionClick, children: n == null ? void 0 : n.label })
|
|
313
315
|
] })
|
|
314
316
|
] }),
|
|
315
317
|
v && /* @__PURE__ */ i.jsxs(J, { children: [
|