qaema-ui 0.0.42 → 0.0.43
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/index3.js +2 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/RadioInput.d.ts +1 -0
- package/dist/components/RadioInput.js +49 -39
- package/dist/node_modules/classnames/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
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
|
+
var s = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
s as __module
|
|
7
4
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as o } from "../node_modules/shallowequal/index.js";
|
|
3
|
-
var a = o();
|
|
4
|
-
const t = /* @__PURE__ */ r(a);
|
|
1
|
+
var p = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
p as __module
|
|
7
4
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,4 +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
5
|
export {
|
|
3
|
-
|
|
6
|
+
m as default
|
|
4
7
|
};
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,4 +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
5
|
export {
|
|
3
|
-
|
|
6
|
+
t as default
|
|
4
7
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { TbSparkles as
|
|
3
|
-
import
|
|
4
|
-
import { useQaemaCoreTranslation as
|
|
5
|
-
import
|
|
6
|
-
import { Optional as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { j as i } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import { TbSparkles as $ } from "../node_modules/react-icons/tb/index.js";
|
|
3
|
+
import a, { css as p } from "styled-components";
|
|
4
|
+
import { useQaemaCoreTranslation as w } from "../i18n/i18n.js";
|
|
5
|
+
import j from "./Hint.js";
|
|
6
|
+
import { Optional as v } from "./InputField.js";
|
|
7
|
+
import b from "./Radio.js";
|
|
8
|
+
const F = a.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: ${({ theme: e }) => e.spacing.xs};
|
|
12
|
-
`,
|
|
12
|
+
`, z = a.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
justify-content: space-between;
|
|
16
16
|
gap: ${({ theme: e }) => e.spacing.xs};
|
|
17
|
-
`,
|
|
17
|
+
`, R = a.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: row;
|
|
20
20
|
align-items: center;
|
|
@@ -30,7 +30,7 @@ const b = o.div`
|
|
|
30
30
|
line-height: ${({ theme: e }) => e.typography.lineHeights.xs};
|
|
31
31
|
color: ${({ theme: e }) => e.colors.grey.n350};
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
33
|
+
`, I = a.span`
|
|
34
34
|
display: inline-flex;
|
|
35
35
|
align-items: center;
|
|
36
36
|
height: 20px;
|
|
@@ -38,52 +38,62 @@ const b = o.div`
|
|
|
38
38
|
gap: 8px;
|
|
39
39
|
border-radius: 4px;
|
|
40
40
|
background: ${({ theme: e }) => {
|
|
41
|
-
var n,
|
|
42
|
-
return ((
|
|
41
|
+
var n, l, t;
|
|
42
|
+
return ((t = (l = (n = e.colors) == null ? void 0 : n.primary) == null ? void 0 : l.purple) == null ? void 0 : t.n100) || "#F1EEFF";
|
|
43
43
|
}};
|
|
44
44
|
color: ${({ theme: e }) => {
|
|
45
|
-
var n,
|
|
46
|
-
return ((
|
|
45
|
+
var n, l, t;
|
|
46
|
+
return ((t = (l = (n = e.colors) == null ? void 0 : n.primary) == null ? void 0 : l.purple) == null ? void 0 : t.n450) || "#7259FF";
|
|
47
47
|
}};
|
|
48
48
|
font-size: ${({ theme: e }) => e.typography.sizes.s2 || "10px"};
|
|
49
49
|
line-height: ${({ theme: e }) => e.typography.lineHeights.m};
|
|
50
50
|
font-weight: 400;
|
|
51
|
-
`,
|
|
51
|
+
`, O = a($)`
|
|
52
52
|
width: 12px;
|
|
53
53
|
height: 12px;
|
|
54
54
|
flex: 0 0 auto;
|
|
55
|
-
`,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
`, S = a.div`
|
|
56
|
+
display: flex;
|
|
57
|
+
width: 100%;
|
|
58
|
+
flex-direction: ${({ $variant: e }) => e};
|
|
59
|
+
${({ $variant: e, theme: n }) => e === "row" ? p`
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
align-items: center;
|
|
62
|
+
` : p`
|
|
63
|
+
gap: ${n.spacing.xs};
|
|
64
|
+
`}
|
|
65
|
+
`, A = (e) => {
|
|
66
|
+
const { name: n, label: l = "", options: t, value: c, disabled: h, optional: d = !1, onChange: g, error: o, badge: s, optionsVariant: x = "column" } = e, { t: f } = w();
|
|
67
|
+
if (!(t != null && t.length)) return null;
|
|
68
|
+
const u = (r) => s != null && s.showFor ? typeof s.showFor == "function" ? !!s.showFor(r) : s.showFor === r.value : !1, y = (s == null ? void 0 : s.label) ?? "Recommended";
|
|
69
|
+
return /* @__PURE__ */ i.jsxs(z, { children: [
|
|
70
|
+
l && /* @__PURE__ */ i.jsxs(R, { children: [
|
|
71
|
+
/* @__PURE__ */ i.jsx("label", { children: l }),
|
|
72
|
+
d && /* @__PURE__ */ i.jsx(v, { children: f("OPTIONAL") })
|
|
63
73
|
] }),
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
74
|
+
/* @__PURE__ */ i.jsx(S, { $variant: x, children: t.map((r) => {
|
|
75
|
+
const m = u(r);
|
|
76
|
+
return /* @__PURE__ */ i.jsxs(F, { children: [
|
|
77
|
+
/* @__PURE__ */ i.jsx(
|
|
78
|
+
b,
|
|
69
79
|
{
|
|
70
80
|
name: n,
|
|
71
|
-
label:
|
|
72
|
-
value:
|
|
73
|
-
$selected:
|
|
81
|
+
label: r.label,
|
|
82
|
+
value: r.value,
|
|
83
|
+
$selected: c === (r == null ? void 0 : r.value),
|
|
74
84
|
onChange: g,
|
|
75
85
|
$disabled: h
|
|
76
86
|
}
|
|
77
87
|
),
|
|
78
|
-
|
|
79
|
-
(
|
|
80
|
-
|
|
88
|
+
m && /* @__PURE__ */ i.jsxs(I, { children: [
|
|
89
|
+
(s == null ? void 0 : s.showIcon) !== !1 && /* @__PURE__ */ i.jsx(O, {}),
|
|
90
|
+
y
|
|
81
91
|
] })
|
|
82
|
-
] },
|
|
83
|
-
}),
|
|
84
|
-
|
|
92
|
+
] }, r.value);
|
|
93
|
+
}) }),
|
|
94
|
+
o && /* @__PURE__ */ i.jsx(j, { variant: "error", title: o })
|
|
85
95
|
] });
|
|
86
96
|
};
|
|
87
97
|
export {
|
|
88
|
-
|
|
98
|
+
A as default
|
|
89
99
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index4.js";
|
|
2
2
|
import { __require as s } from "../react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
|
@@ -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/
|
|
5
|
+
import ee from "../../../_virtual/index5.js";
|
|
6
6
|
import F from "../../../_virtual/browser.js";
|
|
7
|
-
import te from "../../../_virtual/
|
|
7
|
+
import te from "../../../_virtual/index6.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"] },
|