md-components-mdigial-azamat 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.
@@ -1,60 +1,63 @@
1
- import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
- import { WarningCardVariant as r, warningCardVariant as l } from "./model.js";
3
- import { I as a } from "../../Icon-70ea6cb8.js";
4
- import { b as c } from "../../const-637b0dca.js";
5
- import { B as d } from "../../index-6af94f99.js";
6
- import { C as p } from "../../ComponentContainer-cdb2528c.js";
7
- import { c as m } from "../../cn-6a4bf187.js";
8
- const x = [
1
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
+ import { WarningCardVariant as e, WarningCardVariantKey as p, warningCardVariant as m } from "./model.js";
3
+ import { I as x } from "../../Icon-70ea6cb8.js";
4
+ import { b as f } from "../../const-637b0dca.js";
5
+ import { B as g } from "../../index-6af94f99.js";
6
+ import { C } from "../../ComponentContainer-cdb2528c.js";
7
+ import { c as h } from "../../cn-6a4bf187.js";
8
+ const u = [
9
9
  "title",
10
10
  "title_color",
11
11
  "description",
12
12
  "description_color",
13
- c,
14
- l
15
- ], f = ({
16
- title: i,
17
- description: n,
18
- button: s,
19
- variant: e
20
- }) => /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(
21
- "div",
22
- {
23
- className: "rounded-[24px] p-6",
24
- style: { background: r[e].background },
25
- children: /* @__PURE__ */ t("div", { className: "flex gap-4 items-center justify-between", children: [
26
- /* @__PURE__ */ t("div", { className: "flex gap-4 items-center", children: [
27
- /* @__PURE__ */ o(
28
- a,
29
- {
30
- name: r[e].icon,
31
- size: 40
32
- }
33
- ),
34
- /* @__PURE__ */ t("div", { className: "flex flex-col gap-1", children: [
35
- /* @__PURE__ */ o(
36
- "p",
13
+ f,
14
+ m
15
+ ], N = ({
16
+ title: l,
17
+ description: c,
18
+ button: d,
19
+ variant: o = p.Orange
20
+ }) => {
21
+ var n, i, a, s;
22
+ return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(
23
+ "div",
24
+ {
25
+ className: "rounded-[24px] p-6",
26
+ style: { background: (n = e[o]) == null ? void 0 : n.background },
27
+ children: /* @__PURE__ */ t("div", { className: "flex gap-4 items-center justify-between", children: [
28
+ /* @__PURE__ */ t("div", { className: "flex gap-4 items-center", children: [
29
+ /* @__PURE__ */ r(
30
+ x,
37
31
  {
38
- className: m("text-[24px] leading-8 font-bold"),
39
- style: { color: r[e].textColor },
40
- children: i
32
+ name: (i = e[o]) == null ? void 0 : i.icon,
33
+ size: 40
41
34
  }
42
35
  ),
43
- /* @__PURE__ */ o(
44
- "p",
45
- {
46
- className: "text-[16px] leading-6",
47
- style: { color: r[e].textColor },
48
- children: n
49
- }
50
- )
51
- ] })
52
- ] }),
53
- /* @__PURE__ */ o(d, { ...s })
54
- ] })
55
- }
56
- ) });
57
- f.propsToEdit = x;
36
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-1", children: [
37
+ /* @__PURE__ */ r(
38
+ "p",
39
+ {
40
+ className: h("text-[24px] leading-8 font-bold"),
41
+ style: { color: (a = e[o]) == null ? void 0 : a.textColor },
42
+ children: l
43
+ }
44
+ ),
45
+ /* @__PURE__ */ r(
46
+ "p",
47
+ {
48
+ className: "text-[16px] leading-6",
49
+ style: { color: (s = e[o]) == null ? void 0 : s.textColor },
50
+ children: c
51
+ }
52
+ )
53
+ ] })
54
+ ] }),
55
+ /* @__PURE__ */ r(g, { ...d })
56
+ ] })
57
+ }
58
+ ) });
59
+ };
60
+ N.propsToEdit = u;
58
61
  export {
59
- f as WarningCard
62
+ N as WarningCard
60
63
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "md-components-mdigial-azamat",
3
3
  "author": "Azamat Raimbekov",
4
4
  "private": false,
5
- "version": "0.0.42",
5
+ "version": "0.0.43",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",