qaema-ui 0.0.39 → 0.0.41
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/CallOutBox.d.ts +14 -0
- package/dist/components/CallOutBox.js +87 -0
- package/dist/components/PhoneInputField.d.ts +3 -0
- package/dist/components/PhoneInputField.js +348 -341
- package/dist/components/SummaryCard.js +60 -132
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +40 -38
- 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 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/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/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
|
};
|
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 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/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/shallowequal/index.js";
|
|
3
|
+
var a = o();
|
|
4
|
+
const t = /* @__PURE__ */ r(a);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CalloutConfig {
|
|
2
|
+
title: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
variant?: CalloutVariant;
|
|
5
|
+
action?: {
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type CalloutVariant = 'information' | 'error' | 'success' | 'warning';
|
|
11
|
+
declare function CallOutBox({ callout }: {
|
|
12
|
+
callout: CalloutConfig;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default CallOutBox;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { j as n } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import i from "styled-components";
|
|
3
|
+
import s from "./Typography.js";
|
|
4
|
+
const t = i(s)`
|
|
5
|
+
font-family: ${({ theme: r }) => r.fonts.arabic};
|
|
6
|
+
font-weight: ${({ theme: r }) => r.typography.weights.semiBold};
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
line-height: ${({ theme: r }) => r.typography.lineHeights.s};
|
|
9
|
+
letter-spacing: 0%;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
color: ${({ theme: r }) => r.colors.grey.n650};
|
|
12
|
+
display: inline-block;
|
|
13
|
+
`, e = i.div`
|
|
14
|
+
margin-top: ${({ theme: r }) => r.spacing.m};
|
|
15
|
+
padding: ${({ theme: r }) => r.spacing.sm};
|
|
16
|
+
border-radius: ${({ theme: r }) => r.borderRadius.md};
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: center;
|
|
20
|
+
|
|
21
|
+
${({ $variant: r, theme: o }) => {
|
|
22
|
+
switch (r) {
|
|
23
|
+
case "information":
|
|
24
|
+
return `
|
|
25
|
+
background: ${o.colors.primary.purple.n150};
|
|
26
|
+
border-bottom: 2px solid ${o.colors.primary.purple.n450};
|
|
27
|
+
`;
|
|
28
|
+
case "error":
|
|
29
|
+
return `
|
|
30
|
+
background: ${o.colors.state.error.n150};
|
|
31
|
+
border-bottom: 2px solid ${o.colors.state.error.n450};
|
|
32
|
+
`;
|
|
33
|
+
case "success":
|
|
34
|
+
return `
|
|
35
|
+
background: ${o.colors.state.success.n100};
|
|
36
|
+
border-bottom: 2px solid ${o.colors.state.success.n450};
|
|
37
|
+
`;
|
|
38
|
+
case "warning":
|
|
39
|
+
default:
|
|
40
|
+
return `
|
|
41
|
+
background: ${o.colors.secondary.orange.n150};
|
|
42
|
+
border-bottom: 2px solid ${o.colors.secondary.orange.n450};
|
|
43
|
+
`;
|
|
44
|
+
}
|
|
45
|
+
}}
|
|
46
|
+
`, a = i(s)`
|
|
47
|
+
font-family: ${({ theme: r }) => r.fonts.arabic};
|
|
48
|
+
font-weight: ${({ theme: r }) => r.typography.weights.regular};
|
|
49
|
+
font-size: ${({ theme: r }) => r.typography.sizes.s2};
|
|
50
|
+
line-height: ${({ theme: r }) => r.typography.lineHeights.xs};
|
|
51
|
+
letter-spacing: ${({ theme: r }) => r.typography.letterSpacings.normal};
|
|
52
|
+
vertical-align: middle;
|
|
53
|
+
color: ${({ theme: r }) => r.colors.grey.n600};
|
|
54
|
+
`, c = i.button`
|
|
55
|
+
padding: 0.75rem;
|
|
56
|
+
border-radius: 0.25rem;
|
|
57
|
+
border: none;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
${({ $variant: r, theme: o }) => `
|
|
60
|
+
background: transparent;
|
|
61
|
+
color: ${r === "information" ? o.colors.primary.purple.n450 : r === "error" ? o.colors.state.error.n450 : r === "success" ? o.colors.state.success.n450 : o.colors.secondary.orange.n450};
|
|
62
|
+
`}
|
|
63
|
+
|
|
64
|
+
font-weight: ${({ theme: r }) => r.typography.weights.semiBold};
|
|
65
|
+
font-size: ${({ theme: r }) => r.typography.sizes.s2};
|
|
66
|
+
line-height: ${({ theme: r }) => r.typography.lineHeights.xs};
|
|
67
|
+
text-align: center;
|
|
68
|
+
vertical-align: middle;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
&:hover {
|
|
73
|
+
opacity: 0.9;
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
function y({ callout: r }) {
|
|
77
|
+
return /* @__PURE__ */ n.jsxs(e, { $variant: r.variant ?? "warning", children: [
|
|
78
|
+
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
79
|
+
/* @__PURE__ */ n.jsx(t, { variant: "span", weight: "semiBold", children: r.title }),
|
|
80
|
+
r.description && /* @__PURE__ */ n.jsx(a, { variant: "caption", children: r.description })
|
|
81
|
+
] }),
|
|
82
|
+
r.action && /* @__PURE__ */ n.jsx(c, { $variant: r.variant ?? "warning", onClick: r.action.onClick, children: r.action.label })
|
|
83
|
+
] });
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
y as default
|
|
87
|
+
};
|
|
@@ -3,6 +3,8 @@ export type PhoneInputFieldProps = {
|
|
|
3
3
|
placeholder: string;
|
|
4
4
|
optional?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
disableCountrySelection?: boolean;
|
|
7
|
+
defaultCountryCode?: string;
|
|
6
8
|
error?: string;
|
|
7
9
|
value: string;
|
|
8
10
|
onChange: (val: string) => void;
|
|
@@ -23,6 +25,7 @@ export type CountryDropdownProps = {
|
|
|
23
25
|
$selectedCountry: CountryCode;
|
|
24
26
|
$error?: string;
|
|
25
27
|
$disabled?: boolean;
|
|
28
|
+
disableSelection?: boolean;
|
|
26
29
|
onSelect: (country: CountryCode) => void;
|
|
27
30
|
placeholder?: string;
|
|
28
31
|
onChange: (val: string) => void;
|