md-components-mdigial-azamat 0.0.63 → 0.0.65

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,4 +1,4 @@
1
- import { M as o, B as t, C as n, S as r, a as e, V as a, b as i, c as p, d as m, e as s, f as l, P as d, g as c, W as D, F as f, D as L, h as C, i as F, j as B, I as y, k, l as w, A as I, m as S, T as _, n as P, E as g, o as M, p as u, q as V, r as T, s as b, t as A } from "./data.mock-8d89834d.js";
1
+ import { M as o, B as t, C as n, S as r, a as e, V as a, b as i, c as p, d as m, e as s, f as l, P as d, g as c, W as D, F as f, D as L, h as C, i as F, j as B, I as y, k, l as w, A as I, m as S, T as _, n as P, E as g, o as M, p as u, q as V, r as T, s as b, t as A } from "./data.mock-8db3fb9a.js";
2
2
  import H from "./AnimatedSwiper/index.js";
3
3
  import { Banner as h } from "./Banner/Banner.js";
4
4
  import { CardIconList as q } from "./CardIconList/CardIconList.js";
@@ -38,7 +38,7 @@ import "./Cards/CardImage/CardImage.js";
38
38
  import "./Cards/ContentCard/ContentCard.js";
39
39
  import { WarningCard as lo } from "./Cards/WarningCard/WarningCard.js";
40
40
  import "./Cards/ColoredCard/index.js";
41
- import "./index-dbe5f044.js";
41
+ import "./index-50634e2b.js";
42
42
  import { DownloadFileBanner as co } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
43
43
  import { DownloadFileFull as Do } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
44
44
  import { DownloadFileHalf as fo } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
- import { S as r, F as f } from "../index-dbe5f044.js";
2
+ import { S as r, F as f } from "../index-50634e2b.js";
3
3
  import { FieldTypes as t } from "../Types/FiledTypes.js";
4
4
  import { C as m } from "../ComponentContainer-cdb2528c.js";
5
5
  import { c } from "../cn-6a4bf187.js";
@@ -1,9 +1,10 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../Types/FiledTypes.js";
3
+ import "../../index-875e92ce.js";
3
4
  import "../../index-9384c6d6.js";
4
5
  import "../../cn-6a4bf187.js";
5
- import { F as a, p as s } from "../../index-dbe5f044.js";
6
+ import { F as s, p as e } from "../../index-50634e2b.js";
6
7
  export {
7
- a as FeaturesCard,
8
- s as propsToEdit
8
+ s as FeaturesCard,
9
+ e as propsToEdit
9
10
  };
@@ -1,5 +1,5 @@
1
1
  import { C as o } from "../../index-b826f1c7.js";
2
- import { p as t } from "../../index-dbe5f044.js";
2
+ import { p as t } from "../../index-50634e2b.js";
3
3
  const p = {
4
4
  title: "Карточка функции",
5
5
  description: "Компонент для отображения карточки функции с иконкой, заголовком, описанием и ссылкой. Используется для представления отдельных функций или возможностей продукта.",
@@ -1,5 +1,5 @@
1
1
  import { OptionTypesEnum as e, DataTypesEnum as o } from "../../Types/FiledTypes.js";
2
- import { p as r } from "../../palette-6c943596.js";
2
+ import { p as r } from "../../palette-c2fe86ec.js";
3
3
  import { g as n } from "../../generateSelectOptions-7b23cdb8.js";
4
4
  var t = /* @__PURE__ */ ((a) => (a.Orange = "orange", a.Gray = "gray", a.Black = "black", a))(t || {});
5
5
  const c = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { downloadFile as p } from "../../../Actions/downloadFile/downloadFile.js";
3
3
  import { I as o } from "../../../Icon-70ea6cb8.js";
4
- import { p as a } from "../../../palette-6c943596.js";
4
+ import { p as a } from "../../../palette-c2fe86ec.js";
5
5
  import { B as m } from "../../../index-875e92ce.js";
6
6
  import { C as s } from "../../../ComponentContainer-cdb2528c.js";
7
7
  import { u as x } from "../../../useScreenSize-c1b64c02.js";
@@ -2,7 +2,7 @@ import { jsx as l, jsxs as a } from "react/jsx-runtime";
2
2
  import { downloadFile as s } from "../../../Actions/downloadFile/downloadFile.js";
3
3
  import { DataTypesEnum as p, FieldTypes as r } from "../../../Types/FiledTypes.js";
4
4
  import { I as t } from "../../../Icon-70ea6cb8.js";
5
- import { p as n } from "../../../palette-6c943596.js";
5
+ import { p as n } from "../../../palette-c2fe86ec.js";
6
6
  import { B as i } from "../../../index-875e92ce.js";
7
7
  import { b as c } from "../../../const-53dff524.js";
8
8
  import { C as d } from "../../../ComponentContainer-cdb2528c.js";
@@ -2,7 +2,7 @@ import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
2
  import { downloadFile as i } from "../../../Actions/downloadFile/downloadFile.js";
3
3
  import { DataTypesEnum as d, FieldTypes as a } from "../../../Types/FiledTypes.js";
4
4
  import { I as e } from "../../../Icon-70ea6cb8.js";
5
- import { p as s } from "../../../palette-6c943596.js";
5
+ import { p as s } from "../../../palette-c2fe86ec.js";
6
6
  import { B as c } from "../../../index-875e92ce.js";
7
7
  import { b as t } from "../../../const-53dff524.js";
8
8
  import { C as f } from "../../../ComponentContainer-cdb2528c.js";
@@ -2,7 +2,7 @@ import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
2
  import { downloadFile as s } from "../../../Actions/downloadFile/downloadFile.js";
3
3
  import { DataTypesEnum as i, FieldTypes as a } from "../../../Types/FiledTypes.js";
4
4
  import { I as e } from "../../../Icon-70ea6cb8.js";
5
- import { p } from "../../../palette-6c943596.js";
5
+ import { p } from "../../../palette-c2fe86ec.js";
6
6
  import { B as d } from "../../../index-875e92ce.js";
7
7
  import { b as c } from "../../../const-53dff524.js";
8
8
  import { C as t } from "../../../ComponentContainer-cdb2528c.js";
@@ -1,11 +1,13 @@
1
1
  import { jsxs as a, jsx as e, Fragment as _ } from "react/jsx-runtime";
2
2
  import { forwardRef as S, useState as k } from "react";
3
- import { u as I } from "../../index.esm-67811428.js";
3
+ import { u as P } from "../../index.esm-67811428.js";
4
4
  import { B as L } from "../../index-875e92ce.js";
5
- import { a as P, b as R } from "../../const-53dff524.js";
5
+ import { a as R, b as D } from "../../const-53dff524.js";
6
6
  import { c as x } from "../../cn-6a4bf187.js";
7
+ import { C as E } from "../../ComponentContainer-cdb2528c.js";
8
+ import { u as M } from "../../useScreenSize-c1b64c02.js";
7
9
  const B = S(
8
- ({ className: n, label: s, error: o, ...l }, i) => /* @__PURE__ */ a("div", { className: "w-full", children: [
10
+ ({ className: i, label: s, error: o, ...n }, l) => /* @__PURE__ */ a("div", { className: "w-full", children: [
9
11
  /* @__PURE__ */ a("label", { className: "flex items-start gap-3 cursor-pointer group", children: [
10
12
  /* @__PURE__ */ a("div", { className: "relative flex items-center justify-center mt-0.5", children: [
11
13
  /* @__PURE__ */ e(
@@ -13,8 +15,8 @@ const B = S(
13
15
  {
14
16
  type: "checkbox",
15
17
  className: "peer sr-only",
16
- ref: i,
17
- ...l
18
+ ref: l,
19
+ ...n
18
20
  }
19
21
  ),
20
22
  /* @__PURE__ */ e(
@@ -32,7 +34,7 @@ const B = S(
32
34
  "after:rotate-45 after:-translate-x-[2px] after:translate-y-[-2px] after:top-1/2 after:left-1/2",
33
35
  "after:translate-y-[-50%] after:translate-x-[-50%] peer-checked:after:opacity-100",
34
36
  o && "border-red-500",
35
- n
37
+ i
36
38
  )
37
39
  }
38
40
  )
@@ -54,8 +56,8 @@ const B = S(
54
56
  );
55
57
  B.displayName = "Checkbox";
56
58
  const p = S(
57
- ({ className: n, type: s, error: o, label: l, ...i }, m) => /* @__PURE__ */ a("div", { className: "w-full", children: [
58
- l && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: l }),
59
+ ({ className: i, type: s, error: o, label: n, ...l }, m) => /* @__PURE__ */ a("div", { className: "w-full", children: [
60
+ n && /* @__PURE__ */ e("label", { className: "block text-sm font-medium text-blackBG mb-2", children: n }),
59
61
  /* @__PURE__ */ e(
60
62
  "input",
61
63
  {
@@ -68,44 +70,44 @@ const p = S(
68
70
  "focus:border-greenLight focus:outline-none focus:shadow-[0_0_0_4px_rgba(22,163,74,0.15)] focus:ring-0",
69
71
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-lightGray",
70
72
  o && "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_4px_rgba(239,68,68,0.15)]",
71
- n
73
+ i
72
74
  ),
73
75
  ref: m,
74
- ...i
76
+ ...l
75
77
  }
76
78
  ),
77
79
  o && /* @__PURE__ */ e("p", { className: "mt-2 text-sm text-red-500", children: o })
78
80
  ] })
79
81
  );
80
82
  p.displayName = "Input";
81
- const D = ["title", "subtitle", "color"], E = ({
82
- title: n,
83
+ const V = ["title", "subtitle", "color"], W = ({
84
+ title: i,
83
85
  subtitle: s,
84
86
  color: o,
85
- gridCols: l = 2,
86
- gridRow: i = 2
87
+ gridCols: n = 2,
88
+ gridRow: l = 2
87
89
  }) => {
88
90
  var b, w, y, v, N;
89
- const [m, u] = k(!1), [h, f] = k(!1), {
91
+ const [m, u] = k(!1), [f, h] = k(!1), C = M(960), {
90
92
  register: d,
91
93
  handleSubmit: j,
92
- watch: C,
94
+ watch: z,
93
95
  reset: F,
94
96
  formState: { errors: c }
95
- } = I({
97
+ } = P({
96
98
  defaultValues: {
97
99
  fio: "",
98
100
  phone: "",
99
101
  business_category: "",
100
102
  agreement: !1
101
103
  }
102
- }), G = C("agreement"), T = async (t) => {
104
+ }), G = z("agreement"), T = async (t) => {
103
105
  try {
104
- f(!0), console.log("Form submitted:", t), await new Promise((r) => setTimeout(r, 1e3)), u(!0);
106
+ h(!0), console.log("Form submitted:", t), await new Promise((r) => setTimeout(r, 1e3)), u(!0);
105
107
  } catch (r) {
106
108
  console.error("Error submitting form:", r);
107
109
  } finally {
108
- f(!1);
110
+ h(!1);
109
111
  }
110
112
  }, g = (t) => {
111
113
  const r = /^[а-яА-ЯёЁa-zA-Z\s-]+$/;
@@ -113,11 +115,11 @@ const D = ["title", "subtitle", "color"], E = ({
113
115
  }, $ = (t) => {
114
116
  const r = /^0\d{9}$/;
115
117
  return t ? r.test(t) ? !0 : "Некорректный номер телефона" : "Поле обязательно для заполнения";
116
- }, z = (t) => {
118
+ }, I = (t) => {
117
119
  let r = t.target.value.replace(/\D/g, "");
118
120
  r.length > 0 && !r.startsWith("0") && (r = "0" + r), t.target.value = r.slice(0, 10);
119
121
  };
120
- return /* @__PURE__ */ e(
122
+ return /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
121
123
  "form",
122
124
  {
123
125
  onSubmit: j(T),
@@ -132,7 +134,7 @@ const D = ["title", "subtitle", "color"], E = ({
132
134
  className: "bg-white rounded-[24px] shadow-[0px_8px_24px_rgba(0,0,0,0.08),0px_-8px_0px_#45464b] w-full flex flex-col items-center justify-center py-[72px] px-[96px] max-tablet:py-[40px] max-tablet:px-[32px] transition-all duration-300 hover:shadow-[0px_12px_32px_rgba(0,0,0,0.12),0px_-8px_0px_#45464b] mt-[8px]",
133
135
  children: [
134
136
  /* @__PURE__ */ a("div", { className: "text-center mb-10 max-tablet:mb-8", children: [
135
- /* @__PURE__ */ e("h2", { className: "text-[36px] leading-[44px] font-semibold m-0 mb-3 text-blackBG max-tablet:text-[28px] max-tablet:leading-[36px]", children: n }),
137
+ /* @__PURE__ */ e("h2", { className: "text-[36px] leading-[44px] font-semibold m-0 mb-3 text-blackBG max-tablet:text-[28px] max-tablet:leading-[36px]", children: i }),
136
138
  /* @__PURE__ */ e("span", { className: "text-[18px] leading-[26px] text-graySoft max-tablet:text-[16px] max-tablet:leading-[24px]", children: s })
137
139
  ] }),
138
140
  m ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center w-[640px] gap-8 max-tablet:w-full animate-in fade-in duration-500", children: /* @__PURE__ */ a("div", { className: "text-center", children: [
@@ -174,8 +176,8 @@ const D = ["title", "subtitle", "color"], E = ({
174
176
  {
175
177
  className: "w-[640px] mb-8 max-tablet:w-full grid gap-6",
176
178
  style: {
177
- gridTemplateColumns: `repeat(${l}, 1fr)`,
178
- gridTemplateRows: `repeat(${i}, auto)`
179
+ gridTemplateColumns: `repeat(${C ? 1 : n}, 1fr)`,
180
+ gridTemplateRows: `repeat(${l}, auto)`
179
181
  },
180
182
  children: [
181
183
  /* @__PURE__ */ e(
@@ -196,7 +198,7 @@ const D = ["title", "subtitle", "color"], E = ({
196
198
  inputMode: "numeric",
197
199
  ...d("phone", {
198
200
  validate: $,
199
- onChange: z
201
+ onChange: I
200
202
  }),
201
203
  error: (w = c.phone) == null ? void 0 : w.message,
202
204
  maxLength: 10
@@ -250,12 +252,12 @@ const D = ["title", "subtitle", "color"], E = ({
250
252
  /* @__PURE__ */ e("div", { className: "mt-6 w-[640px] max-tablet:w-full", children: /* @__PURE__ */ e(
251
253
  L,
252
254
  {
253
- loading: h,
255
+ loading: f,
254
256
  className: "w-full whitespace-nowrap transition-all duration-200 hover:scale-[1.02] active:scale-[0.98]",
255
257
  type: "submit",
256
- size: P.XL,
257
- variant: R.Primary,
258
- disabled: !G || h,
258
+ size: R.XL,
259
+ variant: D.Primary,
260
+ disabled: !G || f,
259
261
  children: "Отправить заявку"
260
262
  }
261
263
  ) })
@@ -264,10 +266,10 @@ const D = ["title", "subtitle", "color"], E = ({
264
266
  }
265
267
  )
266
268
  }
267
- );
269
+ ) });
268
270
  };
269
- E.propsToEdit = D;
271
+ W.propsToEdit = V;
270
272
  export {
271
- E as FormDefault,
272
- D as propsToEdit
273
+ W as FormDefault,
274
+ V as propsToEdit
273
275
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { c as f } from "../componentsMap-09f309da.js";
2
+ import { c as f } from "../componentsMap-7fd0c870.js";
3
3
  const a = (p) => p.map((r) => {
4
4
  const s = f[r.key];
5
5
  if (!s)
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
- import { c as i } from "../componentsMap-09f309da.js";
2
+ import { c as i } from "../componentsMap-7fd0c870.js";
3
3
  const d = ({ components: o, device: p }) => /* @__PURE__ */ n(t, { children: o.map((r) => {
4
4
  const e = i[r.key];
5
5
  return e ? /* @__PURE__ */ n(
@@ -1,4 +1,4 @@
1
- import { M as a, B as t, u as s, C as n, S as D, a as r, V as e, b as i, c as o, d, P as l, e as C, f as B, g as L, W as m, v as w, w as p, F as I, h as g, D as F, i as S, j as c, I as M, x as P, k as f, l as u, A as V, m as T, T as W, n as b, E as x, o as h, p as k, q, r as v, s as y, t as A } from "../data.mock-8d89834d.js";
1
+ import { M as a, B as t, u as s, C as n, S as D, a as r, V as e, b as i, c as o, d, P as l, e as C, f as B, g as L, W as m, v as w, w as p, F as I, h as g, D as F, i as S, j as c, I as M, x as P, k as f, l as u, A as V, m as T, T as W, n as b, E as x, o as h, p as k, q, r as v, s as y, t as A } from "../data.mock-8db3fb9a.js";
2
2
  const j = [
3
3
  a,
4
4
  t,