@mp-front/components 0.0.1-next-8 → 0.0.1-next-9
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/{classNames-EUcv3dqx.js → classNames-BiTpavcN.js} +2 -2
- package/dist/components/animation/count-up/count-up.component.d.ts +3 -0
- package/dist/components/animation/count-up/count-up.component.d.ts.map +1 -0
- package/dist/components/animation/count-up/count-up.stories.d.ts +15 -0
- package/dist/components/animation/count-up/count-up.stories.d.ts.map +1 -0
- package/dist/components/animation/count-up/count-up.test.d.ts +2 -0
- package/dist/components/animation/count-up/count-up.test.d.ts.map +1 -0
- package/dist/components/animation/count-up/count-up.types.d.ts +11 -0
- package/dist/components/animation/count-up/count-up.types.d.ts.map +1 -0
- package/dist/components/animation/index.d.ts +2 -0
- package/dist/components/animation/index.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.types.d.ts +1 -0
- package/dist/components/dropdown/dropdown.types.d.ts.map +1 -1
- package/dist/components/input/number/useInputNumber.d.ts +3 -2
- package/dist/components/input/number/useInputNumber.d.ts.map +1 -1
- package/dist/components/modal/{modal.overlay.d.ts → dialog.overlay.d.ts} +5 -6
- package/dist/components/modal/dialog.overlay.d.ts.map +1 -0
- package/dist/components/modal/dialog.types.d.ts +5 -0
- package/dist/components/modal/dialog.types.d.ts.map +1 -0
- package/dist/components/modal/modal.component.d.ts +4 -3
- package/dist/components/modal/modal.component.d.ts.map +1 -1
- package/dist/indeterminate-C7JUOCP0.cjs +1 -0
- package/dist/indeterminate-CSEeEKiJ.js +25 -0
- package/dist/index-DGDeDoym.cjs +17 -0
- package/dist/index-q_fyr_Rn.js +156 -0
- package/dist/interfaces/modal/index.d.ts +2 -0
- package/dist/interfaces/modal/index.d.ts.map +1 -1
- package/dist/layout/header/right-side.component.d.ts.map +1 -1
- package/dist/layout/header/store.component.d.ts.map +1 -1
- package/dist/layout/header/user.component.d.ts.map +1 -1
- package/dist/proxy-2cglvzJh.cjs +31 -0
- package/dist/proxy-uRb7Bek8.js +5497 -0
- package/dist/skeleton-avatar-8uHbPAra.cjs +1 -0
- package/dist/skeleton-avatar-Cp8o0kUa.js +20 -0
- package/dist/styles.css +2 -2
- package/dist/toggle-group.component-Cs7zS-s6.js +11256 -0
- package/dist/toggle-group.component-DOQKWhkg.cjs +80 -0
- package/dist/ui-components-animation.cjs +1 -0
- package/dist/ui-components-animation.js +416 -0
- package/dist/ui-components-hooks.cjs +1 -1
- package/dist/ui-components-hooks.js +16 -15
- package/dist/ui-components-icons.cjs +1 -1
- package/dist/ui-components-icons.js +24 -23
- package/dist/ui-components-index.cjs +3 -102
- package/dist/ui-components-index.js +3211 -19256
- package/dist/ui-components-layout.cjs +1 -131
- package/dist/ui-components-layout.js +1146 -21133
- package/dist/ui-components-utils.js +2 -2
- package/dist/use-controlled-state-CNjWcDSI.js +19 -0
- package/dist/use-controlled-state-Ci1ztv5B.cjs +1 -0
- package/dist/useTranslation-2Dz5dMlm.cjs +1 -0
- package/dist/useTranslation-B0fSob9I.js +189 -0
- package/package.json +3 -3
- package/dist/components/modal/modal.overlay.d.ts.map +0 -1
- package/dist/index-BP9HuXkV.cjs +0 -31
- package/dist/index-C0ENqrRs.js +0 -570
- package/dist/interfaces/animation/check-icon.d.ts +0 -5
- package/dist/interfaces/animation/check-icon.d.ts.map +0 -1
- package/dist/interfaces/animation/count-up.d.ts +0 -12
- package/dist/interfaces/animation/count-up.d.ts.map +0 -1
- package/dist/interfaces/animation/index.d.ts +0 -6
- package/dist/interfaces/animation/index.d.ts.map +0 -1
- package/dist/interfaces/animation/text-effect.d.ts +0 -25
- package/dist/interfaces/animation/text-effect.d.ts.map +0 -1
- package/dist/interfaces/animation/text-morph.d.ts +0 -10
- package/dist/interfaces/animation/text-morph.d.ts.map +0 -1
- package/dist/interfaces/animation/text-scramble.d.ts +0 -14
- package/dist/interfaces/animation/text-scramble.d.ts.map +0 -1
- package/dist/skeleton-avatar-BzklbqjK.js +0 -41
- package/dist/skeleton-avatar-Ce_osCsT.cjs +0 -1
- package/dist/use-controlled-state-FlR7N58L.js +0 -51
- package/dist/use-controlled-state-H7oMYjxi.cjs +0 -1
- package/dist/useTranslation-QicPQnlv.cjs +0 -1
- package/dist/useTranslation-tTfk6apO.js +0 -157
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as t, a as n } from "./classNames-BiTpavcN.js";
|
|
2
2
|
import { g as f } from "./index-B2-I-g4_.js";
|
|
3
3
|
const o = (...e) => e.filter((s) => typeof s == "string" && s !== "").join("");
|
|
4
4
|
export {
|
|
5
5
|
o as buildId,
|
|
6
|
-
|
|
6
|
+
t as classNames,
|
|
7
7
|
n as cn,
|
|
8
8
|
f as generateClasses
|
|
9
9
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useState as c, useEffect as d, useCallback as f } from "react";
|
|
2
|
+
const v = (o) => {
|
|
3
|
+
const { value: e, defaultValue: s, onChange: t } = o, [u, a] = c(
|
|
4
|
+
e !== void 0 ? e : s
|
|
5
|
+
);
|
|
6
|
+
d(() => {
|
|
7
|
+
e !== void 0 && a(e);
|
|
8
|
+
}, [e]);
|
|
9
|
+
const n = f(
|
|
10
|
+
(l, ...r) => {
|
|
11
|
+
a(l), t == null || t(l, ...r);
|
|
12
|
+
},
|
|
13
|
+
[t]
|
|
14
|
+
);
|
|
15
|
+
return [u, n];
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
v as u
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react"),d=u=>{const{value:e,defaultValue:n,onChange:t}=u,[o,l]=a.useState(e!==void 0?e:n);a.useEffect(()=>{e!==void 0&&l(e)},[e]);const c=a.useCallback((s,...r)=>{l(s),t==null||t(s,...r)},[t]);return[o,c]};exports.useControlledState=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("react"),G=require("./index-DGDeDoym.cjs"),K=(e,n,s,u)=>{var t,f,m,g;const i=[s,{code:n,...u||{}}];if((f=(t=e==null?void 0:e.services)==null?void 0:t.logger)!=null&&f.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);p(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(g=(m=e==null?void 0:e.services)==null?void 0:m.logger)!=null&&g.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},k={},z=(e,n,s,u)=>{p(s)&&k[s]||(p(s)&&(k[s]=new Date),K(e,n,s,u))},A=(e,n)=>()=>{if(e.isInitialized)n();else{const s=()=>{setTimeout(()=>{e.off("initialized",s)},0),n()};e.on("initialized",s)}},I=(e,n,s)=>{e.loadNamespaces(n,A(e,s))},F=(e,n,s,u)=>{if(p(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(n)>-1)return I(e,s,u);s.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(n,A(e,u))},X=(e,n,s={})=>!n.languages||!n.languages.length?(z(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(e,{lng:s.lng,precheck:(u,i)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!i(u.isLanguageChangingTo,e))return!1}}),p=e=>typeof e=="string",Y=e=>typeof e=="object"&&e!==null,$=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,J={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Q=e=>J[e],Z=e=>e.replace($,Q);let O={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Z,transDefaultProps:void 0};const V=(e={})=>{O={...O,...e}},ee=()=>O;let q;const te=e=>{q=e},ne=()=>q,H=l.createContext();class se{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ae=(e,n)=>p(n)?n:Y(n)&&p(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e,re={t:ae,ready:!1},oe=()=>()=>{},ce=(e,n={})=>{var v,N,P;const{i18n:s}=n,{i18n:u,defaultNS:i}=l.useContext(H)||{},t=s||u||ne();t&&!t.reportNamespaces&&(t.reportNamespaces=new se),t||z(t,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const f=l.useMemo(()=>{var a;return{...ee(),...(a=t==null?void 0:t.options)==null?void 0:a.react,...n}},[t,n]),{useSuspense:m,keyPrefix:g}=f,x=i||((v=t==null?void 0:t.options)==null?void 0:v.defaultNS),R=p(x)?[x]:x||["translation"],d=l.useMemo(()=>R,R);(P=(N=t==null?void 0:t.reportNamespaces)==null?void 0:N.addUsedNamespaces)==null||P.call(N,d);const E=l.useRef(0),M=l.useCallback(a=>{if(!t)return oe;const{bindI18n:r,bindI18nStore:o}=f,c=()=>{E.current+=1,a()};return r&&t.on(r,c),o&&t.store.on(o,c),()=>{r&&r.split(" ").forEach(w=>t.off(w,c)),o&&o.split(" ").forEach(w=>t.store.off(w,c))}},[t,f]),_=l.useRef(),L=l.useCallback(()=>{if(!t)return re;const a=!!(t.isInitialized||t.initializedStoreOnce)&&d.every(D=>X(D,t,f)),r=n.lng||t.language,o=E.current,c=_.current;if(c&&c.ready===a&&c.lng===r&&c.keyPrefix===g&&c.revision===o)return c;const j={t:t.getFixedT(r,f.nsMode==="fallback"?d:d[0],g),ready:a,lng:r,keyPrefix:g,revision:o};return _.current=j,j},[t,d,g,f,n.lng]),[U,W]=l.useState(0),{t:S,ready:y}=G.shimExports.useSyncExternalStore(M,L,L);l.useEffect(()=>{if(t&&!y&&!m){const a=()=>W(r=>r+1);n.lng?F(t,n.lng,d,a):I(t,d,a)}},[t,n.lng,d,y,m,U]);const h=t||{},b=l.useRef(null),C=l.useRef(),T=a=>{const r=Object.getOwnPropertyDescriptors(a);r.__original&&delete r.__original;const o=Object.create(Object.getPrototypeOf(a),r);if(!Object.prototype.hasOwnProperty.call(o,"__original"))try{Object.defineProperty(o,"__original",{value:a,writable:!1,enumerable:!1,configurable:!1})}catch{}return o},B=l.useMemo(()=>{const a=h,r=a==null?void 0:a.language;let o=a;a&&(b.current&&b.current.__original===a?C.current!==r?(o=T(a),b.current=o,C.current=r):o=b.current:(o=T(a),b.current=o,C.current=r));const c=[S,o,y];return c.t=S,c.i18n=o,c.ready=y,c},[S,h,y,h.resolvedLanguage,h.language,h.languages]);if(t&&m&&!y)throw new Promise(a=>{const r=()=>a();n.lng?F(t,n.lng,d,r):I(t,d,r)});return B};exports.I18nContext=H;exports.setDefaults=V;exports.setI18n=te;exports.useTranslation=ce;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { createContext as K, useContext as X, useMemo as I, useRef as w, useCallback as k, useState as Y, useEffect as $ } from "react";
|
|
2
|
+
import { s as J } from "./index-q_fyr_Rn.js";
|
|
3
|
+
const Q = (e, n, s, l) => {
|
|
4
|
+
var t, d, p, f;
|
|
5
|
+
const i = [s, {
|
|
6
|
+
code: n,
|
|
7
|
+
...l || {}
|
|
8
|
+
}];
|
|
9
|
+
if ((d = (t = e == null ? void 0 : e.services) == null ? void 0 : t.logger) != null && d.forward)
|
|
10
|
+
return e.services.logger.forward(i, "warn", "react-i18next::", !0);
|
|
11
|
+
g(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), (f = (p = e == null ? void 0 : e.services) == null ? void 0 : p.logger) != null && f.warn ? e.services.logger.warn(...i) : console != null && console.warn && console.warn(...i);
|
|
12
|
+
}, z = {}, H = (e, n, s, l) => {
|
|
13
|
+
g(s) && z[s] || (g(s) && (z[s] = /* @__PURE__ */ new Date()), Q(e, n, s, l));
|
|
14
|
+
}, U = (e, n) => () => {
|
|
15
|
+
if (e.isInitialized)
|
|
16
|
+
n();
|
|
17
|
+
else {
|
|
18
|
+
const s = () => {
|
|
19
|
+
setTimeout(() => {
|
|
20
|
+
e.off("initialized", s);
|
|
21
|
+
}, 0), n();
|
|
22
|
+
};
|
|
23
|
+
e.on("initialized", s);
|
|
24
|
+
}
|
|
25
|
+
}, O = (e, n, s) => {
|
|
26
|
+
e.loadNamespaces(n, U(e, s));
|
|
27
|
+
}, A = (e, n, s, l) => {
|
|
28
|
+
if (g(s) && (s = [s]), e.options.preload && e.options.preload.indexOf(n) > -1) return O(e, s, l);
|
|
29
|
+
s.forEach((i) => {
|
|
30
|
+
e.options.ns.indexOf(i) < 0 && e.options.ns.push(i);
|
|
31
|
+
}), e.loadLanguages(n, U(e, l));
|
|
32
|
+
}, Z = (e, n, s = {}) => !n.languages || !n.languages.length ? (H(n, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
|
|
33
|
+
languages: n.languages
|
|
34
|
+
}), !0) : n.hasLoadedNamespace(e, {
|
|
35
|
+
lng: s.lng,
|
|
36
|
+
precheck: (l, i) => {
|
|
37
|
+
if (s.bindI18n && s.bindI18n.indexOf("languageChanging") > -1 && l.services.backendConnector.backend && l.isLanguageChangingTo && !i(l.isLanguageChangingTo, e)) return !1;
|
|
38
|
+
}
|
|
39
|
+
}), g = (e) => typeof e == "string", V = (e) => typeof e == "object" && e !== null, ee = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, te = {
|
|
40
|
+
"&": "&",
|
|
41
|
+
"&": "&",
|
|
42
|
+
"<": "<",
|
|
43
|
+
"<": "<",
|
|
44
|
+
">": ">",
|
|
45
|
+
">": ">",
|
|
46
|
+
"'": "'",
|
|
47
|
+
"'": "'",
|
|
48
|
+
""": '"',
|
|
49
|
+
""": '"',
|
|
50
|
+
" ": " ",
|
|
51
|
+
" ": " ",
|
|
52
|
+
"©": "©",
|
|
53
|
+
"©": "©",
|
|
54
|
+
"®": "®",
|
|
55
|
+
"®": "®",
|
|
56
|
+
"…": "…",
|
|
57
|
+
"…": "…",
|
|
58
|
+
"/": "/",
|
|
59
|
+
"/": "/"
|
|
60
|
+
}, ne = (e) => te[e], se = (e) => e.replace(ee, ne);
|
|
61
|
+
let E = {
|
|
62
|
+
bindI18n: "languageChanged",
|
|
63
|
+
bindI18nStore: "",
|
|
64
|
+
transEmptyNodeValue: "",
|
|
65
|
+
transSupportBasicHtmlNodes: !0,
|
|
66
|
+
transWrapTextNodes: "",
|
|
67
|
+
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
68
|
+
useSuspense: !0,
|
|
69
|
+
unescape: se,
|
|
70
|
+
transDefaultProps: void 0
|
|
71
|
+
};
|
|
72
|
+
const ge = (e = {}) => {
|
|
73
|
+
E = {
|
|
74
|
+
...E,
|
|
75
|
+
...e
|
|
76
|
+
};
|
|
77
|
+
}, ae = () => E;
|
|
78
|
+
let W;
|
|
79
|
+
const pe = (e) => {
|
|
80
|
+
W = e;
|
|
81
|
+
}, re = () => W, oe = K();
|
|
82
|
+
class ce {
|
|
83
|
+
constructor() {
|
|
84
|
+
this.usedNamespaces = {};
|
|
85
|
+
}
|
|
86
|
+
addUsedNamespaces(n) {
|
|
87
|
+
n.forEach((s) => {
|
|
88
|
+
this.usedNamespaces[s] || (this.usedNamespaces[s] = !0);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
getUsedNamespaces() {
|
|
92
|
+
return Object.keys(this.usedNamespaces);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const ie = (e, n) => g(n) ? n : V(n) && g(n.defaultValue) ? n.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, le = {
|
|
96
|
+
t: ie,
|
|
97
|
+
ready: !1
|
|
98
|
+
}, ue = () => () => {
|
|
99
|
+
}, me = (e, n = {}) => {
|
|
100
|
+
var P, b, j;
|
|
101
|
+
const {
|
|
102
|
+
i18n: s
|
|
103
|
+
} = n, {
|
|
104
|
+
i18n: l,
|
|
105
|
+
defaultNS: i
|
|
106
|
+
} = X(oe) || {}, t = s || l || re();
|
|
107
|
+
t && !t.reportNamespaces && (t.reportNamespaces = new ce()), t || H(t, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
108
|
+
const d = I(() => {
|
|
109
|
+
var a;
|
|
110
|
+
return {
|
|
111
|
+
...ae(),
|
|
112
|
+
...(a = t == null ? void 0 : t.options) == null ? void 0 : a.react,
|
|
113
|
+
...n
|
|
114
|
+
};
|
|
115
|
+
}, [t, n]), {
|
|
116
|
+
useSuspense: p,
|
|
117
|
+
keyPrefix: f
|
|
118
|
+
} = d, x = i || ((P = t == null ? void 0 : t.options) == null ? void 0 : P.defaultNS), _ = g(x) ? [x] : x || ["translation"], u = I(() => _, _);
|
|
119
|
+
(j = (b = t == null ? void 0 : t.reportNamespaces) == null ? void 0 : b.addUsedNamespaces) == null || j.call(b, u);
|
|
120
|
+
const L = w(0), q = k((a) => {
|
|
121
|
+
if (!t) return ue;
|
|
122
|
+
const {
|
|
123
|
+
bindI18n: r,
|
|
124
|
+
bindI18nStore: o
|
|
125
|
+
} = d, c = () => {
|
|
126
|
+
L.current += 1, a();
|
|
127
|
+
};
|
|
128
|
+
return r && t.on(r, c), o && t.store.on(o, c), () => {
|
|
129
|
+
r && r.split(" ").forEach((N) => t.off(N, c)), o && o.split(" ").forEach((N) => t.store.off(N, c));
|
|
130
|
+
};
|
|
131
|
+
}, [t, d]), v = w(), T = k(() => {
|
|
132
|
+
if (!t)
|
|
133
|
+
return le;
|
|
134
|
+
const a = !!(t.isInitialized || t.initializedStoreOnce) && u.every((D) => Z(D, t, d)), r = n.lng || t.language, o = L.current, c = v.current;
|
|
135
|
+
if (c && c.ready === a && c.lng === r && c.keyPrefix === f && c.revision === o)
|
|
136
|
+
return c;
|
|
137
|
+
const F = {
|
|
138
|
+
t: t.getFixedT(r, d.nsMode === "fallback" ? u : u[0], f),
|
|
139
|
+
ready: a,
|
|
140
|
+
lng: r,
|
|
141
|
+
keyPrefix: f,
|
|
142
|
+
revision: o
|
|
143
|
+
};
|
|
144
|
+
return v.current = F, F;
|
|
145
|
+
}, [t, u, f, d, n.lng]), [B, G] = Y(0), {
|
|
146
|
+
t: S,
|
|
147
|
+
ready: m
|
|
148
|
+
} = J.useSyncExternalStore(q, T, T);
|
|
149
|
+
$(() => {
|
|
150
|
+
if (t && !m && !p) {
|
|
151
|
+
const a = () => G((r) => r + 1);
|
|
152
|
+
n.lng ? A(t, n.lng, u, a) : O(t, u, a);
|
|
153
|
+
}
|
|
154
|
+
}, [t, n.lng, u, m, p, B]);
|
|
155
|
+
const y = t || {}, h = w(null), C = w(), R = (a) => {
|
|
156
|
+
const r = Object.getOwnPropertyDescriptors(a);
|
|
157
|
+
r.__original && delete r.__original;
|
|
158
|
+
const o = Object.create(Object.getPrototypeOf(a), r);
|
|
159
|
+
if (!Object.prototype.hasOwnProperty.call(o, "__original"))
|
|
160
|
+
try {
|
|
161
|
+
Object.defineProperty(o, "__original", {
|
|
162
|
+
value: a,
|
|
163
|
+
writable: !1,
|
|
164
|
+
enumerable: !1,
|
|
165
|
+
configurable: !1
|
|
166
|
+
});
|
|
167
|
+
} catch {
|
|
168
|
+
}
|
|
169
|
+
return o;
|
|
170
|
+
}, M = I(() => {
|
|
171
|
+
const a = y, r = a == null ? void 0 : a.language;
|
|
172
|
+
let o = a;
|
|
173
|
+
a && (h.current && h.current.__original === a ? C.current !== r ? (o = R(a), h.current = o, C.current = r) : o = h.current : (o = R(a), h.current = o, C.current = r));
|
|
174
|
+
const c = [S, o, m];
|
|
175
|
+
return c.t = S, c.i18n = o, c.ready = m, c;
|
|
176
|
+
}, [S, y, m, y.resolvedLanguage, y.language, y.languages]);
|
|
177
|
+
if (t && p && !m)
|
|
178
|
+
throw new Promise((a) => {
|
|
179
|
+
const r = () => a();
|
|
180
|
+
n.lng ? A(t, n.lng, u, r) : O(t, u, r);
|
|
181
|
+
});
|
|
182
|
+
return M;
|
|
183
|
+
};
|
|
184
|
+
export {
|
|
185
|
+
oe as I,
|
|
186
|
+
pe as a,
|
|
187
|
+
ge as s,
|
|
188
|
+
me as u
|
|
189
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mp-front/components",
|
|
3
|
-
"version": "0.0.1-next-
|
|
3
|
+
"version": "0.0.1-next-9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ui-components-index.cjs",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"clsx": "2.1.1",
|
|
103
103
|
"d3": "7.9.0",
|
|
104
104
|
"dinero.js": "1.9.1",
|
|
105
|
-
"i18next": "
|
|
105
|
+
"i18next": "25.8.10",
|
|
106
106
|
"motion": "12.23.26",
|
|
107
107
|
"nanoid": "5.0.9",
|
|
108
108
|
"qrcode.react": "4.2.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"react-barcode": "1.6.1",
|
|
113
113
|
"react-chartjs-2": "5.3.0",
|
|
114
114
|
"react-dom": "19.0.0",
|
|
115
|
-
"react-i18next": "
|
|
115
|
+
"react-i18next": "16.5.4",
|
|
116
116
|
"react-number-format": "5.4.3",
|
|
117
117
|
"rxjs": "7.8.1",
|
|
118
118
|
"tailwind-merge": "2.6.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.overlay.d.ts","sourceRoot":"","sources":["../../../src/lib/components/modal/modal.overlay.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,YAAY,aAAqB;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,4CAiBxD,CAAA;AAED,eAAe,YAAY,CAAA"}
|
package/dist/index-BP9HuXkV.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";const _e=require("react"),Se=require("react-dom");function Ce(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const u in o)if(u!=="default"){const s=Object.getOwnPropertyDescriptor(o,u);Object.defineProperty(n,u,s.get?s:{enumerable:!0,get:()=>o[u]})}}return n.default=o,Object.freeze(n)}const E=Ce(_e),$e=Ce(Se);var P={exports:{}},O={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var be;function We(){if(be)return O;be=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(s,a,c){var d=null;if(c!==void 0&&(d=""+c),a.key!==void 0&&(d=""+a.key),"key"in a){c={};for(var v in a)v!=="key"&&(c[v]=a[v])}else c=a;return a=c.ref,{$$typeof:o,type:s,key:d,ref:a!==void 0?a:null,props:c}}return O.Fragment=n,O.jsx=u,O.jsxs=u,O}var N={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ge;function Ve(){return ge||(ge=1,process.env.NODE_ENV!=="production"&&(function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case Ae:return"Portal";case ee:return"Profiler";case K:return"StrictMode";case U:return"Suspense";case q:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case te:return(e.displayName||"Context")+".Provider";case re:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return r=e.displayName||null,r!==null?r:o(e.type)||"Memo";case J:r=e._payload,e=e._init;try{return o(e(r))}catch{}}return null}function n(e){return""+e}function u(e){try{n(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),n(e)}}function s(){}function a(){if(w===0){ae=console.log,le=console.info,ue=console.warn,se=console.error,ie=console.group,ce=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:s,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}w++}function c(){if(w--,w===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:ae}),info:C({},e,{value:le}),warn:C({},e,{value:ue}),error:C({},e,{value:se}),group:C({},e,{value:ie}),groupCollapsed:C({},e,{value:ce}),groupEnd:C({},e,{value:fe})})}0>w&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function d(e){if(L===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);L=r&&r[1]||"",de=-1<t.stack.indexOf(`
|
|
18
|
-
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+L+e+de}function v(e,r){if(!e||B)return"";var t=G.get(e);if(t!==void 0)return t;B=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=S.H,S.H=null,a();try{var m={DetermineComponentFrameRoot:function(){try{if(r){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(R){var k=R}Reflect.construct(e,[],_)}else{try{_.call()}catch(R){k=R}e.call(_.prototype)}}else{try{throw Error()}catch(R){k=R}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(R){if(R&&k&&typeof R.stack=="string")return[R.stack,k.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=m.DetermineComponentFrameRoot(),y=l[0],T=l[1];if(y&&T){var p=y.split(`
|
|
20
|
-
`),h=T.split(`
|
|
21
|
-
`);for(l=f=0;f<p.length&&!p[f].includes("DetermineComponentFrameRoot");)f++;for(;l<h.length&&!h[l].includes("DetermineComponentFrameRoot");)l++;if(f===p.length||l===h.length)for(f=p.length-1,l=h.length-1;1<=f&&0<=l&&p[f]!==h[l];)l--;for(;1<=f&&0<=l;f--,l--)if(p[f]!==h[l]){if(f!==1||l!==1)do if(f--,l--,0>l||p[f]!==h[l]){var j=`
|
|
22
|
-
`+p[f].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,j),j}while(1<=f&&0<=l);break}}}finally{B=!1,S.H=i,c(),Error.prepareStackTrace=t}return p=(p=e?e.displayName||e.name:"")?d(p):"",typeof e=="function"&&G.set(e,p),p}function b(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return v(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return d(e);switch(e){case U:return d("Suspense");case q:return d("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case V:return e=v(e.render,!1),e;case z:return b(e.type);case J:r=e._payload,e=e._init;try{return b(e(r))}catch{}}return""}function g(){var e=S.A;return e===null?null:e.getOwner()}function M(e){if(ne.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function A(e,r){function t(){ve||(ve=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function we(){var e=o(this.type);return Ee[e]||(Ee[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function je(e,r,t,i,m,f){return t=f.ref,e={$$typeof:$,type:e,key:r,props:f,_owner:m},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:we}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function Z(e,r,t,i,m,f){if(typeof e=="string"||typeof e=="function"||e===W||e===ee||e===K||e===U||e===q||e===ke||typeof e=="object"&&e!==null&&(e.$$typeof===J||e.$$typeof===z||e.$$typeof===te||e.$$typeof===re||e.$$typeof===V||e.$$typeof===Me||e.getModuleId!==void 0)){var l=r.children;if(l!==void 0)if(i)if(H(l)){for(i=0;i<l.length;i++)D(l[i],e);Object.freeze&&Object.freeze(l)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else D(l,e)}else l="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?i="null":H(e)?i="array":e!==void 0&&e.$$typeof===$?(i="<"+(o(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,l);if(ne.call(r,"key")){l=o(e);var y=Object.keys(r).filter(function(p){return p!=="key"});i=0<y.length?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}",me[l+i]||(y=0<y.length?"{"+y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
|
-
let props = %s;
|
|
24
|
-
<%s {...props} />
|
|
25
|
-
React keys must be passed directly to JSX without using spread:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,i,l,y,l),me[l+i]=!0)}if(l=null,t!==void 0&&(u(t),l=""+t),M(r)&&(u(r.key),l=""+r.key),"key"in r){t={};for(var T in r)T!=="key"&&(t[T]=r[T])}else t=r;return l&&A(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),je(e,l,f,m,g(),t)}function D(e,r){if(typeof e=="object"&&e&&e.$$typeof!==Ye){if(H(e))for(var t=0;t<e.length;t++){var i=e[t];Y(i)&&Q(i,r)}else if(Y(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?t=null:(t=oe&&e[oe]||e["@@iterator"],t=typeof t=="function"?t:null),typeof t=="function"&&t!==e.entries&&(t=t.call(e),t!==e))for(;!(e=t.next()).done;)Y(e.value)&&Q(e.value,r)}}function Y(e){return typeof e=="object"&&e!==null&&e.$$typeof===$}function Q(e,r){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,r=Oe(r),!pe[r])){pe[r]=!0;var t="";e&&e._owner!=null&&e._owner!==g()&&(t=null,typeof e._owner.tag=="number"?t=o(e._owner.type):typeof e._owner.name=="string"&&(t=e._owner.name),t=" It was passed a child from "+t+".");var i=S.getCurrentStack;S.getCurrentStack=function(){var m=b(e.type);return i&&(m+=i()||""),m},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,t),S.getCurrentStack=i}}function Oe(e){var r="",t=g();return t&&(t=o(t.type))&&(r=`
|
|
28
|
-
|
|
29
|
-
Check the render method of \``+t+"`."),r||(e=o(e))&&(r=`
|
|
30
|
-
|
|
31
|
-
Check the top-level render call using <`+e+">."),r}var Ne=_e,$=Symbol.for("react.transitional.element"),Ae=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),te=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),oe=Symbol.iterator,Pe=Symbol.for("react.client.reference"),S=Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.prototype.hasOwnProperty,C=Object.assign,Me=Symbol.for("react.client.reference"),H=Array.isArray,w=0,ae,le,ue,se,ie,ce,fe;s.__reactDisabledLog=!0;var L,de,B=!1,G=new(typeof WeakMap=="function"?WeakMap:Map),Ye=Symbol.for("react.client.reference"),ve,Ee={},me={},pe={};N.Fragment=W,N.jsx=function(e,r,t,i,m){return Z(e,r,t,!1,i,m)},N.jsxs=function(e,r,t,i,m){return Z(e,r,t,!0,i,m)}})()),N}var ye;function Ue(){return ye||(ye=1,process.env.NODE_ENV==="production"?P.exports=We():P.exports=Ve()),P.exports}var x=Ue();function Re(o,n){if(typeof o=="function")return o(n);o!=null&&(o.current=n)}function I(...o){return n=>{let u=!1;const s=o.map(a=>{const c=Re(a,n);return!u&&typeof c=="function"&&(u=!0),c});if(u)return()=>{for(let a=0;a<s.length;a++){const c=s[a];typeof c=="function"?c():Re(o[a],null)}}}}function qe(...o){return E.useCallback(I(...o),o)}function F(o){const n=Je(o),u=E.forwardRef((s,a)=>{const{children:c,...d}=s,v=E.Children.toArray(c),b=v.find(Le);if(b){const g=b.props.children,M=v.map(A=>A===b?E.Children.count(g)>1?E.Children.only(null):E.isValidElement(g)?g.props.children:null:A);return x.jsx(n,{...d,ref:a,children:E.isValidElement(g)?E.cloneElement(g,void 0,M):null})}return x.jsx(n,{...d,ref:a,children:c})});return u.displayName=`${o}.Slot`,u}var ze=F("Slot");function Je(o){const n=E.forwardRef((u,s)=>{const{children:a,...c}=u;if(E.isValidElement(a)){const d=Ge(a),v=Be(c,a.props);return a.type!==E.Fragment&&(v.ref=s?I(s,d):d),E.cloneElement(a,v)}return E.Children.count(a)>1?E.Children.only(null):null});return n.displayName=`${o}.SlotClone`,n}var he=Symbol("radix.slottable");function He(o){const n=({children:u})=>x.jsx(x.Fragment,{children:u});return n.displayName=`${o}.Slottable`,n.__radixId=he,n}function Le(o){return E.isValidElement(o)&&typeof o.type=="function"&&"__radixId"in o.type&&o.type.__radixId===he}function Be(o,n){const u={...n};for(const s in n){const a=o[s],c=n[s];/^on[A-Z]/.test(s)?a&&c?u[s]=(...v)=>{const b=c(...v);return a(...v),b}:a&&(u[s]=a):s==="style"?u[s]={...a,...c}:s==="className"&&(u[s]=[a,c].filter(Boolean).join(" "))}return{...o,...u}}function Ge(o){var s,a;let n=(s=Object.getOwnPropertyDescriptor(o.props,"ref"))==null?void 0:s.get,u=n&&"isReactWarning"in n&&n.isReactWarning;return u?o.ref:(n=(a=Object.getOwnPropertyDescriptor(o,"ref"))==null?void 0:a.get,u=n&&"isReactWarning"in n&&n.isReactWarning,u?o.props.ref:o.props.ref||o.ref)}var Ie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=Ie.reduce((o,n)=>{const u=F(`Primitive.${n}`),s=E.forwardRef((a,c)=>{const{asChild:d,...v}=a,b=d?u:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(b,{...v,ref:c})});return s.displayName=`Primitive.${n}`,{...o,[n]:s}},{});function Fe(o,n){o&&$e.flushSync(()=>o.dispatchEvent(n))}var Te=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},Xe="Portal",X=E.forwardRef((o,n)=>{var v;const{container:u,...s}=o,[a,c]=E.useState(!1);Te(()=>c(!0),[]);const d=u||a&&((v=globalThis==null?void 0:globalThis.document)==null?void 0:v.body);return d?Se.createPortal(x.jsx(xe.div,{...s,ref:n}),d):null});X.displayName=Xe;var Ze=X;exports.Portal=X;exports.Primitive=xe;exports.Root=Ze;exports.Slot=ze;exports.composeRefs=I;exports.createSlot=F;exports.createSlottable=He;exports.dispatchDiscreteCustomEvent=Fe;exports.jsxRuntimeExports=x;exports.useComposedRefs=qe;exports.useLayoutEffect2=Te;
|