qaema-ui 0.0.65 → 0.0.68
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/_virtual/index.js +5 -5
- package/dist/_virtual/index2.js +4 -4
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +4 -4
- package/dist/components/FeaturesList.d.ts +6 -0
- package/dist/components/FeaturesList.js +58 -0
- package/dist/components/PriceCard.d.ts +9 -0
- package/dist/components/PriceCard.js +224 -215
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +50 -48
- package/dist/node_modules/react-bootstrap/esm/Alert.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertHeading.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Button.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/CloseButton.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Collapse.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Dropdown.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownDivider.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItemText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownMenu.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Fade.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Feedback.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FloatingLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Form.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FormCheck.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckInput.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormControl.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormFloating.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormRange.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormSelect.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Image.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Nav.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Navbar.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarBrand.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Offcanvas.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasTitle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasToggling.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Toast.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/divWithClassName.js +1 -1
- package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
- package/dist/node_modules/react-smooth/es6/Animate.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var a =
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as t } from "../node_modules/react-helmet-async/node_modules/react-fast-compare/index.js";
|
|
3
|
+
var a = t();
|
|
4
|
+
const m = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as o } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/shallowequal/index.js";
|
|
3
|
+
var a = o();
|
|
4
|
+
const t = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var a =
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as s } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/classnames/index.js";
|
|
3
|
+
var a = r();
|
|
4
|
+
const t = /* @__PURE__ */ s(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as o } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/prop-types/index.js";
|
|
3
|
+
var p = /* @__PURE__ */ o();
|
|
4
|
+
const s = /* @__PURE__ */ r(p);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { j as n } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import { FiCheck as a, FiX as c } from "../node_modules/react-icons/fi/index.js";
|
|
3
|
+
import s, { css as t } from "styled-components";
|
|
4
|
+
import d from "./Typography.js";
|
|
5
|
+
const p = s.ul`
|
|
6
|
+
list-style: none;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: ${({ theme: e }) => e.spacing.s};
|
|
12
|
+
`, g = s.li`
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: ${({ theme: e }) => e.spacing.xs};
|
|
16
|
+
`, m = s.span`
|
|
17
|
+
width: 1rem;
|
|
18
|
+
height: 1rem;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
|
|
25
|
+
svg {
|
|
26
|
+
width: 0.7rem;
|
|
27
|
+
height: 0.7rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
${({ theme: e, $variant: r }) => r === "included" ? t`
|
|
31
|
+
border: 1px solid ${e.colors.secondary.green.n450};
|
|
32
|
+
color: ${e.colors.secondary.green.n450};
|
|
33
|
+
` : t`
|
|
34
|
+
border: 1px solid ${e.colors.secondary.pink.n450};
|
|
35
|
+
color: ${e.colors.secondary.pink.n450};
|
|
36
|
+
`}
|
|
37
|
+
`, x = s(d)`
|
|
38
|
+
font-family: ${({ theme: e }) => e.fonts.arabic};
|
|
39
|
+
font-weight: 400;
|
|
40
|
+
font-size: ${({ theme: e }) => {
|
|
41
|
+
var r;
|
|
42
|
+
return (r = e.typography.sizes) == null ? void 0 : r.s2;
|
|
43
|
+
}};
|
|
44
|
+
line-height: ${({ theme: e }) => e.typography.lineHeights.m};
|
|
45
|
+
color: ${({ theme: e }) => e.colors.grey.n400};
|
|
46
|
+
`, $ = (e) => {
|
|
47
|
+
const { features: r } = e;
|
|
48
|
+
return /* @__PURE__ */ n.jsx(p, { children: r.map((i, l) => {
|
|
49
|
+
const o = i.variant ?? "included";
|
|
50
|
+
return /* @__PURE__ */ n.jsxs(g, { children: [
|
|
51
|
+
/* @__PURE__ */ n.jsx(m, { $variant: o, children: o === "included" ? /* @__PURE__ */ n.jsx(a, {}) : /* @__PURE__ */ n.jsx(c, {}) }),
|
|
52
|
+
/* @__PURE__ */ n.jsx(x, { children: i.label })
|
|
53
|
+
] }, `${i.label}-${l}`);
|
|
54
|
+
}) });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
$ as default
|
|
58
|
+
};
|
|
@@ -8,6 +8,7 @@ export type PriceCardBadge = {
|
|
|
8
8
|
label: string;
|
|
9
9
|
bgColor: string;
|
|
10
10
|
color: string;
|
|
11
|
+
ribbon?: boolean;
|
|
11
12
|
weight?: FontWeight;
|
|
12
13
|
variant?: BadgeVariant;
|
|
13
14
|
children?: ReactNode;
|
|
@@ -21,6 +22,11 @@ export type PriceCardFeature = {
|
|
|
21
22
|
export type SecondaryPrice = {
|
|
22
23
|
amount: string;
|
|
23
24
|
label: string;
|
|
25
|
+
originalAmount?: string;
|
|
26
|
+
};
|
|
27
|
+
export type PriceCardDiscount = {
|
|
28
|
+
label: string;
|
|
29
|
+
amount: string;
|
|
24
30
|
};
|
|
25
31
|
export type PriceCardPrice = {
|
|
26
32
|
amount: string;
|
|
@@ -38,6 +44,8 @@ export type PriceCardProps = {
|
|
|
38
44
|
title: string;
|
|
39
45
|
price: PriceCardPrice;
|
|
40
46
|
secondaryPrice?: SecondaryPrice;
|
|
47
|
+
discount?: PriceCardDiscount;
|
|
48
|
+
discountLabel?: string;
|
|
41
49
|
description: string;
|
|
42
50
|
hintComponent?: React.ReactNode;
|
|
43
51
|
features: PriceCardFeature[];
|
|
@@ -65,6 +73,7 @@ export type PriceCardProps = {
|
|
|
65
73
|
addonsTitle?: string;
|
|
66
74
|
addonsOptionalLabel?: string;
|
|
67
75
|
addonsMonthlyLabel?: string;
|
|
76
|
+
mobileHintComponent?: React.ReactNode;
|
|
68
77
|
};
|
|
69
78
|
declare const PriceCard: React.FC<PriceCardProps>;
|
|
70
79
|
export default PriceCard;
|