qaema-ui 0.0.44 → 0.0.45

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