@sudobility/documents-components 1.0.11 → 2.0.0

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/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(d,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("@sudobility/components"),require("@sudobility/design")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components","@sudobility/design"],E):(d=typeof globalThis<"u"?globalThis:d||self,E(d.Components={},d.React,d.components,d.design))})(this,(function(d,E,f,R){"use strict";function Z(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const l=Z(E);var A={exports:{}},T={};var F;function J(){if(F)return T;F=1;var o=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,u,h){var y=null;if(h!==void 0&&(y=""+h),u.key!==void 0&&(y=""+u.key),"key"in u){h={};for(var k in u)k!=="key"&&(h[k]=u[k])}else h=u;return u=h.ref,{$$typeof:o,type:a,key:y,ref:u!==void 0?u:null,props:h}}return T.Fragment=t,T.jsx=r,T.jsxs=r,T}var N={};var V;function G(){return V||(V=1,process.env.NODE_ENV!=="production"&&(function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===De?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case Se:return"Profiler";case O:return"StrictMode";case Ie:return"Suspense";case Fe:return"SuspenseList";case ze:return"Activity"}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 U:return"Portal";case Le:return e.displayName||"Context";case Pe:return(e._context.displayName||"Context")+".Consumer";case We:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ve:return n=e.displayName||null,n!==null?n:o(e.type)||"Memo";case S:n=e._payload,e=e._init;try{return o(e(n))}catch{}}return null}function t(e){return""+e}function r(e){try{t(e);var n=!1}catch{n=!0}if(n){n=console;var g=n.error,m=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return g.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",m),t(e)}}function a(e){if(e===C)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===S)return"<...>";try{var n=o(e);return n?"<"+n+">":"<...>"}catch{return"<...>"}}function u(){var e=P.A;return e===null?null:e.getOwner()}function h(){return Error("react-stack-top-frame")}function y(e){if(D.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function k(e,n){function g(){$||($=!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)",n))}g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function p(){var e=o(this.type);return Y[e]||(Y[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 i(e,n,g,m,M,W){var b=g.ref;return e={$$typeof:x,type:e,key:n,props:g,_owner:m},(b!==void 0?b:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:p}):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.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function s(e,n,g,m,M,W){var b=n.children;if(b!==void 0)if(m)if($e(b)){for(m=0;m<b.length;m++)v(b[m]);Object.freeze&&Object.freeze(b)}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 v(b);if(D.call(n,"key")){b=o(e);var _=Object.keys(n).filter(function(Ye){return Ye!=="key"});m=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",q[b+m]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(c,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components"],m):(c=typeof globalThis<"u"?globalThis:c||self,m(c.Components={},c.React,c.components))})(this,(function(c,m,g){"use strict";var w={exports:{}},k={};var N;function z(){if(N)return k;N=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(i,u,d){var b=null;if(d!==void 0&&(b=""+d),u.key!==void 0&&(b=""+u.key),"key"in u){d={};for(var p in u)p!=="key"&&(d[p]=u[p])}else d=u;return u=d.ref,{$$typeof:o,type:i,key:b,ref:u!==void 0?u:null,props:d}}return k.Fragment=n,k.jsx=t,k.jsxs=t,k}var h={};var Y;function J(){return Y||(Y=1,process.env.NODE_ENV!=="production"&&(function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case oe:return"Profiler";case te:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList";case ue:return"Activity"}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 re:return"Portal";case ne:return e.displayName||"Context";case ae:return(e._context.displayName||"Context")+".Consumer";case ie:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return r=e.displayName||null,r!==null?r:o(e.type)||"Memo";case O:r=e._payload,e=e._init;try{return o(e(r))}catch{}}return null}function n(e){return""+e}function t(e){try{n(e);var r=!1}catch{r=!0}if(r){r=console;var a=r.error,l=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",l),n(e)}}function i(e){if(e===j)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===O)return"<...>";try{var r=o(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function u(){var e=C.A;return e===null?null:e.getOwner()}function d(){return Error("react-stack-top-frame")}function b(e){if(F.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function p(e,r){function a(){D||(D=!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))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function U(){var e=o(this.type);return M[e]||(M[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 T(e,r,a,l,R,A){var s=a.ref;return e={$$typeof:$,type:e,key:r,props:a,_owner:l},(s!==void 0?s:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:U}):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.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function _(e,r,a,l,R,A){var s=r.children;if(s!==void 0)if(l)if(fe(s)){for(l=0;l<s.length;l++)E(s[l]);Object.freeze&&Object.freeze(s)}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 E(s);if(F.call(r,"key")){s=o(e);var y=Object.keys(r).filter(function(ge){return ge!=="key"});l=0<y.length?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}",L[s+l]||(y=0<y.length?"{"+y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,m,b,_,b),q[b+m]=!0)}if(b=null,g!==void 0&&(r(g),b=""+g),y(n)&&(r(n.key),b=""+n.key),"key"in n){g={};for(var I in n)I!=="key"&&(g[I]=n[I])}else g=n;return b&&k(g,typeof e=="function"?e.displayName||e.name||"Unknown":e),i(e,b,g,u(),M,W)}function v(e){j(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===S&&(e._payload.status==="fulfilled"?j(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function j(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}var w=E,x=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Pe=Symbol.for("react.consumer"),Le=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),Ve=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),ze=Symbol.for("react.activity"),De=Symbol.for("react.client.reference"),P=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,$e=Array.isArray,L=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(e){return e()}};var $,Y={},B=w.react_stack_bottom_frame.bind(w,h)(),H=L(a(h)),q={};N.Fragment=C,N.jsx=function(e,n,g){var m=1e4>P.recentlyCreatedOwnerStacks++;return s(e,n,g,!1,m?Error("react-stack-top-frame"):B,m?L(a(e)):H)},N.jsxs=function(e,n,g){var m=1e4>P.recentlyCreatedOwnerStacks++;return s(e,n,g,!0,m?Error("react-stack-top-frame"):B,m?L(a(e)):H)}})()),N}var z;function X(){return z||(z=1,process.env.NODE_ENV==="production"?A.exports=J():A.exports=G()),A.exports}var c=X();const Q=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UcellUeditor",children:t||"UcellUeditor Component"}),K=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UcolumnUresize",children:t||"UcolumnUresize Component"}),ee=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UcsvUimporter",children:t||"UcsvUimporter Component"}),re=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UdiffUviewer",children:t||"UdiffUviewer Component"}),te=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UexcelUuploader",children:t||"UexcelUuploader Component"}),oe=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UfileUbrowser",children:t||"UfileUbrowser Component"});function ae({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"}))}const ne=l.forwardRef(ae);function le({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"}))}const ie=l.forwardRef(le);function se({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m.75 12 3 3m0 0 3-3m-3 3v-6m-1.5-9H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const ce=l.forwardRef(se);function de({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const ue=l.forwardRef(de);function ge({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const fe=l.forwardRef(ge);function me({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"}))}const be=l.forwardRef(me);function he({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 9 10.5-3m0 6.553v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 1 1-.99-3.467l2.31-.66a2.25 2.25 0 0 0 1.632-2.163Zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 0 1-.99-3.467l2.31-.66A2.25 2.25 0 0 0 9 15.553Z"}))}const ve=l.forwardRef(he);function ye({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const we=l.forwardRef(ye);function ke({title:o,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),o?l.createElement("title",{id:t},o):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const pe=l.forwardRef(ke),xe=({type:o,size:t="md",colored:r=!0,className:a})=>{const u={xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-8 w-8"},h=p=>{const i=p.toLowerCase();return i.startsWith("image/")||[".jpg",".jpeg",".png",".gif",".svg",".webp",".ico"].some(s=>i.endsWith(s))?{Icon:we,color:"text-blue-600 dark:text-blue-400"}:i.startsWith("video/")||[".mp4",".avi",".mov",".wmv",".flv",".webm"].some(s=>i.endsWith(s))?{Icon:be,color:"text-purple-600 dark:text-purple-400"}:i.startsWith("audio/")||[".mp3",".wav",".ogg",".m4a",".flac"].some(s=>i.endsWith(s))?{Icon:ve,color:"text-pink-600 dark:text-pink-400"}:i.includes("pdf")||i.endsWith(".pdf")?{Icon:ce,color:"text-red-600 dark:text-red-400"}:i.includes("word")||i.includes("document")||[".doc",".docx",".odt"].some(s=>i.endsWith(s))?{Icon:ue,color:"text-blue-700 dark:text-blue-300"}:i.includes("excel")||i.includes("spreadsheet")||[".xls",".xlsx",".ods",".csv"].some(s=>i.endsWith(s))?{Icon:pe,color:"text-green-600 dark:text-green-400"}:[".js",".ts",".jsx",".tsx",".py",".java",".cpp",".c",".h",".css",".scss",".html",".json",".xml",".yaml",".yml",".sh",".sql"].some(s=>i.endsWith(s))?{Icon:ie,color:"text-gray-700 dark:text-gray-300"}:i.includes("zip")||i.includes("compressed")||i.includes("archive")||[".zip",".rar",".7z",".tar",".gz",".bz2"].some(s=>i.endsWith(s))?{Icon:ne,color:"text-yellow-600 dark:text-yellow-400"}:{Icon:fe,color:"text-gray-600 dark:text-gray-400"}},{Icon:y,color:k}=h(o);return c.jsx(y,{className:f.cn(u[t],r?k:"text-gray-600 dark:text-gray-400",a)})},Ue=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UfileUpreview",children:t||"UfileUpreview Component"}),Ee=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UfileUtree",children:t||"UfileUtree Component"}),je=({icon:o,"aria-label":t,onClick:r,size:a="md",shape:u="rounded",variant:h="default",disabled:y=!1,type:k="button",className:p,title:i})=>{const s={xs:{button:"p-1",icon:"h-3 w-3"},sm:{button:"p-1.5",icon:"h-4 w-4"},md:{button:"p-2",icon:"h-5 w-5"},lg:{button:"p-3",icon:"h-6 w-6"},xl:{button:"p-4",icon:"h-8 w-8"}},v={circle:"rounded-full",square:"rounded-none",rounded:"rounded-lg"},j={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",primary:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",secondary:"bg-purple-600 text-white hover:bg-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600",danger:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600",ghost:"bg-transparent text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800",outline:"bg-transparent border-2 border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"},w=s[a];return c.jsx("button",{type:k,onClick:r,disabled:y,"aria-label":t,title:i||t,className:f.cn("inline-flex items-center justify-center","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-current",w.button,v[u],j[h],p),children:c.jsx(o,{className:w.icon})})},Re=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UimportUpreview",children:t||"UimportUpreview Component"}),Ce=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UjsonUimporter",children:t||"UjsonUimporter Component"}),_e=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UjsonUviewer",children:t||"UjsonUviewer Component"}),Te=({label:o,value:t,orientation:r="vertical",align:a="start",labelWidth:u="auto",size:h="md",separator:y=!1,labelVariant:k="muted",valueVariant:p="default",className:i,labelClassName:s,valueClassName:v})=>{const j={sm:{label:R.textVariants.body.sm(),value:R.textVariants.body.sm(),gap:"gap-1"},md:{label:R.textVariants.body.md(),value:R.textVariants.body.md(),gap:"gap-2"},lg:{label:R.textVariants.body.lg(),value:R.textVariants.body.lg(),gap:"gap-3"}},w={auto:"",sm:"w-24",md:"w-32",lg:"w-40"},x={start:"justify-start",center:"justify-center",between:"justify-between"},U={default:"text-gray-700 dark:text-gray-300",muted:"text-gray-600 dark:text-gray-400",strong:"text-gray-900 dark:text-gray-100 font-semibold"},C={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-600 dark:text-gray-400",strong:"text-gray-900 dark:text-gray-100 font-semibold",primary:"text-blue-600 dark:text-blue-400"},O=j[h];return c.jsxs("div",{className:f.cn(r==="horizontal"?"flex items-center":"flex flex-col",r==="horizontal"&&x[a],O.gap,y&&"pb-3 mb-3 border-b border-gray-200 dark:border-gray-700",i),children:[c.jsx("dt",{className:f.cn(O.label,U[k],r==="horizontal"&&w[u],r==="horizontal"&&"flex-shrink-0",s),children:o}),c.jsx("dd",{className:f.cn(O.value,C[p],r==="horizontal"&&"flex-1",v),children:t})]})},Ne=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UmarkdownUrenderer",children:t||"UmarkdownUrenderer Component"}),Oe=({value:o,size:t=200,fgColor:r="#000000",bgColor:a="#ffffff",showDownload:u=!1,className:h})=>{const y=E.useRef(null);E.useEffect(()=>{const p=y.current;if(!p)return;const i=p.getContext("2d");if(!i)return;i.fillStyle=a,i.fillRect(0,0,t,t),i.fillStyle=r;const s=8,v=t/s,j=o.split("").reduce((x,U)=>x+U.charCodeAt(0),0);for(let x=0;x<s;x++)for(let U=0;U<s;U++)(j+x*s+U)%3!==0&&i.fillRect(U*v,x*v,v,v);const w=v*3;[[0,0],[t-w,0],[0,t-w]].forEach(([x,U])=>{i.strokeStyle=r,i.lineWidth=v,i.strokeRect(x+v/2,U+v/2,w-v,w-v)})},[o,t,r,a]);const k=()=>{const p=y.current;if(!p)return;const i=p.toDataURL("image/png"),s=document.createElement("a");s.download="qrcode.png",s.href=i,s.click()};return c.jsxs("div",{className:f.cn("inline-flex flex-col items-center gap-3",h),children:[c.jsx("canvas",{ref:y,width:t,height:t,className:"border-2 border-gray-200 dark:border-gray-700 rounded-lg"}),u&&c.jsx("button",{onClick:k,className:f.cn("px-4 py-2 text-sm font-medium","bg-blue-600 dark:bg-blue-500 text-white","rounded-md","hover:bg-blue-700 dark:hover:bg-blue-600","transition-colors"),children:"Download QR Code"}),c.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 max-w-[200px] text-center break-all",children:o})]})},Ae=({className:o,children:t,disabled:r=!1,onClick:a})=>c.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:r?void 0:a,role:"region","aria-label":"UuploadUprogress",children:t||"UuploadUprogress Component"}),Me=({value:o,onChange:t,placeholder:r,className:a})=>c.jsxs("div",{className:f.cn("border border-gray-300 dark:border-gray-700 rounded-lg",a),children:[c.jsx("div",{className:"flex gap-1 p-2 border-b border-gray-300 dark:border-gray-700",children:["B","I","U","H1","H2","List","Link"].map(u=>c.jsx("button",{className:"px-3 py-1 hover:bg-gray-100 dark:hover:bg-gray-800 rounded text-sm font-semibold",children:u},u))}),c.jsx("textarea",{value:o,onChange:u=>t(u.target.value),placeholder:r,className:"w-full p-4 bg-white dark:bg-gray-900 text-gray-900 dark:text-white resize-none focus:outline-none",rows:10})]});d.FileIcon=xe,d.IconButton=je,d.KeyValuePair=Te,d.QRCodeDisplay=Oe,d.UcellUeditor=Q,d.UcolumnUresize=K,d.UcsvUimporter=ee,d.UdiffUviewer=re,d.UexcelUuploader=te,d.UfileUbrowser=oe,d.UfileUpreview=Ue,d.UfileUtree=Ee,d.UimportUpreview=Re,d.UjsonUimporter=Ce,d.UjsonUviewer=_e,d.UmarkdownUrenderer=Ne,d.UuploadUprogress=Ae,d.WysiwygEditor=Me,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
6
+ <%s key={someKey} {...props} />`,l,s,y,s),L[s+l]=!0)}if(s=null,a!==void 0&&(t(a),s=""+a),b(r)&&(t(r.key),s=""+r.key),"key"in r){a={};for(var P in r)P!=="key"&&(a[P]=r[P])}else a=r;return s&&p(a,typeof e=="function"?e.displayName||e.name||"Unknown":e),T(e,s,a,u(),R,A)}function E(e){x(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===O&&(e._payload.status==="fulfilled"?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===$}var v=m,$=Symbol.for("react.transitional.element"),re=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),de=Symbol.for("react.client.reference"),C=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,fe=Array.isArray,S=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var D,M={},W=v.react_stack_bottom_frame.bind(v,d)(),q=S(i(d)),L={};h.Fragment=j,h.jsx=function(e,r,a){var l=1e4>C.recentlyCreatedOwnerStacks++;return _(e,r,a,!1,l?Error("react-stack-top-frame"):W,l?S(i(e)):q)},h.jsxs=function(e,r,a){var l=1e4>C.recentlyCreatedOwnerStacks++;return _(e,r,a,!0,l?Error("react-stack-top-frame"):W,l?S(i(e)):q)}})()),h}var I;function V(){return I||(I=1,process.env.NODE_ENV==="production"?w.exports=z():w.exports=J()),w.exports}var f=V();const G=({className:o,children:n,disabled:t=!1,onClick:i})=>f.jsx("div",{className:g.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UcsvUimporter",children:n||"UcsvUimporter Component"}),X=({className:o,children:n,disabled:t=!1,onClick:i})=>f.jsx("div",{className:g.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UdiffUviewer",children:n||"UdiffUviewer Component"}),B=({className:o,children:n,disabled:t=!1,onClick:i})=>f.jsx("div",{className:g.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UexcelUuploader",children:n||"UexcelUuploader Component"}),H=({icon:o,"aria-label":n,onClick:t,size:i="md",shape:u="rounded",variant:d="default",disabled:b=!1,type:p="button",className:U,title:T})=>{const _={xs:{button:"p-1",icon:"h-3 w-3"},sm:{button:"p-1.5",icon:"h-4 w-4"},md:{button:"p-2",icon:"h-5 w-5"},lg:{button:"p-3",icon:"h-6 w-6"},xl:{button:"p-4",icon:"h-8 w-8"}},E={circle:"rounded-full",square:"rounded-none",rounded:"rounded-lg"},x={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",primary:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",secondary:"bg-purple-600 text-white hover:bg-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600",danger:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600",ghost:"bg-transparent text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800",outline:"bg-transparent border-2 border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"},v=_[i];return f.jsx("button",{type:p,onClick:t,disabled:b,"aria-label":n,title:T||n,className:g.cn("inline-flex items-center justify-center","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-current",v.button,E[u],x[d],U),children:f.jsx(o,{className:v.icon})})},Z=({className:o,children:n,disabled:t=!1,onClick:i})=>f.jsx("div",{className:g.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UimportUpreview",children:n||"UimportUpreview Component"}),Q=({className:o,children:n,disabled:t=!1,onClick:i})=>f.jsx("div",{className:g.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UjsonUimporter",children:n||"UjsonUimporter Component"}),K=({className:o,children:n,disabled:t=!1,onClick:i})=>f.jsx("div",{className:g.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UjsonUviewer",children:n||"UjsonUviewer Component"}),ee=({className:o,children:n,disabled:t=!1,onClick:i})=>f.jsx("div",{className:g.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:t?void 0:i,role:"region","aria-label":"UuploadUprogress",children:n||"UuploadUprogress Component"});c.IconButton=H,c.UcsvUimporter=G,c.UdiffUviewer=X,c.UexcelUuploader=B,c.UimportUpreview=Z,c.UjsonUimporter=Q,c.UjsonUviewer=K,c.UuploadUprogress=ee,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/documents-components",
3
- "version": "1.0.11",
3
+ "version": "2.0.0",
4
4
  "description": "documents UI components for React",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
@@ -1,33 +0,0 @@
1
- /**
2
- * UcellUeditor Component
3
- *
4
- * A reusable UcellUeditor component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UcellUeditor className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/cell-editor}
21
- */
22
- export interface UcellUeditorProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UcellUeditor: ({ className, children, disabled, onClick, }: UcellUeditorProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=cell-editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell-editor.d.ts","sourceRoot":"","sources":["../src/cell-editor.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,GAAI,6CAK1B,iBAAiB,4CAmBnB,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * UcolumnUresize Component
3
- *
4
- * A reusable UcolumnUresize component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UcolumnUresize className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/column-resize}
21
- */
22
- export interface UcolumnUresizeProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UcolumnUresize: ({ className, children, disabled, onClick, }: UcolumnUresizeProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=column-resize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"column-resize.d.ts","sourceRoot":"","sources":["../src/column-resize.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,GAAI,6CAK5B,mBAAmB,4CAmBrB,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * UfileUbrowser Component
3
- *
4
- * A reusable UfileUbrowser component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UfileUbrowser className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/file-browser}
21
- */
22
- export interface UfileUbrowserProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UfileUbrowser: ({ className, children, disabled, onClick, }: UfileUbrowserProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=file-browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-browser.d.ts","sourceRoot":"","sources":["../src/file-browser.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,kBAAkB;IACjC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,6CAK3B,kBAAkB,4CAmBpB,CAAC"}
@@ -1,32 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface FileIconProps {
3
- /** MIME type or file extension */
4
- type: string;
5
- /** Icon size */
6
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
- /** Show colored icon */
8
- colored?: boolean;
9
- /** Additional className */
10
- className?: string;
11
- }
12
- /**
13
- * FileIcon Component
14
- *
15
- * Displays an appropriate icon based on file type or content type.
16
- * Automatically determines the icon from MIME type or file extension.
17
- *
18
- * @example
19
- * ```tsx
20
- * <FileIcon type="image/png" />
21
- * <FileIcon type="application/pdf" colored />
22
- * <FileIcon type=".xlsx" size="lg" />
23
- * ```
24
- *
25
- * @example
26
- * ```tsx
27
- * <FileIcon type="video/mp4" colored size="md" />
28
- * <FileIcon type="application/zip" />
29
- * ```
30
- */
31
- export declare const FileIcon: React.FC<FileIconProps>;
32
- //# sourceMappingURL=file-icon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-icon.d.ts","sourceRoot":"","sources":["../src/file-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,aAAa;IAC5B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwJ5C,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * UfileUpreview Component
3
- *
4
- * A reusable UfileUpreview component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UfileUpreview className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/file-preview}
21
- */
22
- export interface UfileUpreviewProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UfileUpreview: ({ className, children, disabled, onClick, }: UfileUpreviewProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=file-preview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-preview.d.ts","sourceRoot":"","sources":["../src/file-preview.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,kBAAkB;IACjC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,6CAK3B,kBAAkB,4CAmBpB,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * UfileUtree Component
3
- *
4
- * A reusable UfileUtree component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UfileUtree className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/file-tree}
21
- */
22
- export interface UfileUtreeProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UfileUtree: ({ className, children, disabled, onClick, }: UfileUtreeProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=file-tree.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-tree.d.ts","sourceRoot":"","sources":["../src/file-tree.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,eAAe;IAC9B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,GAAI,6CAKxB,eAAe,4CAmBjB,CAAC"}
@@ -1,56 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface KeyValuePairProps {
3
- /** Label/key text */
4
- label: string;
5
- /** Value content */
6
- value: React.ReactNode;
7
- /** Layout orientation */
8
- orientation?: 'horizontal' | 'vertical';
9
- /** Alignment for horizontal layout */
10
- align?: 'start' | 'center' | 'between';
11
- /** Label width (for horizontal layout) */
12
- labelWidth?: 'auto' | 'sm' | 'md' | 'lg';
13
- /** Text size */
14
- size?: 'sm' | 'md' | 'lg';
15
- /** Show separator */
16
- separator?: boolean;
17
- /** Label color variant */
18
- labelVariant?: 'default' | 'muted' | 'strong';
19
- /** Value color variant */
20
- valueVariant?: 'default' | 'muted' | 'strong' | 'primary';
21
- /** Additional className for container */
22
- className?: string;
23
- /** Additional className for label */
24
- labelClassName?: string;
25
- /** Additional className for value */
26
- valueClassName?: string;
27
- }
28
- /**
29
- * KeyValuePair Component
30
- *
31
- * Displays a label-value pair with flexible layout and styling options.
32
- * Commonly used in forms, details pages, and data displays.
33
- *
34
- * @example
35
- * ```tsx
36
- * <KeyValuePair label="Email" value="user@example.com" />
37
- * <KeyValuePair
38
- * label="Status"
39
- * value={<Badge variant="success">Active</Badge>}
40
- * orientation="horizontal"
41
- * align="between"
42
- * />
43
- * ```
44
- *
45
- * @example
46
- * ```tsx
47
- * <KeyValuePair
48
- * label="Wallet Address"
49
- * value="0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
50
- * separator
51
- * valueVariant="primary"
52
- * />
53
- * ```
54
- */
55
- export declare const KeyValuePair: React.FC<KeyValuePairProps>;
56
- //# sourceMappingURL=key-value-pair.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"key-value-pair.d.ts","sourceRoot":"","sources":["../src/key-value-pair.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,iBAAiB;IAChC,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yBAAyB;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,sCAAsC;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IACvC,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACzC,gBAAgB;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,qBAAqB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC9C,0BAA0B;IAC1B,YAAY,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC1D,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAkGpD,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * UmarkdownUrenderer Component
3
- *
4
- * A reusable UmarkdownUrenderer component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UmarkdownUrenderer className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/markdown-renderer}
21
- */
22
- export interface UmarkdownUrendererProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UmarkdownUrenderer: ({ className, children, disabled, onClick, }: UmarkdownUrendererProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=markdown-renderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-renderer.d.ts","sourceRoot":"","sources":["../src/markdown-renderer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,uBAAuB;IACtC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,GAAI,6CAKhC,uBAAuB,4CAmBzB,CAAC"}
@@ -1,46 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface QRCodeDisplayProps {
3
- /** Data to encode */
4
- value: string;
5
- /** QR code size */
6
- size?: number;
7
- /** Foreground color */
8
- fgColor?: string;
9
- /** Background color */
10
- bgColor?: string;
11
- /** Error correction level */
12
- level?: 'L' | 'M' | 'Q' | 'H';
13
- /** Show download button */
14
- showDownload?: boolean;
15
- /** Additional className */
16
- className?: string;
17
- }
18
- /**
19
- * QRCodeDisplay Component
20
- *
21
- * QR code generator and display component.
22
- * Uses canvas to render QR codes with customizable colors.
23
- *
24
- * Note: This is a placeholder that renders a simple grid pattern.
25
- * For production use, integrate with a QR code library like 'qrcode' or 'qrcode.react'.
26
- *
27
- * @example
28
- * ```tsx
29
- * <QRCodeDisplay
30
- * value="https://example.com"
31
- * size={200}
32
- * showDownload
33
- * />
34
- * ```
35
- *
36
- * @example
37
- * ```tsx
38
- * <QRCodeDisplay
39
- * value={walletAddress}
40
- * fgColor="#000000"
41
- * bgColor="#ffffff"
42
- * />
43
- * ```
44
- */
45
- export declare const QRCodeDisplay: React.FC<QRCodeDisplayProps>;
46
- //# sourceMappingURL=qr-code-display.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"qr-code-display.d.ts","sourceRoot":"","sources":["../src/qr-code-display.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,MAAM,WAAW,kBAAkB;IACjC,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B,2BAA2B;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmGtD,CAAC"}
@@ -1,8 +0,0 @@
1
- export interface WysiwygEditorProps {
2
- value: string;
3
- onChange: (value: string) => void;
4
- placeholder?: string;
5
- className?: string;
6
- }
7
- export declare const WysiwygEditor: ({ value, onChange, placeholder, className, }: WysiwygEditorProps) => import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=wysiwyg-editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wysiwyg-editor.d.ts","sourceRoot":"","sources":["../src/wysiwyg-editor.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,GAAI,8CAK3B,kBAAkB,4CA2BpB,CAAC"}