md-components-mdigial-azamat 0.0.45 → 0.0.46

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.
Files changed (143) hide show
  1. package/dist/AllComponents.js +167 -33
  2. package/dist/AllComponentsInfo.js +95 -0
  3. package/dist/AnimatedSwiper/index.js +139 -10
  4. package/dist/AnimatedSwiper/info.js +11 -0
  5. package/dist/Banner/Banner.js +4 -3
  6. package/dist/Banner/info.js +11 -0
  7. package/dist/BannerAndText/index.js +2 -1
  8. package/dist/BannerAndText/info.js +11 -0
  9. package/dist/CardIconList/CardIconList.js +3 -2
  10. package/dist/CardIconList/info.js +11 -0
  11. package/dist/CardImageList/CardImageList.js +4 -3
  12. package/dist/CardImageList/info.js +11 -0
  13. package/dist/CardImageSecondary/CardImageSecondary.js +2 -1
  14. package/dist/CardImageSecondary/info.js +11 -0
  15. package/dist/CardImageSecondaryList/CardImageSecondaryList.js +2 -1
  16. package/dist/CardImageSecondaryList/info.js +11 -0
  17. package/dist/CardInfoTable/index.js +4 -3
  18. package/dist/CardInfoTable/info.js +11 -0
  19. package/dist/Cards/CardImage/CardImage.js +2 -1
  20. package/dist/Cards/CardImage/info.js +11 -0
  21. package/dist/Cards/ColoredCard/index.js +2 -1
  22. package/dist/Cards/ColoredCard/info.js +11 -0
  23. package/dist/Cards/ContentCard/ContentCard.js +36 -35
  24. package/dist/Cards/ContentCard/info.js +11 -0
  25. package/dist/Cards/FeaturesCard/index.js +3 -2
  26. package/dist/Cards/FeaturesCard/info.js +11 -0
  27. package/dist/Cards/WarningCard/WarningCard.js +7 -6
  28. package/dist/Cards/WarningCard/info.js +11 -0
  29. package/dist/ContentCardList/ContentCardList.js +23 -19
  30. package/dist/ContentCardList/info.js +11 -0
  31. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +3 -2
  32. package/dist/DownloadFile/components/DownloadFileBanner/info.js +11 -0
  33. package/dist/DownloadFile/components/DownloadFileBright/index.js +3 -2
  34. package/dist/DownloadFile/components/DownloadFileBright/info.js +11 -0
  35. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +4 -3
  36. package/dist/DownloadFile/components/DownloadFileFull/info.js +11 -0
  37. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +4 -3
  38. package/dist/DownloadFile/components/DownloadFileHalf/info.js +11 -0
  39. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +5 -4
  40. package/dist/DownloadFile/components/DownloadFileMini/info.js +11 -0
  41. package/dist/Faq/Faq.js +2 -1
  42. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +2 -2
  43. package/dist/Faq/info.js +11 -0
  44. package/dist/Footer/Footer.js +96 -54
  45. package/dist/Footer/info.js +10 -0
  46. package/dist/Header/Header.js +60 -6
  47. package/dist/Header/components/HeaderCard/HeaderCard.js +2 -2
  48. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +1 -1
  49. package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +52 -44
  50. package/dist/Header/components/HeaderMobile/HeaderMobile.js +71 -9
  51. package/dist/Header/components/HeaderMobile/index.js +1 -1
  52. package/dist/Header/components/HeaderSearch/HeaderSearch.js +157 -11
  53. package/dist/Header/components/HeaderSearch/index.js +2 -2
  54. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
  55. package/dist/Header/components/HeaderWeb/HeaderWeb.js +11 -11
  56. package/dist/Header/components/SelectLanguage/SelectLanguage.js +1 -1
  57. package/dist/Header/components/TabsOutlined/TabsOutlined.js +11 -10
  58. package/dist/Header/index.js +2 -2
  59. package/dist/Header/info.js +10 -0
  60. package/dist/HeroPossibilityBanner/index.js +2 -1
  61. package/dist/HeroPossibilityBanner/info.js +11 -0
  62. package/dist/HtmlContent/HtmlContent.js +2 -1
  63. package/dist/HtmlContent/info.js +10 -0
  64. package/dist/InfoBanner/index.js +3 -2
  65. package/dist/InfoBanner/info.js +11 -0
  66. package/dist/InfoBannerList/InfoBannerList.js +49 -7
  67. package/dist/InfoBannerList/index.js +2 -2
  68. package/dist/InfoBannerList/info.js +11 -0
  69. package/dist/InstructionList/InstructionList.js +31 -7
  70. package/dist/InstructionList/components/InstructionCard/InstructionCard.js +80 -46
  71. package/dist/InstructionList/components/InstructionCard/index.js +1 -1
  72. package/dist/InstructionList/index.js +1 -1
  73. package/dist/InstructionList/info.js +11 -0
  74. package/dist/IntroBanner/IntroBanner.js +3 -2
  75. package/dist/IntroBanner/info.js +11 -0
  76. package/dist/MainBanner/MainBanner.js +4 -3
  77. package/dist/MainBanner/info.js +11 -0
  78. package/dist/MultiCards/index.js +2 -1
  79. package/dist/MultiCards/info.js +11 -0
  80. package/dist/PageViewer/PageViewer.js +4 -43
  81. package/dist/PageViewer/renderComponents.js +1 -1
  82. package/dist/Partners/Partners.js +2 -1
  83. package/dist/Partners/info.js +11 -0
  84. package/dist/PartnersColors/PartnersColors.js +2 -1
  85. package/dist/PartnersColors/info.js +11 -0
  86. package/dist/PreviewList/PreviewList.js +31 -6
  87. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -45
  88. package/dist/PreviewList/components/PreviewCard/index.js +2 -2
  89. package/dist/PreviewList/index.js +1 -1
  90. package/dist/PreviewList/info.js +11 -0
  91. package/dist/PromoPoster/PromoPoster.js +45 -7
  92. package/dist/PromoPoster/info.js +11 -0
  93. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  94. package/dist/RenderAllComponents/const.js +1 -1
  95. package/dist/Segments/Segments.js +2 -1
  96. package/dist/Segments/info.js +11 -0
  97. package/dist/Space/Space.js +2 -1
  98. package/dist/Space/info.js +11 -0
  99. package/dist/StandartTable/components/CardMarkedRow/index.js +88 -46
  100. package/dist/StandartTable/components/CardWarning/index.js +2 -2
  101. package/dist/StandartTable/index.js +76 -7
  102. package/dist/StandartTable/info.js +11 -0
  103. package/dist/Stepper/Stepper.js +4 -3
  104. package/dist/Stepper/info.js +11 -0
  105. package/dist/SwiperList/SwiperList.js +119 -10
  106. package/dist/SwiperList/index.js +1 -1
  107. package/dist/SwiperList/info.js +11 -0
  108. package/dist/TasksBanner/TasksBanner.js +132 -9
  109. package/dist/TasksBanner/index.js +2 -2
  110. package/dist/TasksBanner/info.js +11 -0
  111. package/dist/TasksBannerList/TasksBannerList.js +36 -5
  112. package/dist/TasksBannerList/index.js +2 -2
  113. package/dist/TasksBannerList/info.js +11 -0
  114. package/dist/Video/VideoFull/VideoFull.js +2 -1
  115. package/dist/Video/VideoFull/info.js +11 -0
  116. package/dist/Video/VideoList/VideoList.js +2 -1
  117. package/dist/Video/VideoList/info.js +11 -0
  118. package/dist/Video/VideoListMini/VideoListMini.js +2 -1
  119. package/dist/Video/VideoListMini/info.js +11 -0
  120. package/dist/VideoMainBanner/VideoMainBanner.js +3 -2
  121. package/dist/VideoMainBanner/info.js +11 -0
  122. package/dist/assets/TasksBanner.css +1 -0
  123. package/dist/assets/{index2.css → navigation.css} +1 -1
  124. package/dist/clientApi-642fea4b.js +25 -0
  125. package/dist/componentsMap-b3ef1658.js +75 -0
  126. package/dist/{const-637b0dca.js → const-53dff524.js} +3 -3
  127. package/dist/createBoolean-56064b0d.js +12 -0
  128. package/dist/{data.mock-483400cb.js → data.mock-2412b65a.js} +94 -96
  129. package/dist/{index-6af94f99.js → index-10605794.js} +1 -1
  130. package/dist/index-1a32da94.js +4 -0
  131. package/dist/{index-815f0132.js → index-b4c61de3.js} +9 -8
  132. package/dist/index.module-c8833286.js +83 -0
  133. package/dist/{languages-list-8419e560.js → languages-list-87ab3324.js} +2 -2
  134. package/dist/main.js +88 -81
  135. package/dist/mousewheel-2cf27f39.js +153 -0
  136. package/dist/navigation-48c90d3b.js +183 -0
  137. package/dist/routes-76228734.js +109 -0
  138. package/dist/{swiper-react-0815edaf.js → swiper-react-bfbb44d6.js} +507 -654
  139. package/package.json +1 -1
  140. package/dist/componentsMap-0e7046ee.js +0 -67
  141. package/dist/index-3a534581.js +0 -261
  142. package/dist/index-aa718078.js +0 -1229
  143. package/dist/routes-382632ac.js +0 -7
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.45",
5
+ "version": "0.0.46",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",
@@ -1,67 +0,0 @@
1
- import { I as r, P as o, S as i, A as m, a as t, T as a, b as n, c as e, H as p } from "./index-aa718078.js";
2
- import { Banner as s } from "./Banner/Banner.js";
3
- import { CardIconList as f } from "./CardIconList/CardIconList.js";
4
- import { CardImageList as d } from "./CardImageList/CardImageList.js";
5
- import { CardImageSecondaryList as l } from "./CardImageSecondaryList/CardImageSecondaryList.js";
6
- import { CardInfoTable as L } from "./CardInfoTable/index.js";
7
- import { WarningCard as C } from "./Cards/WarningCard/WarningCard.js";
8
- import { ContentCardList as F } from "./ContentCardList/ContentCardList.js";
9
- import { DownloadFileBanner as c } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
10
- import { DownloadFileBright as w } from "./DownloadFile/components/DownloadFileBright/index.js";
11
- import { DownloadFileFull as B } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
12
- import { DownloadFileHalf as I } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
13
- import { DownloadFileMini as S } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
14
- import { Faq as M } from "./Faq/Faq.js";
15
- import { Footer as P } from "./Footer/Footer.js";
16
- import { IntroBanner as g } from "./IntroBanner/IntroBanner.js";
17
- import { MainBanner as D } from "./MainBanner/MainBanner.js";
18
- import { MultiCards as u } from "./MultiCards/index.js";
19
- import { Partners as T } from "./Partners/Partners.js";
20
- import { PartnersColors as V } from "./PartnersColors/PartnersColors.js";
21
- import { Segments as b } from "./Segments/Segments.js";
22
- import { Space as H } from "./Space/Space.js";
23
- import { Stepper as A } from "./Stepper/Stepper.js";
24
- import { VideoFull as h } from "./Video/VideoFull/VideoFull.js";
25
- import { VideoList as k } from "./Video/VideoList/VideoList.js";
26
- import { VideoListMini as q } from "./Video/VideoListMini/VideoListMini.js";
27
- import { VideoMainBanner as v } from "./VideoMainBanner/VideoMainBanner.js";
28
- const pr = {
29
- Banner: s,
30
- CardImageList: d,
31
- Stepper: A,
32
- Segments: b,
33
- VideoFull: h,
34
- VideoList: k,
35
- VideoListMini: q,
36
- ContentCardList: F,
37
- CardIconList: f,
38
- MultiCards: u,
39
- Partners: T,
40
- PartnersColors: V,
41
- MainBanner: D,
42
- WarningCard: C,
43
- Faq: M,
44
- DownloadFileBanner: c,
45
- DownloadFileHalf: I,
46
- DownloadFileFull: B,
47
- DownloadFileMini: S,
48
- InstructionList: r,
49
- PreviewList: o,
50
- SwiperList: i,
51
- AnimatedSwiper: m,
52
- InfoBannerList: t,
53
- TasksBannerList: a,
54
- VideoMainBanner: v,
55
- Space: H,
56
- PromoPoster: n,
57
- CardImageSecondaryList: l,
58
- CardInfoTable: L,
59
- StandartTable: e,
60
- IntroBanner: g,
61
- DownloadFileBright: w,
62
- Header: p,
63
- Footer: P
64
- };
65
- export {
66
- pr as c
67
- };
@@ -1,261 +0,0 @@
1
- import { jsx as l, jsxs as _ } from "react/jsx-runtime";
2
- import { useRef as h, useEffect as $, useMemo as P, useState as I } from "react";
3
- import { S as M, C as W } from "./search-dd4eb6f8.js";
4
- import { HtmlContent as Y } from "./HtmlContent/HtmlContent.js";
5
- import { a as q } from "./languages-list-8419e560.js";
6
- import { u as z } from "./useClickOutside-197b0df2.js";
7
- import { I as G } from "./index-2265d593.js";
8
- import { f as B, g as K, a as Q } from "./header-97863d08.js";
9
- import { TabsOutlined as V } from "./Header/components/TabsOutlined/TabsOutlined.js";
10
- function J(o, e, t, p) {
11
- var i = this, s = h(null), f = h(0), b = h(0), a = h(null), m = h([]), w = h(), x = h(), E = h(o), g = h(!0);
12
- E.current = o;
13
- var d = typeof window < "u", r = !e && e !== 0 && d;
14
- if (typeof o != "function")
15
- throw new TypeError("Expected a function");
16
- e = +e || 0;
17
- var u = !!(t = t || {}).leading, R = !("trailing" in t) || !!t.trailing, v = "maxWait" in t, C = "debounceOnServer" in t && !!t.debounceOnServer, N = v ? Math.max(+t.maxWait || 0, e) : null;
18
- $(function() {
19
- return g.current = !0, function() {
20
- g.current = !1;
21
- };
22
- }, []);
23
- var O = P(function() {
24
- var F = function(n) {
25
- var c = m.current, A = w.current;
26
- return m.current = w.current = null, f.current = n, b.current = b.current || n, x.current = E.current.apply(A, c);
27
- }, T = function(n, c) {
28
- r && cancelAnimationFrame(a.current), a.current = r ? requestAnimationFrame(n) : setTimeout(n, c);
29
- }, k = function(n) {
30
- if (!g.current)
31
- return !1;
32
- var c = n - s.current;
33
- return !s.current || c >= e || c < 0 || v && n - f.current >= N;
34
- }, H = function(n) {
35
- return a.current = null, R && m.current ? F(n) : (m.current = w.current = null, x.current);
36
- }, S = function n() {
37
- var c = Date.now();
38
- if (u && b.current === f.current && U(), k(c))
39
- return H(c);
40
- if (g.current) {
41
- var A = e - (c - s.current), D = v ? Math.min(A, N - (c - f.current)) : A;
42
- T(n, D);
43
- }
44
- }, U = function() {
45
- p && p({});
46
- }, y = function() {
47
- if (d || C) {
48
- var n = Date.now(), c = k(n);
49
- if (m.current = [].slice.call(arguments), w.current = i, s.current = n, c) {
50
- if (!a.current && g.current)
51
- return f.current = s.current, T(S, e), u ? F(s.current) : x.current;
52
- if (v)
53
- return T(S, e), F(s.current);
54
- }
55
- return a.current || T(S, e), x.current;
56
- }
57
- };
58
- return y.cancel = function() {
59
- var n = a.current;
60
- n && (r ? cancelAnimationFrame(a.current) : clearTimeout(a.current)), f.current = 0, m.current = s.current = w.current = a.current = null, n && p && p({});
61
- }, y.isPending = function() {
62
- return !!a.current;
63
- }, y.flush = function() {
64
- return a.current ? H(Date.now()) : x.current;
65
- }, y;
66
- }, [u, v, e, N, R, r, d, C, p]);
67
- return O;
68
- }
69
- const X = {}.VITE_API_URL || "https://mbank.kg/api/", Z = "app_language", L = () => localStorage.getItem(Z) || q.RU, j = async (o, e = {}) => {
70
- const t = L(), p = `${X}${o}`;
71
- try {
72
- const i = await fetch(p, {
73
- ...e,
74
- headers: {
75
- "Accept-Language": t,
76
- "Content-Type": "application/json",
77
- ...e.headers
78
- }
79
- });
80
- if (!i.ok) {
81
- if (e.method === "GET" || !e.method)
82
- return { data: null };
83
- throw new Error(`HTTP error! status: ${i.status}`);
84
- }
85
- return { data: await i.json() };
86
- } catch (i) {
87
- if (e.method === "GET" || !e.method)
88
- return { data: null };
89
- throw i;
90
- }
91
- }, ee = {
92
- getHeaderSections(o, e) {
93
- const t = `v2/header/?page_type=${e || ""}`;
94
- return j(t, {
95
- method: "GET",
96
- headers: {
97
- "Accept-Language": o || L()
98
- }
99
- });
100
- },
101
- searchHeader(o, e) {
102
- const t = `v2/search/?search=${encodeURIComponent(o)}`;
103
- return j(t, {
104
- method: "GET",
105
- headers: {
106
- "Accept-Language": e || L()
107
- }
108
- });
109
- }
110
- }, re = 8, de = ({ closeSearch: o, onClick: e }) => {
111
- const [t, p] = I(8), [i, s] = I(!1), { ref: f } = z(i, () => {
112
- s(!1);
113
- }), [b, a] = I(), m = J(async (r) => {
114
- if (r.trim() !== "")
115
- try {
116
- const { data: u } = await ee.searchHeader(r);
117
- a(u), s(!0);
118
- } catch {
119
- console.log("No results found");
120
- }
121
- }, 500), w = (r) => {
122
- const u = r.target.value;
123
- m(u);
124
- }, x = b ? B(b) : { arrays: {}, nonArrays: {} }, g = [...K(x)].sort(
125
- (r, u) => r.title === "common_words.all" ? -1 : u.title === "common_words.all" ? 1 : 0
126
- ), d = Q(
127
- re,
128
- t,
129
- x,
130
- g
131
- );
132
- return /* @__PURE__ */ l("div", { className: "w-full max-w-[1200px] mx-auto", children: /* @__PURE__ */ _("div", { className: "relative w-full", children: [
133
- /* @__PURE__ */ _("div", { className: "flex items-center gap-2 relative", children: [
134
- /* @__PURE__ */ l(
135
- "input",
136
- {
137
- className: `
138
- w-full h-[52px] rounded-2xl bg-[#F4F6F7]
139
- pl-[44px] pr-[170px] py-[4px] text-[16px] leading-[24px]
140
- text-[#0E0F11] transition-all outline-none border-0
141
- placeholder:text-[#768793]
142
- `,
143
- type: "text",
144
- placeholder: "Поиск...",
145
- onChange: w
146
- }
147
- ),
148
- /* @__PURE__ */ l(
149
- "span",
150
- {
151
- className: `
152
- absolute left-[5px] top-1/2 -translate-y-1/2
153
- w-9 h-9 flex items-center justify-center cursor-pointer p-[7px]
154
- `,
155
- children: /* @__PURE__ */ l(
156
- G,
157
- {
158
- src: M,
159
- alt: "search icon",
160
- width: 18,
161
- height: 18
162
- }
163
- )
164
- }
165
- ),
166
- /* @__PURE__ */ l(
167
- "button",
168
- {
169
- type: "button",
170
- className: `
171
- w-9 h-9 flex items-center justify-center cursor-pointer
172
- bg-[#EAEFF0] rounded-full p-[10px] border-none
173
- `,
174
- onClick: o,
175
- children: /* @__PURE__ */ l(
176
- G,
177
- {
178
- src: W,
179
- alt: "close icon",
180
- width: 16,
181
- height: 16
182
- }
183
- )
184
- }
185
- )
186
- ] }),
187
- i && (d != null && d.length ? /* @__PURE__ */ _(
188
- "div",
189
- {
190
- ref: f,
191
- className: `
192
- flex flex-col gap-3 absolute top-[70px] left-0 w-full max-h-[400px]
193
- p-[12px_20px_20px_20px] rounded-[20px] bg-white z-[1000]
194
- shadow-[0_4px_25px_rgba(0,0,0,0.05)]
195
- animate-fadeInDropdown
196
- `,
197
- children: [
198
- /* @__PURE__ */ l(
199
- V,
200
- {
201
- onClick: (r) => p(r),
202
- activeTab: t,
203
- navigation: g
204
- }
205
- ),
206
- /* @__PURE__ */ l(
207
- "div",
208
- {
209
- className: `
210
- flex flex-col gap-2 overflow-y-auto
211
- scrollbar-thin scrollbar-thumb-black/40 scrollbar-track-transparent
212
- `,
213
- children: d == null ? void 0 : d.map((r, u) => /* @__PURE__ */ _(
214
- "a",
215
- {
216
- href: (r == null ? void 0 : r.link) || "#",
217
- className: `
218
- flex flex-col gap-[2px] p-[8px_12px]
219
- hover:bg-[#F4F6F7] rounded-[12px]
220
- `,
221
- onClick: e,
222
- children: [
223
- /* @__PURE__ */ l("span", { className: "text-[#0E0F11] text-[16px] font-medium leading-[24px]", children: r == null ? void 0 : r.title }),
224
- /* @__PURE__ */ l(
225
- Y,
226
- {
227
- className: `
228
- text-[#768793] text-[14px] leading-[20px]
229
- font-[tabular-nums] overflow-hidden
230
- `,
231
- data: (r == null ? void 0 : r.body) ?? ""
232
- }
233
- )
234
- ]
235
- },
236
- u
237
- ))
238
- }
239
- )
240
- ]
241
- }
242
- ) : /* @__PURE__ */ l(
243
- "div",
244
- {
245
- ref: f,
246
- className: `
247
- absolute top-[70px] left-0 w-full
248
- p-[20px] rounded-[20px] bg-white shadow
249
- text-[16px] font-medium
250
- `,
251
- children: "Ничего не найдено"
252
- }
253
- ))
254
- ] }) });
255
- };
256
- export {
257
- de as H,
258
- re as T,
259
- ee as a,
260
- J as c
261
- };