md-components-mdigial-azamat 0.0.112 → 0.0.113
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/dist/ActionCardList/ActionCardList.js +28 -5
- package/dist/ActionCardList/index.js +1 -1
- package/dist/ActionCardList/info.js +1 -1
- package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
- package/dist/ActionCardSecondaryList/index.js +6 -0
- package/dist/ActionCardSecondaryList/info.js +11 -0
- package/dist/ActionCardSecondaryList/schema.js +51 -0
- package/dist/ActionCardSecondaryList/types.js +4 -0
- package/dist/ActionIconList/ActionIconList.js +25 -2
- package/dist/AllComponents.js +28 -5
- package/dist/AllComponentsInfo.js +111 -95
- package/dist/AnimatedSwiper/index.js +40 -38
- package/dist/CardImageList/CardImageList.js +122 -81
- package/dist/CardImageList/schema.js +17 -12
- package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
- package/dist/Cards/ActionSecondaryCard/index.js +6 -0
- package/dist/Cards/ActionSecondaryCard/info.js +11 -0
- package/dist/Cards/ActionSecondaryCard/types.js +4 -0
- package/dist/Cards/CardImage/CardImage.js +48 -50
- package/dist/Cards/InfoCard/InfoCard.js +114 -0
- package/dist/Cards/InfoCard/index.js +9 -0
- package/dist/Cards/InfoCard/info.js +11 -0
- package/dist/Cards/InfoCard/schema.js +60 -0
- package/dist/Cards/InfoCard/types.js +4 -0
- package/dist/Cards/PostCard/PostCard.js +60 -0
- package/dist/Cards/PostCard/index.js +6 -0
- package/dist/Cards/PostCard/info.js +11 -0
- package/dist/Cards/PostCard/types.js +4 -0
- package/dist/Cards/WarningCard/WarningCard.js +27 -4
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/info.js +1 -1
- package/dist/Cards/WarningCard/model.js +1 -1
- package/dist/CurrencyRates/CurrencyRates.js +78 -0
- package/dist/CurrencyRates/components/Calculator.js +101 -0
- package/dist/CurrencyRates/components/RateCell.js +15 -0
- package/dist/CurrencyRates/components/RatesTable.js +134 -0
- package/dist/CurrencyRates/components/index.js +6 -0
- package/dist/CurrencyRates/index.js +8 -0
- package/dist/CurrencyRates/info.js +11 -0
- package/dist/CurrencyRates/schema.js +63 -0
- package/dist/CurrencyRates/types.js +4 -0
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
- package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
- package/dist/Faq/Faq.js +1 -1
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
- package/dist/Faq/components/FeedbackForm/index.js +1 -1
- package/dist/FieldInput-ef2a18d4.js +2743 -0
- package/dist/Forms/FormDefault/FormDefault.js +12 -0
- package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
- package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
- package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
- package/dist/Forms/FormDefault/components/FormContent.js +10 -0
- package/dist/Forms/FormDefault/components/FormFields.js +7 -0
- package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
- package/dist/Forms/FormDefault/components/index.js +6 -0
- package/dist/Forms/FormDefault/hooks/index.js +10 -0
- package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
- package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
- package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
- package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
- package/dist/Forms/FormDefault/index.js +6 -12
- package/dist/Forms/FormDefault/info.js +3 -115
- package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
- package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
- package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
- package/dist/Forms/FormDefault/model/index.js +13 -0
- package/dist/Forms/FormDefault/model/requestForm.js +4 -0
- package/dist/Forms/{model/components.js → FormDefault/schema.js} +32 -5
- package/dist/Forms/FormDefault/utils.js +20 -0
- package/dist/Grid-331af266.js +80 -0
- package/dist/Header/Header.js +54 -42
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +21 -19
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
- package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
- package/dist/HeroIconsBanner/HeroIconsBanner.js +25 -25
- package/dist/IconList/IconList.js +60 -54
- package/dist/InfoCardList/InfoCardList.js +100 -0
- package/dist/InfoCardList/index.js +6 -0
- package/dist/InfoCardList/info.js +11 -0
- package/dist/InfoCardList/schema.js +39 -0
- package/dist/InfoCardList/types.js +1 -0
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PostsList/PostsList.js +78 -0
- package/dist/PostsList/index.js +4 -0
- package/dist/PostsList/info.js +11 -0
- package/dist/PostsList/schema.js +49 -0
- package/dist/PostsList/types.js +1 -0
- package/dist/PostsSlider/PostsSlider.js +78 -0
- package/dist/PostsSlider/index.js +4 -0
- package/dist/PostsSlider/info.js +11 -0
- package/dist/PostsSlider/schema.js +49 -0
- package/dist/PostsSlider/types.js +1 -0
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/SearchBlock/SearchBlock.js +36 -37
- package/dist/SegmentedContent/SegmentedContent.js +160 -0
- package/dist/SegmentedContent/components/ContentCard.js +50 -0
- package/dist/SegmentedContent/components/index.js +4 -0
- package/dist/SegmentedContent/index.js +8 -0
- package/dist/SegmentedContent/info.js +12 -0
- package/dist/SegmentedContent/schema.js +108 -0
- package/dist/SegmentedContent/types.js +1 -0
- package/dist/Segments/Segments.js +36 -28
- package/dist/Segments/index.js +8 -2
- package/dist/Segments/info.js +1 -1
- package/dist/Segments/schema.js +21 -0
- package/dist/Segments/types.js +4 -1
- package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
- package/dist/SegmentsIcons/index.js +8 -0
- package/dist/SegmentsIcons/info.js +11 -0
- package/dist/SegmentsIcons/schema.js +14 -0
- package/dist/SegmentsIcons/types.js +1 -0
- package/dist/SwiperList/SwiperList.js +13 -11
- package/dist/assets/index.css +1 -1
- package/dist/{componentsMap-cac6c316.js → componentsMap-29ccdfcc.js} +5 -3
- package/dist/{data.mock-ebc679ec.js → data.mock-bb32e8ee.js} +420 -148
- package/dist/index-0791c17f.js +56 -0
- package/dist/index-2ec92a04.js +32 -0
- package/dist/index.esm-0558519f.js +1171 -0
- package/dist/info-72904479.js +791 -0
- package/dist/main.js +151 -119
- package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
- package/dist/navigation-266856e7.js +136 -0
- package/dist/navigation-cd786a0d.js +133 -0
- package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
- package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
- package/dist/types-c3843cc0.js +4 -0
- package/dist/useDraggableScroll-440da9b7.js +29 -0
- package/dist/useTranslation-d7a3ca6f.js +298 -0
- package/package.json +1 -1
- package/dist/FileLoader/fileLoader.js +0 -22
- package/dist/FileLoader/index.js +0 -8
- package/dist/Forms/FormDefault/componentTypes.js +0 -31
- package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
- package/dist/Forms/helpers/renderFormFields.js +0 -7
- package/dist/Forms/model/requestForm.js +0 -4
- package/dist/index-6686852d.js +0 -1794
- package/dist/index-a0ed2e4a.js +0 -1221
- package/dist/info-d05a1f02.js +0 -1547
- package/dist/navigation-b894d0cd.js +0 -183
- /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { F as s } from "../../Flex-86aee720.js";
|
|
3
|
+
import { c as l } from "../../cn-6a4bf187.js";
|
|
4
|
+
import { CurrencyRatesVariant as n } from "../types.js";
|
|
5
|
+
const i = ({
|
|
6
|
+
color: r = "currentColor",
|
|
7
|
+
className: o,
|
|
8
|
+
width: a = 14,
|
|
9
|
+
height: t = 8
|
|
10
|
+
}) => /* @__PURE__ */ e(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
width: a,
|
|
14
|
+
height: t,
|
|
15
|
+
viewBox: "0 0 14 8",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
className: l(o),
|
|
19
|
+
children: /* @__PURE__ */ e(
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M13.9316 1.38477L8.57129 6.97754C8.38301 7.17396 8.17225 7.39622 7.9707 7.55664C7.74796 7.73383 7.41453 7.93649 6.96582 7.93652C6.51711 7.93649 6.18368 7.73383 5.96094 7.55664C5.75955 7.39634 5.5495 7.17385 5.36133 6.97754L0 1.38477L1.44336 0L6.80469 5.59277C6.86497 5.65566 6.91888 5.70954 6.96582 5.75781C7.01281 5.70948 7.06658 5.65575 7.12695 5.59277L12.4883 0L13.9316 1.38477Z",
|
|
23
|
+
fill: r
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
), p = {
|
|
28
|
+
[n.PRIMARY]: {
|
|
29
|
+
title: "text-graySoft",
|
|
30
|
+
input: "border-[#D7DCE1] text-blackBG placeholder:text-blackBG",
|
|
31
|
+
currencyColor: "text-blackBG",
|
|
32
|
+
chevronColor: "#0E0F11"
|
|
33
|
+
},
|
|
34
|
+
[n.SECONDARY]: {
|
|
35
|
+
title: "text-white/80",
|
|
36
|
+
input: "border-[#D7DCE1] text-[#F4F6F7] placeholder:text-[#F4F6F7]",
|
|
37
|
+
currencyColor: "text-white",
|
|
38
|
+
chevronColor: "white"
|
|
39
|
+
}
|
|
40
|
+
}, m = ({
|
|
41
|
+
title: r,
|
|
42
|
+
symbol: o = "c",
|
|
43
|
+
variant: a = n.PRIMARY
|
|
44
|
+
}) => {
|
|
45
|
+
const t = p[a];
|
|
46
|
+
return /* @__PURE__ */ c(
|
|
47
|
+
s,
|
|
48
|
+
{
|
|
49
|
+
vertical: !0,
|
|
50
|
+
gap: 12,
|
|
51
|
+
className: "w-full",
|
|
52
|
+
children: [
|
|
53
|
+
r && /* @__PURE__ */ e(
|
|
54
|
+
"span",
|
|
55
|
+
{
|
|
56
|
+
className: l(
|
|
57
|
+
"text-base leading-none max-tablet:text-sm",
|
|
58
|
+
t.title
|
|
59
|
+
),
|
|
60
|
+
children: r
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ c("div", { className: "relative w-full", children: [
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
className: l(
|
|
68
|
+
"absolute left-4 top-1/2 -translate-y-1/2 text-2xl font-bold",
|
|
69
|
+
t.currencyColor
|
|
70
|
+
),
|
|
71
|
+
children: /* @__PURE__ */ e("span", { className: "mr-1", children: o })
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
"input",
|
|
76
|
+
{
|
|
77
|
+
type: "text",
|
|
78
|
+
placeholder: "Введите сумму",
|
|
79
|
+
className: l(
|
|
80
|
+
"w-full bg-transparent h-14 px-10 rounded-xl border text-base focus:outline-none",
|
|
81
|
+
t.input
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ e(
|
|
86
|
+
s,
|
|
87
|
+
{
|
|
88
|
+
justify: "center",
|
|
89
|
+
align: "center",
|
|
90
|
+
className: "absolute size-6 right-4 top-1/2 -translate-y-1/2 cursor-pointer",
|
|
91
|
+
children: /* @__PURE__ */ e(i, { color: t.chevronColor })
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
] })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
m as Calculator
|
|
101
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as x } from "../../cn-6a4bf187.js";
|
|
3
|
+
const s = ({ value: t, className: e }) => /* @__PURE__ */ a(
|
|
4
|
+
"span",
|
|
5
|
+
{
|
|
6
|
+
className: x(
|
|
7
|
+
"text-base leading-8 text-start w-[100px] max-tablet:text-[15px] max-tablet:leading-[22px]",
|
|
8
|
+
e
|
|
9
|
+
),
|
|
10
|
+
children: t
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
export {
|
|
14
|
+
s as RateCell
|
|
15
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { F as r } from "../../Flex-86aee720.js";
|
|
3
|
+
import { I as n } from "../../index-9384c6d6.js";
|
|
4
|
+
import { c as t } from "../../cn-6a4bf187.js";
|
|
5
|
+
import { CurrencyRatesVariant as o } from "../types.js";
|
|
6
|
+
import { RateCell as s } from "./RateCell.js";
|
|
7
|
+
const i = {
|
|
8
|
+
[o.PRIMARY]: {
|
|
9
|
+
headerText: "text-graySoft",
|
|
10
|
+
textColor: "text-blackBG"
|
|
11
|
+
},
|
|
12
|
+
[o.SECONDARY]: {
|
|
13
|
+
headerText: "text-[#F4F6F7]",
|
|
14
|
+
textColor: "text-white"
|
|
15
|
+
}
|
|
16
|
+
}, N = ({
|
|
17
|
+
rates: c,
|
|
18
|
+
variant: x = o.PRIMARY
|
|
19
|
+
}) => {
|
|
20
|
+
const a = i[x];
|
|
21
|
+
return /* @__PURE__ */ m(
|
|
22
|
+
r,
|
|
23
|
+
{
|
|
24
|
+
vertical: !0,
|
|
25
|
+
className: "w-full gap-6 max-tablet:gap-4",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ m(
|
|
28
|
+
r,
|
|
29
|
+
{
|
|
30
|
+
justify: "between",
|
|
31
|
+
className: "w-full",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
s,
|
|
35
|
+
{
|
|
36
|
+
value: "Валюта",
|
|
37
|
+
className: t(a.headerText)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
s,
|
|
42
|
+
{
|
|
43
|
+
value: "Покупка",
|
|
44
|
+
className: t(a.headerText)
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
s,
|
|
49
|
+
{
|
|
50
|
+
value: "Продажа",
|
|
51
|
+
className: t("max-tablet:w-[68px]", a.headerText)
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ e(
|
|
55
|
+
s,
|
|
56
|
+
{
|
|
57
|
+
value: "Курс НБКР",
|
|
58
|
+
className: t("max-tablet:hidden", a.headerText)
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
c.map((l) => /* @__PURE__ */ m(
|
|
65
|
+
r,
|
|
66
|
+
{
|
|
67
|
+
align: "center",
|
|
68
|
+
justify: "between",
|
|
69
|
+
className: t("w-full rounded-2xl"),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ m(
|
|
72
|
+
r,
|
|
73
|
+
{
|
|
74
|
+
align: "center",
|
|
75
|
+
gap: 12,
|
|
76
|
+
className: "w-[100px]",
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ e(
|
|
79
|
+
n,
|
|
80
|
+
{
|
|
81
|
+
src: l.flag,
|
|
82
|
+
alt: l.currency,
|
|
83
|
+
className: "size-8 max-tablet:size-7",
|
|
84
|
+
imageStyles: "w-full h-full object-cover object-center rounded-full"
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ e(
|
|
88
|
+
"span",
|
|
89
|
+
{
|
|
90
|
+
className: t(
|
|
91
|
+
"font-medium max-tablet:text-[15px] max-tablet:leading-[22px]",
|
|
92
|
+
a.textColor
|
|
93
|
+
),
|
|
94
|
+
children: l.currency
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
s,
|
|
102
|
+
{
|
|
103
|
+
value: l.buy,
|
|
104
|
+
className: t("font-semibold max-tablet:font-medium", a.textColor)
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
s,
|
|
109
|
+
{
|
|
110
|
+
value: l.sell,
|
|
111
|
+
className: t(
|
|
112
|
+
"font-semibold max-tablet:font-medium max-tablet:w-[68px]",
|
|
113
|
+
a.textColor
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ e(
|
|
118
|
+
s,
|
|
119
|
+
{
|
|
120
|
+
value: l.nbkr,
|
|
121
|
+
className: t("font-semibold max-tablet:hidden", a.textColor)
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
l.id
|
|
127
|
+
))
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
N as RatesTable
|
|
134
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { C as o } from "../index-0a5f313c.js";
|
|
2
|
+
import { propsToEdit as t } from "./schema.js";
|
|
3
|
+
const p = {
|
|
4
|
+
title: "Курсы валют",
|
|
5
|
+
description: "Таблица курсов валют с калькулятором",
|
|
6
|
+
types: [o.tables],
|
|
7
|
+
propsToEdit: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
p as currencyRatesInfo
|
|
11
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { FieldTypes as e } from "../Types/FiledTypes.js";
|
|
2
|
+
import { CurrencyRatesVariant as l } from "./types.js";
|
|
3
|
+
const t = [
|
|
4
|
+
{
|
|
5
|
+
type: e.TITLE,
|
|
6
|
+
label: "Заголовок",
|
|
7
|
+
key: "title"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: e.STRING,
|
|
11
|
+
label: "Заголовок калькулятора",
|
|
12
|
+
key: "calculatorTitle"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: e.VARIANT,
|
|
16
|
+
label: "Вариант",
|
|
17
|
+
key: "variant",
|
|
18
|
+
options: [
|
|
19
|
+
{ label: "Primary", value: l.PRIMARY },
|
|
20
|
+
{ label: "Secondary", value: l.SECONDARY }
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: e.ARRAY,
|
|
25
|
+
label: "Курсы валют",
|
|
26
|
+
key: "rates",
|
|
27
|
+
props: {
|
|
28
|
+
currency: {
|
|
29
|
+
type: e.STRING,
|
|
30
|
+
label: "Валюта (USD)",
|
|
31
|
+
key: "currency"
|
|
32
|
+
},
|
|
33
|
+
symbol: {
|
|
34
|
+
type: e.STRING,
|
|
35
|
+
label: "Символ ($)",
|
|
36
|
+
key: "symbol"
|
|
37
|
+
},
|
|
38
|
+
flag: {
|
|
39
|
+
type: e.FILE,
|
|
40
|
+
label: "Флаг",
|
|
41
|
+
key: "flag"
|
|
42
|
+
},
|
|
43
|
+
buy: {
|
|
44
|
+
type: e.STRING,
|
|
45
|
+
label: "Покупка",
|
|
46
|
+
key: "buy"
|
|
47
|
+
},
|
|
48
|
+
sell: {
|
|
49
|
+
type: e.STRING,
|
|
50
|
+
label: "Продажа",
|
|
51
|
+
key: "sell"
|
|
52
|
+
},
|
|
53
|
+
nbkr: {
|
|
54
|
+
type: e.STRING,
|
|
55
|
+
label: "Курс НБКР",
|
|
56
|
+
key: "nbkr"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
export {
|
|
62
|
+
t as propsToEdit
|
|
63
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { downloadFile as m } from "../../../Actions/downloadFile/downloadFile.js";
|
|
3
3
|
import { I as l } from "../../../Icon-70ea6cb8.js";
|
|
4
|
-
import { p as o } from "../../../palette-
|
|
4
|
+
import { p as o } from "../../../palette-256cf77a.js";
|
|
5
5
|
import { B as p } from "../../../index-875e92ce.js";
|
|
6
6
|
import { C as s } from "../../../ComponentContainer-dca711c6.js";
|
|
7
7
|
import { u as x } from "../../../useScreenSize-c1b64c02.js";
|
|
@@ -3,7 +3,7 @@ import { invokeProjectAction as s } from "../../../Actions/projectActions.js";
|
|
|
3
3
|
import { Actions as p } from "../../../Actions/types.js";
|
|
4
4
|
import { DataTypesEnum as c, FieldTypes as t } from "../../../Types/FiledTypes.js";
|
|
5
5
|
import { I as r } from "../../../Icon-70ea6cb8.js";
|
|
6
|
-
import { p as n } from "../../../palette-
|
|
6
|
+
import { p as n } from "../../../palette-256cf77a.js";
|
|
7
7
|
import { B as x } from "../../../index-875e92ce.js";
|
|
8
8
|
import { b as d } from "../../../const-53dff524.js";
|
|
9
9
|
import { C as m } from "../../../ComponentContainer-dca711c6.js";
|
|
@@ -3,7 +3,7 @@ import { invokeProjectAction as p } from "../../../Actions/projectActions.js";
|
|
|
3
3
|
import { Actions as c } from "../../../Actions/types.js";
|
|
4
4
|
import { DataTypesEnum as d, FieldTypes as a } from "../../../Types/FiledTypes.js";
|
|
5
5
|
import { I as n } from "../../../Icon-70ea6cb8.js";
|
|
6
|
-
import { p as s } from "../../../palette-
|
|
6
|
+
import { p as s } from "../../../palette-256cf77a.js";
|
|
7
7
|
import { B as x } from "../../../index-875e92ce.js";
|
|
8
8
|
import { b as m } from "../../../const-53dff524.js";
|
|
9
9
|
import { C as f } from "../../../ComponentContainer-dca711c6.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-
|
|
5
|
+
import { p } from "../../../palette-256cf77a.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-dca711c6.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { invokeProjectAction as m } from "../../../Actions/projectActions.js";
|
|
3
3
|
import { Actions as p } from "../../../Actions/types.js";
|
|
4
4
|
import { I as o } from "../../../Icon-70ea6cb8.js";
|
|
5
|
-
import { p as l } from "../../../palette-
|
|
5
|
+
import { p as l } from "../../../palette-256cf77a.js";
|
|
6
6
|
import { B as s } from "../../../index-875e92ce.js";
|
|
7
7
|
import { C as c } from "../../../ComponentContainer-dca711c6.js";
|
|
8
8
|
import { u as x } from "../../../useScreenSize-c1b64c02.js";
|
package/dist/Faq/Faq.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { Collapse as e } from "./components/Collapse/Collapse.js";
|
|
3
|
-
import {
|
|
3
|
+
import { FeedbackForm as t } from "./components/FeedbackForm/FeedbackForm.js";
|
|
4
4
|
import { HtmlContent as x } from "../HtmlContent/HtmlContent.js";
|
|
5
5
|
import { FieldTypes as p } from "../Types/FiledTypes.js";
|
|
6
6
|
import { C as c } from "../ComponentContainer-dca711c6.js";
|
|
@@ -1,8 +1,57 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { F as
|
|
4
|
-
import "../../../index-875e92ce.js";
|
|
5
|
-
import "../../../const-53dff524.js";
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g } from "react";
|
|
3
|
+
import { u as k, F as y } from "../../../index.esm-0558519f.js";
|
|
4
|
+
import { B as i } from "../../../index-875e92ce.js";
|
|
5
|
+
import { a as c, b as d } from "../../../const-53dff524.js";
|
|
6
|
+
const V = ({ faqId: m, percent: u }) => {
|
|
7
|
+
const [a, s] = g(!1), l = k({
|
|
8
|
+
defaultValues: {
|
|
9
|
+
faq: m
|
|
10
|
+
}
|
|
11
|
+
}), { handleSubmit: x, setValue: p, getValues: b } = l, f = (t) => {
|
|
12
|
+
try {
|
|
13
|
+
s(!0), console.log("Submitted:", t);
|
|
14
|
+
} catch (h) {
|
|
15
|
+
console.error("Error submitting feedback:", h);
|
|
16
|
+
} finally {
|
|
17
|
+
s(!1);
|
|
18
|
+
}
|
|
19
|
+
}, o = (t) => {
|
|
20
|
+
p("rate", t), x(f)();
|
|
21
|
+
}, n = b("rate");
|
|
22
|
+
return /* @__PURE__ */ e(y, { ...l, children: /* @__PURE__ */ e("form", { children: /* @__PURE__ */ r("div", { className: "mt-6 flex items-center gap-6 max-tablet:flex-col max-tablet:items-start", children: [
|
|
23
|
+
/* @__PURE__ */ r("div", { className: "border-l-2 border-green pl-6 mr-14 shrink-0", children: [
|
|
24
|
+
/* @__PURE__ */ e("span", { className: "text-gray2 block text-[14px] leading-5", children: `${u}% считают ответ полезным` }),
|
|
25
|
+
/* @__PURE__ */ e("p", { className: "text-blackBG text-[15px] leading-[22px]", children: "Ответ был полезным?" })
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-4 w-full max-tablet::pt-4", children: [
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
i,
|
|
30
|
+
{
|
|
31
|
+
size: c.M,
|
|
32
|
+
variant: d.Secondary,
|
|
33
|
+
className: "w-[125px]",
|
|
34
|
+
disabled: a,
|
|
35
|
+
onClick: () => o("yes"),
|
|
36
|
+
loading: n === "yes" && a,
|
|
37
|
+
children: "Да"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
i,
|
|
42
|
+
{
|
|
43
|
+
size: c.M,
|
|
44
|
+
variant: d.Secondary,
|
|
45
|
+
className: "w-[125px]",
|
|
46
|
+
disabled: a,
|
|
47
|
+
onClick: () => o("no"),
|
|
48
|
+
loading: n === "no" && a,
|
|
49
|
+
children: "Нет"
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
] })
|
|
53
|
+
] }) }) });
|
|
54
|
+
};
|
|
6
55
|
export {
|
|
7
|
-
|
|
56
|
+
V as FeedbackForm
|
|
8
57
|
};
|