md-components-mdigial-azamat 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.
Files changed (44) hide show
  1. package/dist/AllComponents.js +3 -4
  2. package/dist/AnimatedSwiper/index.js +2 -2
  3. package/dist/CardImageSecondaryList/CardImageSecondaryList.js +7 -7
  4. package/dist/Header/Header.js +1 -1
  5. package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +2 -3
  6. package/dist/Header/components/HeaderMobile/HeaderMobile.js +1 -1
  7. package/dist/Header/components/HeaderMobile/index.js +1 -1
  8. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +6 -7
  9. package/dist/Header/components/TabsOutlined/TabsOutlined.js +10 -11
  10. package/dist/Header/index.js +1 -1
  11. package/dist/InfoBannerList/InfoBannerList.js +1 -1
  12. package/dist/InfoBannerList/index.js +1 -1
  13. package/dist/InstructionList/InstructionList.js +1 -1
  14. package/dist/InstructionList/components/InstructionCard/InstructionCard.js +3 -4
  15. package/dist/InstructionList/components/InstructionCard/index.js +1 -1
  16. package/dist/InstructionList/index.js +1 -1
  17. package/dist/PageViewer/PageViewer.js +1 -1
  18. package/dist/PageViewer/renderComponents.js +1 -1
  19. package/dist/PreviewList/PreviewList.js +1 -1
  20. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +3 -4
  21. package/dist/PreviewList/components/PreviewCard/index.js +1 -1
  22. package/dist/PreviewList/index.js +1 -1
  23. package/dist/PromoPoster/PromoPoster.js +1 -1
  24. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  25. package/dist/StandartTable/components/CardMarkedRow/index.js +3 -4
  26. package/dist/StandartTable/index.js +1 -1
  27. package/dist/SwiperList/SwiperList.js +3 -4
  28. package/dist/SwiperList/index.js +1 -1
  29. package/dist/TasksBanner/TasksBanner.js +1 -1
  30. package/dist/TasksBanner/index.js +1 -1
  31. package/dist/TasksBannerList/TasksBannerList.js +1 -1
  32. package/dist/TasksBannerList/index.js +1 -1
  33. package/dist/VideoMainBanner/VideoMainBanner.js +15 -15
  34. package/dist/assets/index2.css +1 -1
  35. package/dist/componentsMap-0e7046ee.js +67 -0
  36. package/dist/index-aa718078.js +1229 -0
  37. package/dist/main.js +13 -13
  38. package/dist/{swiper-react-90953710.js → swiper-react-0815edaf.js} +652 -505
  39. package/package.json +1 -1
  40. package/dist/assets/index3.css +0 -1
  41. package/dist/componentsMap-0b4c8ca6.js +0 -68
  42. package/dist/index-3b24fe0f.js +0 -314
  43. package/dist/index-54813771.js +0 -925
  44. package/dist/mousewheel-865ae601.js +0 -153
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.44",
5
+ "version": "0.0.45",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- .htmlContent{font-size:15px;line-height:22px;color:#40474f;margin:0}.htmlContent ul{display:grid;grid-template-columns:repeat(2,1fr);-moz-column-gap:34px;column-gap:34px;row-gap:12px;list-style:disc;padding:0 0 0 20px;margin:0}.htmlContent ul li{width:240px}@media screen and (max-width: 768px){.htmlContent ul{grid-template-columns:repeat(1,1fr)}}
@@ -1,68 +0,0 @@
1
- import { A as r } from "./index-3b24fe0f.js";
2
- import { Banner as o } from "./Banner/Banner.js";
3
- import { CardIconList as i } from "./CardIconList/CardIconList.js";
4
- import { CardImageList as m } from "./CardImageList/CardImageList.js";
5
- import { CardImageSecondaryList as t } from "./CardImageSecondaryList/CardImageSecondaryList.js";
6
- import { CardInfoTable as a } from "./CardInfoTable/index.js";
7
- import { WarningCard as n } from "./Cards/WarningCard/WarningCard.js";
8
- import { ContentCardList as e } from "./ContentCardList/ContentCardList.js";
9
- import { DownloadFileBanner as p } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
10
- import { DownloadFileBright as s } from "./DownloadFile/components/DownloadFileBright/index.js";
11
- import { DownloadFileFull as f } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
12
- import { DownloadFileHalf as d } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
13
- import { DownloadFileMini as l } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
14
- import { Faq as L } from "./Faq/Faq.js";
15
- import { Footer as C } from "./Footer/Footer.js";
16
- import { I as F, P as c, S as w, a as B, T as I, b as S, c as M, H as P } from "./index-54813771.js";
17
- import { IntroBanner as g } from "./IntroBanner/IntroBanner.js";
18
- import { MainBanner as D } from "./MainBanner/MainBanner.js";
19
- import { MultiCards as u } from "./MultiCards/index.js";
20
- import { Partners as T } from "./Partners/Partners.js";
21
- import { PartnersColors as V } from "./PartnersColors/PartnersColors.js";
22
- import { Segments as b } from "./Segments/Segments.js";
23
- import { Space as H } from "./Space/Space.js";
24
- import { Stepper as A } from "./Stepper/Stepper.js";
25
- import { VideoFull as h } from "./Video/VideoFull/VideoFull.js";
26
- import { VideoList as k } from "./Video/VideoList/VideoList.js";
27
- import { VideoListMini as q } from "./Video/VideoListMini/VideoListMini.js";
28
- import { VideoMainBanner as v } from "./VideoMainBanner/VideoMainBanner.js";
29
- const sr = {
30
- Banner: o,
31
- CardImageList: m,
32
- Stepper: A,
33
- Segments: b,
34
- VideoFull: h,
35
- VideoList: k,
36
- VideoListMini: q,
37
- ContentCardList: e,
38
- CardIconList: i,
39
- MultiCards: u,
40
- Partners: T,
41
- PartnersColors: V,
42
- MainBanner: D,
43
- WarningCard: n,
44
- Faq: L,
45
- DownloadFileBanner: p,
46
- DownloadFileHalf: d,
47
- DownloadFileFull: f,
48
- DownloadFileMini: l,
49
- InstructionList: F,
50
- PreviewList: c,
51
- SwiperList: w,
52
- AnimatedSwiper: r,
53
- InfoBannerList: B,
54
- TasksBannerList: I,
55
- VideoMainBanner: v,
56
- Space: H,
57
- PromoPoster: S,
58
- CardImageSecondaryList: t,
59
- CardInfoTable: a,
60
- StandartTable: M,
61
- IntroBanner: g,
62
- DownloadFileBright: s,
63
- Header: P,
64
- Footer: C
65
- };
66
- export {
67
- sr as c
68
- };
@@ -1,314 +0,0 @@
1
- import { jsx as i, jsxs as j } from "react/jsx-runtime";
2
- import { useState as J, useRef as D } from "react";
3
- import { Bullet as K } from "./SwiperList/components/Bullet/Bullet.js";
4
- import { FieldTypes as v } from "./Types/FiledTypes.js";
5
- import { d as B, a as Q, N as U, b as W } from "./swiper-react-90953710.js";
6
- import { c as O } from "./cn-6a4bf187.js";
7
- import { u as X } from "./useScreenSize-c1b64c02.js";
8
- import { Slide as Y } from "./AnimatedSwiper/Slide/Slide.js";
9
- import './assets/index2.css';function Z(f) {
10
- let {
11
- swiper: e,
12
- extendParams: c,
13
- on: l,
14
- emit: r,
15
- params: s
16
- } = f;
17
- e.autoplay = {
18
- running: !1,
19
- paused: !1,
20
- timeLeft: 0
21
- }, c({
22
- autoplay: {
23
- enabled: !1,
24
- delay: 3e3,
25
- waitForTransition: !0,
26
- disableOnInteraction: !1,
27
- stopOnLastSlide: !1,
28
- reverseDirection: !1,
29
- pauseOnMouseEnter: !1
30
- }
31
- });
32
- let m, S, u = s && s.autoplay ? s.autoplay.delay : 3e3, y = s && s.autoplay ? s.autoplay.delay : 3e3, n, w = (/* @__PURE__ */ new Date()).getTime(), L, g, p, b, A, a, h;
33
- function T(t) {
34
- !e || e.destroyed || !e.wrapperEl || t.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", T), !(h || t.detail && t.detail.bySwiperTouchMove) && x());
35
- }
36
- const M = () => {
37
- if (e.destroyed || !e.autoplay.running)
38
- return;
39
- e.autoplay.paused ? L = !0 : L && (y = n, L = !1);
40
- const t = e.autoplay.paused ? n : w + y - (/* @__PURE__ */ new Date()).getTime();
41
- e.autoplay.timeLeft = t, r("autoplayTimeLeft", t, t / u), S = requestAnimationFrame(() => {
42
- M();
43
- });
44
- }, q = () => {
45
- let t;
46
- return e.virtual && e.params.virtual.enabled ? t = e.slides.find((o) => o.classList.contains("swiper-slide-active")) : t = e.slides[e.activeIndex], t ? parseInt(t.getAttribute("data-swiper-autoplay"), 10) : void 0;
47
- }, C = (t) => {
48
- if (e.destroyed || !e.autoplay.running)
49
- return;
50
- cancelAnimationFrame(S), M();
51
- let d = typeof t > "u" ? e.params.autoplay.delay : t;
52
- u = e.params.autoplay.delay, y = e.params.autoplay.delay;
53
- const o = q();
54
- !Number.isNaN(o) && o > 0 && typeof t > "u" && (d = o, u = o, y = o), n = d;
55
- const I = e.params.speed, _ = () => {
56
- !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(I, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, I, !0, !0), r("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(I, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, I, !0, !0), r("autoplay")), e.params.cssMode && (w = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
57
- C();
58
- })));
59
- };
60
- return d > 0 ? (clearTimeout(m), m = setTimeout(() => {
61
- _();
62
- }, d)) : requestAnimationFrame(() => {
63
- _();
64
- }), d;
65
- }, F = () => {
66
- w = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, C(), r("autoplayStart");
67
- }, N = () => {
68
- e.autoplay.running = !1, clearTimeout(m), cancelAnimationFrame(S), r("autoplayStop");
69
- }, E = (t, d) => {
70
- if (e.destroyed || !e.autoplay.running)
71
- return;
72
- clearTimeout(m), t || (a = !0);
73
- const o = () => {
74
- r("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", T) : x();
75
- };
76
- if (e.autoplay.paused = !0, d) {
77
- A && (n = e.params.autoplay.delay), A = !1, o();
78
- return;
79
- }
80
- n = (n || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - w), !(e.isEnd && n < 0 && !e.params.loop) && (n < 0 && (n = 0), o());
81
- }, x = () => {
82
- e.isEnd && n < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (w = (/* @__PURE__ */ new Date()).getTime(), a ? (a = !1, C(n)) : C(), e.autoplay.paused = !1, r("autoplayResume"));
83
- }, P = () => {
84
- if (e.destroyed || !e.autoplay.running)
85
- return;
86
- const t = B();
87
- t.visibilityState === "hidden" && (a = !0, E(!0)), t.visibilityState === "visible" && x();
88
- }, R = (t) => {
89
- t.pointerType === "mouse" && (a = !0, h = !0, !(e.animating || e.autoplay.paused) && E(!0));
90
- }, k = (t) => {
91
- t.pointerType === "mouse" && (h = !1, e.autoplay.paused && x());
92
- }, z = () => {
93
- e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", R), e.el.addEventListener("pointerleave", k));
94
- }, V = () => {
95
- e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", R), e.el.removeEventListener("pointerleave", k));
96
- }, G = () => {
97
- B().addEventListener("visibilitychange", P);
98
- }, H = () => {
99
- B().removeEventListener("visibilitychange", P);
100
- };
101
- l("init", () => {
102
- e.params.autoplay.enabled && (z(), G(), F());
103
- }), l("destroy", () => {
104
- V(), H(), e.autoplay.running && N();
105
- }), l("_freeModeStaticRelease", () => {
106
- (p || a) && x();
107
- }), l("_freeModeNoMomentumRelease", () => {
108
- e.params.autoplay.disableOnInteraction ? N() : E(!0, !0);
109
- }), l("beforeTransitionStart", (t, d, o) => {
110
- e.destroyed || !e.autoplay.running || (o || !e.params.autoplay.disableOnInteraction ? E(!0, !0) : N());
111
- }), l("sliderFirstMove", () => {
112
- if (!(e.destroyed || !e.autoplay.running)) {
113
- if (e.params.autoplay.disableOnInteraction) {
114
- N();
115
- return;
116
- }
117
- g = !0, p = !1, a = !1, b = setTimeout(() => {
118
- a = !0, p = !0, E(!0);
119
- }, 200);
120
- }
121
- }), l("touchEnd", () => {
122
- if (!(e.destroyed || !e.autoplay.running || !g)) {
123
- if (clearTimeout(b), clearTimeout(m), e.params.autoplay.disableOnInteraction) {
124
- p = !1, g = !1;
125
- return;
126
- }
127
- p && e.params.cssMode && x(), p = !1, g = !1;
128
- }
129
- }), l("slideChange", () => {
130
- e.destroyed || !e.autoplay.running || (A = !0);
131
- }), Object.assign(e.autoplay, {
132
- start: F,
133
- stop: N,
134
- pause: E,
135
- resume: x
136
- });
137
- }
138
- const $ = ({
139
- color: f = "#40474F",
140
- size: e = 24,
141
- ...c
142
- }) => /* @__PURE__ */ i(
143
- "svg",
144
- {
145
- width: e,
146
- height: e,
147
- viewBox: "0 0 24 24",
148
- fill: "none",
149
- xmlns: "http://www.w3.org/2000/svg",
150
- ...c,
151
- children: /* @__PURE__ */ i(
152
- "path",
153
- {
154
- d: "M17 22L8.41418 13.4142C7.74752 12.7476 7.41418 12.4142 7.41418 12C7.41418 11.5858 7.74752 11.2525 8.41418 10.5858L17 2",
155
- stroke: f,
156
- "stroke-width": "2",
157
- "stroke-linejoin": "round"
158
- }
159
- )
160
- }
161
- ), ee = ({
162
- color: f = "#40474F",
163
- size: e = 24,
164
- ...c
165
- }) => /* @__PURE__ */ i(
166
- "svg",
167
- {
168
- width: e,
169
- height: e,
170
- viewBox: "0 0 24 24",
171
- fill: "none",
172
- xmlns: "http://www.w3.org/2000/svg",
173
- ...c,
174
- children: /* @__PURE__ */ i(
175
- "path",
176
- {
177
- d: "M7 22L15.5858 13.4142C16.2524 12.7476 16.5858 12.4142 16.5858 12C16.5858 11.5858 16.2525 11.2525 15.5858 10.5858L7 2",
178
- stroke: f,
179
- "stroke-width": "2",
180
- "stroke-linejoin": "round"
181
- }
182
- )
183
- }
184
- );
185
- const te = {
186
- type: "cards",
187
- label: "Карточки слайдера",
188
- dataType: "array",
189
- data: {
190
- title: v.TITLE,
191
- description: v.DESCRIPTION,
192
- image: v.FILE,
193
- icon: v.FILE,
194
- is_black: v.BOOLEAN,
195
- is_promo: v.BOOLEAN,
196
- is_yellow: v.BOOLEAN
197
- }
198
- }, ae = ["title", te, "autoplay", "isLight", "isButton"];
199
- function ne({
200
- title: f,
201
- cards: e,
202
- autoplay: c = !1,
203
- isLight: l = !1,
204
- isButton: r = !0
205
- }) {
206
- const [s, m] = J(1), S = D(null), u = X(960), y = u ? 1.2 : 3, n = u ? 16 : 0, L = c ? {
207
- delay: 3e3,
208
- disableOnInteraction: !1,
209
- waitForTransition: !0
210
- } : !1, g = D(null), p = D(null), b = (e == null ? void 0 : e.length) <= y + 1 ? [...e, ...e] : e, A = (e == null ? void 0 : e.length) <= y + 1 ? s % (e == null ? void 0 : e.length) : s;
211
- return /* @__PURE__ */ j("div", { className: "flex flex-col items-center gap-6 h-fit max-w-[1232px] w-full mx-auto px-4 relative max-tablet:max-w-full max-tablet:p-0", children: [
212
- f && /* @__PURE__ */ i("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: f }),
213
- /* @__PURE__ */ j("div", { className: "relative w-full h-[346px] max-tablet:h-fit", children: [
214
- /* @__PURE__ */ i(
215
- Q,
216
- {
217
- modules: [U, Z],
218
- className: "feature_swiper",
219
- initialSlide: 0,
220
- slidesPerView: y,
221
- spaceBetween: n,
222
- centeredSlides: !0,
223
- speed: 500,
224
- autoplay: L,
225
- onSwiper: (a) => {
226
- S.current = a, m(a.realIndex);
227
- },
228
- onBeforeTransitionStart: (a) => {
229
- let h = a.realIndex;
230
- m(h);
231
- },
232
- navigation: {
233
- nextEl: g.current,
234
- prevEl: p.current
235
- },
236
- loop: !0,
237
- children: b == null ? void 0 : b.map((a, h) => {
238
- const T = h === s;
239
- return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(
240
- Y,
241
- {
242
- image: a == null ? void 0 : a.image,
243
- description: a == null ? void 0 : a.description,
244
- title: a == null ? void 0 : a.title,
245
- className: O(
246
- "h-[314px] transition-all duration-500 transform scale-[0.85] relative max-tablet:h-[288px] max-tablet:scale-100",
247
- {
248
- "!h-[346px] !w-full transform scale-100 flex flex-col gap-[40px] md:h-auto md:gap-6": T && !u
249
- }
250
- ),
251
- imgClassName: O({
252
- "h-[122px] w-[122px]": T && !u
253
- }),
254
- imgStyle: O({
255
- "h-[122px] w-[122px]": T && !u
256
- }),
257
- isLight: l
258
- }
259
- ) }, a.id);
260
- })
261
- }
262
- ),
263
- r && /* @__PURE__ */ i(
264
- "button",
265
- {
266
- ref: p,
267
- className: O(
268
- "absolute h-[40px] w-[40px] left-0 top-[200px] translate-x-[-50%] translate-y-[-50%] z-10 p-[8px] rounded-[50%] bg-graySoft border-none cursor-pointer max-tablet:hidden"
269
- ),
270
- children: /* @__PURE__ */ i(
271
- $,
272
- {
273
- size: 24,
274
- color: "#ffffff"
275
- }
276
- )
277
- }
278
- ),
279
- r && /* @__PURE__ */ i(
280
- "button",
281
- {
282
- ref: g,
283
- className: O(
284
- "absolute h-[40px] w-[40px] right-0 top-[200px] translate-x-[-50%] translate-y-[-50%] z-10 p-[8px] rounded-[50%] bg-graySoft border-none cursor-pointer max-tablet:hidden"
285
- ),
286
- children: /* @__PURE__ */ i(
287
- ee,
288
- {
289
- size: 24,
290
- color: "#ffffff"
291
- }
292
- )
293
- }
294
- )
295
- ] }),
296
- (e == null ? void 0 : e.length) && /* @__PURE__ */ i(
297
- K,
298
- {
299
- count: e.length,
300
- active: A,
301
- activeColor: "#16A34A",
302
- anActiveColor: "#A6B2BA",
303
- className: "mt-[24px]"
304
- }
305
- )
306
- ] });
307
- }
308
- ne.propsToEdit = ae;
309
- export {
310
- ne as A,
311
- $ as C,
312
- Z as a,
313
- ee as b
314
- };