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
@@ -1,26 +1,27 @@
1
1
  import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
2
  import { CardImage as n } from "../../Cards/CardImage/CardImage.js";
3
+ import "../../Cards/CardImage/info.js";
3
4
  import { c as x } from "../../cn-6a4bf187.js";
4
- const d = ({
5
+ const h = ({
5
6
  data: r,
6
7
  title: t,
7
- listStyle: i,
8
+ listStyle: c,
8
9
  cardStyle: l,
9
10
  extraButton: m,
10
- largeCards: c = !0
11
+ largeCards: i = !0
11
12
  }) => /* @__PURE__ */ o("div", { className: "w-full flex flex-col items-center gap-6", children: [
12
13
  t && /* @__PURE__ */ s("p", { className: "font-bold text-[44px] leading-[42px] mb-[24px] font-variant-numeric font-feature-settings", children: t }),
13
- /* @__PURE__ */ s("div", { className: x("gap-6", c ? "grid grid-cols-2 items-stretch max-tablet:grid-cols-1" : "flex items-stretch max-tablet:flex-col flex-wrap ", i), children: r == null ? void 0 : r.map((e) => /* @__PURE__ */ s(
14
+ /* @__PURE__ */ s("div", { className: x("gap-6", i ? "grid grid-cols-2 items-stretch max-tablet:grid-cols-1" : "flex items-stretch max-tablet:flex-col flex-wrap ", c), children: r == null ? void 0 : r.map((e) => /* @__PURE__ */ s(
14
15
  n,
15
16
  {
16
17
  data: e,
17
18
  cardStyle: l,
18
- largeCards: c
19
+ largeCards: i
19
20
  },
20
21
  e == null ? void 0 : e.id
21
22
  )) }),
22
23
  m
23
24
  ] });
24
25
  export {
25
- d as HeroCards
26
+ h as HeroCards
26
27
  };
@@ -0,0 +1,4 @@
1
+ var a = /* @__PURE__ */ ((r) => (r.Header = "Header", r.Banner = "Banner", r.CardImageList = "CardImageList", r.Stepper = "Stepper", r.Segments = "Segments", r.Video = "VideoFull", r.VideoList = "VideoList", r.VideoListMini = "VideoListMini", r.ContentCardList = "ContentCardList", r.CardIconList = "CardIconList", r.MultiCards = "MultiCards", r.Partners = "Partners", r.PartnersColors = "PartnersColors", r.MainBanner = "MainBanner", r.WarningCard = "WarningCard", r.Faq = "Faq", r.DownloadFileBanner = "DownloadFileBanner", r.FileBannerSecondary = "FileBannerSecondary", r.DownloadFileFull = "DownloadFileFull", r.DownloadFileHalf = "DownloadFileHalf", r.DownloadFileMini = "DownloadFileMini", r.InstructionList = "InstructionList", r.PreviewList = "PreviewList", r.SwiperList = "SwiperList", r.AnimatedSwiper = "AnimatedSwiper", r.InfoBannerList = "InfoBannerList", r.TasksBannerList = "TasksBannerList", r.VideoMainBanner = "VideoMainBanner", r.EmptyBox = "EmptyBox", r.PromoPoster = "PromoPoster", r.CardImageSecondaryList = "CardImageSecondaryList", r.CardInfoTable = "CardInfoTable", r.StandartTable = "StandartTable", r.IntroBanner = "IntroBanner", r.DownloadFileBright = "DownloadFileBright", r.Footer = "Footer", r.TitleBlock = "TitleBlock", r.ActionCard = "ActionCard", r.ActionSecondaryCard = "ActionSecondaryCard", r.ActionIconList = "ActionIconList", r.ButtonsList = "ButtonsList", r.HeroIconsBanner = "HeroIconsBanner", r.IconList = "IconList", r.SearchBlock = "SearchBlock", r.SegmentsIcons = "SegmentsIcons", r.SegmentedContent = "SegmentedContent", r.InfoCardList = "InfoCardList", r.CurrencyRates = "CurrencyRates", r.ActionCardSecondaryList = "ActionCardSecondaryList", r.PostCard = "PostCard", r.PostsSlider = "PostsSlider", r.FormDefault = "FormDefault", r))(a || {});
2
+ export {
3
+ a as C
4
+ };
@@ -0,0 +1,29 @@
1
+ import { useRef as a, useState as s } from "react";
2
+ const D = () => {
3
+ const e = a(null), [n, o] = s(!1), [r, u] = s(0), [c, f] = s(0);
4
+ return {
5
+ ref: e,
6
+ events: {
7
+ onMouseDown: (t) => {
8
+ e.current && (o(!0), u(t.pageX - e.current.offsetLeft), f(e.current.scrollLeft));
9
+ },
10
+ onMouseLeave: () => {
11
+ o(!1);
12
+ },
13
+ onMouseUp: () => {
14
+ o(!1);
15
+ },
16
+ onMouseMove: (t) => {
17
+ if (!n || !e.current)
18
+ return;
19
+ t.preventDefault();
20
+ const l = t.pageX - e.current.offsetLeft - r;
21
+ e.current.scrollLeft = c - l;
22
+ }
23
+ },
24
+ isDragging: n
25
+ };
26
+ };
27
+ export {
28
+ D as u
29
+ };
@@ -0,0 +1,298 @@
1
+ import q, { createContext as X, useContext as J, useMemo as I, useRef as C, useCallback as B, useState as Q, useEffect as Z } from "react";
2
+ const ee = (e, n, r, g) => {
3
+ var t, S, h, _;
4
+ const c = [r, {
5
+ code: n,
6
+ ...g || {}
7
+ }];
8
+ if ((S = (t = e == null ? void 0 : e.services) == null ? void 0 : t.logger) != null && S.forward)
9
+ return e.services.logger.forward(c, "warn", "react-i18next::", !0);
10
+ w(c[0]) && (c[0] = `react-i18next:: ${c[0]}`), (_ = (h = e == null ? void 0 : e.services) == null ? void 0 : h.logger) != null && _.warn ? e.services.logger.warn(...c) : console != null && console.warn && console.warn(...c);
11
+ }, V = {}, z = (e, n, r, g) => {
12
+ w(r) && V[r] || (w(r) && (V[r] = /* @__PURE__ */ new Date()), ee(e, n, r, g));
13
+ }, M = (e, n) => () => {
14
+ if (e.isInitialized)
15
+ n();
16
+ else {
17
+ const r = () => {
18
+ setTimeout(() => {
19
+ e.off("initialized", r);
20
+ }, 0), n();
21
+ };
22
+ e.on("initialized", r);
23
+ }
24
+ }, D = (e, n, r) => {
25
+ e.loadNamespaces(n, M(e, r));
26
+ }, F = (e, n, r, g) => {
27
+ if (w(r) && (r = [r]), e.options.preload && e.options.preload.indexOf(n) > -1)
28
+ return D(e, r, g);
29
+ r.forEach((c) => {
30
+ e.options.ns.indexOf(c) < 0 && e.options.ns.push(c);
31
+ }), e.loadLanguages(n, M(e, g));
32
+ }, te = (e, n, r = {}) => !n.languages || !n.languages.length ? (z(n, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
33
+ languages: n.languages
34
+ }), !0) : n.hasLoadedNamespace(e, {
35
+ lng: r.lng,
36
+ precheck: (g, c) => {
37
+ if (r.bindI18n && r.bindI18n.indexOf("languageChanging") > -1 && g.services.backendConnector.backend && g.isLanguageChangingTo && !c(g.isLanguageChangingTo, e))
38
+ return !1;
39
+ }
40
+ }), w = (e) => typeof e == "string", ne = (e) => typeof e == "object" && e !== null, re = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ae = {
41
+ "&amp;": "&",
42
+ "&#38;": "&",
43
+ "&lt;": "<",
44
+ "&#60;": "<",
45
+ "&gt;": ">",
46
+ "&#62;": ">",
47
+ "&apos;": "'",
48
+ "&#39;": "'",
49
+ "&quot;": '"',
50
+ "&#34;": '"',
51
+ "&nbsp;": " ",
52
+ "&#160;": " ",
53
+ "&copy;": "©",
54
+ "&#169;": "©",
55
+ "&reg;": "®",
56
+ "&#174;": "®",
57
+ "&hellip;": "…",
58
+ "&#8230;": "…",
59
+ "&#x2F;": "/",
60
+ "&#47;": "/"
61
+ }, oe = (e) => ae[e], se = (e) => e.replace(re, oe);
62
+ let ce = {
63
+ bindI18n: "languageChanged",
64
+ bindI18nStore: "",
65
+ transEmptyNodeValue: "",
66
+ transSupportBasicHtmlNodes: !0,
67
+ transWrapTextNodes: "",
68
+ transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
69
+ useSuspense: !0,
70
+ unescape: se,
71
+ transDefaultProps: void 0
72
+ };
73
+ const ue = () => ce;
74
+ let ie;
75
+ const le = () => ie, fe = X();
76
+ class de {
77
+ constructor() {
78
+ this.usedNamespaces = {};
79
+ }
80
+ addUsedNamespaces(n) {
81
+ n.forEach((r) => {
82
+ this.usedNamespaces[r] || (this.usedNamespaces[r] = !0);
83
+ });
84
+ }
85
+ getUsedNamespaces() {
86
+ return Object.keys(this.usedNamespaces);
87
+ }
88
+ }
89
+ var U = { exports: {} }, A = {};
90
+ /**
91
+ * @license React
92
+ * use-sync-external-store-shim.production.js
93
+ *
94
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
95
+ *
96
+ * This source code is licensed under the MIT license found in the
97
+ * LICENSE file in the root directory of this source tree.
98
+ */
99
+ var K;
100
+ function pe() {
101
+ if (K)
102
+ return A;
103
+ K = 1;
104
+ var e = q;
105
+ function n(a, d) {
106
+ return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
107
+ }
108
+ var r = typeof Object.is == "function" ? Object.is : n, g = e.useState, c = e.useEffect, t = e.useLayoutEffect, S = e.useDebugValue;
109
+ function h(a, d) {
110
+ var o = d(), u = g({ inst: { value: o, getSnapshot: d } }), l = u[0].inst, y = u[1];
111
+ return t(
112
+ function() {
113
+ l.value = o, l.getSnapshot = d, _(l) && y({ inst: l });
114
+ },
115
+ [a, o, d]
116
+ ), c(
117
+ function() {
118
+ return _(l) && y({ inst: l }), a(function() {
119
+ _(l) && y({ inst: l });
120
+ });
121
+ },
122
+ [a]
123
+ ), S(o), o;
124
+ }
125
+ function _(a) {
126
+ var d = a.getSnapshot;
127
+ a = a.value;
128
+ try {
129
+ var o = d();
130
+ return !r(a, o);
131
+ } catch {
132
+ return !0;
133
+ }
134
+ }
135
+ function m(a, d) {
136
+ return d();
137
+ }
138
+ var O = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : h;
139
+ return A.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : O, A;
140
+ }
141
+ var j = {};
142
+ /**
143
+ * @license React
144
+ * use-sync-external-store-shim.development.js
145
+ *
146
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
147
+ *
148
+ * This source code is licensed under the MIT license found in the
149
+ * LICENSE file in the root directory of this source tree.
150
+ */
151
+ var $;
152
+ function ge() {
153
+ return $ || ($ = 1, process.env.NODE_ENV !== "production" && function() {
154
+ function e(o, u) {
155
+ return o === u && (o !== 0 || 1 / o === 1 / u) || o !== o && u !== u;
156
+ }
157
+ function n(o, u) {
158
+ O || c.startTransition === void 0 || (O = !0, console.error(
159
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
160
+ ));
161
+ var l = u();
162
+ if (!a) {
163
+ var y = u();
164
+ t(l, y) || (console.error(
165
+ "The result of getSnapshot should be cached to avoid an infinite loop"
166
+ ), a = !0);
167
+ }
168
+ y = S({
169
+ inst: { value: l, getSnapshot: u }
170
+ });
171
+ var E = y[0].inst, v = y[1];
172
+ return _(
173
+ function() {
174
+ E.value = l, E.getSnapshot = u, r(E) && v({ inst: E });
175
+ },
176
+ [o, l, u]
177
+ ), h(
178
+ function() {
179
+ return r(E) && v({ inst: E }), o(function() {
180
+ r(E) && v({ inst: E });
181
+ });
182
+ },
183
+ [o]
184
+ ), m(l), l;
185
+ }
186
+ function r(o) {
187
+ var u = o.getSnapshot;
188
+ o = o.value;
189
+ try {
190
+ var l = u();
191
+ return !t(o, l);
192
+ } catch {
193
+ return !0;
194
+ }
195
+ }
196
+ function g(o, u) {
197
+ return u();
198
+ }
199
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
200
+ var c = q, t = typeof Object.is == "function" ? Object.is : e, S = c.useState, h = c.useEffect, _ = c.useLayoutEffect, m = c.useDebugValue, O = !1, a = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : n;
201
+ j.useSyncExternalStore = c.useSyncExternalStore !== void 0 ? c.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
202
+ }()), j;
203
+ }
204
+ process.env.NODE_ENV === "production" ? U.exports = pe() : U.exports = ge();
205
+ var Se = U.exports;
206
+ const _e = (e, n) => w(n) ? n : ne(n) && w(n.defaultValue) ? n.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, ye = {
207
+ t: _e,
208
+ ready: !1
209
+ }, he = () => () => {
210
+ }, me = (e, n = {}) => {
211
+ var H, N, k;
212
+ const {
213
+ i18n: r
214
+ } = n, {
215
+ i18n: g,
216
+ defaultNS: c
217
+ } = J(fe) || {}, t = r || g || le();
218
+ t && !t.reportNamespaces && (t.reportNamespaces = new de()), t || z(t, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
219
+ const S = I(() => {
220
+ var s;
221
+ return {
222
+ ...ue(),
223
+ ...(s = t == null ? void 0 : t.options) == null ? void 0 : s.react,
224
+ ...n
225
+ };
226
+ }, [t, n]), {
227
+ useSuspense: h,
228
+ keyPrefix: _
229
+ } = S, m = e || c || ((H = t == null ? void 0 : t.options) == null ? void 0 : H.defaultNS), O = w(m) ? [m] : m || ["translation"], a = I(() => O, O);
230
+ (k = (N = t == null ? void 0 : t.reportNamespaces) == null ? void 0 : N.addUsedNamespaces) == null || k.call(N, a);
231
+ const d = C(0), o = B((s) => {
232
+ if (!t)
233
+ return he;
234
+ const {
235
+ bindI18n: i,
236
+ bindI18nStore: f
237
+ } = S, p = () => {
238
+ d.current += 1, s();
239
+ };
240
+ return i && t.on(i, p), f && t.store.on(f, p), () => {
241
+ i && i.split(" ").forEach((T) => t.off(T, p)), f && f.split(" ").forEach((T) => t.store.off(T, p));
242
+ };
243
+ }, [t, S]), u = C(), l = B(() => {
244
+ if (!t)
245
+ return ye;
246
+ const s = !!(t.isInitialized || t.initializedStoreOnce) && a.every((Y) => te(Y, t, S)), i = n.lng || t.language, f = d.current, p = u.current;
247
+ if (p && p.ready === s && p.lng === i && p.keyPrefix === _ && p.revision === f)
248
+ return p;
249
+ const P = {
250
+ t: t.getFixedT(i, S.nsMode === "fallback" ? a : a[0], _),
251
+ ready: s,
252
+ lng: i,
253
+ keyPrefix: _,
254
+ revision: f
255
+ };
256
+ return u.current = P, P;
257
+ }, [t, a, _, S, n.lng]), [y, E] = Q(0), {
258
+ t: v,
259
+ ready: b
260
+ } = Se.useSyncExternalStore(o, l, l);
261
+ Z(() => {
262
+ if (t && !b && !h) {
263
+ const s = () => E((i) => i + 1);
264
+ n.lng ? F(t, n.lng, a, s) : D(t, a, s);
265
+ }
266
+ }, [t, n.lng, a, b, h, y]);
267
+ const x = t || {}, L = C(null), R = C(), G = (s) => {
268
+ const i = Object.getOwnPropertyDescriptors(s);
269
+ i.__original && delete i.__original;
270
+ const f = Object.create(Object.getPrototypeOf(s), i);
271
+ if (!Object.prototype.hasOwnProperty.call(f, "__original"))
272
+ try {
273
+ Object.defineProperty(f, "__original", {
274
+ value: s,
275
+ writable: !1,
276
+ enumerable: !1,
277
+ configurable: !1
278
+ });
279
+ } catch {
280
+ }
281
+ return f;
282
+ }, W = I(() => {
283
+ const s = x, i = s == null ? void 0 : s.language;
284
+ let f = s;
285
+ s && (L.current && L.current.__original === s ? R.current !== i ? (f = G(s), L.current = f, R.current = i) : f = L.current : (f = G(s), L.current = f, R.current = i));
286
+ const p = [v, f, b];
287
+ return p.t = v, p.i18n = f, p.ready = b, p;
288
+ }, [v, x, b, x.resolvedLanguage, x.language, x.languages]);
289
+ if (t && h && !b)
290
+ throw new Promise((s) => {
291
+ const i = () => s();
292
+ n.lng ? F(t, n.lng, a, i) : D(t, a, i);
293
+ });
294
+ return W;
295
+ };
296
+ export {
297
+ me as u
298
+ };
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.109",
5
+ "version": "0.0.113",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",
@@ -1,22 +0,0 @@
1
- import { jsx as C } from "react/jsx-runtime";
2
- const o = () => /* @__PURE__ */ C(
3
- "svg",
4
- {
5
- width: "24",
6
- height: "24",
7
- viewBox: "0 0 24 24",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: /* @__PURE__ */ C(
11
- "path",
12
- {
13
- d: "M13 1.99939V7.49939C13 8.4422 13 8.9136 13.2929 9.2065C13.5858 9.49939 14.0572 9.49939 15 9.49939H19.5M20 10.4791V17.9994C20 19.885 20 20.8278 19.4142 21.4136C18.8284 21.9994 17.8856 21.9994 16 21.9994H8C6.11438 21.9994 5.17157 21.9994 4.58579 21.4136C4 20.8278 4 19.885 4 17.9994V5.99939C4 4.11377 4 3.17096 4.58579 2.58518C5.17157 1.99939 6.11438 1.99939 8 1.99939H12.1603C13.0654 1.99939 13.518 1.99939 13.9158 2.18236C14.3137 2.36534 14.6082 2.70897 15.1973 3.39622L19.037 7.87592C19.5134 8.43165 19.7515 8.70952 19.8758 9.04535C20 9.38117 20 9.74714 20 10.4791Z",
14
- stroke: "#3E454C",
15
- "stroke-width": "2"
16
- }
17
- )
18
- }
19
- );
20
- export {
21
- o as FileLoaderIcon
22
- };
@@ -1,8 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import { F as a } from "../index-6686852d.js";
4
- import "../cn-6a4bf187.js";
5
- import "./fileLoader.js";
6
- export {
7
- a as default
8
- };
@@ -1,31 +0,0 @@
1
- const e = [
2
- {
3
- label: "Поле",
4
- value: "form_item"
5
- },
6
- {
7
- label: "Компонент",
8
- value: "component"
9
- }
10
- ], l = [
11
- {
12
- label: "Text",
13
- value: "text"
14
- },
15
- {
16
- label: "Checkbox",
17
- value: "checkbox"
18
- },
19
- {
20
- label: "Radio",
21
- value: "radio"
22
- },
23
- {
24
- label: "Date",
25
- value: "date"
26
- }
27
- ];
28
- export {
29
- e as componentTypes,
30
- l as fieldTypes
31
- };
@@ -1,45 +0,0 @@
1
- const e = [
2
- {
3
- label: "Text",
4
- value: "text"
5
- },
6
- {
7
- label: "Checkbox",
8
- value: "checkbox"
9
- },
10
- {
11
- label: "Radio",
12
- value: "radio"
13
- },
14
- {
15
- label: "Date",
16
- value: "date"
17
- },
18
- {
19
- label: "File",
20
- value: "file"
21
- },
22
- {
23
- label: "Select",
24
- value: "select"
25
- },
26
- {
27
- label: "Number",
28
- value: "number"
29
- },
30
- {
31
- label: "Email",
32
- value: "email"
33
- },
34
- {
35
- label: "Password",
36
- value: "password"
37
- },
38
- {
39
- label: "Phone",
40
- value: "phone"
41
- }
42
- ];
43
- export {
44
- e as fieldTypesList
45
- };
@@ -1,7 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "../../index-a0ed2e4a.js";
3
- import "../../index-6686852d.js";
4
- import { r as p } from "../../info-34fbb2a8.js";
5
- export {
6
- p as renderFormFields
7
- };
@@ -1,4 +0,0 @@
1
- import { R as r } from "../../requestForm-23442a57.js";
2
- export {
3
- r as RequestForm
4
- };