@mp-front/components 0.0.1-next-2 → 0.0.1-next-3

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 (38) hide show
  1. package/dist/index-BP9HuXkV.cjs +31 -0
  2. package/dist/index-C0ENqrRs.js +570 -0
  3. package/dist/layout/content.component.d.ts +19 -0
  4. package/dist/layout/content.component.d.ts.map +1 -0
  5. package/dist/layout/footer.component.d.ts +17 -0
  6. package/dist/layout/footer.component.d.ts.map +1 -0
  7. package/dist/layout/header/header.component.d.ts +33 -0
  8. package/dist/layout/header/header.component.d.ts.map +1 -0
  9. package/dist/layout/header/header.types.d.ts +30 -0
  10. package/dist/layout/header/header.types.d.ts.map +1 -0
  11. package/dist/layout/header/left-side.component.d.ts +19 -0
  12. package/dist/layout/header/left-side.component.d.ts.map +1 -0
  13. package/dist/layout/header/right-side.component.d.ts +27 -0
  14. package/dist/layout/header/right-side.component.d.ts.map +1 -0
  15. package/dist/layout/header/store.component.d.ts +20 -0
  16. package/dist/layout/header/store.component.d.ts.map +1 -0
  17. package/dist/layout/header/user.component.d.ts +27 -0
  18. package/dist/layout/header/user.component.d.ts.map +1 -0
  19. package/dist/layout/index.d.ts +2 -0
  20. package/dist/layout/index.d.ts.map +1 -0
  21. package/dist/layout/root-layout.component.d.ts +46 -0
  22. package/dist/layout/root-layout.component.d.ts.map +1 -0
  23. package/dist/layout/root-layout.stories.d.ts +12 -0
  24. package/dist/layout/root-layout.stories.d.ts.map +1 -0
  25. package/dist/layout/root-layout.test.d.ts +2 -0
  26. package/dist/layout/root-layout.test.d.ts.map +1 -0
  27. package/dist/layout/root-layout.types.d.ts +10 -0
  28. package/dist/layout/root-layout.types.d.ts.map +1 -0
  29. package/dist/styles.css +1 -1
  30. package/dist/ui-components-hooks.cjs +1 -1
  31. package/dist/ui-components-hooks.js +29 -170
  32. package/dist/ui-components-index.cjs +33 -63
  33. package/dist/ui-components-index.js +7171 -7722
  34. package/dist/ui-components-layout.cjs +135 -0
  35. package/dist/ui-components-layout.js +19938 -0
  36. package/dist/useTranslation-Cenukg7h.js +147 -0
  37. package/dist/useTranslation-CnSCmJou.cjs +1 -0
  38. package/package.json +6 -18
@@ -0,0 +1,31 @@
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;
@@ -0,0 +1,570 @@
1
+ import * as E from "react";
2
+ import Ae from "react";
3
+ import * as ke from "react-dom";
4
+ import Pe from "react-dom";
5
+ var P = { exports: {} }, O = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-runtime.production.js
9
+ *
10
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var Ee;
16
+ function Ye() {
17
+ if (Ee) return O;
18
+ Ee = 1;
19
+ var o = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
20
+ function u(i, n, c) {
21
+ var d = null;
22
+ if (c !== void 0 && (d = "" + c), n.key !== void 0 && (d = "" + n.key), "key" in n) {
23
+ c = {};
24
+ for (var v in n)
25
+ v !== "key" && (c[v] = n[v]);
26
+ } else c = n;
27
+ return n = c.ref, {
28
+ $$typeof: o,
29
+ type: i,
30
+ key: d,
31
+ ref: n !== void 0 ? n : null,
32
+ props: c
33
+ };
34
+ }
35
+ return O.Fragment = a, O.jsx = u, O.jsxs = u, O;
36
+ }
37
+ var N = {};
38
+ /**
39
+ * @license React
40
+ * react-jsx-runtime.development.js
41
+ *
42
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */
47
+ var me;
48
+ function Me() {
49
+ return me || (me = 1, process.env.NODE_ENV !== "production" && (function() {
50
+ function o(e) {
51
+ if (e == null) return null;
52
+ if (typeof e == "function")
53
+ return e.$$typeof === je ? null : e.displayName || e.name || null;
54
+ if (typeof e == "string") return e;
55
+ switch (e) {
56
+ case $:
57
+ return "Fragment";
58
+ case Te:
59
+ return "Portal";
60
+ case Q:
61
+ return "Profiler";
62
+ case Z:
63
+ return "StrictMode";
64
+ case U:
65
+ return "Suspense";
66
+ case J:
67
+ return "SuspenseList";
68
+ }
69
+ if (typeof e == "object")
70
+ switch (typeof e.tag == "number" && console.error(
71
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
+ ), e.$$typeof) {
73
+ case D:
74
+ return (e.displayName || "Context") + ".Provider";
75
+ case K:
76
+ return (e._context.displayName || "Context") + ".Consumer";
77
+ case V:
78
+ var r = e.render;
79
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
80
+ case q:
81
+ return r = e.displayName || null, r !== null ? r : o(e.type) || "Memo";
82
+ case z:
83
+ r = e._payload, e = e._init;
84
+ try {
85
+ return o(e(r));
86
+ } catch {
87
+ }
88
+ }
89
+ return null;
90
+ }
91
+ function a(e) {
92
+ return "" + e;
93
+ }
94
+ function u(e) {
95
+ try {
96
+ a(e);
97
+ var r = !1;
98
+ } catch {
99
+ r = !0;
100
+ }
101
+ if (r) {
102
+ r = console;
103
+ var t = r.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
104
+ return t.call(
105
+ r,
106
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
+ s
108
+ ), a(e);
109
+ }
110
+ }
111
+ function i() {
112
+ }
113
+ function n() {
114
+ if (w === 0) {
115
+ te = console.log, oe = console.info, ne = console.warn, ae = console.error, le = console.group, se = console.groupCollapsed, ue = console.groupEnd;
116
+ var e = {
117
+ configurable: !0,
118
+ enumerable: !0,
119
+ value: i,
120
+ writable: !0
121
+ };
122
+ Object.defineProperties(console, {
123
+ info: e,
124
+ log: e,
125
+ warn: e,
126
+ error: e,
127
+ group: e,
128
+ groupCollapsed: e,
129
+ groupEnd: e
130
+ });
131
+ }
132
+ w++;
133
+ }
134
+ function c() {
135
+ if (w--, w === 0) {
136
+ var e = { configurable: !0, enumerable: !0, writable: !0 };
137
+ Object.defineProperties(console, {
138
+ log: h({}, e, { value: te }),
139
+ info: h({}, e, { value: oe }),
140
+ warn: h({}, e, { value: ne }),
141
+ error: h({}, e, { value: ae }),
142
+ group: h({}, e, { value: le }),
143
+ groupCollapsed: h({}, e, { value: se }),
144
+ groupEnd: h({}, e, { value: ue })
145
+ });
146
+ }
147
+ 0 > w && console.error(
148
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
149
+ );
150
+ }
151
+ function d(e) {
152
+ if (B === void 0)
153
+ try {
154
+ throw Error();
155
+ } catch (t) {
156
+ var r = t.stack.trim().match(/\n( *(at )?)/);
157
+ B = r && r[1] || "", ie = -1 < t.stack.indexOf(`
158
+ at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
159
+ }
160
+ return `
161
+ ` + B + e + ie;
162
+ }
163
+ function v(e, r) {
164
+ if (!e || G) return "";
165
+ var t = I.get(e);
166
+ if (t !== void 0) return t;
167
+ G = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
168
+ var s = null;
169
+ s = S.H, S.H = null, n();
170
+ try {
171
+ var m = {
172
+ DetermineComponentFrameRoot: function() {
173
+ try {
174
+ if (r) {
175
+ var _ = function() {
176
+ throw Error();
177
+ };
178
+ if (Object.defineProperty(_.prototype, "props", {
179
+ set: function() {
180
+ throw Error();
181
+ }
182
+ }), typeof Reflect == "object" && Reflect.construct) {
183
+ try {
184
+ Reflect.construct(_, []);
185
+ } catch (R) {
186
+ var k = R;
187
+ }
188
+ Reflect.construct(e, [], _);
189
+ } else {
190
+ try {
191
+ _.call();
192
+ } catch (R) {
193
+ k = R;
194
+ }
195
+ e.call(_.prototype);
196
+ }
197
+ } else {
198
+ try {
199
+ throw Error();
200
+ } catch (R) {
201
+ k = R;
202
+ }
203
+ (_ = e()) && typeof _.catch == "function" && _.catch(function() {
204
+ });
205
+ }
206
+ } catch (R) {
207
+ if (R && k && typeof R.stack == "string")
208
+ return [R.stack, k.stack];
209
+ }
210
+ return [null, null];
211
+ }
212
+ };
213
+ m.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
214
+ var f = Object.getOwnPropertyDescriptor(
215
+ m.DetermineComponentFrameRoot,
216
+ "name"
217
+ );
218
+ f && f.configurable && Object.defineProperty(
219
+ m.DetermineComponentFrameRoot,
220
+ "name",
221
+ { value: "DetermineComponentFrameRoot" }
222
+ );
223
+ var l = m.DetermineComponentFrameRoot(), y = l[0], C = l[1];
224
+ if (y && C) {
225
+ var p = y.split(`
226
+ `), x = C.split(`
227
+ `);
228
+ for (l = f = 0; f < p.length && !p[f].includes(
229
+ "DetermineComponentFrameRoot"
230
+ ); )
231
+ f++;
232
+ for (; l < x.length && !x[l].includes(
233
+ "DetermineComponentFrameRoot"
234
+ ); )
235
+ l++;
236
+ if (f === p.length || l === x.length)
237
+ for (f = p.length - 1, l = x.length - 1; 1 <= f && 0 <= l && p[f] !== x[l]; )
238
+ l--;
239
+ for (; 1 <= f && 0 <= l; f--, l--)
240
+ if (p[f] !== x[l]) {
241
+ if (f !== 1 || l !== 1)
242
+ do
243
+ if (f--, l--, 0 > l || p[f] !== x[l]) {
244
+ var j = `
245
+ ` + p[f].replace(
246
+ " at new ",
247
+ " at "
248
+ );
249
+ return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && I.set(e, j), j;
250
+ }
251
+ while (1 <= f && 0 <= l);
252
+ break;
253
+ }
254
+ }
255
+ } finally {
256
+ G = !1, S.H = s, c(), Error.prepareStackTrace = t;
257
+ }
258
+ return p = (p = e ? e.displayName || e.name : "") ? d(p) : "", typeof e == "function" && I.set(e, p), p;
259
+ }
260
+ function b(e) {
261
+ if (e == null) return "";
262
+ if (typeof e == "function") {
263
+ var r = e.prototype;
264
+ return v(
265
+ e,
266
+ !(!r || !r.isReactComponent)
267
+ );
268
+ }
269
+ if (typeof e == "string") return d(e);
270
+ switch (e) {
271
+ case U:
272
+ return d("Suspense");
273
+ case J:
274
+ return d("SuspenseList");
275
+ }
276
+ if (typeof e == "object")
277
+ switch (e.$$typeof) {
278
+ case V:
279
+ return e = v(e.render, !1), e;
280
+ case q:
281
+ return b(e.type);
282
+ case z:
283
+ r = e._payload, e = e._init;
284
+ try {
285
+ return b(e(r));
286
+ } catch {
287
+ }
288
+ }
289
+ return "";
290
+ }
291
+ function g() {
292
+ var e = S.A;
293
+ return e === null ? null : e.getOwner();
294
+ }
295
+ function Y(e) {
296
+ if (re.call(e, "key")) {
297
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
298
+ if (r && r.isReactWarning) return !1;
299
+ }
300
+ return e.key !== void 0;
301
+ }
302
+ function A(e, r) {
303
+ function t() {
304
+ ce || (ce = !0, console.error(
305
+ "%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)",
306
+ r
307
+ ));
308
+ }
309
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
310
+ get: t,
311
+ configurable: !0
312
+ });
313
+ }
314
+ function Se() {
315
+ var e = o(this.type);
316
+ return fe[e] || (fe[e] = !0, console.error(
317
+ "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."
318
+ )), e = this.props.ref, e !== void 0 ? e : null;
319
+ }
320
+ function he(e, r, t, s, m, f) {
321
+ return t = f.ref, e = {
322
+ $$typeof: W,
323
+ type: e,
324
+ key: r,
325
+ props: f,
326
+ _owner: m
327
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
328
+ enumerable: !1,
329
+ get: Se
330
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
331
+ configurable: !1,
332
+ enumerable: !1,
333
+ writable: !0,
334
+ value: 0
335
+ }), Object.defineProperty(e, "_debugInfo", {
336
+ configurable: !1,
337
+ enumerable: !1,
338
+ writable: !0,
339
+ value: null
340
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
341
+ }
342
+ function L(e, r, t, s, m, f) {
343
+ if (typeof e == "string" || typeof e == "function" || e === $ || e === Q || e === Z || e === U || e === J || e === we || typeof e == "object" && e !== null && (e.$$typeof === z || e.$$typeof === q || e.$$typeof === D || e.$$typeof === K || e.$$typeof === V || e.$$typeof === Oe || e.getModuleId !== void 0)) {
344
+ var l = r.children;
345
+ if (l !== void 0)
346
+ if (s)
347
+ if (H(l)) {
348
+ for (s = 0; s < l.length; s++)
349
+ F(l[s], e);
350
+ Object.freeze && Object.freeze(l);
351
+ } else
352
+ console.error(
353
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
354
+ );
355
+ else F(l, e);
356
+ } else
357
+ 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 ? s = "null" : H(e) ? s = "array" : e !== void 0 && e.$$typeof === W ? (s = "<" + (o(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, console.error(
358
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
359
+ s,
360
+ l
361
+ );
362
+ if (re.call(r, "key")) {
363
+ l = o(e);
364
+ var y = Object.keys(r).filter(function(p) {
365
+ return p !== "key";
366
+ });
367
+ s = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", de[l + s] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
368
+ `A props object containing a "key" prop is being spread into JSX:
369
+ let props = %s;
370
+ <%s {...props} />
371
+ React keys must be passed directly to JSX without using spread:
372
+ let props = %s;
373
+ <%s key={someKey} {...props} />`,
374
+ s,
375
+ l,
376
+ y,
377
+ l
378
+ ), de[l + s] = !0);
379
+ }
380
+ if (l = null, t !== void 0 && (u(t), l = "" + t), Y(r) && (u(r.key), l = "" + r.key), "key" in r) {
381
+ t = {};
382
+ for (var C in r)
383
+ C !== "key" && (t[C] = r[C]);
384
+ } else t = r;
385
+ return l && A(
386
+ t,
387
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
388
+ ), he(e, l, f, m, g(), t);
389
+ }
390
+ function F(e, r) {
391
+ if (typeof e == "object" && e && e.$$typeof !== Ne) {
392
+ if (H(e))
393
+ for (var t = 0; t < e.length; t++) {
394
+ var s = e[t];
395
+ M(s) && X(s, r);
396
+ }
397
+ else if (M(e))
398
+ e._store && (e._store.validated = 1);
399
+ else if (e === null || typeof e != "object" ? t = null : (t = ee && e[ee] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
400
+ for (; !(e = t.next()).done; )
401
+ M(e.value) && X(e.value, r);
402
+ }
403
+ }
404
+ function M(e) {
405
+ return typeof e == "object" && e !== null && e.$$typeof === W;
406
+ }
407
+ function X(e, r) {
408
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = xe(r), !ve[r])) {
409
+ ve[r] = !0;
410
+ var t = "";
411
+ 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 + ".");
412
+ var s = S.getCurrentStack;
413
+ S.getCurrentStack = function() {
414
+ var m = b(e.type);
415
+ return s && (m += s() || ""), m;
416
+ }, console.error(
417
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
418
+ r,
419
+ t
420
+ ), S.getCurrentStack = s;
421
+ }
422
+ }
423
+ function xe(e) {
424
+ var r = "", t = g();
425
+ return t && (t = o(t.type)) && (r = `
426
+
427
+ Check the render method of \`` + t + "`."), r || (e = o(e)) && (r = `
428
+
429
+ Check the top-level render call using <` + e + ">."), r;
430
+ }
431
+ var Ce = Ae, W = Symbol.for("react.transitional.element"), Te = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), Z = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), D = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), we = Symbol.for("react.offscreen"), ee = Symbol.iterator, je = Symbol.for("react.client.reference"), S = Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, h = Object.assign, Oe = Symbol.for("react.client.reference"), H = Array.isArray, w = 0, te, oe, ne, ae, le, se, ue;
432
+ i.__reactDisabledLog = !0;
433
+ var B, ie, G = !1, I = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ne = Symbol.for("react.client.reference"), ce, fe = {}, de = {}, ve = {};
434
+ N.Fragment = $, N.jsx = function(e, r, t, s, m) {
435
+ return L(e, r, t, !1, s, m);
436
+ }, N.jsxs = function(e, r, t, s, m) {
437
+ return L(e, r, t, !0, s, m);
438
+ };
439
+ })()), N;
440
+ }
441
+ var pe;
442
+ function We() {
443
+ return pe || (pe = 1, process.env.NODE_ENV === "production" ? P.exports = Ye() : P.exports = Me()), P.exports;
444
+ }
445
+ var T = We();
446
+ function be(o, a) {
447
+ if (typeof o == "function")
448
+ return o(a);
449
+ o != null && (o.current = a);
450
+ }
451
+ function ge(...o) {
452
+ return (a) => {
453
+ let u = !1;
454
+ const i = o.map((n) => {
455
+ const c = be(n, a);
456
+ return !u && typeof c == "function" && (u = !0), c;
457
+ });
458
+ if (u)
459
+ return () => {
460
+ for (let n = 0; n < i.length; n++) {
461
+ const c = i[n];
462
+ typeof c == "function" ? c() : be(o[n], null);
463
+ }
464
+ };
465
+ };
466
+ }
467
+ function Le(...o) {
468
+ return E.useCallback(ge(...o), o);
469
+ }
470
+ // @__NO_SIDE_EFFECTS__
471
+ function ye(o) {
472
+ const a = /* @__PURE__ */ $e(o), u = E.forwardRef((i, n) => {
473
+ const { children: c, ...d } = i, v = E.Children.toArray(c), b = v.find(Ve);
474
+ if (b) {
475
+ const g = b.props.children, Y = v.map((A) => A === b ? E.Children.count(g) > 1 ? E.Children.only(null) : E.isValidElement(g) ? g.props.children : null : A);
476
+ return /* @__PURE__ */ T.jsx(a, { ...d, ref: n, children: E.isValidElement(g) ? E.cloneElement(g, void 0, Y) : null });
477
+ }
478
+ return /* @__PURE__ */ T.jsx(a, { ...d, ref: n, children: c });
479
+ });
480
+ return u.displayName = `${o}.Slot`, u;
481
+ }
482
+ var Fe = /* @__PURE__ */ ye("Slot");
483
+ // @__NO_SIDE_EFFECTS__
484
+ function $e(o) {
485
+ const a = E.forwardRef((u, i) => {
486
+ const { children: n, ...c } = u;
487
+ if (E.isValidElement(n)) {
488
+ const d = Je(n), v = Ue(c, n.props);
489
+ return n.type !== E.Fragment && (v.ref = i ? ge(i, d) : d), E.cloneElement(n, v);
490
+ }
491
+ return E.Children.count(n) > 1 ? E.Children.only(null) : null;
492
+ });
493
+ return a.displayName = `${o}.SlotClone`, a;
494
+ }
495
+ var Re = Symbol("radix.slottable");
496
+ // @__NO_SIDE_EFFECTS__
497
+ function Xe(o) {
498
+ const a = ({ children: u }) => /* @__PURE__ */ T.jsx(T.Fragment, { children: u });
499
+ return a.displayName = `${o}.Slottable`, a.__radixId = Re, a;
500
+ }
501
+ function Ve(o) {
502
+ return E.isValidElement(o) && typeof o.type == "function" && "__radixId" in o.type && o.type.__radixId === Re;
503
+ }
504
+ function Ue(o, a) {
505
+ const u = { ...a };
506
+ for (const i in a) {
507
+ const n = o[i], c = a[i];
508
+ /^on[A-Z]/.test(i) ? n && c ? u[i] = (...v) => {
509
+ const b = c(...v);
510
+ return n(...v), b;
511
+ } : n && (u[i] = n) : i === "style" ? u[i] = { ...n, ...c } : i === "className" && (u[i] = [n, c].filter(Boolean).join(" "));
512
+ }
513
+ return { ...o, ...u };
514
+ }
515
+ function Je(o) {
516
+ var i, n;
517
+ let a = (i = Object.getOwnPropertyDescriptor(o.props, "ref")) == null ? void 0 : i.get, u = a && "isReactWarning" in a && a.isReactWarning;
518
+ return u ? o.ref : (a = (n = Object.getOwnPropertyDescriptor(o, "ref")) == null ? void 0 : n.get, u = a && "isReactWarning" in a && a.isReactWarning, u ? o.props.ref : o.props.ref || o.ref);
519
+ }
520
+ var qe = [
521
+ "a",
522
+ "button",
523
+ "div",
524
+ "form",
525
+ "h2",
526
+ "h3",
527
+ "img",
528
+ "input",
529
+ "label",
530
+ "li",
531
+ "nav",
532
+ "ol",
533
+ "p",
534
+ "select",
535
+ "span",
536
+ "svg",
537
+ "ul"
538
+ ], ze = qe.reduce((o, a) => {
539
+ const u = /* @__PURE__ */ ye(`Primitive.${a}`), i = E.forwardRef((n, c) => {
540
+ const { asChild: d, ...v } = n, b = d ? u : a;
541
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ T.jsx(b, { ...v, ref: c });
542
+ });
543
+ return i.displayName = `Primitive.${a}`, { ...o, [a]: i };
544
+ }, {});
545
+ function Ze(o, a) {
546
+ o && ke.flushSync(() => o.dispatchEvent(a));
547
+ }
548
+ var He = globalThis != null && globalThis.document ? E.useLayoutEffect : () => {
549
+ }, Be = "Portal", _e = E.forwardRef((o, a) => {
550
+ var v;
551
+ const { container: u, ...i } = o, [n, c] = E.useState(!1);
552
+ He(() => c(!0), []);
553
+ const d = u || n && ((v = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : v.body);
554
+ return d ? Pe.createPortal(/* @__PURE__ */ T.jsx(ze.div, { ...i, ref: a }), d) : null;
555
+ });
556
+ _e.displayName = Be;
557
+ var Qe = _e;
558
+ export {
559
+ ze as P,
560
+ Qe as R,
561
+ Fe as S,
562
+ He as a,
563
+ _e as b,
564
+ ye as c,
565
+ Ze as d,
566
+ ge as e,
567
+ Xe as f,
568
+ T as j,
569
+ Le as u
570
+ };
@@ -0,0 +1,19 @@
1
+ import { ComponentProps } from 'react';
2
+ /**
3
+ * Componente de contenido principal del layout.
4
+ * Proporciona un contenedor con estilos predefinidos para el área de contenido principal.
5
+ *
6
+ * @param {ComponentProps<"div">} props - Propiedades estándar de un elemento div
7
+ * @returns {JSX.Element} Contenedor de contenido con estilos aplicados
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * import { Content } from '@/layout'
12
+ *
13
+ * <Content>
14
+ * <h1>Mi contenido</h1>
15
+ * </Content>
16
+ * ```
17
+ */
18
+ export declare const Content: ({ className, children, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
19
+ //# sourceMappingURL=content.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.component.d.ts","sourceRoot":"","sources":["../../src/lib/layout/content.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,sCAIjB,cAAc,CAAC,KAAK,CAAC,4CASvB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { ComponentProps } from 'react';
2
+ /**
3
+ * Componente de pie de página del layout.
4
+ * Renderiza un footer con estilos predefinidos para información de copyright o enlaces.
5
+ *
6
+ * @param {ComponentProps<"footer">} props - Propiedades estándar de un elemento footer
7
+ * @returns {JSX.Element} Elemento footer con estilos aplicados
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * import { Footer } from '@/layout'
12
+ *
13
+ * <Footer>© 2024 MacroPay</Footer>
14
+ * ```
15
+ */
16
+ export declare const Footer: ({ className, ...props }: ComponentProps<"footer">) => import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=footer.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"footer.component.d.ts","sourceRoot":"","sources":["../../src/lib/layout/footer.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM,4BAA6B,cAAc,CAAC,QAAQ,CAAC,4CAUvE,CAAA"}