qaema-ui 0.0.73 → 0.0.75
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 +24 -24
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ const N = {
|
|
|
43
43
|
justify-content: ${({ $hasMultipleBadges: e }) => e ? "flex-start" : "space-between"};
|
|
44
44
|
gap: ${({ theme: e }) => e.spacing.s};
|
|
45
45
|
flex-wrap: wrap;
|
|
46
|
-
padding-
|
|
46
|
+
padding-inline-end: ${({ $hasRibbon: e }) => e ? "8rem" : "0"};
|
|
47
47
|
`, q = t(h)`
|
|
48
48
|
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
49
49
|
font-weight: 600;
|
|
@@ -73,14 +73,14 @@ const N = {
|
|
|
73
73
|
`, K = t.div`
|
|
74
74
|
position: absolute;
|
|
75
75
|
top: 0;
|
|
76
|
-
|
|
76
|
+
inset-inline-end: 0;
|
|
77
77
|
min-width: 9.5rem;
|
|
78
78
|
height: 4rem;
|
|
79
79
|
padding: 0 ${({ theme: e }) => e.spacing.m};
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
82
82
|
justify-content: center;
|
|
83
|
-
border-
|
|
83
|
+
border-end-start-radius: ${({ theme: e }) => e.borderRadius.xl};
|
|
84
84
|
background-color: ${({ $bgColor: e }) => e};
|
|
85
85
|
color: ${({ $color: e }) => e};
|
|
86
86
|
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
@@ -170,12 +170,12 @@ const N = {
|
|
|
170
170
|
font-size: ${({ theme: e }) => e.typography.sizes.s4};
|
|
171
171
|
line-height: ${({ theme: e }) => e.typography.lineHeights.m};
|
|
172
172
|
color: #17954f;
|
|
173
|
-
`,
|
|
173
|
+
`, ne = t.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
align-items: center;
|
|
176
176
|
gap: 5px;
|
|
177
177
|
font-size: 16px;
|
|
178
|
-
`,
|
|
178
|
+
`, re = t(d)`
|
|
179
179
|
color: #17954f;
|
|
180
180
|
font-size: 16px;
|
|
181
181
|
`, se = t(x).attrs({
|
|
@@ -204,7 +204,7 @@ const N = {
|
|
|
204
204
|
variant: R = "transparent",
|
|
205
205
|
badges: f = [],
|
|
206
206
|
showPrimaryAction: B = !1,
|
|
207
|
-
primaryAction:
|
|
207
|
+
primaryAction: r,
|
|
208
208
|
showSecondaryAction: k = !1,
|
|
209
209
|
secondaryAction: s,
|
|
210
210
|
showFeatures: S = !0,
|
|
@@ -219,23 +219,23 @@ const N = {
|
|
|
219
219
|
addonsMonthlyLabel: E = "monthly",
|
|
220
220
|
mobileHintComponent: I
|
|
221
221
|
}) => {
|
|
222
|
-
const p = f.find((
|
|
222
|
+
const p = f.find((n) => n.ribbon), $ = f.filter((n) => !n.ribbon);
|
|
223
223
|
return /* @__PURE__ */ i.jsxs(O, { $variant: R, children: [
|
|
224
224
|
p && /* @__PURE__ */ i.jsx(K, { $bgColor: p.bgColor, $color: p.color, children: p.label }),
|
|
225
225
|
/* @__PURE__ */ i.jsxs(U, { children: [
|
|
226
226
|
/* @__PURE__ */ i.jsxs(V, { $hasRibbon: !!p, $hasMultipleBadges: f.length > 1, children: [
|
|
227
227
|
/* @__PURE__ */ i.jsx(q, { children: e }),
|
|
228
|
-
$.length > 0 && /* @__PURE__ */ i.jsx(J, { children: $.map((
|
|
228
|
+
$.length > 0 && /* @__PURE__ */ i.jsx(J, { children: $.map((n, a) => /* @__PURE__ */ i.jsx(
|
|
229
229
|
M,
|
|
230
230
|
{
|
|
231
|
-
label:
|
|
232
|
-
bgColor:
|
|
233
|
-
color:
|
|
234
|
-
image:
|
|
235
|
-
weight:
|
|
236
|
-
variant:
|
|
231
|
+
label: n.label,
|
|
232
|
+
bgColor: n.bgColor,
|
|
233
|
+
color: n.color,
|
|
234
|
+
image: n.image ?? "",
|
|
235
|
+
weight: n.weight,
|
|
236
|
+
variant: n.variant
|
|
237
237
|
},
|
|
238
|
-
`${
|
|
238
|
+
`${n.label}-${a}`
|
|
239
239
|
)) })
|
|
240
240
|
] }),
|
|
241
241
|
/* @__PURE__ */ i.jsxs(Q, { children: [
|
|
@@ -255,10 +255,10 @@ const N = {
|
|
|
255
255
|
/* @__PURE__ */ i.jsx(d, { $isDiscounted: !!(g && l.originalAmount), children: l.amount }),
|
|
256
256
|
/* @__PURE__ */ i.jsx(te, { children: l.label })
|
|
257
257
|
] }),
|
|
258
|
-
g ? /* @__PURE__ */ i.jsxs(
|
|
258
|
+
g ? /* @__PURE__ */ i.jsxs(ne, { children: [
|
|
259
259
|
/* @__PURE__ */ i.jsx(j, { children: g.label }),
|
|
260
260
|
/* @__PURE__ */ i.jsx(se, { style: { width: "14px", height: "16px" } }),
|
|
261
|
-
/* @__PURE__ */ i.jsx(
|
|
261
|
+
/* @__PURE__ */ i.jsx(re, { children: g.amount })
|
|
262
262
|
] }) : m && /* @__PURE__ */ i.jsx(j, { children: m }),
|
|
263
263
|
/* @__PURE__ */ i.jsx(Z, { children: z }),
|
|
264
264
|
D && y.length > 0 && /* @__PURE__ */ i.jsx("div", { style: { marginTop: "0.50rem" }, children: /* @__PURE__ */ i.jsx(
|
|
@@ -272,13 +272,13 @@ const N = {
|
|
|
272
272
|
gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
|
|
273
273
|
gap: "4px"
|
|
274
274
|
},
|
|
275
|
-
children: y.map((
|
|
276
|
-
const a = F ===
|
|
275
|
+
children: y.map((n) => {
|
|
276
|
+
const a = F === n.id;
|
|
277
277
|
return /* @__PURE__ */ i.jsxs(
|
|
278
278
|
"button",
|
|
279
279
|
{
|
|
280
280
|
type: "button",
|
|
281
|
-
onClick: () => c == null ? void 0 : c(
|
|
281
|
+
onClick: () => c == null ? void 0 : c(n.id),
|
|
282
282
|
style: {
|
|
283
283
|
padding: "8px 6px 7px",
|
|
284
284
|
border: a ? "1px solid #e4e7ec" : "1px solid transparent",
|
|
@@ -299,7 +299,7 @@ const N = {
|
|
|
299
299
|
boxShadow: a ? "0 1px 2px rgba(16, 24, 40, 0.08)" : "none"
|
|
300
300
|
},
|
|
301
301
|
children: [
|
|
302
|
-
/* @__PURE__ */ i.jsx("span", { children:
|
|
302
|
+
/* @__PURE__ */ i.jsx("span", { children: n.titleEn }),
|
|
303
303
|
/* @__PURE__ */ i.jsxs(
|
|
304
304
|
"span",
|
|
305
305
|
{
|
|
@@ -314,7 +314,7 @@ const N = {
|
|
|
314
314
|
},
|
|
315
315
|
children: [
|
|
316
316
|
/* @__PURE__ */ i.jsx(x, { width: "9", height: "9", color: "#16181c" }),
|
|
317
|
-
|
|
317
|
+
n.baseFare,
|
|
318
318
|
" ",
|
|
319
319
|
E
|
|
320
320
|
]
|
|
@@ -322,14 +322,14 @@ const N = {
|
|
|
322
322
|
)
|
|
323
323
|
]
|
|
324
324
|
},
|
|
325
|
-
|
|
325
|
+
n.id
|
|
326
326
|
);
|
|
327
327
|
})
|
|
328
328
|
}
|
|
329
329
|
) }),
|
|
330
330
|
I,
|
|
331
331
|
/* @__PURE__ */ i.jsxs(le, { children: [
|
|
332
|
-
B && /* @__PURE__ */ i.jsx(b, { variant: (
|
|
332
|
+
B && /* @__PURE__ */ i.jsx(b, { variant: (r == null ? void 0 : r.variant) ?? "primary", onClick: r == null ? void 0 : r.onPrimaryActionClick, children: r == null ? void 0 : r.label }),
|
|
333
333
|
k && /* @__PURE__ */ i.jsx(b, { variant: (s == null ? void 0 : s.variant) ?? "light-primary", onClick: s == null ? void 0 : s.onSecondaryActionClick, children: s == null ? void 0 : s.label })
|
|
334
334
|
] })
|
|
335
335
|
] }),
|