nn-ui 1.0.0 → 1.0.2
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/lingma-ui.umd.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
(function(i,
|
1
|
+
(function(i,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(i=typeof globalThis<"u"?globalThis:i||self,b(i.LingmaUI={},i.React))})(this,function(i,b){"use strict";var P=document.createElement("style");P.textContent=`.btn{padding:8px 16px;border-radius:4px;cursor:pointer;transition:all .2s}.primary{background:#1677ff;color:#fff;border:none}.primary:hover{background:#4096ff}.default{background:#fff;color:#333;border:1px solid #d9d9d9}.default:hover{border-color:#1677ff;color:#1677ff}
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(P);var T={exports:{}},E={};/**
|
2
3
|
* @license React
|
3
4
|
* react-jsx-runtime.production.js
|
4
5
|
*
|
@@ -6,7 +7,7 @@
|
|
6
7
|
*
|
7
8
|
* This source code is licensed under the MIT license found in the
|
8
9
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var
|
10
|
+
*/var g;function W(){if(g)return E;g=1;var a=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function f(_,s,u){var v=null;if(u!==void 0&&(v=""+u),s.key!==void 0&&(v=""+s.key),"key"in s){u={};for(var p in s)p!=="key"&&(u[p]=s[p])}else u=s;return s=u.ref,{$$typeof:a,type:_,key:v,ref:s!==void 0?s:null,props:u}}return E.Fragment=d,E.jsx=f,E.jsxs=f,E}var R={};/**
|
10
11
|
* @license React
|
11
12
|
* react-jsx-runtime.development.js
|
12
13
|
*
|
@@ -14,9 +15,9 @@
|
|
14
15
|
*
|
15
16
|
* This source code is licensed under the MIT license found in the
|
16
17
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var
|
18
|
+
*/var j;function q(){return j||(j=1,process.env.NODE_ENV!=="production"&&function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case Z:return"Profiler";case H:return"StrictMode";case re:return"Suspense";case te:return"SuspenseList";case oe: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 B:return"Portal";case K:return(e.displayName||"Context")+".Provider";case Q:return(e._context.displayName||"Context")+".Consumer";case ee:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case $:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function d(e){return""+e}function f(e){try{d(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=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.",n),d(e)}}function _(e){if(e===O)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===$)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=x.A;return e===null?null:e.getOwner()}function u(){return Error("react-stack-top-frame")}function v(e){if(I.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 t(){F||(F=!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 G(){var e=a(this.type);return D[e]||(D[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 X(e,r,t,n,l,c,y,S){return t=c.ref,e={$$typeof:Y,type:e,key:r,props:c,_owner:l},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:G}):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:y}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,r,t,n,l,c,y,S){var o=r.children;if(o!==void 0)if(n)if(se(o)){for(n=0;n<o.length;n++)C(o[n]);Object.freeze&&Object.freeze(o)}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 C(o);if(I.call(r,"key")){o=a(e);var m=Object.keys(r).filter(function(ue){return ue!=="key"});n=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",U[o+n]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
18
19
|
let props = %s;
|
19
20
|
<%s {...props} />
|
20
21
|
React keys must be passed directly to JSX without using spread:
|
21
22
|
let props = %s;
|
22
|
-
<%s key={someKey} {...props} />`,n,o,m,o),
|
23
|
+
<%s key={someKey} {...props} />`,n,o,m,o),U[o+n]=!0)}if(o=null,t!==void 0&&(f(t),o=""+t),v(r)&&(f(r.key),o=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return o&&p(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),X(e,o,c,l,s(),t,y,S)}function C(e){typeof e=="object"&&e!==null&&e.$$typeof===Y&&e._store&&(e._store.validated=1)}var k=b,Y=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),x=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,se=Array.isArray,h=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(e){return e()}};var F,D={},L=k["react-stack-bottom-frame"].bind(k,u)(),M=h(_(u)),U={};R.Fragment=O,R.jsx=function(e,r,t,n,l){var c=1e4>x.recentlyCreatedOwnerStacks++;return N(e,r,t,!1,n,l,c?Error("react-stack-top-frame"):L,c?h(_(e)):M)},R.jsxs=function(e,r,t,n,l){var c=1e4>x.recentlyCreatedOwnerStacks++;return N(e,r,t,!0,n,l,c?Error("react-stack-top-frame"):L,c?h(_(e)):M)}}()),R}var w;function J(){return w||(w=1,process.env.NODE_ENV==="production"?T.exports=W():T.exports=q()),T.exports}var z=J();const V=a=>{const{type:d="default",...f}=a;return z.jsx("button",{className:`btn ${d} ${a.className||""}`,style:a.style,onClick:a.onClick,...f,children:a.children})};i.Button=V,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
File without changes
|