md-components-mdigial-azamat 0.0.10 → 0.0.12
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.
- package/README.md +4 -0
- package/dist/AllComponents.js +130 -0
- package/dist/AnimatedSwiper/Slide/Slide.js +57 -0
- package/dist/AnimatedSwiper/Slide/index.js +4 -0
- package/dist/AnimatedSwiper/index.js +117 -0
- package/dist/AnimatedSwiper/types.js +1 -0
- package/dist/Banner/Banner.js +45 -49
- package/dist/BannerAndText/index.js +14 -13
- package/dist/CardIconList/CardIconList.js +23 -22
- package/dist/CardImageList/CardImageList.js +15 -14
- package/dist/CardImageSecondary/CardImageSecondary.js +50 -0
- package/dist/CardImageSecondary/index.js +4 -0
- package/dist/CardImageSecondary/types.js +1 -0
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +21 -0
- package/dist/CardImageSecondaryList/index.js +4 -0
- package/dist/CardImageSecondaryList/types.js +1 -0
- package/dist/CardInfoTable/index.js +153 -0
- package/dist/CardInfoTable/types.js +1 -0
- package/dist/Cards/CardImage/CardImage.js +8 -7
- package/dist/Cards/ColoredCard/index.js +5 -4
- package/dist/Cards/ContentCard/ContentCard.js +17 -15
- package/dist/Cards/FeaturesCard/index.js +3 -3
- package/dist/Cards/WarningCard/WarningCard.js +27 -25
- package/dist/Cards/WarningCard/model.js +1 -1
- package/dist/ComponentContainer-0fcc2695.js +16 -0
- package/dist/ConfigProvider/index.js +5 -3
- package/dist/ContentCardList/ContentCardList.js +13 -12
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +21 -15
- package/dist/DownloadFile/components/DownloadFileBright/index.js +103 -0
- package/dist/DownloadFile/components/DownloadFileBright/types.js +1 -0
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +16 -14
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +20 -18
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +19 -17
- package/dist/EmptyBox/EmptyBox.js +5 -0
- package/dist/EmptyBox/types.js +1 -0
- package/dist/Faq/Faq.js +16 -15
- package/dist/Faq/components/Collapse/Collapse.js +9 -8
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +95 -94
- package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
- package/dist/HeroPossibilityBanner/index.js +24 -16
- package/dist/HtmlContent/HtmlContent.js +6 -5
- package/dist/InfoBanner/index.js +73 -0
- package/dist/InfoBanner/types.js +1 -0
- package/dist/InfoBannerList/InfoBannerList.js +37 -0
- package/dist/InfoBannerList/index.js +4 -0
- package/dist/InfoBannerList/types.js +1 -0
- package/dist/InstructionList/InstructionList.js +14 -13
- package/dist/InstructionList/components/InstructionCard/InstructionCard.js +13 -12
- package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
- package/dist/IntroBanner/IntroBanner.js +60 -0
- package/dist/IntroBanner/index.js +4 -0
- package/dist/IntroBanner/types.js +1 -0
- package/dist/MainBanner/MainBanner.js +30 -21
- package/dist/MultiCards/index.js +33 -25
- package/dist/Partners/Partners.js +7 -6
- package/dist/PartnersColors/PartnersColors.js +20 -19
- package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
- package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
- package/dist/PreviewList/PreviewList.js +17 -16
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +15 -13
- package/dist/PromoPoster/PromoPoster.js +36 -0
- package/dist/PromoPoster/types.js +1 -0
- package/dist/RenderAllComponents/RenderAllComponents.js +82 -0
- package/dist/RenderAllComponents/const.js +43 -0
- package/dist/RenderAllComponents/index.js +4 -0
- package/dist/Segments/Segments.js +14 -13
- package/dist/StandartTable/components/CardMarkedRow/index.js +75 -0
- package/dist/StandartTable/components/CardMarkedRow/types.js +1 -0
- package/dist/StandartTable/components/CardWarning/index.js +89 -0
- package/dist/StandartTable/components/CardWarning/types.js +1 -0
- package/dist/StandartTable/index.js +48 -0
- package/dist/StandartTable/types.js +1 -0
- package/dist/Stepper/Stepper.js +14 -13
- package/dist/SwiperList/SwiperList.js +50 -3189
- package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
- package/dist/SwiperList/components/Slide/Slide.js +2 -2
- package/dist/TasksBanner/TasksBanner.js +108 -0
- package/dist/TasksBanner/index.js +4 -0
- package/dist/TasksBanner/types.js +1 -0
- package/dist/TasksBannerList/TasksBannerList.js +17 -0
- package/dist/TasksBannerList/index.js +4 -0
- package/dist/TasksBannerList/types.js +1 -0
- package/dist/Video/VideoFull/VideoFull.js +4 -3
- package/dist/Video/VideoList/VideoList.js +10 -9
- package/dist/Video/VideoListMini/VideoListMini.js +8 -7
- package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
- package/dist/VideoMainBanner/VideoMainBanner.js +148 -0
- package/dist/VideoMainBanner/index.js +4 -0
- package/dist/VideoMainBanner/types.js +1 -0
- package/dist/assets/TasksBanner.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cn-eacd4725.js → cn-d8c04b28.js} +1 -0
- package/dist/const-9041b93a.js +5 -0
- package/dist/data.mock-741c2220.js +1714 -0
- package/dist/{index-fb8c9446.js → index-60dfa873.js} +1 -1
- package/dist/{index-cd468670.js → index-6e0f7db0.js} +8 -7
- package/dist/index-b3d6aed3.js +52 -0
- package/dist/main.js +1 -1
- package/dist/{palette-52b06a82.js → palette-ac8c8a5f.js} +7 -2
- package/dist/swiper-react-c049ea66.js +3158 -0
- package/dist/trash/HeroLargeCards/index.js +1 -1
- package/dist/useScreenSize-c1b64c02.js +19 -0
- package/package.json +1 -1
- package/dist/ComponentContainer-41408843.js +0 -15
- package/dist/index-89dcf24f.js +0 -54
- package/dist/main.d.ts +0 -39
- /package/dist/assets/{SwiperList.css → swiper-react.css} +0 -0
- /package/dist/assets/{Slide.css → swiper.css} +0 -0
package/README.md
CHANGED
|
@@ -51,3 +51,7 @@ If you are developing a production application, we recommend updating the config
|
|
|
51
51
|
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
|
52
52
|
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
|
53
53
|
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
|
54
|
+
|
|
55
|
+
npm version patch
|
|
56
|
+
npm run build
|
|
57
|
+
npm publish
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { M as o, B as n, C as t, S as a, a as e, V as r, b as i, c as m, d as p, e as s, f as l, P as d, g as c, W as D, F as P, D as L, h as f, i as C, j as B, I as y, k as w, l as F, A as k, m as I, T as S, n as g, E as M, o as V, p as u, q as T, r as b, s as A, t as h } from "./data.mock-741c2220.js";
|
|
2
|
+
import q from "./AnimatedSwiper/index.js";
|
|
3
|
+
import { Banner as x } from "./Banner/Banner.js";
|
|
4
|
+
import { CardIconList as E } from "./CardIconList/CardIconList.js";
|
|
5
|
+
import { CardImageList as W } from "./CardImageList/CardImageList.js";
|
|
6
|
+
import { CardImageSecondaryList as v } from "./CardImageSecondaryList/CardImageSecondaryList.js";
|
|
7
|
+
import { CardInfoTable as H } from "./CardInfoTable/index.js";
|
|
8
|
+
import { ContentCardList as j } from "./ContentCardList/ContentCardList.js";
|
|
9
|
+
import { DownloadFileBright as z } from "./DownloadFile/components/DownloadFileBright/index.js";
|
|
10
|
+
import { EmptyBox as G } from "./EmptyBox/EmptyBox.js";
|
|
11
|
+
import { Faq as J } from "./Faq/Faq.js";
|
|
12
|
+
import { InfoBannerList as K } from "./InfoBannerList/InfoBannerList.js";
|
|
13
|
+
import { IntroBanner as N } from "./IntroBanner/IntroBanner.js";
|
|
14
|
+
import { MainBanner as O } from "./MainBanner/MainBanner.js";
|
|
15
|
+
import { MultiCards as Q } from "./MultiCards/index.js";
|
|
16
|
+
import { Partners as R } from "./Partners/Partners.js";
|
|
17
|
+
import { PartnersColors as U } from "./PartnersColors/PartnersColors.js";
|
|
18
|
+
import { PromoPoster as X } from "./PromoPoster/PromoPoster.js";
|
|
19
|
+
import { Segments as Y } from "./Segments/Segments.js";
|
|
20
|
+
import { StandartTable as Z } from "./StandartTable/index.js";
|
|
21
|
+
import { Stepper as _ } from "./Stepper/Stepper.js";
|
|
22
|
+
import { SwiperList as $ } from "./SwiperList/SwiperList.js";
|
|
23
|
+
import { TasksBannerList as oo } from "./TasksBannerList/TasksBannerList.js";
|
|
24
|
+
import { VideoFull as no } from "./Video/VideoFull/VideoFull.js";
|
|
25
|
+
import { VideoList as to } from "./Video/VideoList/VideoList.js";
|
|
26
|
+
import { VideoListMini as ao } from "./Video/VideoListMini/VideoListMini.js";
|
|
27
|
+
import { VideoMainBanner as eo } from "./VideoMainBanner/VideoMainBanner.js";
|
|
28
|
+
import "./ConfigProvider/index.js";
|
|
29
|
+
import "./BannerAndText/index.js";
|
|
30
|
+
import "./HtmlContent/HtmlContent.js";
|
|
31
|
+
import { InstructionList as ro } from "./InstructionList/InstructionList.js";
|
|
32
|
+
import "./HeroPossibilityBanner/index.js";
|
|
33
|
+
import { PreviewList as io } from "./PreviewList/PreviewList.js";
|
|
34
|
+
import "./Cards/CardImage/CardImage.js";
|
|
35
|
+
import "./Cards/ContentCard/ContentCard.js";
|
|
36
|
+
import { WarningCard as mo } from "./Cards/WarningCard/WarningCard.js";
|
|
37
|
+
import "./Cards/ColoredCard/index.js";
|
|
38
|
+
import "./index-6e0f7db0.js";
|
|
39
|
+
import { DownloadFileBanner as po } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
40
|
+
import { DownloadFileFull as so } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
41
|
+
import { DownloadFileHalf as lo } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
42
|
+
import { DownloadFileMini as co } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
43
|
+
import "./Faq/components/Collapse/Collapse.js";
|
|
44
|
+
import "react/jsx-runtime";
|
|
45
|
+
import "react";
|
|
46
|
+
import "./index-b3d6aed3.js";
|
|
47
|
+
import "./InstructionList/components/InstructionCard/InstructionCard.js";
|
|
48
|
+
import "./PreviewList/components/PreviewCard/PreviewCard.js";
|
|
49
|
+
const pn = {
|
|
50
|
+
MainBanner: { key: "MainBanner", component: O },
|
|
51
|
+
Banner: { key: "Banner", component: x },
|
|
52
|
+
CardImageList: { key: "CardImageList", component: W },
|
|
53
|
+
Stepper: { key: "Stepper", component: _ },
|
|
54
|
+
Segments: { key: "Segments", component: Y },
|
|
55
|
+
VideoFull: { key: "VideoFull", component: no },
|
|
56
|
+
VideoList: { key: "VideoList", component: to },
|
|
57
|
+
VideoListMini: { key: "VideoListMini", component: ao },
|
|
58
|
+
ContentCardList: { key: "ContentCardList", component: j },
|
|
59
|
+
CardIconList: { key: "CardIconList", component: E },
|
|
60
|
+
MultiCards: { key: "MultiCards", component: Q },
|
|
61
|
+
Partners: { key: "Partners", component: R },
|
|
62
|
+
PartnersColors: { key: "PartnersColors", component: U },
|
|
63
|
+
WarningCard: { key: "WarningCard", component: mo },
|
|
64
|
+
Faq: { key: "Faq", component: J },
|
|
65
|
+
DownloadFileBanner: {
|
|
66
|
+
key: "DownloadFileBanner",
|
|
67
|
+
component: po
|
|
68
|
+
},
|
|
69
|
+
DownloadFileHalf: { key: "DownloadFileHalf", component: lo },
|
|
70
|
+
DownloadFileFull: { key: "DownloadFileFull", component: so },
|
|
71
|
+
DownloadFileMini: { key: "DownloadFileMini", component: co },
|
|
72
|
+
InstructionList: { key: "InstructionList", component: ro },
|
|
73
|
+
PreviewList: { key: "PreviewList", component: io },
|
|
74
|
+
SwiperList: { key: "SwiperList", component: $ },
|
|
75
|
+
AnimatedSwiper: { key: "AnimatedSwiper", component: q },
|
|
76
|
+
InfoBannerList: { key: "InfoBannerList", component: K },
|
|
77
|
+
TasksBannerList: { key: "TasksBannerList", component: oo },
|
|
78
|
+
VideoMainBanner: { key: "VideoMainBanner", component: eo },
|
|
79
|
+
EmptyBox: { key: "EmptyBox", component: G },
|
|
80
|
+
PromoPoster: { key: "PromoPoster", component: X },
|
|
81
|
+
CardImageSecondaryList: {
|
|
82
|
+
key: "CardImageSecondaryList",
|
|
83
|
+
component: v
|
|
84
|
+
},
|
|
85
|
+
CardInfoTable: { key: "CardInfoTable", component: H },
|
|
86
|
+
StandartTable: { key: "StandartTable", component: Z },
|
|
87
|
+
IntroBanner: { key: "IntroBanner", component: N },
|
|
88
|
+
DownloadFileBright: {
|
|
89
|
+
key: "DownloadFileBright",
|
|
90
|
+
component: z
|
|
91
|
+
}
|
|
92
|
+
}, sn = {
|
|
93
|
+
MainBanner: o.componentProps,
|
|
94
|
+
Banner: n.componentProps,
|
|
95
|
+
CardImageList: t.componentProps,
|
|
96
|
+
Stepper: a.componentProps,
|
|
97
|
+
Segments: e.componentProps,
|
|
98
|
+
VideoFull: r.componentProps,
|
|
99
|
+
VideoList: i.componentProps,
|
|
100
|
+
VideoListMini: m.componentProps,
|
|
101
|
+
ContentCardList: p.componentProps,
|
|
102
|
+
CardIconList: s.componentProps,
|
|
103
|
+
MultiCards: l.componentProps,
|
|
104
|
+
Partners: d.componentProps,
|
|
105
|
+
PartnersColors: c.componentProps,
|
|
106
|
+
WarningCard: D.componentProps,
|
|
107
|
+
Faq: P.componentProps,
|
|
108
|
+
DownloadFileBanner: L.componentProps,
|
|
109
|
+
DownloadFileHalf: f.componentProps,
|
|
110
|
+
DownloadFileFull: C.componentProps,
|
|
111
|
+
DownloadFileMini: B.componentProps,
|
|
112
|
+
InstructionList: y.componentProps,
|
|
113
|
+
PreviewList: w.componentProps,
|
|
114
|
+
SwiperList: F.componentProps,
|
|
115
|
+
AnimatedSwiper: k.componentProps,
|
|
116
|
+
InfoBannerList: I.componentProps,
|
|
117
|
+
TasksBannerList: S.componentProps,
|
|
118
|
+
VideoMainBanner: g.componentProps,
|
|
119
|
+
EmptyBox: M.componentProps,
|
|
120
|
+
PromoPoster: V.componentProps,
|
|
121
|
+
CardImageSecondaryList: u.componentProps,
|
|
122
|
+
CardInfoTable: T.componentProps,
|
|
123
|
+
StandartTable: b.componentProps,
|
|
124
|
+
IntroBanner: A.componentProps,
|
|
125
|
+
DownloadFileBright: h.componentProps
|
|
126
|
+
};
|
|
127
|
+
export {
|
|
128
|
+
pn as AllComponents,
|
|
129
|
+
sn as AllComponentsData
|
|
130
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as i, a as o } from "../../cn-d8c04b28.js";
|
|
3
|
+
import { I as p } from "../../index-60dfa873.js";
|
|
4
|
+
import '../../assets/swiper.css';/* empty css */const g = ({
|
|
5
|
+
data: e,
|
|
6
|
+
className: x,
|
|
7
|
+
isLight: l = !1,
|
|
8
|
+
imgClassName: r,
|
|
9
|
+
imgStyle: s
|
|
10
|
+
}) => /* @__PURE__ */ n(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
className: i(
|
|
14
|
+
"relative flex flex-col gap-[32px] p-[32px] h-full w-full rounded-[20px] overflow-hidden bg-black8 transition-all duration-500 ease-in-out max-tablet:p-[24px] max-tablet:gap-[24px]",
|
|
15
|
+
x,
|
|
16
|
+
{ "bg-white": l }
|
|
17
|
+
),
|
|
18
|
+
children: [
|
|
19
|
+
(e == null ? void 0 : e.icon) && /* @__PURE__ */ t(
|
|
20
|
+
p,
|
|
21
|
+
{
|
|
22
|
+
src: e == null ? void 0 : e.icon,
|
|
23
|
+
alt: e == null ? void 0 : e.title,
|
|
24
|
+
width: 80,
|
|
25
|
+
height: 80,
|
|
26
|
+
className: i("transition-all duration-500", r),
|
|
27
|
+
imageStyles: i("transition-all duration-500", s)
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-[12px] max-tablet:gap-[8px]", children: [
|
|
31
|
+
/* @__PURE__ */ t(
|
|
32
|
+
"p",
|
|
33
|
+
{
|
|
34
|
+
className: o(
|
|
35
|
+
"text-white4 text-[24px] font-bold leading-[32px] m-0 transition-all duration-500 ease-in-ou max-tablet:text-[24px] max-tablet:leading-[28px]",
|
|
36
|
+
{ "!text-black2": l }
|
|
37
|
+
),
|
|
38
|
+
children: e == null ? void 0 : e.title
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ t(
|
|
42
|
+
"p",
|
|
43
|
+
{
|
|
44
|
+
className: o(
|
|
45
|
+
"text-white4 text-[15px] font-normal leading-[24px] m-0 transition-all duration-500 [font-variant-numeric:lining-nums_tabular-nums_stacked-fractions] [font-feature-settings:'clig'_off,'liga'_off] max-tablet:text-[14px] max-tablet:leading-[20px]",
|
|
46
|
+
{ "!text-graySoft": l }
|
|
47
|
+
),
|
|
48
|
+
children: e == null ? void 0 : e.description
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] })
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
export {
|
|
56
|
+
g as Slide
|
|
57
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as A, useRef as p } from "react";
|
|
3
|
+
import { S as N, N as C, A as I, a as z, C as R, b as B } from "../swiper-react-c049ea66.js";
|
|
4
|
+
import { Bullet as j } from "../SwiperList/components/Bullet/Bullet.js";
|
|
5
|
+
import { c as n } from "../cn-d8c04b28.js";
|
|
6
|
+
import { u as E } from "../useScreenSize-c1b64c02.js";
|
|
7
|
+
import { Slide as P } from "./Slide/Slide.js";
|
|
8
|
+
function k({
|
|
9
|
+
title: f,
|
|
10
|
+
cards: t,
|
|
11
|
+
autoplay: h = !1,
|
|
12
|
+
isLight: g = !1,
|
|
13
|
+
isButton: x = !0
|
|
14
|
+
}) {
|
|
15
|
+
const [r, c] = A(1), b = p(null), l = E(960), o = l ? 1.2 : 3, w = l ? 16 : 0, S = h ? {
|
|
16
|
+
delay: 3e3,
|
|
17
|
+
disableOnInteraction: !1,
|
|
18
|
+
waitForTransition: !0
|
|
19
|
+
} : !1, m = p(null), u = p(null), v = t.length <= o + 1 ? [...t, ...t] : t, y = t.length <= o + 1 ? r % t.length : r;
|
|
20
|
+
return /* @__PURE__ */ d("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: [
|
|
21
|
+
f && /* @__PURE__ */ e("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: f }),
|
|
22
|
+
/* @__PURE__ */ d("div", { className: "relative w-full h-[346px] max-tablet:h-fit", children: [
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
N,
|
|
25
|
+
{
|
|
26
|
+
modules: [C, I],
|
|
27
|
+
className: "feature_swiper",
|
|
28
|
+
initialSlide: 0,
|
|
29
|
+
slidesPerView: o,
|
|
30
|
+
spaceBetween: w,
|
|
31
|
+
centeredSlides: !0,
|
|
32
|
+
speed: 500,
|
|
33
|
+
autoplay: S,
|
|
34
|
+
onSwiper: (a) => {
|
|
35
|
+
b.current = a, c(a.realIndex);
|
|
36
|
+
},
|
|
37
|
+
onBeforeTransitionStart: (a) => {
|
|
38
|
+
let i = a.realIndex;
|
|
39
|
+
c(i);
|
|
40
|
+
},
|
|
41
|
+
navigation: {
|
|
42
|
+
nextEl: m.current,
|
|
43
|
+
prevEl: u.current
|
|
44
|
+
},
|
|
45
|
+
loop: !0,
|
|
46
|
+
children: v.map((a, i) => {
|
|
47
|
+
const s = i === r;
|
|
48
|
+
return /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
49
|
+
P,
|
|
50
|
+
{
|
|
51
|
+
data: a,
|
|
52
|
+
className: n(
|
|
53
|
+
"h-[314px] transition-all duration-500 transform scale-[0.85] relative max-tablet:h-[288px] max-tablet:scale-100",
|
|
54
|
+
{
|
|
55
|
+
"!h-[346px] !w-full transform scale-100 flex flex-col gap-[40px] md:h-auto md:gap-6": s && !l
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
imgClassName: n({
|
|
59
|
+
"h-[122px] w-[122px]": s && !l
|
|
60
|
+
}),
|
|
61
|
+
imgStyle: n({
|
|
62
|
+
"h-[122px] w-[122px]": s && !l
|
|
63
|
+
}),
|
|
64
|
+
isLight: g
|
|
65
|
+
}
|
|
66
|
+
) }, a.id);
|
|
67
|
+
})
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
x && /* @__PURE__ */ e(
|
|
71
|
+
"button",
|
|
72
|
+
{
|
|
73
|
+
ref: u,
|
|
74
|
+
className: n(
|
|
75
|
+
"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"
|
|
76
|
+
),
|
|
77
|
+
children: /* @__PURE__ */ e(
|
|
78
|
+
R,
|
|
79
|
+
{
|
|
80
|
+
size: 24,
|
|
81
|
+
color: "#ffffff"
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
x && /* @__PURE__ */ e(
|
|
87
|
+
"button",
|
|
88
|
+
{
|
|
89
|
+
ref: m,
|
|
90
|
+
className: n(
|
|
91
|
+
"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"
|
|
92
|
+
),
|
|
93
|
+
children: /* @__PURE__ */ e(
|
|
94
|
+
B,
|
|
95
|
+
{
|
|
96
|
+
size: 24,
|
|
97
|
+
color: "#ffffff"
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
] }),
|
|
103
|
+
t.length && /* @__PURE__ */ e(
|
|
104
|
+
j,
|
|
105
|
+
{
|
|
106
|
+
count: t.length,
|
|
107
|
+
active: y,
|
|
108
|
+
activeColor: "#16A34A",
|
|
109
|
+
anActiveColor: "#A6B2BA",
|
|
110
|
+
className: "mt-[24px]"
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] });
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
k as default
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/Banner/Banner.js
CHANGED
|
@@ -1,54 +1,49 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { BannerVariant as
|
|
3
|
-
import { B as
|
|
4
|
-
import { C as y } from "../ComponentContainer-
|
|
5
|
-
import { I as
|
|
6
|
-
import { c as a } from "../cn-
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return window.addEventListener("resize", l), l(), () => window.removeEventListener("resize", l);
|
|
21
|
-
}, []), x.width <= m;
|
|
22
|
-
}, Q = ({
|
|
23
|
-
bg_image: m,
|
|
24
|
-
image: x,
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { BannerVariant as d } from "./types.js";
|
|
3
|
+
import { B as g } from "../index-b3d6aed3.js";
|
|
4
|
+
import { C as y } from "../ComponentContainer-0fcc2695.js";
|
|
5
|
+
import { I as h } from "../index-60dfa873.js";
|
|
6
|
+
import { c as a } from "../cn-d8c04b28.js";
|
|
7
|
+
import { u as _ } from "../useScreenSize-c1b64c02.js";
|
|
8
|
+
const j = [
|
|
9
|
+
"bg_image",
|
|
10
|
+
"image",
|
|
11
|
+
"title",
|
|
12
|
+
"text_color",
|
|
13
|
+
"description",
|
|
14
|
+
"buttons",
|
|
15
|
+
"variant",
|
|
16
|
+
"qr"
|
|
17
|
+
], k = ({
|
|
18
|
+
bg_image: w,
|
|
19
|
+
image: o,
|
|
25
20
|
title: n,
|
|
26
|
-
text_color:
|
|
21
|
+
text_color: r = "inherit",
|
|
27
22
|
description: c,
|
|
28
|
-
buttons:
|
|
29
|
-
variant:
|
|
23
|
+
buttons: x,
|
|
24
|
+
variant: s,
|
|
30
25
|
qr: e
|
|
31
26
|
}) => {
|
|
32
27
|
var p, f, b;
|
|
33
|
-
const
|
|
34
|
-
return /* @__PURE__ */ t(y, { children: /* @__PURE__ */
|
|
28
|
+
const m = _(960), u = s === d.Buttons, N = s === d.Qr;
|
|
29
|
+
return /* @__PURE__ */ t(y, { children: /* @__PURE__ */ i(
|
|
35
30
|
"div",
|
|
36
31
|
{
|
|
37
32
|
className: a(
|
|
38
33
|
"relative w-full h-fit flex max-tablet:flex-col justify-between gap-4 bg-cover bg-center rounded-[20px] overflow-hidden max-tablet:justify-start max-tablet:items-center"
|
|
39
34
|
),
|
|
40
35
|
style: {
|
|
41
|
-
backgroundImage: `url(${
|
|
36
|
+
backgroundImage: `url(${w})`
|
|
42
37
|
},
|
|
43
38
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ i("div", { className: " flex flex-col gap-4 w-[40%] max-tablet:w-full justify-center p-12 max-tablet:p-8", children: [
|
|
45
40
|
n && /* @__PURE__ */ t(
|
|
46
41
|
"p",
|
|
47
42
|
{
|
|
48
43
|
className: a(
|
|
49
44
|
"text-[32px] font-bold leading-[40px] text-left text-black m-0 max-tablet:text-center max-tablet:text-[24px] max-tablet:leading-[28px]"
|
|
50
45
|
),
|
|
51
|
-
style: { color:
|
|
46
|
+
style: { color: r },
|
|
52
47
|
children: n
|
|
53
48
|
}
|
|
54
49
|
),
|
|
@@ -58,29 +53,29 @@ const S = (m = 768) => {
|
|
|
58
53
|
className: a(
|
|
59
54
|
"text-[18px] font-normal leading-[26px] text-left m-0 max-tablet:px-[24px] max-tablet:text-center max-tablet:text-[15px] max-tablet:leading-[22px]"
|
|
60
55
|
),
|
|
61
|
-
style: { color:
|
|
56
|
+
style: { color: r },
|
|
62
57
|
children: c
|
|
63
58
|
}
|
|
64
59
|
),
|
|
65
|
-
u && /* @__PURE__ */ t("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children:
|
|
60
|
+
u && /* @__PURE__ */ t("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: x == null ? void 0 : x.map((l, v) => /* @__PURE__ */ t(
|
|
66
61
|
"a",
|
|
67
62
|
{
|
|
68
|
-
href: (
|
|
63
|
+
href: (l == null ? void 0 : l.link) || "#",
|
|
69
64
|
className: a("w-fit z-10 max-tablet:w-full"),
|
|
70
65
|
target: "_blank",
|
|
71
66
|
rel: "noopener noreferrer",
|
|
72
67
|
children: /* @__PURE__ */ t(
|
|
73
|
-
|
|
68
|
+
g,
|
|
74
69
|
{
|
|
75
|
-
variant:
|
|
70
|
+
variant: l.variant,
|
|
76
71
|
className: "w-[200px] max-tablet:w-full",
|
|
77
|
-
children:
|
|
72
|
+
children: l.text
|
|
78
73
|
}
|
|
79
74
|
)
|
|
80
75
|
},
|
|
81
|
-
|
|
76
|
+
v
|
|
82
77
|
)) }),
|
|
83
|
-
|
|
78
|
+
N && (m ? /* @__PURE__ */ t("div", { className: "flex items-center gap-4 mt-6 max-tablet:flex-col max-tablet:gap-[10px] max-tablet:mt-[5px]", children: /* @__PURE__ */ t(
|
|
84
79
|
"a",
|
|
85
80
|
{
|
|
86
81
|
href: ((p = e == null ? void 0 : e.button) == null ? void 0 : p.link) || "#",
|
|
@@ -88,7 +83,7 @@ const S = (m = 768) => {
|
|
|
88
83
|
target: "_blank",
|
|
89
84
|
rel: "noopener noreferrer",
|
|
90
85
|
children: /* @__PURE__ */ t(
|
|
91
|
-
|
|
86
|
+
g,
|
|
92
87
|
{
|
|
93
88
|
variant: (f = e == null ? void 0 : e.button) == null ? void 0 : f.variant,
|
|
94
89
|
className: "w-[200px] max-tablet:w-full",
|
|
@@ -96,7 +91,7 @@ const S = (m = 768) => {
|
|
|
96
91
|
}
|
|
97
92
|
)
|
|
98
93
|
}
|
|
99
|
-
) }) : /* @__PURE__ */
|
|
94
|
+
) }) : /* @__PURE__ */ i(
|
|
100
95
|
"div",
|
|
101
96
|
{
|
|
102
97
|
className: a(
|
|
@@ -104,7 +99,7 @@ const S = (m = 768) => {
|
|
|
104
99
|
),
|
|
105
100
|
children: [
|
|
106
101
|
/* @__PURE__ */ t(
|
|
107
|
-
|
|
102
|
+
h,
|
|
108
103
|
{
|
|
109
104
|
src: e == null ? void 0 : e.banner_qr,
|
|
110
105
|
alt: e == null ? void 0 : e.banner_qr_text,
|
|
@@ -126,13 +121,13 @@ const S = (m = 768) => {
|
|
|
126
121
|
}
|
|
127
122
|
))
|
|
128
123
|
] }),
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
o && /* @__PURE__ */ t(
|
|
125
|
+
h,
|
|
131
126
|
{
|
|
132
|
-
src:
|
|
127
|
+
src: o,
|
|
133
128
|
alt: n,
|
|
134
|
-
width:
|
|
135
|
-
height:
|
|
129
|
+
width: m ? 312 : 588,
|
|
130
|
+
height: m ? 218 : 400,
|
|
136
131
|
className: a("max-tablet:!w-full align-bottom items-end mt-auto"),
|
|
137
132
|
imageStyles: "object-contain object-bottom"
|
|
138
133
|
}
|
|
@@ -141,6 +136,7 @@ const S = (m = 768) => {
|
|
|
141
136
|
}
|
|
142
137
|
) });
|
|
143
138
|
};
|
|
139
|
+
k.propsToEdit = j;
|
|
144
140
|
export {
|
|
145
|
-
|
|
141
|
+
k as Banner
|
|
146
142
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { C as
|
|
3
|
-
import { I as p } from "../index-
|
|
4
|
-
import { c as m } from "../cn-
|
|
5
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { C as s } from "../ComponentContainer-0fcc2695.js";
|
|
3
|
+
import { I as p } from "../index-60dfa873.js";
|
|
4
|
+
import { c as m } from "../cn-d8c04b28.js";
|
|
5
|
+
const x = ["banner_card", "text_card", "is_banner_first"], f = ({
|
|
6
6
|
banner_card: l,
|
|
7
7
|
text_card: e,
|
|
8
|
-
is_banner_first:
|
|
9
|
-
}) => /* @__PURE__ */
|
|
10
|
-
(l == null ? void 0 : l.image) && /* @__PURE__ */
|
|
8
|
+
is_banner_first: i
|
|
9
|
+
}) => /* @__PURE__ */ o(s, { className: "p-0", children: /* @__PURE__ */ t("div", { className: "w-full h-full flex flex-col lg:flex-row items-stretch gap-[24px]", children: [
|
|
10
|
+
(l == null ? void 0 : l.image) && /* @__PURE__ */ o("div", { className: "w-auto rounded-[20px] h-full object-cover", children: /* @__PURE__ */ o(
|
|
11
11
|
p,
|
|
12
12
|
{
|
|
13
13
|
src: l == null ? void 0 : l.image,
|
|
@@ -15,22 +15,23 @@ const u = ({
|
|
|
15
15
|
className: "h-full"
|
|
16
16
|
}
|
|
17
17
|
) }),
|
|
18
|
-
e && /* @__PURE__ */
|
|
18
|
+
e && /* @__PURE__ */ t(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
21
|
className: m(
|
|
22
22
|
"w-full flex flex-col bg-white justify-center gap-[11px] rounded-[20px] p-[32px]",
|
|
23
23
|
{
|
|
24
|
-
"order-[-1]": !
|
|
24
|
+
"order-[-1]": !i
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ o("p", { className: "font-inter text-[32px] leading-[40px] max-tablet:text-[24px] max-tablet:leading-[28px] font-bold", children: e.title }),
|
|
29
|
+
/* @__PURE__ */ o("p", { className: "text-graySoft text-[16px] leading-[24px]", children: e.description })
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
] }) });
|
|
34
|
+
f.propsToEdit = x;
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
f as BannerAndText
|
|
36
37
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { F as n, S as
|
|
3
|
-
import { C as p } from "../ComponentContainer-
|
|
4
|
-
import { c as s } from "../cn-
|
|
5
|
-
const
|
|
1
|
+
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { F as n, S as l } from "../index-6e0f7db0.js";
|
|
3
|
+
import { C as p } from "../ComponentContainer-0fcc2695.js";
|
|
4
|
+
import { c as s } from "../cn-d8c04b28.js";
|
|
5
|
+
const d = ["cards", "title", "size", "is_cards_first", "multiHasText"], b = ({
|
|
6
6
|
cards: a,
|
|
7
7
|
title: o,
|
|
8
|
-
size:
|
|
9
|
-
is_cards_first:
|
|
8
|
+
size: i = l.SMALL,
|
|
9
|
+
is_cards_first: x,
|
|
10
10
|
multiHasText: r = !1
|
|
11
11
|
}) => {
|
|
12
12
|
let e;
|
|
13
|
-
switch (
|
|
14
|
-
case
|
|
13
|
+
switch (i) {
|
|
14
|
+
case l.SMALL:
|
|
15
15
|
e = "flex flex-row items-stretch max-tablet:flex-col";
|
|
16
16
|
break;
|
|
17
|
-
case
|
|
17
|
+
case l.MEDIUM:
|
|
18
18
|
e = "grid grid-cols-3 items-stretch max-tablet:grid-cols-1";
|
|
19
19
|
break;
|
|
20
|
-
case
|
|
20
|
+
case l.LARGE:
|
|
21
21
|
e = "grid grid-cols-2 items-stretch max-tablet:grid-cols-1";
|
|
22
22
|
break;
|
|
23
23
|
default:
|
|
24
24
|
e = "flex flex-row items-stretch max-tablet:flex-col";
|
|
25
25
|
break;
|
|
26
26
|
}
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ t(
|
|
28
28
|
p,
|
|
29
29
|
{
|
|
30
|
-
className: s("p-0", { "order-[-1]":
|
|
31
|
-
children: /* @__PURE__ */
|
|
30
|
+
className: s("p-0", { "order-[-1]": x }),
|
|
31
|
+
children: /* @__PURE__ */ f(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
34
|
className: s("w-full h-full flex flex-col items-center gap-[24px]"),
|
|
35
35
|
children: [
|
|
36
|
-
o && /* @__PURE__ */
|
|
36
|
+
o && /* @__PURE__ */ t(
|
|
37
37
|
"p",
|
|
38
38
|
{
|
|
39
39
|
className: `font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px]
|
|
@@ -41,23 +41,23 @@ const u = ({
|
|
|
41
41
|
children: o
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ t(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
className: `${e} gap-[24px] w-full ${r ? "grid grid-cols-2 max-tablet:flex h-full" : "flex flex-row max-tablet:flex-col"}`,
|
|
48
|
-
children: a == null ? void 0 : a.map((
|
|
48
|
+
children: a == null ? void 0 : a.map((m, c) => /* @__PURE__ */ t(
|
|
49
49
|
n,
|
|
50
50
|
{
|
|
51
|
-
data:
|
|
52
|
-
size:
|
|
51
|
+
data: m,
|
|
52
|
+
size: i,
|
|
53
53
|
className: s(
|
|
54
54
|
{ "h-full": r },
|
|
55
55
|
{
|
|
56
|
-
"col-span-2": r &&
|
|
56
|
+
"col-span-2": r && c === 0
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
},
|
|
60
|
-
|
|
60
|
+
c
|
|
61
61
|
))
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -67,6 +67,7 @@ const u = ({
|
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
};
|
|
70
|
+
b.propsToEdit = d;
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
b as CardIconList
|
|
72
73
|
};
|