md-components-mdigial-azamat 0.0.112 → 0.0.114
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-6fc8d724.js} +5 -3
- package/dist/{data.mock-ebc679ec.js → data.mock-a00d8eec.js} +546 -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-ce6598a7.js +794 -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,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
|
+
"&": "&",
|
|
42
|
+
"&": "&",
|
|
43
|
+
"<": "<",
|
|
44
|
+
"<": "<",
|
|
45
|
+
">": ">",
|
|
46
|
+
">": ">",
|
|
47
|
+
"'": "'",
|
|
48
|
+
"'": "'",
|
|
49
|
+
""": '"',
|
|
50
|
+
""": '"',
|
|
51
|
+
" ": " ",
|
|
52
|
+
" ": " ",
|
|
53
|
+
"©": "©",
|
|
54
|
+
"©": "©",
|
|
55
|
+
"®": "®",
|
|
56
|
+
"®": "®",
|
|
57
|
+
"…": "…",
|
|
58
|
+
"…": "…",
|
|
59
|
+
"/": "/",
|
|
60
|
+
"/": "/"
|
|
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
|
@@ -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
|
-
};
|
package/dist/FileLoader/index.js
DELETED
|
@@ -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
|
-
};
|