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.
Files changed (60) hide show
  1. package/dist/_virtual/index.js +5 -5
  2. package/dist/_virtual/index2.js +4 -4
  3. package/dist/_virtual/index3.js +5 -5
  4. package/dist/_virtual/index4.js +4 -4
  5. package/dist/components/CallOutBox.d.ts +14 -0
  6. package/dist/components/CallOutBox.js +87 -0
  7. package/dist/components/PhoneInputField.d.ts +3 -0
  8. package/dist/components/PhoneInputField.js +348 -341
  9. package/dist/components/SummaryCard.js +60 -132
  10. package/dist/components/index.d.ts +2 -0
  11. package/dist/index.js +40 -38
  12. package/dist/node_modules/react-bootstrap/esm/Alert.js +1 -1
  13. package/dist/node_modules/react-bootstrap/esm/AlertHeading.js +1 -1
  14. package/dist/node_modules/react-bootstrap/esm/AlertLink.js +1 -1
  15. package/dist/node_modules/react-bootstrap/esm/Button.js +1 -1
  16. package/dist/node_modules/react-bootstrap/esm/CloseButton.js +2 -2
  17. package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
  18. package/dist/node_modules/react-bootstrap/esm/Collapse.js +1 -1
  19. package/dist/node_modules/react-bootstrap/esm/Dropdown.js +1 -1
  20. package/dist/node_modules/react-bootstrap/esm/DropdownDivider.js +1 -1
  21. package/dist/node_modules/react-bootstrap/esm/DropdownHeader.js +1 -1
  22. package/dist/node_modules/react-bootstrap/esm/DropdownItem.js +1 -1
  23. package/dist/node_modules/react-bootstrap/esm/DropdownItemText.js +1 -1
  24. package/dist/node_modules/react-bootstrap/esm/DropdownMenu.js +1 -1
  25. package/dist/node_modules/react-bootstrap/esm/DropdownToggle.js +1 -1
  26. package/dist/node_modules/react-bootstrap/esm/Fade.js +1 -1
  27. package/dist/node_modules/react-bootstrap/esm/Feedback.js +2 -2
  28. package/dist/node_modules/react-bootstrap/esm/FloatingLabel.js +1 -1
  29. package/dist/node_modules/react-bootstrap/esm/Form.js +2 -2
  30. package/dist/node_modules/react-bootstrap/esm/FormCheck.js +1 -1
  31. package/dist/node_modules/react-bootstrap/esm/FormCheckInput.js +1 -1
  32. package/dist/node_modules/react-bootstrap/esm/FormCheckLabel.js +1 -1
  33. package/dist/node_modules/react-bootstrap/esm/FormControl.js +1 -1
  34. package/dist/node_modules/react-bootstrap/esm/FormFloating.js +1 -1
  35. package/dist/node_modules/react-bootstrap/esm/FormLabel.js +1 -1
  36. package/dist/node_modules/react-bootstrap/esm/FormRange.js +1 -1
  37. package/dist/node_modules/react-bootstrap/esm/FormSelect.js +1 -1
  38. package/dist/node_modules/react-bootstrap/esm/FormText.js +1 -1
  39. package/dist/node_modules/react-bootstrap/esm/Image.js +2 -2
  40. package/dist/node_modules/react-bootstrap/esm/Nav.js +1 -1
  41. package/dist/node_modules/react-bootstrap/esm/NavItem.js +1 -1
  42. package/dist/node_modules/react-bootstrap/esm/NavLink.js +1 -1
  43. package/dist/node_modules/react-bootstrap/esm/Navbar.js +1 -1
  44. package/dist/node_modules/react-bootstrap/esm/NavbarBrand.js +1 -1
  45. package/dist/node_modules/react-bootstrap/esm/NavbarText.js +1 -1
  46. package/dist/node_modules/react-bootstrap/esm/NavbarToggle.js +1 -1
  47. package/dist/node_modules/react-bootstrap/esm/Offcanvas.js +1 -1
  48. package/dist/node_modules/react-bootstrap/esm/OffcanvasBody.js +1 -1
  49. package/dist/node_modules/react-bootstrap/esm/OffcanvasHeader.js +1 -1
  50. package/dist/node_modules/react-bootstrap/esm/OffcanvasTitle.js +1 -1
  51. package/dist/node_modules/react-bootstrap/esm/OffcanvasToggling.js +1 -1
  52. package/dist/node_modules/react-bootstrap/esm/Toast.js +1 -1
  53. package/dist/node_modules/react-bootstrap/esm/ToastBody.js +1 -1
  54. package/dist/node_modules/react-bootstrap/esm/ToastHeader.js +1 -1
  55. package/dist/node_modules/react-bootstrap/esm/divWithClassName.js +1 -1
  56. package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
  57. package/dist/node_modules/react-smooth/es6/Animate.js +1 -1
  58. package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
  59. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  60. package/package.json +1 -1
@@ -1,7 +1,7 @@
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);
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
- m as default
6
+ t as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/shallowequal/index.js";
3
- var a = o();
4
- const t = /* @__PURE__ */ r(a);
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
- t as default
6
+ s as default
7
7
  };
@@ -1,7 +1,7 @@
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);
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
- t as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/prop-types/index.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
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
- s as default
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;