tango-ui-cw 0.0.1

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 (42) hide show
  1. package/README.md +1 -0
  2. package/dist/index.js +30 -0
  3. package/dist/index.mjs +661 -0
  4. package/package.json +37 -0
  5. package/src/component/CSSFab/useTangoStyle.jsx +182 -0
  6. package/src/component/MaterialButton/MaterialButton.css +64 -0
  7. package/src/component/MaterialButton/index.jsx +58 -0
  8. package/src/component/MaterialInput/MaterialInput.css +33 -0
  9. package/src/component/MaterialInput/index.jsx +29 -0
  10. package/src/component/TButton/TButton.css +270 -0
  11. package/src/component/TButton/index.jsx +74 -0
  12. package/src/component/TColorPicker/TColorPicker.css +24 -0
  13. package/src/component/TColorPicker/index.jsx +106 -0
  14. package/src/component/TDate/TDate.css +0 -0
  15. package/src/component/TDate/index.jsx +148 -0
  16. package/src/component/TDatePicker/TDatePicker.css +13 -0
  17. package/src/component/TDatePicker/index.jsx +60 -0
  18. package/src/component/TDrawer/TDrawer.css +202 -0
  19. package/src/component/TDrawer/index.jsx +74 -0
  20. package/src/component/TInput/TInput.css +80 -0
  21. package/src/component/TInput/index.jsx +102 -0
  22. package/src/component/TLayout/TLayout.css +88 -0
  23. package/src/component/TLayout/index.jsx +77 -0
  24. package/src/component/TLine/TLine.css +54 -0
  25. package/src/component/TLine/index.jsx +57 -0
  26. package/src/component/TMark/TMark.css +6 -0
  27. package/src/component/TMark/index.jsx +78 -0
  28. package/src/component/TModal/TModal.css +108 -0
  29. package/src/component/TModal/index.jsx +69 -0
  30. package/src/component/TNotice/TNotice.css +52 -0
  31. package/src/component/TNotice/index.jsx +38 -0
  32. package/src/component/TNotice/useNotice.jsx +54 -0
  33. package/src/component/TSearch/TSearch.css +90 -0
  34. package/src/component/TSearch/index.jsx +100 -0
  35. package/src/component/TSpace/TSpace.css +43 -0
  36. package/src/component/TSpace/index.jsx +60 -0
  37. package/src/component/TTable/TTable.css +26 -0
  38. package/src/component/TTable/index.jsx +77 -0
  39. package/src/component/TTooltip/TTooltip.css +105 -0
  40. package/src/component/TTooltip/index.jsx +25 -0
  41. package/src/component/Tango/store.js +105 -0
  42. package/src/component/Tools/WaterMark/WaterMark.jsx +78 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ **tango-ui 组件库源码**
package/dist/index.js ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";const Z=require("react"),vr=require("react-dom");var M={exports:{}},I={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 Ce;function pr(){if(Ce)return I;Ce=1;var _=Z,R=Symbol.for("react.element"),b=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,S=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W={key:!0,ref:!0,__self:!0,__source:!0};function D(m,f,P){var p,g={},T=null,Y=null;P!==void 0&&(T=""+P),f.key!==void 0&&(T=""+f.key),f.ref!==void 0&&(Y=f.ref);for(p in f)y.call(f,p)&&!W.hasOwnProperty(p)&&(g[p]=f[p]);if(m&&m.defaultProps)for(p in f=m.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:R,type:m,key:T,ref:Y,props:g,_owner:S.current}}return I.Fragment=b,I.jsx=D,I.jsxs=D,I}var $={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its 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 Se;function Er(){return Se||(Se=1,process.env.NODE_ENV!=="production"&&function(){var _=Z,R=Symbol.for("react.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),m=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),Q=Symbol.iterator,xe="@@iterator";function ke(e){if(e===null||typeof e!="object")return null;var r=Q&&e[Q]||e[xe];return typeof r=="function"?r:null}var w=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];De("error",e,t)}}function De(e,r,t){{var n=w.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Fe=!1,Ae=!1,Ie=!1,$e=!1,We=!1,ee;ee=Symbol.for("react.module.reference");function Ye(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===W||We||e===S||e===P||e===p||$e||e===Y||Fe||Ae||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===g||e.$$typeof===D||e.$$typeof===m||e.$$typeof===f||e.$$typeof===ee||e.getModuleId!==void 0))}function Le(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function re(e){return e.displayName||"Context"}function h(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case b:return"Portal";case W:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return re(r)+".Consumer";case D:var t=e;return re(t._context)+".Provider";case f:return Le(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:h(e.type)||"Memo";case T:{var o=e,u=o._payload,i=o._init;try{return h(i(u))}catch{return null}}}return null}var O=Object.assign,F=0,te,ne,ae,ie,oe,ue,se;function le(){}le.__reactDisabledLog=!0;function Ne(){{if(F===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Ue(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:te}),info:O({},e,{value:ne}),warn:O({},e,{value:ae}),error:O({},e,{value:ie}),group:O({},e,{value:oe}),groupCollapsed:O({},e,{value:ue}),groupEnd:O({},e,{value:se})})}F<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=w.ReactCurrentDispatcher,B;function L(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
18
+ `+B+e}}var J=!1,N;{var Ve=typeof WeakMap=="function"?WeakMap:Map;N=new Ve}function fe(e,r){if(!e||J)return"";{var t=N.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Ne();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
19
+ `),d=n.stack.split(`
20
+ `),s=a.length-1,l=d.length-1;s>=1&&l>=0&&a[s]!==d[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==d[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==d[l]){var E=`
21
+ `+a[s].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&N.set(e,E),E}while(s>=1&&l>=0);break}}}finally{J=!1,q.current=u,Ue(),Error.prepareStackTrace=o}var x=e?e.displayName||e.name:"",C=x?L(x):"";return typeof e=="function"&&N.set(e,C),C}function Me(e,r,t){return fe(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,qe(e));if(typeof e=="string")return L(e);switch(e){case P:return L("Suspense");case p:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Me(e.render);case g:return U(e.type,r,t);case T:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var A=Object.prototype.hasOwnProperty,ce={},de=w.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Be(e,r,t,n,o){{var u=Function.call.bind(A);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(V(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),V(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,V(o),c("Failed %s type: %s",t,a.message),V(null))}}}var Je=Array.isArray;function K(e){return Je(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(Ge(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),ve(e)}var Ee=w.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},Re,ye;function Xe(e){if(A.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(A.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){typeof e.ref=="string"&&Ee.current}function Qe(e,r){{var t=function(){Re||(Re=!0,c("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function er(e,r){{var t=function(){ye||(ye=!0,c("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var rr=function(e,r,t,n,o,u,i){var a={$$typeof:R,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function tr(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(pe(t),a=""+t),He(r)&&(pe(r.key),a=""+r.key),Xe(r)&&(d=r.ref,Ze(r,o));for(u in r)A.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||d){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,l),d&&er(i,l)}return rr(e,a,d,o,n,Ee.current,i)}}var G=w.ReactCurrentOwner,_e=w.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var z;z=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}function ge(){{if(G.current){var e=h(G.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function nr(e){return""}var he={};function ar(e){{var r=ge();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
+
25
+ Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if(he[t])return;he[t]=!0;var n="";e&&e._owner&&e._owner!==G.current&&(n=" It was passed a child from "+h(e._owner.type)+"."),j(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),j(null)}}function me(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&be(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=ke(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)X(i.value)&&be(i.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=h(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var o=h(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function or(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){j(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),j(null);break}}e.ref!==null&&(j(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),j(null))}}var Te={};function Oe(e,r,t,n,o,u){{var i=Ye(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=nr();d?a+=d:a+=ge();var s;e===null?s="null":K(e)?s="array":e!==void 0&&e.$$typeof===R?(s="<"+(h(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=tr(e,r,t,o,u);if(l==null)return l;if(i){var E=r.children;if(E!==void 0)if(n)if(K(E)){for(var x=0;x<E.length;x++)me(E[x],e);Object.freeze&&Object.freeze(E)}else c("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 me(E,e)}if(A.call(r,"key")){var C=h(e),v=Object.keys(r).filter(function(dr){return dr!=="key"}),H=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[C+H]){var cr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,H,C,cr,C),Te[C+H]=!0}}return e===y?or(l):ir(l),l}}function ur(e,r,t){return Oe(e,r,t,!0)}function sr(e,r,t){return Oe(e,r,t,!1)}var lr=sr,fr=ur;$.Fragment=y,$.jsx=lr,$.jsxs=fr}()),$}var Pe;function Rr(){return Pe||(Pe=1,process.env.NODE_ENV==="production"?M.exports=pr():M.exports=Er()),M.exports}var we=Rr(),k={},je;function yr(){if(je)return k;je=1;var _=vr;if(process.env.NODE_ENV==="production")k.createRoot=_.createRoot,k.hydrateRoot=_.hydrateRoot;else{var R=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;k.createRoot=function(b,y){R.usingClientEntryPoint=!0;try{return _.createRoot(b,y)}finally{R.usingClientEntryPoint=!1}},k.hydrateRoot=function(b,y,S){R.usingClientEntryPoint=!0;try{return _.hydrateRoot(b,y,S)}finally{R.usingClientEntryPoint=!1}}}return k}var _r=yr();_r.createRoot(document.getElementById("root")).render(we.jsx(Z.StrictMode,{children:we.jsx(App,{})}));