qaema-ui 0.0.40 → 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.
@@ -1,7 +1,7 @@
1
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);
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
- m as default
6
+ s 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 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
  };
@@ -1,5 +1,4 @@
1
- import { __require as r } from "../node_modules/recharts/node_modules/react-is/index.js";
2
- var a = r();
1
+ var e = { exports: {} };
3
2
  export {
4
- a as r
3
+ e as __module
5
4
  };
@@ -1,4 +1,5 @@
1
- var e = { exports: {} };
1
+ import { __require as r } from "../node_modules/recharts/node_modules/react-is/index.js";
2
+ var a = r();
2
3
  export {
3
- e as __module
4
+ a as r
4
5
  };
@@ -1,97 +1,101 @@
1
1
  import { j as e } from "../_virtual/jsx-runtime.js";
2
- import d, { useTheme as f } from "styled-components";
3
- import v from "./Badge.js";
2
+ import i, { useTheme as y } from "styled-components";
3
+ import v from "./AmountItem.js";
4
+ import w from "./Badge.js";
4
5
  import j from "./Button.js";
5
- import w from "./CallOutBox.js";
6
- import { Card as T } from "./Card.js";
7
- import a from "./Typography.js";
8
- const $ = d.div`
6
+ import T from "./CallOutBox.js";
7
+ import { Card as $ } from "./Card.js";
8
+ import d from "./Typography.js";
9
+ const S = i.div`
9
10
  padding-bottom: ${(r) => r.theme.spacing.s};
10
11
  border-bottom: 1px solid ${(r) => r.theme.colors.grey.n100};
11
12
  caption {
12
13
  display: inline-block;
13
14
  text-align: start;
14
15
  }
15
- `, S = d.div`
16
+ `, B = i.div`
16
17
  width: 100%;
17
18
  display: flex;
18
19
  flex-direction: row;
19
20
  justify-content: space-between;
20
21
  align-items: center;
21
- `, B = d.div`
22
+ `, R = i.div`
22
23
  margin-top: ${(r) => r.theme.spacing.s};
23
24
  display: flex;
24
25
  flex-direction: column;
25
26
  gap: ${(r) => r.theme.spacing.s};
26
- `, R = d.div`
27
+ `, V = i.div`
27
28
  display: flex;
28
29
  flex-direction: column;
29
30
  gap: ${(r) => r.theme.spacing.s};
30
- `, g = d.div`
31
+ `, b = i.div`
31
32
  display: flex;
32
33
  justify-content: space-between;
33
34
  align-items: center;
34
- `, E = d(g)``, y = ({
35
+ `, E = i(b)``, f = ({
35
36
  variant: r = "text",
36
37
  label: o,
37
38
  value: l,
38
- color: m
39
+ color: p
39
40
  }) => {
40
- const x = f();
41
- let c = null;
41
+ const x = y();
42
+ let t = null;
42
43
  if (r === "badge") {
43
44
  const n = l;
44
- c = /* @__PURE__ */ e.jsx(v, { ...n });
45
+ t = /* @__PURE__ */ e.jsx(w, { ...n });
45
46
  } else if (r === "trend") {
46
- const n = typeof l == "object" && l !== null ? l : { value: l }, i = n.direction ?? "neutral", t = x.colors.state.success.n450, s = x.colors.state.error.n450, h = i === "up" ? t : i === "down" ? s : m;
47
- c = /* @__PURE__ */ e.jsx(a, { variant: "smText", color: h, children: typeof n.value == "number" ? n.value.toString() : n.value });
47
+ const n = typeof l == "object" && l !== null ? l : { value: l }, c = n.direction ?? "neutral", a = x.colors.state.success.n450, s = x.colors.state.error.n450, u = c === "up" ? a : c === "down" ? s : p;
48
+ t = /* @__PURE__ */ e.jsx(d, { variant: "smText", color: u, children: typeof n.value == "number" ? n.value.toString() : n.value });
48
49
  } else if (r === "component")
49
- c = l;
50
- else {
50
+ t = l;
51
+ else if (r === "amount") {
52
+ const c = { value: l };
53
+ t = /* @__PURE__ */ e.jsx(v, { data: c, width: "auto" });
54
+ } else {
51
55
  const n = l;
52
- c = /* @__PURE__ */ e.jsx(a, { variant: "smText", color: m, children: typeof n == "number" ? n.toString() : n });
56
+ t = /* @__PURE__ */ e.jsx(d, { variant: "smText", color: p, children: typeof n == "number" ? n.toString() : n });
53
57
  }
54
58
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
55
- r !== "component" && /* @__PURE__ */ e.jsx(a, { variant: "smText", weight: "semiBold", children: o }),
56
- c
59
+ r !== "component" && /* @__PURE__ */ e.jsx(d, { variant: "smText", weight: "semiBold", children: o }),
60
+ t
57
61
  ] });
58
62
  };
59
- function q({
63
+ function z({
60
64
  sections: r,
61
65
  total: o,
62
66
  title: l,
63
- subtitle: m,
67
+ subtitle: p,
64
68
  btnLabel: x,
65
- btnConfig: c,
69
+ btnConfig: t,
66
70
  trailingActionsConfig: n,
67
- callout: i
71
+ callout: c
68
72
  }) {
69
- const t = f();
70
- return /* @__PURE__ */ e.jsxs(T, { padding: "2rem", shadowVariant: "none", hoverEffect: !1, border: `1px solid ${t.colors.grey.n100}`, children: [
71
- /* @__PURE__ */ e.jsxs($, { children: [
72
- /* @__PURE__ */ e.jsxs(S, { children: [
73
- /* @__PURE__ */ e.jsx(a, { variant: "h6", weight: "semiBold", children: l }),
74
- c && /* @__PURE__ */ e.jsxs(j, { ...c, children: [
73
+ const a = y();
74
+ return /* @__PURE__ */ e.jsxs($, { padding: "2rem", shadowVariant: "none", hoverEffect: !1, border: `1px solid ${a.colors.grey.n100}`, children: [
75
+ /* @__PURE__ */ e.jsxs(S, { children: [
76
+ /* @__PURE__ */ e.jsxs(B, { children: [
77
+ /* @__PURE__ */ e.jsx(d, { variant: "h6", weight: "semiBold", children: l }),
78
+ t && /* @__PURE__ */ e.jsxs(j, { ...t, children: [
75
79
  x ?? "",
76
80
  " "
77
81
  ] })
78
82
  ] }),
79
- /* @__PURE__ */ e.jsx(a, { variant: "caption", color: t.colors.grey.n400, children: m })
83
+ /* @__PURE__ */ e.jsx(d, { variant: "caption", color: a.colors.grey.n400, children: p })
80
84
  ] }),
81
- /* @__PURE__ */ e.jsxs(B, { children: [
82
- r.map((s, u) => {
83
- var h;
84
- return ((h = s == null ? void 0 : s.items) == null ? void 0 : h.length) === 0 ? null : /* @__PURE__ */ e.jsxs(R, { children: [
85
- /* @__PURE__ */ e.jsx(a, { variant: "span", weight: "regular", color: t.colors.grey.n400, children: s.title }),
86
- s.items.map((p, b) => /* @__PURE__ */ e.jsx(g, { children: /* @__PURE__ */ e.jsx(y, { variant: p == null ? void 0 : p.variant, label: p.label, value: p.value, color: t.colors.grey.n400 }) }, `${u}-${b}`))
85
+ /* @__PURE__ */ e.jsxs(R, { children: [
86
+ r.map((s, h) => {
87
+ var u;
88
+ return ((u = s == null ? void 0 : s.items) == null ? void 0 : u.length) === 0 ? null : /* @__PURE__ */ e.jsxs(V, { children: [
89
+ /* @__PURE__ */ e.jsx(d, { variant: "span", weight: "regular", color: a.colors.grey.n400, children: s.title }),
90
+ s.items.map((m, g) => /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsx(f, { variant: m == null ? void 0 : m.variant, label: m.label, value: m.value, color: a.colors.grey.n400 }) }, `${h}-${g}`))
87
91
  ] }, s.title);
88
92
  }),
89
- o && /* @__PURE__ */ e.jsx(E, { children: /* @__PURE__ */ e.jsx(y, { variant: o == null ? void 0 : o.variant, label: (o == null ? void 0 : o.label) ?? "", value: (o == null ? void 0 : o.value) ?? "", color: t.colors.grey.n400 }) }),
93
+ o && /* @__PURE__ */ e.jsx(E, { children: /* @__PURE__ */ e.jsx(f, { variant: o == null ? void 0 : o.variant, label: (o == null ? void 0 : o.label) ?? "", value: (o == null ? void 0 : o.value) ?? "", color: a.colors.grey.n400 }) }),
90
94
  n && (n == null ? void 0 : n.length) > 0 && n.map((s) => /* @__PURE__ */ e.jsx(j, { ...s == null ? void 0 : s.btnConfig, children: (s == null ? void 0 : s.label) ?? "" })),
91
- i && /* @__PURE__ */ e.jsx(w, { callout: i })
95
+ c && /* @__PURE__ */ e.jsx(T, { callout: c })
92
96
  ] })
93
97
  ] });
94
98
  }
95
99
  export {
96
- q as default
100
+ z as default
97
101
  };
@@ -1,4 +1,4 @@
1
- import o from "../../../_virtual/index4.js";
1
+ import o from "../../../_virtual/index2.js";
2
2
  import * as p from "react";
3
3
  import n from "../../../_virtual/index.js";
4
4
  import { j as i } from "../../../_virtual/jsx-runtime.js";
@@ -1,6 +1,6 @@
1
1
  import i from "../../../_virtual/index.js";
2
2
  import * as f from "react";
3
- import e from "../../../_virtual/index4.js";
3
+ import e from "../../../_virtual/index2.js";
4
4
  import { j as l } from "../../../_virtual/jsx-runtime.js";
5
5
  const c = {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import i from "../../../_virtual/index.js";
2
- import o from "../../../_virtual/index4.js";
2
+ import o from "../../../_virtual/index2.js";
3
3
  import * as s from "react";
4
4
  import f from "./FormCheck.js";
5
5
  import l from "./FormControl.js";
@@ -1,6 +1,6 @@
1
1
  import f from "../../../_virtual/index.js";
2
2
  import * as d from "react";
3
- import o from "../../../_virtual/index4.js";
3
+ import o from "../../../_virtual/index2.js";
4
4
  import { useBootstrapPrefix as u } from "./ThemeProvider.js";
5
5
  import { j as p } from "../../../_virtual/jsx-runtime.js";
6
6
  o.string, o.bool, o.bool, o.bool, o.bool;
@@ -2,9 +2,9 @@ var Q = Object.defineProperty;
2
2
  var X = (e, t, r) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var h = (e, t, r) => X(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import y, { Component as R } from "react";
5
- import ee from "../../../_virtual/index2.js";
5
+ import ee from "../../../_virtual/index3.js";
6
6
  import F from "../../../_virtual/browser.js";
7
- import te from "../../../_virtual/index3.js";
7
+ import te from "../../../_virtual/index4.js";
8
8
  var Y = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Y || {}), $ = {
9
9
  link: { rel: ["amphtml", "canonical", "alternate"] },
10
10
  script: { type: ["application/ld+json"] },
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../_virtual/index8.js";
1
+ import { __module as e } from "../../_virtual/index7.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -1,5 +1,5 @@
1
1
  import x, { Children as w, cloneElement as z, PureComponent as F } from "react";
2
- import a from "../../../_virtual/index4.js";
2
+ import a from "../../../_virtual/index2.js";
3
3
  import { deepEqual as H } from "../../fast-equals/dist/esm/index.js";
4
4
  import L from "./AnimateManager.js";
5
5
  import { configEasing as V } from "./easing.js";
@@ -1,6 +1,6 @@
1
1
  import C from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
2
2
  import D from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
3
- import o from "../../../_virtual/index4.js";
3
+ import o from "../../../_virtual/index2.js";
4
4
  import v from "react";
5
5
  import b from "react-dom";
6
6
  import T from "./config.js";
@@ -1,4 +1,4 @@
1
- import e from "../../../../_virtual/index4.js";
1
+ import e from "../../../../_virtual/index2.js";
2
2
  var n = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
3
3
  enter: e.number,
4
4
  exit: e.number,
@@ -4,7 +4,7 @@ import P from "../../../../_virtual/isString.js";
4
4
  import D from "../../../../_virtual/isFunction.js";
5
5
  import j from "../../../../_virtual/isObject.js";
6
6
  import { Children as p, isValidElement as w } from "react";
7
- import { r as B } from "../../../../_virtual/index7.js";
7
+ import { r as B } from "../../../../_virtual/index8.js";
8
8
  import { isNumber as b } from "./DataUtils.js";
9
9
  import { shallowEqual as d } from "./ShallowEqual.js";
10
10
  import { SVGElementPropKeys as G, EventKeys as F, FilteredElementKeyMap as s } from "./types.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qaema-ui",
3
3
  "private": false,
4
- "version": "0.0.40",
4
+ "version": "0.0.41",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"