@aic-kits/react 0.0.17
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/LICENSE.md +5 -0
- package/dist/components/Example.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +446 -0
- package/package.json +42 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Example';
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("react");var S={exports:{}},w={};/**
|
|
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 ie;function je(){if(ie)return w;ie=1;var f=Symbol.for("react.transitional.element"),j=Symbol.for("react.fragment");function x(C,s,i){var v=null;if(i!==void 0&&(v=""+i),s.key!==void 0&&(v=""+s.key),"key"in s){i={};for(var _ in s)_!=="key"&&(i[_]=s[_])}else i=s;return s=i.ref,{$$typeof:f,type:C,key:v,ref:s!==void 0?s:null,props:i}}return w.Fragment=j,w.jsx=x,w.jsxs=x,w}var p={};/**
|
|
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 ce;function Ce(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){function f(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case P:return"Fragment";case Te:return"Portal";case F:return"Profiler";case B:return"StrictMode";case M:return"Suspense";case $: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 Z:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case Y:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return r=e.displayName||null,r!==null?r:f(e.type)||"Memo";case U:r=e._payload,e=e._init;try{return f(e(r))}catch{}}return null}function j(e){return""+e}function x(e){try{j(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),j(e)}}function C(){}function s(){if(y===0){K=console.log,D=console.info,ee=console.warn,re=console.error,te=console.group,oe=console.groupCollapsed,ne=console.groupEnd;var e={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}y++}function i(){if(y--,y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},e,{value:K}),info:g({},e,{value:D}),warn:g({},e,{value:ee}),error:g({},e,{value:re}),group:g({},e,{value:te}),groupCollapsed:g({},e,{value:oe}),groupEnd:g({},e,{value:ne})})}0>y&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function v(e){if(J===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);J=r&&r[1]||"",ae=-1<t.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+J+e+ae}function _(e,r){if(!e||z)return"";var t=V.get(e);if(t!==void 0)return t;z=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=b.H,b.H=null,s();try{var u={DetermineComponentFrameRoot:function(){try{if(r){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(E){var h=E}Reflect.construct(e,[],d)}else{try{d.call()}catch(E){h=E}e.call(d.prototype)}}else{try{throw Error()}catch(E){h=E}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(E){if(E&&h&&typeof E.stack=="string")return[E.stack,h.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=u.DetermineComponentFrameRoot(),c=o[0],T=o[1];if(c&&T){var l=c.split(`
|
|
20
|
+
`),m=T.split(`
|
|
21
|
+
`);for(o=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;o<m.length&&!m[o].includes("DetermineComponentFrameRoot");)o++;if(a===l.length||o===m.length)for(a=l.length-1,o=m.length-1;1<=a&&0<=o&&l[a]!==m[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==m[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==m[o]){var R=`
|
|
22
|
+
`+l[a].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,R),R}while(1<=a&&0<=o);break}}}finally{z=!1,b.H=n,i(),Error.prepareStackTrace=t}return l=(l=e?e.displayName||e.name:"")?v(l):"",typeof e=="function"&&V.set(e,l),l}function k(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return _(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return v(e);switch(e){case M:return v("Suspense");case $:return v("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Y:return e=_(e.render,!1),e;case W:return k(e.type);case U:r=e._payload,e=e._init;try{return k(e(r))}catch{}}return""}function O(){var e=b.A;return e===null?null:e.getOwner()}function ve(e){if(Q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function de(e,r){function t(){ue||(ue=!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 be(){var e=f(this.type);return le[e]||(le[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 ge(e,r,t,n,u,a){return t=a.ref,e={$$typeof:N,type:e,key:r,props:a,_owner:u},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:be}):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 G(e,r,t,n,u,a){if(typeof e=="string"||typeof e=="function"||e===P||e===F||e===B||e===M||e===$||e===xe||typeof e=="object"&&e!==null&&(e.$$typeof===U||e.$$typeof===W||e.$$typeof===Z||e.$$typeof===L||e.$$typeof===Y||e.$$typeof===Re||e.getModuleId!==void 0)){var o=r.children;if(o!==void 0)if(n)if(q(o)){for(n=0;n<o.length;n++)H(o[n],e);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 H(o,e)}else o="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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?n="null":q(e)?n="array":e!==void 0&&e.$$typeof===N?(n="<"+(f(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):n=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",n,o);if(Q.call(r,"key")){o=f(e);var c=Object.keys(r).filter(function(l){return l!=="key"});n=0<c.length?"{key: someKey, "+c.join(": ..., ")+": ...}":"{key: someKey}",se[o+n]||(c=0<c.length?"{"+c.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} />`,n,o,c,o),se[o+n]=!0)}if(o=null,t!==void 0&&(x(t),o=""+t),ve(r)&&(x(r.key),o=""+r.key),"key"in r){t={};for(var T in r)T!=="key"&&(t[T]=r[T])}else t=r;return o&&de(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),ge(e,o,a,u,O(),t)}function H(e,r){if(typeof e=="object"&&e&&e.$$typeof!==we){if(q(e))for(var t=0;t<e.length;t++){var n=e[t];A(n)&&X(n,r)}else if(A(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?t=null:(t=I&&e[I]||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;)A(e.value)&&X(e.value,r)}}function A(e){return typeof e=="object"&&e!==null&&e.$$typeof===N}function X(e,r){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,r=me(r),!fe[r])){fe[r]=!0;var t="";e&&e._owner!=null&&e._owner!==O()&&(t=null,typeof e._owner.tag=="number"?t=f(e._owner.type):typeof e._owner.name=="string"&&(t=e._owner.name),t=" It was passed a child from "+t+".");var n=b.getCurrentStack;b.getCurrentStack=function(){var u=k(e.type);return n&&(u+=n()||""),u},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),b.getCurrentStack=n}}function me(e){var r="",t=O();return t&&(t=f(t.type))&&(r=`
|
|
28
|
+
|
|
29
|
+
Check the render method of \``+t+"`."),r||(e=f(e))&&(r=`
|
|
30
|
+
|
|
31
|
+
Check the top-level render call using <`+e+">."),r}var _e=pe,N=Symbol.for("react.transitional.element"),Te=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),xe=Symbol.for("react.offscreen"),I=Symbol.iterator,ye=Symbol.for("react.client.reference"),b=_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,g=Object.assign,Re=Symbol.for("react.client.reference"),q=Array.isArray,y=0,K,D,ee,re,te,oe,ne;C.__reactDisabledLog=!0;var J,ae,z=!1,V=new(typeof WeakMap=="function"?WeakMap:Map),we=Symbol.for("react.client.reference"),ue,le={},se={},fe={};p.Fragment=P,p.jsx=function(e,r,t,n,u){return G(e,r,t,!1,n,u)},p.jsxs=function(e,r,t,n,u){return G(e,r,t,!0,n,u)}}()),p}var Ee;function he(){return Ee||(Ee=1,process.env.NODE_ENV==="production"?S.exports=je():S.exports=Ce()),S.exports}var Se=he();const ke=()=>Se.jsx("div",{children:"Example"});exports.Example=ke;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import pe from "react";
|
|
2
|
+
var k = { exports: {} }, y = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var ie;
|
|
13
|
+
function je() {
|
|
14
|
+
if (ie) return y;
|
|
15
|
+
ie = 1;
|
|
16
|
+
var f = Symbol.for("react.transitional.element"), j = Symbol.for("react.fragment");
|
|
17
|
+
function x(C, s, i) {
|
|
18
|
+
var v = null;
|
|
19
|
+
if (i !== void 0 && (v = "" + i), s.key !== void 0 && (v = "" + s.key), "key" in s) {
|
|
20
|
+
i = {};
|
|
21
|
+
for (var _ in s)
|
|
22
|
+
_ !== "key" && (i[_] = s[_]);
|
|
23
|
+
} else i = s;
|
|
24
|
+
return s = i.ref, {
|
|
25
|
+
$$typeof: f,
|
|
26
|
+
type: C,
|
|
27
|
+
key: v,
|
|
28
|
+
ref: s !== void 0 ? s : null,
|
|
29
|
+
props: i
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return y.Fragment = j, y.jsx = x, y.jsxs = x, y;
|
|
33
|
+
}
|
|
34
|
+
var p = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var ce;
|
|
45
|
+
function Ce() {
|
|
46
|
+
return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function f(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === Re ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case P:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case Te:
|
|
56
|
+
return "Portal";
|
|
57
|
+
case F:
|
|
58
|
+
return "Profiler";
|
|
59
|
+
case B:
|
|
60
|
+
return "StrictMode";
|
|
61
|
+
case M:
|
|
62
|
+
return "Suspense";
|
|
63
|
+
case $:
|
|
64
|
+
return "SuspenseList";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case Z:
|
|
71
|
+
return (e.displayName || "Context") + ".Provider";
|
|
72
|
+
case L:
|
|
73
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case Y:
|
|
75
|
+
var r = e.render;
|
|
76
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
77
|
+
case W:
|
|
78
|
+
return r = e.displayName || null, r !== null ? r : f(e.type) || "Memo";
|
|
79
|
+
case U:
|
|
80
|
+
r = e._payload, e = e._init;
|
|
81
|
+
try {
|
|
82
|
+
return f(e(r));
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
function j(e) {
|
|
89
|
+
return "" + e;
|
|
90
|
+
}
|
|
91
|
+
function x(e) {
|
|
92
|
+
try {
|
|
93
|
+
j(e);
|
|
94
|
+
var r = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
r = !0;
|
|
97
|
+
}
|
|
98
|
+
if (r) {
|
|
99
|
+
r = console;
|
|
100
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
101
|
+
return t.call(
|
|
102
|
+
r,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
n
|
|
105
|
+
), j(e);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function C() {
|
|
109
|
+
}
|
|
110
|
+
function s() {
|
|
111
|
+
if (R === 0) {
|
|
112
|
+
K = console.log, D = console.info, ee = console.warn, re = console.error, te = console.group, oe = console.groupCollapsed, ne = console.groupEnd;
|
|
113
|
+
var e = {
|
|
114
|
+
configurable: !0,
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
value: C,
|
|
117
|
+
writable: !0
|
|
118
|
+
};
|
|
119
|
+
Object.defineProperties(console, {
|
|
120
|
+
info: e,
|
|
121
|
+
log: e,
|
|
122
|
+
warn: e,
|
|
123
|
+
error: e,
|
|
124
|
+
group: e,
|
|
125
|
+
groupCollapsed: e,
|
|
126
|
+
groupEnd: e
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
R++;
|
|
130
|
+
}
|
|
131
|
+
function i() {
|
|
132
|
+
if (R--, R === 0) {
|
|
133
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
+
Object.defineProperties(console, {
|
|
135
|
+
log: m({}, e, { value: K }),
|
|
136
|
+
info: m({}, e, { value: D }),
|
|
137
|
+
warn: m({}, e, { value: ee }),
|
|
138
|
+
error: m({}, e, { value: re }),
|
|
139
|
+
group: m({}, e, { value: te }),
|
|
140
|
+
groupCollapsed: m({}, e, { value: oe }),
|
|
141
|
+
groupEnd: m({}, e, { value: ne })
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
0 > R && console.error(
|
|
145
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function v(e) {
|
|
149
|
+
if (J === void 0)
|
|
150
|
+
try {
|
|
151
|
+
throw Error();
|
|
152
|
+
} catch (t) {
|
|
153
|
+
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
+
J = r && r[1] || "", ae = -1 < t.stack.indexOf(`
|
|
155
|
+
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
+
}
|
|
157
|
+
return `
|
|
158
|
+
` + J + e + ae;
|
|
159
|
+
}
|
|
160
|
+
function _(e, r) {
|
|
161
|
+
if (!e || z) return "";
|
|
162
|
+
var t = V.get(e);
|
|
163
|
+
if (t !== void 0) return t;
|
|
164
|
+
z = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
+
var n = null;
|
|
166
|
+
n = b.H, b.H = null, s();
|
|
167
|
+
try {
|
|
168
|
+
var u = {
|
|
169
|
+
DetermineComponentFrameRoot: function() {
|
|
170
|
+
try {
|
|
171
|
+
if (r) {
|
|
172
|
+
var d = function() {
|
|
173
|
+
throw Error();
|
|
174
|
+
};
|
|
175
|
+
if (Object.defineProperty(d.prototype, "props", {
|
|
176
|
+
set: function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
}
|
|
179
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
+
try {
|
|
181
|
+
Reflect.construct(d, []);
|
|
182
|
+
} catch (E) {
|
|
183
|
+
var h = E;
|
|
184
|
+
}
|
|
185
|
+
Reflect.construct(e, [], d);
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
d.call();
|
|
189
|
+
} catch (E) {
|
|
190
|
+
h = E;
|
|
191
|
+
}
|
|
192
|
+
e.call(d.prototype);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (E) {
|
|
198
|
+
h = E;
|
|
199
|
+
}
|
|
200
|
+
(d = e()) && typeof d.catch == "function" && d.catch(function() {
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} catch (E) {
|
|
204
|
+
if (E && h && typeof E.stack == "string")
|
|
205
|
+
return [E.stack, h.stack];
|
|
206
|
+
}
|
|
207
|
+
return [null, null];
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
+
var a = Object.getOwnPropertyDescriptor(
|
|
212
|
+
u.DetermineComponentFrameRoot,
|
|
213
|
+
"name"
|
|
214
|
+
);
|
|
215
|
+
a && a.configurable && Object.defineProperty(
|
|
216
|
+
u.DetermineComponentFrameRoot,
|
|
217
|
+
"name",
|
|
218
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
+
);
|
|
220
|
+
var o = u.DetermineComponentFrameRoot(), c = o[0], T = o[1];
|
|
221
|
+
if (c && T) {
|
|
222
|
+
var l = c.split(`
|
|
223
|
+
`), g = T.split(`
|
|
224
|
+
`);
|
|
225
|
+
for (o = a = 0; a < l.length && !l[a].includes(
|
|
226
|
+
"DetermineComponentFrameRoot"
|
|
227
|
+
); )
|
|
228
|
+
a++;
|
|
229
|
+
for (; o < g.length && !g[o].includes(
|
|
230
|
+
"DetermineComponentFrameRoot"
|
|
231
|
+
); )
|
|
232
|
+
o++;
|
|
233
|
+
if (a === l.length || o === g.length)
|
|
234
|
+
for (a = l.length - 1, o = g.length - 1; 1 <= a && 0 <= o && l[a] !== g[o]; )
|
|
235
|
+
o--;
|
|
236
|
+
for (; 1 <= a && 0 <= o; a--, o--)
|
|
237
|
+
if (l[a] !== g[o]) {
|
|
238
|
+
if (a !== 1 || o !== 1)
|
|
239
|
+
do
|
|
240
|
+
if (a--, o--, 0 > o || l[a] !== g[o]) {
|
|
241
|
+
var w = `
|
|
242
|
+
` + l[a].replace(
|
|
243
|
+
" at new ",
|
|
244
|
+
" at "
|
|
245
|
+
);
|
|
246
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, w), w;
|
|
247
|
+
}
|
|
248
|
+
while (1 <= a && 0 <= o);
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
} finally {
|
|
253
|
+
z = !1, b.H = n, i(), Error.prepareStackTrace = t;
|
|
254
|
+
}
|
|
255
|
+
return l = (l = e ? e.displayName || e.name : "") ? v(l) : "", typeof e == "function" && V.set(e, l), l;
|
|
256
|
+
}
|
|
257
|
+
function O(e) {
|
|
258
|
+
if (e == null) return "";
|
|
259
|
+
if (typeof e == "function") {
|
|
260
|
+
var r = e.prototype;
|
|
261
|
+
return _(
|
|
262
|
+
e,
|
|
263
|
+
!(!r || !r.isReactComponent)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
if (typeof e == "string") return v(e);
|
|
267
|
+
switch (e) {
|
|
268
|
+
case M:
|
|
269
|
+
return v("Suspense");
|
|
270
|
+
case $:
|
|
271
|
+
return v("SuspenseList");
|
|
272
|
+
}
|
|
273
|
+
if (typeof e == "object")
|
|
274
|
+
switch (e.$$typeof) {
|
|
275
|
+
case Y:
|
|
276
|
+
return e = _(e.render, !1), e;
|
|
277
|
+
case W:
|
|
278
|
+
return O(e.type);
|
|
279
|
+
case U:
|
|
280
|
+
r = e._payload, e = e._init;
|
|
281
|
+
try {
|
|
282
|
+
return O(e(r));
|
|
283
|
+
} catch {
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return "";
|
|
287
|
+
}
|
|
288
|
+
function S() {
|
|
289
|
+
var e = b.A;
|
|
290
|
+
return e === null ? null : e.getOwner();
|
|
291
|
+
}
|
|
292
|
+
function ve(e) {
|
|
293
|
+
if (Q.call(e, "key")) {
|
|
294
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
295
|
+
if (r && r.isReactWarning) return !1;
|
|
296
|
+
}
|
|
297
|
+
return e.key !== void 0;
|
|
298
|
+
}
|
|
299
|
+
function de(e, r) {
|
|
300
|
+
function t() {
|
|
301
|
+
ue || (ue = !0, console.error(
|
|
302
|
+
"%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)",
|
|
303
|
+
r
|
|
304
|
+
));
|
|
305
|
+
}
|
|
306
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
307
|
+
get: t,
|
|
308
|
+
configurable: !0
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
function be() {
|
|
312
|
+
var e = f(this.type);
|
|
313
|
+
return le[e] || (le[e] = !0, console.error(
|
|
314
|
+
"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."
|
|
315
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
316
|
+
}
|
|
317
|
+
function me(e, r, t, n, u, a) {
|
|
318
|
+
return t = a.ref, e = {
|
|
319
|
+
$$typeof: N,
|
|
320
|
+
type: e,
|
|
321
|
+
key: r,
|
|
322
|
+
props: a,
|
|
323
|
+
_owner: u
|
|
324
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
325
|
+
enumerable: !1,
|
|
326
|
+
get: be
|
|
327
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
328
|
+
configurable: !1,
|
|
329
|
+
enumerable: !1,
|
|
330
|
+
writable: !0,
|
|
331
|
+
value: 0
|
|
332
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
333
|
+
configurable: !1,
|
|
334
|
+
enumerable: !1,
|
|
335
|
+
writable: !0,
|
|
336
|
+
value: null
|
|
337
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
338
|
+
}
|
|
339
|
+
function G(e, r, t, n, u, a) {
|
|
340
|
+
if (typeof e == "string" || typeof e == "function" || e === P || e === F || e === B || e === M || e === $ || e === xe || typeof e == "object" && e !== null && (e.$$typeof === U || e.$$typeof === W || e.$$typeof === Z || e.$$typeof === L || e.$$typeof === Y || e.$$typeof === we || e.getModuleId !== void 0)) {
|
|
341
|
+
var o = r.children;
|
|
342
|
+
if (o !== void 0)
|
|
343
|
+
if (n)
|
|
344
|
+
if (q(o)) {
|
|
345
|
+
for (n = 0; n < o.length; n++)
|
|
346
|
+
H(o[n], e);
|
|
347
|
+
Object.freeze && Object.freeze(o);
|
|
348
|
+
} else
|
|
349
|
+
console.error(
|
|
350
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
351
|
+
);
|
|
352
|
+
else H(o, e);
|
|
353
|
+
} else
|
|
354
|
+
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " 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 ? n = "null" : q(e) ? n = "array" : e !== void 0 && e.$$typeof === N ? (n = "<" + (f(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
|
|
355
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
356
|
+
n,
|
|
357
|
+
o
|
|
358
|
+
);
|
|
359
|
+
if (Q.call(r, "key")) {
|
|
360
|
+
o = f(e);
|
|
361
|
+
var c = Object.keys(r).filter(function(l) {
|
|
362
|
+
return l !== "key";
|
|
363
|
+
});
|
|
364
|
+
n = 0 < c.length ? "{key: someKey, " + c.join(": ..., ") + ": ...}" : "{key: someKey}", se[o + n] || (c = 0 < c.length ? "{" + c.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
366
|
+
let props = %s;
|
|
367
|
+
<%s {...props} />
|
|
368
|
+
React keys must be passed directly to JSX without using spread:
|
|
369
|
+
let props = %s;
|
|
370
|
+
<%s key={someKey} {...props} />`,
|
|
371
|
+
n,
|
|
372
|
+
o,
|
|
373
|
+
c,
|
|
374
|
+
o
|
|
375
|
+
), se[o + n] = !0);
|
|
376
|
+
}
|
|
377
|
+
if (o = null, t !== void 0 && (x(t), o = "" + t), ve(r) && (x(r.key), o = "" + r.key), "key" in r) {
|
|
378
|
+
t = {};
|
|
379
|
+
for (var T in r)
|
|
380
|
+
T !== "key" && (t[T] = r[T]);
|
|
381
|
+
} else t = r;
|
|
382
|
+
return o && de(
|
|
383
|
+
t,
|
|
384
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
385
|
+
), me(e, o, a, u, S(), t);
|
|
386
|
+
}
|
|
387
|
+
function H(e, r) {
|
|
388
|
+
if (typeof e == "object" && e && e.$$typeof !== ye) {
|
|
389
|
+
if (q(e))
|
|
390
|
+
for (var t = 0; t < e.length; t++) {
|
|
391
|
+
var n = e[t];
|
|
392
|
+
A(n) && X(n, r);
|
|
393
|
+
}
|
|
394
|
+
else if (A(e))
|
|
395
|
+
e._store && (e._store.validated = 1);
|
|
396
|
+
else if (e === null || typeof e != "object" ? t = null : (t = I && e[I] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
397
|
+
for (; !(e = t.next()).done; )
|
|
398
|
+
A(e.value) && X(e.value, r);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
function A(e) {
|
|
402
|
+
return typeof e == "object" && e !== null && e.$$typeof === N;
|
|
403
|
+
}
|
|
404
|
+
function X(e, r) {
|
|
405
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = ge(r), !fe[r])) {
|
|
406
|
+
fe[r] = !0;
|
|
407
|
+
var t = "";
|
|
408
|
+
e && e._owner != null && e._owner !== S() && (t = null, typeof e._owner.tag == "number" ? t = f(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
409
|
+
var n = b.getCurrentStack;
|
|
410
|
+
b.getCurrentStack = function() {
|
|
411
|
+
var u = O(e.type);
|
|
412
|
+
return n && (u += n() || ""), u;
|
|
413
|
+
}, console.error(
|
|
414
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
+
r,
|
|
416
|
+
t
|
|
417
|
+
), b.getCurrentStack = n;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function ge(e) {
|
|
421
|
+
var r = "", t = S();
|
|
422
|
+
return t && (t = f(t.type)) && (r = `
|
|
423
|
+
|
|
424
|
+
Check the render method of \`` + t + "`."), r || (e = f(e)) && (r = `
|
|
425
|
+
|
|
426
|
+
Check the top-level render call using <` + e + ">."), r;
|
|
427
|
+
}
|
|
428
|
+
var _e = pe, N = Symbol.for("react.transitional.element"), Te = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), Z = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), xe = Symbol.for("react.offscreen"), I = Symbol.iterator, Re = Symbol.for("react.client.reference"), b = _e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, m = Object.assign, we = Symbol.for("react.client.reference"), q = Array.isArray, R = 0, K, D, ee, re, te, oe, ne;
|
|
429
|
+
C.__reactDisabledLog = !0;
|
|
430
|
+
var J, ae, z = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), ue, le = {}, se = {}, fe = {};
|
|
431
|
+
p.Fragment = P, p.jsx = function(e, r, t, n, u) {
|
|
432
|
+
return G(e, r, t, !1, n, u);
|
|
433
|
+
}, p.jsxs = function(e, r, t, n, u) {
|
|
434
|
+
return G(e, r, t, !0, n, u);
|
|
435
|
+
};
|
|
436
|
+
}()), p;
|
|
437
|
+
}
|
|
438
|
+
var Ee;
|
|
439
|
+
function he() {
|
|
440
|
+
return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? k.exports = je() : k.exports = Ce()), k.exports;
|
|
441
|
+
}
|
|
442
|
+
var ke = he();
|
|
443
|
+
const Se = () => /* @__PURE__ */ ke.jsx("div", { children: "Example" });
|
|
444
|
+
export {
|
|
445
|
+
Se as Example
|
|
446
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aic-kits/react",
|
|
3
|
+
"version": "0.0.17",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs",
|
|
19
|
+
"types": "./dist/index.d.ts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite build --watch",
|
|
24
|
+
"build": "vite build",
|
|
25
|
+
"test": "vitest",
|
|
26
|
+
"typecheck": "tsc --noEmit",
|
|
27
|
+
"prepublishOnly": "yarn build"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^19.0.0",
|
|
31
|
+
"react-dom": "^19.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/react": "^19.0.1",
|
|
35
|
+
"@types/react-dom": "^19.0.0",
|
|
36
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
37
|
+
"vite": "^6.0.3",
|
|
38
|
+
"vite-plugin-dts": "^4.3.0",
|
|
39
|
+
"vitest": "^2.1.8"
|
|
40
|
+
},
|
|
41
|
+
"gitHead": "130dcd8b1ce0a7ad3db8e28b3bb4744f81ef7f7b"
|
|
42
|
+
}
|