md-components-mdigial-azamat 0.0.109 → 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.
Files changed (166) hide show
  1. package/dist/ActionCardList/ActionCardList.js +32 -7
  2. package/dist/ActionCardList/index.js +1 -1
  3. package/dist/ActionCardList/info.js +1 -1
  4. package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
  5. package/dist/ActionCardSecondaryList/index.js +6 -0
  6. package/dist/ActionCardSecondaryList/info.js +11 -0
  7. package/dist/ActionCardSecondaryList/schema.js +51 -0
  8. package/dist/ActionCardSecondaryList/types.js +4 -0
  9. package/dist/ActionIconList/ActionIconList.js +29 -4
  10. package/dist/AllComponents.js +35 -9
  11. package/dist/AllComponentsInfo.js +107 -89
  12. package/dist/AnimatedSwiper/index.js +40 -38
  13. package/dist/ButtonsList/ButtonsList.js +25 -19
  14. package/dist/CardImageList/CardImageList.js +130 -73
  15. package/dist/CardImageList/info.js +1 -1
  16. package/dist/CardImageList/schema.js +62 -0
  17. package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
  18. package/dist/Cards/ActionSecondaryCard/index.js +6 -0
  19. package/dist/Cards/ActionSecondaryCard/info.js +11 -0
  20. package/dist/Cards/ActionSecondaryCard/types.js +4 -0
  21. package/dist/Cards/CardImage/CardImage.js +100 -55
  22. package/dist/Cards/CardImage/index.js +6 -1
  23. package/dist/Cards/CardImage/info.js +1 -1
  24. package/dist/Cards/CardImage/schema.js +32 -0
  25. package/dist/Cards/CardImage/types.js +3 -2
  26. package/dist/Cards/InfoCard/InfoCard.js +114 -0
  27. package/dist/Cards/InfoCard/index.js +9 -0
  28. package/dist/Cards/InfoCard/info.js +11 -0
  29. package/dist/Cards/InfoCard/schema.js +60 -0
  30. package/dist/Cards/InfoCard/types.js +4 -0
  31. package/dist/Cards/PostCard/PostCard.js +60 -0
  32. package/dist/Cards/PostCard/index.js +6 -0
  33. package/dist/Cards/PostCard/info.js +11 -0
  34. package/dist/Cards/PostCard/types.js +4 -0
  35. package/dist/Cards/WarningCard/WarningCard.js +31 -6
  36. package/dist/Cards/WarningCard/index.js +1 -1
  37. package/dist/Cards/WarningCard/info.js +1 -1
  38. package/dist/Cards/WarningCard/model.js +1 -1
  39. package/dist/CurrencyRates/CurrencyRates.js +78 -0
  40. package/dist/CurrencyRates/components/Calculator.js +101 -0
  41. package/dist/CurrencyRates/components/RateCell.js +15 -0
  42. package/dist/CurrencyRates/components/RatesTable.js +134 -0
  43. package/dist/CurrencyRates/components/index.js +6 -0
  44. package/dist/CurrencyRates/index.js +8 -0
  45. package/dist/CurrencyRates/info.js +11 -0
  46. package/dist/CurrencyRates/schema.js +63 -0
  47. package/dist/CurrencyRates/types.js +4 -0
  48. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
  49. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
  50. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
  51. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
  52. package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
  53. package/dist/Faq/Faq.js +1 -1
  54. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
  55. package/dist/Faq/components/FeedbackForm/index.js +1 -1
  56. package/dist/FieldInput-ef2a18d4.js +2743 -0
  57. package/dist/Flex-86aee720.js +78 -0
  58. package/dist/Footer/Footer.js +5 -5
  59. package/dist/Forms/FormDefault/FormDefault.js +12 -0
  60. package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
  61. package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
  62. package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
  63. package/dist/Forms/FormDefault/components/FormContent.js +10 -0
  64. package/dist/Forms/FormDefault/components/FormFields.js +7 -0
  65. package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
  66. package/dist/Forms/FormDefault/components/index.js +6 -0
  67. package/dist/Forms/FormDefault/hooks/index.js +10 -0
  68. package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
  69. package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
  70. package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
  71. package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
  72. package/dist/Forms/FormDefault/index.js +6 -12
  73. package/dist/Forms/FormDefault/info.js +3 -113
  74. package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
  75. package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
  76. package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
  77. package/dist/Forms/FormDefault/model/index.js +13 -0
  78. package/dist/Forms/FormDefault/model/requestForm.js +4 -0
  79. package/dist/Forms/{model/components.js → FormDefault/schema.js} +36 -7
  80. package/dist/Forms/FormDefault/utils.js +20 -0
  81. package/dist/Grid-331af266.js +80 -0
  82. package/dist/Header/Header.js +54 -42
  83. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +26 -24
  84. package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
  85. package/dist/Header/components/HeaderSearch/HeaderSearch.js +1 -1
  86. package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
  87. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +10 -9
  88. package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
  89. package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
  90. package/dist/HeroIconsBanner/HeroIconsBanner.js +71 -54
  91. package/dist/IconList/IconList.js +59 -33
  92. package/dist/InfoCardList/InfoCardList.js +100 -0
  93. package/dist/InfoCardList/index.js +6 -0
  94. package/dist/InfoCardList/info.js +11 -0
  95. package/dist/InfoCardList/schema.js +39 -0
  96. package/dist/InfoCardList/types.js +1 -0
  97. package/dist/ModalBody/index.js +1 -1
  98. package/dist/PageViewer/renderComponents.js +1 -1
  99. package/dist/PostsList/PostsList.js +78 -0
  100. package/dist/PostsList/index.js +4 -0
  101. package/dist/PostsList/info.js +11 -0
  102. package/dist/PostsList/schema.js +49 -0
  103. package/dist/PostsList/types.js +1 -0
  104. package/dist/PostsSlider/PostsSlider.js +78 -0
  105. package/dist/PostsSlider/index.js +4 -0
  106. package/dist/PostsSlider/info.js +11 -0
  107. package/dist/PostsSlider/schema.js +49 -0
  108. package/dist/PostsSlider/types.js +1 -0
  109. package/dist/PreviewList/PreviewList.js +19 -19
  110. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -29
  111. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  112. package/dist/RenderAllComponents/const.js +1 -1
  113. package/dist/SearchBlock/SearchBlock.js +101 -0
  114. package/dist/SearchBlock/index.js +4 -0
  115. package/dist/SearchBlock/info.js +11 -0
  116. package/dist/SearchBlock/schema.js +36 -0
  117. package/dist/SegmentedContent/SegmentedContent.js +160 -0
  118. package/dist/SegmentedContent/components/ContentCard.js +50 -0
  119. package/dist/SegmentedContent/components/index.js +4 -0
  120. package/dist/SegmentedContent/index.js +8 -0
  121. package/dist/SegmentedContent/info.js +12 -0
  122. package/dist/SegmentedContent/schema.js +108 -0
  123. package/dist/SegmentedContent/types.js +1 -0
  124. package/dist/Segments/Segments.js +36 -28
  125. package/dist/Segments/index.js +8 -2
  126. package/dist/Segments/info.js +1 -1
  127. package/dist/Segments/schema.js +21 -0
  128. package/dist/Segments/types.js +4 -1
  129. package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
  130. package/dist/SegmentsIcons/index.js +8 -0
  131. package/dist/SegmentsIcons/info.js +11 -0
  132. package/dist/SegmentsIcons/schema.js +14 -0
  133. package/dist/SegmentsIcons/types.js +1 -0
  134. package/dist/SwiperList/SwiperList.js +13 -11
  135. package/dist/assets/index.css +1 -1
  136. package/dist/{clientApi-642fea4b.js → clientApi-ccb08ba6.js} +7 -7
  137. package/dist/{componentsMap-855b1df7.js → componentsMap-29ccdfcc.js} +6 -3
  138. package/dist/{data.mock-182979d1.js → data.mock-bb32e8ee.js} +485 -133
  139. package/dist/index-0791c17f.js +56 -0
  140. package/dist/index-2ec92a04.js +32 -0
  141. package/dist/{index-497f59a8.js → index-b795390d.js} +23 -20
  142. package/dist/index.esm-0558519f.js +1171 -0
  143. package/dist/{index.module-c8833286.js → index.module-8835bf96.js} +1 -1
  144. package/dist/info-72904479.js +791 -0
  145. package/dist/main.js +151 -116
  146. package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
  147. package/dist/navigation-266856e7.js +136 -0
  148. package/dist/navigation-cd786a0d.js +133 -0
  149. package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
  150. package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
  151. package/dist/trash/HeroLargeCards/index.js +7 -6
  152. package/dist/types-c3843cc0.js +4 -0
  153. package/dist/useDraggableScroll-440da9b7.js +29 -0
  154. package/dist/useTranslation-d7a3ca6f.js +298 -0
  155. package/package.json +1 -1
  156. package/dist/FileLoader/fileLoader.js +0 -22
  157. package/dist/FileLoader/index.js +0 -8
  158. package/dist/Forms/FormDefault/componentTypes.js +0 -31
  159. package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
  160. package/dist/Forms/helpers/renderFormFields.js +0 -7
  161. package/dist/Forms/model/requestForm.js +0 -4
  162. package/dist/index-6686852d.js +0 -1794
  163. package/dist/index-a0ed2e4a.js +0 -1221
  164. package/dist/info-34fbb2a8.js +0 -1534
  165. package/dist/navigation-b894d0cd.js +0 -183
  166. /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
@@ -0,0 +1,78 @@
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { C as x } from "../ComponentContainer-dca711c6.js";
3
+ import { F as a } from "../Flex-86aee720.js";
4
+ import { c } from "../cn-6a4bf187.js";
5
+ import { Calculator as b } from "./components/Calculator.js";
6
+ import { RatesTable as d } from "./components/RatesTable.js";
7
+ import { propsToEdit as f } from "./schema.js";
8
+ import { CurrencyRatesVariant as r } from "./types.js";
9
+ const h = {
10
+ [r.PRIMARY]: {
11
+ container: "bg-white text-blackBG",
12
+ title: "text-blackBG"
13
+ },
14
+ [r.SECONDARY]: {
15
+ container: "bg-white/15 backdrop-blur-[20px] border border-white/15 text-white",
16
+ title: "text-white"
17
+ }
18
+ }, u = ({
19
+ title: m = "Курсы валют",
20
+ calculatorTitle: p = "Калькулятор",
21
+ rates: t,
22
+ variant: o = r.PRIMARY
23
+ }) => {
24
+ var i;
25
+ const l = h[o], s = ((i = t == null ? void 0 : t[0]) == null ? void 0 : i.symbol) || "c";
26
+ return /* @__PURE__ */ e(x, { children: /* @__PURE__ */ n(
27
+ a,
28
+ {
29
+ vertical: !0,
30
+ gap: 16,
31
+ className: c(
32
+ "w-full rounded-3xl p-8 max-tablet:p-4",
33
+ l.container
34
+ ),
35
+ children: [
36
+ /* @__PURE__ */ e(
37
+ "h2",
38
+ {
39
+ className: c(
40
+ "text-[28px] font-bold leading-[42px] max-tablet:text-[22px] max-tablet:leading-[26px]",
41
+ l.title
42
+ ),
43
+ children: m
44
+ }
45
+ ),
46
+ /* @__PURE__ */ n(
47
+ a,
48
+ {
49
+ vertical: !0,
50
+ gap: 32,
51
+ className: "w-full",
52
+ children: [
53
+ /* @__PURE__ */ e(
54
+ b,
55
+ {
56
+ title: p,
57
+ symbol: s,
58
+ variant: o
59
+ }
60
+ ),
61
+ t && t.length > 0 && /* @__PURE__ */ e(
62
+ d,
63
+ {
64
+ rates: t,
65
+ variant: o
66
+ }
67
+ )
68
+ ]
69
+ }
70
+ )
71
+ ]
72
+ }
73
+ ) });
74
+ };
75
+ u.propsToEdit = f;
76
+ export {
77
+ u as CurrencyRates
78
+ };
@@ -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,6 @@
1
+ import { Calculator as a } from "./Calculator.js";
2
+ import { RatesTable as t } from "./RatesTable.js";
3
+ export {
4
+ a as Calculator,
5
+ t as RatesTable
6
+ };
@@ -0,0 +1,8 @@
1
+ import { CurrencyRates as e } from "./CurrencyRates.js";
2
+ import { CurrencyRatesVariant as p } from "./types.js";
3
+ import { propsToEdit as f } from "./schema.js";
4
+ export {
5
+ e as CurrencyRates,
6
+ p as CurrencyRatesVariant,
7
+ f as propsToEdit
8
+ };
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ var o = /* @__PURE__ */ ((r) => (r.PRIMARY = "primary", r.SECONDARY = "secondary", r))(o || {});
2
+ export {
3
+ o as CurrencyRatesVariant
4
+ };
@@ -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-c2fe86ec.js";
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-c2fe86ec.js";
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-c2fe86ec.js";
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-c2fe86ec.js";
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-c2fe86ec.js";
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 { F as t } from "../index-a0ed2e4a.js";
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 e } from "../../../index-a0ed2e4a.js";
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
- e as FeedbackForm
56
+ V as FeedbackForm
8
57
  };
@@ -1,4 +1,4 @@
1
- import { F as r } from "../../../index-a0ed2e4a.js";
1
+ import { FeedbackForm as r } from "./FeedbackForm.js";
2
2
  export {
3
3
  r as FeedbackForm
4
4
  };