@kunglad/my-custom-comp 1.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/README.md ADDED
@@ -0,0 +1,89 @@
1
+ <!-- # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## React Compiler
11
+
12
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
+
14
+ ## Expanding the ESLint configuration
15
+
16
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
17
+
18
+ ```js
19
+ export default defineConfig([
20
+ globalIgnores(['dist']),
21
+ {
22
+ files: ['**/*.{ts,tsx}'],
23
+ extends: [
24
+ // Other configs...
25
+
26
+ // Remove tseslint.configs.recommended and replace with this
27
+ tseslint.configs.recommendedTypeChecked,
28
+ // Alternatively, use this for stricter rules
29
+ tseslint.configs.strictTypeChecked,
30
+ // Optionally, add this for stylistic rules
31
+ tseslint.configs.stylisticTypeChecked,
32
+
33
+ // Other configs...
34
+ ],
35
+ languageOptions: {
36
+ parserOptions: {
37
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
+ tsconfigRootDir: import.meta.dirname,
39
+ },
40
+ // other options...
41
+ },
42
+ },
43
+ ])
44
+ ```
45
+
46
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
+
48
+ ```js
49
+ // eslint.config.js
50
+ import reactX from 'eslint-plugin-react-x'
51
+ import reactDom from 'eslint-plugin-react-dom'
52
+
53
+ export default defineConfig([
54
+ globalIgnores(['dist']),
55
+ {
56
+ files: ['**/*.{ts,tsx}'],
57
+ extends: [
58
+ // Other configs...
59
+ // Enable lint rules for React
60
+ reactX.configs['recommended-typescript'],
61
+ // Enable lint rules for React DOM
62
+ reactDom.configs.recommended,
63
+ ],
64
+ languageOptions: {
65
+ parserOptions: {
66
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
+ tsconfigRootDir: import.meta.dirname,
68
+ },
69
+ // other options...
70
+ },
71
+ },
72
+ ])
73
+ ``` -->
74
+
75
+ # 创建vite项目
76
+
77
+ npm create vite@latest my-custom-comp -- --template react-ts
78
+
79
+ # 登录npm
80
+
81
+ 1. 切换为官方登录源 npm config set registry https://registry.npmjs.org/
82
+
83
+ 2. npm login
84
+
85
+ 3. 创建.npmrc文件,并添加registry=https://registry.npmjs.org/
86
+
87
+ 4. 构建项目(如果还没构建过):npm run build
88
+
89
+ 5. 发布 npm publish
@@ -0,0 +1,2 @@
1
+ import { default as Button } from './components/Button/';
2
+ export { Button };
@@ -0,0 +1,4 @@
1
+ import { default as a } from "./index.es2.js";
2
+ export {
3
+ a as Button
4
+ };
@@ -0,0 +1,5 @@
1
+ import { j as t } from "./index.es3.js";
2
+ const n = () => /* @__PURE__ */ t.jsx("button", { children: "我是一个button" });
3
+ export {
4
+ n as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { __require as r } from "./index.es4.js";
2
+ var i = r();
3
+ export {
4
+ i as j
5
+ };
@@ -0,0 +1,10 @@
1
+ import { __module as e } from "./index.es5.js";
2
+ import { __require as t } from "./index.es6.js";
3
+ import { __require as i } from "./index.es7.js";
4
+ var r;
5
+ function m() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = t() : e.exports = i(), e.exports);
7
+ }
8
+ export {
9
+ m as __require
10
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,26 @@
1
+ import { __exports as e } from "./index.es8.js";
2
+ var s;
3
+ function a() {
4
+ if (s) return e;
5
+ s = 1;
6
+ var i = /* @__PURE__ */ Symbol.for("react.transitional.element"), _ = /* @__PURE__ */ Symbol.for("react.fragment");
7
+ function o(l, r, t) {
8
+ var u = null;
9
+ if (t !== void 0 && (u = "" + t), r.key !== void 0 && (u = "" + r.key), "key" in r) {
10
+ t = {};
11
+ for (var n in r)
12
+ n !== "key" && (t[n] = r[n]);
13
+ } else t = r;
14
+ return r = t.ref, {
15
+ $$typeof: i,
16
+ type: l,
17
+ key: u,
18
+ ref: r !== void 0 ? r : null,
19
+ props: t
20
+ };
21
+ }
22
+ return e.Fragment = _, e.jsx = o, e.jsxs = o, e;
23
+ }
24
+ export {
25
+ a as __require
26
+ };
@@ -0,0 +1,236 @@
1
+ import { __exports as s } from "./index.es9.js";
2
+ import J from "react";
3
+ var j;
4
+ function Z() {
5
+ return j ? s : (j = 1, process.env.NODE_ENV !== "production" && (function() {
6
+ function l(e) {
7
+ if (e == null) return null;
8
+ if (typeof e == "function")
9
+ return e.$$typeof === G ? null : e.displayName || e.name || null;
10
+ if (typeof e == "string") return e;
11
+ switch (e) {
12
+ case f:
13
+ return "Fragment";
14
+ case F:
15
+ return "Profiler";
16
+ case D:
17
+ return "StrictMode";
18
+ case M:
19
+ return "Suspense";
20
+ case z:
21
+ return "SuspenseList";
22
+ case q:
23
+ return "Activity";
24
+ }
25
+ if (typeof e == "object")
26
+ switch (typeof e.tag == "number" && console.error(
27
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
28
+ ), e.$$typeof) {
29
+ case $:
30
+ return "Portal";
31
+ case L:
32
+ return e.displayName || "Context";
33
+ case W:
34
+ return (e._context.displayName || "Context") + ".Consumer";
35
+ case U:
36
+ var r = e.render;
37
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
38
+ case V:
39
+ return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
40
+ case m:
41
+ r = e._payload, e = e._init;
42
+ try {
43
+ return l(e(r));
44
+ } catch {
45
+ }
46
+ }
47
+ return null;
48
+ }
49
+ function R(e) {
50
+ return "" + e;
51
+ }
52
+ function T(e) {
53
+ try {
54
+ R(e);
55
+ var r = !1;
56
+ } catch {
57
+ r = !0;
58
+ }
59
+ if (r) {
60
+ r = console;
61
+ var t = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
62
+ return t.call(
63
+ r,
64
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
65
+ a
66
+ ), R(e);
67
+ }
68
+ }
69
+ function i(e) {
70
+ if (e === f) return "<>";
71
+ if (typeof e == "object" && e !== null && e.$$typeof === m)
72
+ return "<...>";
73
+ try {
74
+ var r = l(e);
75
+ return r ? "<" + r + ">" : "<...>";
76
+ } catch {
77
+ return "<...>";
78
+ }
79
+ }
80
+ function N() {
81
+ var e = _.A;
82
+ return e === null ? null : e.getOwner();
83
+ }
84
+ function p() {
85
+ return Error("react-stack-top-frame");
86
+ }
87
+ function C(e) {
88
+ if (y.call(e, "key")) {
89
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
90
+ if (r && r.isReactWarning) return !1;
91
+ }
92
+ return e.key !== void 0;
93
+ }
94
+ function x(e, r) {
95
+ function t() {
96
+ A || (A = !0, console.error(
97
+ "%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)",
98
+ r
99
+ ));
100
+ }
101
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
102
+ get: t,
103
+ configurable: !0
104
+ });
105
+ }
106
+ function Y() {
107
+ var e = l(this.type);
108
+ return S[e] || (S[e] = !0, console.error(
109
+ "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."
110
+ )), e = this.props.ref, e !== void 0 ? e : null;
111
+ }
112
+ function I(e, r, t, a, u, b) {
113
+ var n = t.ref;
114
+ return e = {
115
+ $$typeof: g,
116
+ type: e,
117
+ key: r,
118
+ props: t,
119
+ _owner: a
120
+ }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
121
+ enumerable: !1,
122
+ get: Y
123
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
124
+ configurable: !1,
125
+ enumerable: !1,
126
+ writable: !0,
127
+ value: 0
128
+ }), Object.defineProperty(e, "_debugInfo", {
129
+ configurable: !1,
130
+ enumerable: !1,
131
+ writable: !0,
132
+ value: null
133
+ }), Object.defineProperty(e, "_debugStack", {
134
+ configurable: !1,
135
+ enumerable: !1,
136
+ writable: !0,
137
+ value: u
138
+ }), Object.defineProperty(e, "_debugTask", {
139
+ configurable: !1,
140
+ enumerable: !1,
141
+ writable: !0,
142
+ value: b
143
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
144
+ }
145
+ function v(e, r, t, a, u, b) {
146
+ var n = r.children;
147
+ if (n !== void 0)
148
+ if (a)
149
+ if (X(n)) {
150
+ for (a = 0; a < n.length; a++)
151
+ O(n[a]);
152
+ Object.freeze && Object.freeze(n);
153
+ } else
154
+ console.error(
155
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
156
+ );
157
+ else O(n);
158
+ if (y.call(r, "key")) {
159
+ n = l(e);
160
+ var o = Object.keys(r).filter(function(K) {
161
+ return K !== "key";
162
+ });
163
+ a = 0 < o.length ? "{key: someKey, " + o.join(": ..., ") + ": ...}" : "{key: someKey}", h[n + a] || (o = 0 < o.length ? "{" + o.join(": ..., ") + ": ...}" : "{}", console.error(
164
+ `A props object containing a "key" prop is being spread into JSX:
165
+ let props = %s;
166
+ <%s {...props} />
167
+ React keys must be passed directly to JSX without using spread:
168
+ let props = %s;
169
+ <%s key={someKey} {...props} />`,
170
+ a,
171
+ n,
172
+ o,
173
+ n
174
+ ), h[n + a] = !0);
175
+ }
176
+ if (n = null, t !== void 0 && (T(t), n = "" + t), C(r) && (T(r.key), n = "" + r.key), "key" in r) {
177
+ t = {};
178
+ for (var E in r)
179
+ E !== "key" && (t[E] = r[E]);
180
+ } else t = r;
181
+ return n && x(
182
+ t,
183
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
184
+ ), I(
185
+ e,
186
+ n,
187
+ t,
188
+ N(),
189
+ u,
190
+ b
191
+ );
192
+ }
193
+ function O(e) {
194
+ k(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === m && (e._payload.status === "fulfilled" ? k(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
195
+ }
196
+ function k(e) {
197
+ return typeof e == "object" && e !== null && e.$$typeof === g;
198
+ }
199
+ var c = J, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), $ = /* @__PURE__ */ Symbol.for("react.portal"), f = /* @__PURE__ */ Symbol.for("react.fragment"), D = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), W = /* @__PURE__ */ Symbol.for("react.consumer"), L = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), M = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.suspense_list"), V = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), q = /* @__PURE__ */ Symbol.for("react.activity"), G = /* @__PURE__ */ Symbol.for("react.client.reference"), _ = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, X = Array.isArray, d = console.createTask ? console.createTask : function() {
200
+ return null;
201
+ };
202
+ c = {
203
+ react_stack_bottom_frame: function(e) {
204
+ return e();
205
+ }
206
+ };
207
+ var A, S = {}, w = c.react_stack_bottom_frame.bind(
208
+ c,
209
+ p
210
+ )(), P = d(i(p)), h = {};
211
+ s.Fragment = f, s.jsx = function(e, r, t) {
212
+ var a = 1e4 > _.recentlyCreatedOwnerStacks++;
213
+ return v(
214
+ e,
215
+ r,
216
+ t,
217
+ !1,
218
+ a ? Error("react-stack-top-frame") : w,
219
+ a ? d(i(e)) : P
220
+ );
221
+ }, s.jsxs = function(e, r, t) {
222
+ var a = 1e4 > _.recentlyCreatedOwnerStacks++;
223
+ return v(
224
+ e,
225
+ r,
226
+ t,
227
+ !0,
228
+ a ? Error("react-stack-top-frame") : w,
229
+ a ? d(i(e)) : P
230
+ );
231
+ };
232
+ })(), s);
233
+ }
234
+ export {
235
+ Z as __require
236
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");exports.Button=e;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./index.cjs3.js"),n=()=>t.jsxRuntimeExports.jsx("button",{children:"我是一个button"});module.exports=n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs4.js");var t=e.__require();exports.jsxRuntimeExports=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js"),t=require("./index.cjs6.js"),u=require("./index.cjs7.js");var r;function o(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=u.__require()),e.__module.exports}exports.__require=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs8.js");var _;function x(){if(_)return e.__exports;_=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(l,r,t){var o=null;if(t!==void 0&&(o=""+t),r.key!==void 0&&(o=""+r.key),"key"in r){t={};for(var u in r)u!=="key"&&(t[u]=r[u])}else t=r;return r=t.ref,{$$typeof:n,type:l,key:o,ref:r!==void 0?r:null,props:t}}return e.__exports.Fragment=i,e.__exports.jsx=s,e.__exports.jsxs=s,e.__exports}exports.__require=x;
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs9.js"),J=require("react");var j;function B(){return j||(j=1,process.env.NODE_ENV!=="production"&&(function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===G?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case F:return"Profiler";case D:return"StrictMode";case U:return"Suspense";case q:return"SuspenseList";case V: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 $:return"Portal";case L:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case M:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case _:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function p(e){return""+e}function R(e){try{p(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,a=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.",a),p(e)}}function i(e){if(e===f)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===_)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function N(){var e=m.A;return e===null?null:e.getOwner()}function T(){return Error("react-stack-top-frame")}function x(e){if(y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function C(e,r){function t(){S||(S=!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 Y(){var e=l(this.type);return A[e]||(A[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,r,t,a,u,b){var n=t.ref;return e={$$typeof:k,type:e,key:r,props:t,_owner:a},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:Y}):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:u}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:b}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function v(e,r,t,a,u,b){var n=r.children;if(n!==void 0)if(a)if(X(n)){for(a=0;a<n.length;a++)O(n[a]);Object.freeze&&Object.freeze(n)}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 O(n);if(y.call(r,"key")){n=l(e);var o=Object.keys(r).filter(function(K){return K!=="key"});a=0<o.length?"{key: someKey, "+o.join(": ..., ")+": ...}":"{key: someKey}",h[n+a]||(o=0<o.length?"{"+o.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,a,n,o,n),h[n+a]=!0)}if(n=null,t!==void 0&&(R(t),n=""+t),x(r)&&(R(r.key),n=""+r.key),"key"in r){t={};for(var E in r)E!=="key"&&(t[E]=r[E])}else t=r;return n&&C(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),I(e,n,t,N(),u,b)}function O(e){g(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===_&&(e._payload.status==="fulfilled"?g(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function g(e){return typeof e=="object"&&e!==null&&e.$$typeof===k}var c=J,k=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),L=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),m=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,y=Object.prototype.hasOwnProperty,X=Array.isArray,d=console.createTask?console.createTask:function(){return null};c={react_stack_bottom_frame:function(e){return e()}};var S,A={},w=c.react_stack_bottom_frame.bind(c,T)(),P=d(i(T)),h={};s.__exports.Fragment=f,s.__exports.jsx=function(e,r,t){var a=1e4>m.recentlyCreatedOwnerStacks++;return v(e,r,t,!1,a?Error("react-stack-top-frame"):w,a?d(i(e)):P)},s.__exports.jsxs=function(e,r,t){var a=1e4>m.recentlyCreatedOwnerStacks++;return v(e,r,t,!0,a?Error("react-stack-top-frame"):w,a?d(i(e)):P)}})()),s.__exports}exports.__require=B;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,2 @@
1
+ import { default as Button } from './components/Button/';
2
+ export { Button };
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@kunglad/my-custom-comp",
3
+ "private": false,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "main": "./dist/lib/index.js",
7
+ "module": "./dist/es/index.js",
8
+ "types": "./dist/es/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public",
14
+ "registry": "https://registry.npmjs.org/"
15
+ },
16
+ "scripts": {
17
+ "dev": "vite",
18
+ "build": "tsc -b && vite build",
19
+ "lint": "eslint .",
20
+ "preview": "vite preview"
21
+ },
22
+ "dependencies": {
23
+ "react": "^19.2.0",
24
+ "react-dom": "^19.2.0"
25
+ },
26
+ "devDependencies": {
27
+ "@eslint/js": "^9.39.1",
28
+ "@types/node": "^24.10.1",
29
+ "@types/react": "^19.2.7",
30
+ "@types/react-dom": "^19.2.3",
31
+ "@vitejs/plugin-react": "^5.1.1",
32
+ "eslint": "^9.39.1",
33
+ "eslint-plugin-react-hooks": "^7.0.1",
34
+ "eslint-plugin-react-refresh": "^0.4.24",
35
+ "globals": "^16.5.0",
36
+ "typescript": "~5.9.3",
37
+ "typescript-eslint": "^8.48.0",
38
+ "vite": "^7.3.1",
39
+ "vite-plugin-dts": "^4.5.4"
40
+ }
41
+ }