helloipju-hicon 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,69 @@
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/) 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
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
+
14
+ ```js
15
+ export default tseslint.config([
16
+ globalIgnores(['dist']),
17
+ {
18
+ files: ['**/*.{ts,tsx}'],
19
+ extends: [
20
+ // Other configs...
21
+
22
+ // Remove tseslint.configs.recommended and replace with this
23
+ ...tseslint.configs.recommendedTypeChecked,
24
+ // Alternatively, use this for stricter rules
25
+ ...tseslint.configs.strictTypeChecked,
26
+ // Optionally, add this for stylistic rules
27
+ ...tseslint.configs.stylisticTypeChecked,
28
+
29
+ // Other configs...
30
+ ],
31
+ languageOptions: {
32
+ parserOptions: {
33
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
34
+ tsconfigRootDir: import.meta.dirname,
35
+ },
36
+ // other options...
37
+ },
38
+ },
39
+ ])
40
+ ```
41
+
42
+ 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:
43
+
44
+ ```js
45
+ // eslint.config.js
46
+ import reactX from 'eslint-plugin-react-x'
47
+ import reactDom from 'eslint-plugin-react-dom'
48
+
49
+ export default tseslint.config([
50
+ globalIgnores(['dist']),
51
+ {
52
+ files: ['**/*.{ts,tsx}'],
53
+ extends: [
54
+ // Other configs...
55
+ // Enable lint rules for React
56
+ reactX.configs['recommended-typescript'],
57
+ // Enable lint rules for React DOM
58
+ reactDom.configs.recommended,
59
+ ],
60
+ languageOptions: {
61
+ parserOptions: {
62
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
63
+ tsconfigRootDir: import.meta.dirname,
64
+ },
65
+ // other options...
66
+ },
67
+ },
68
+ ])
69
+ ```
@@ -0,0 +1,28 @@
1
+ $ storybook build --output-dir=/var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23
2
+ storybook v9.0.17
3
+ 
4
+ info => Cleaning outputDir: ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23
5
+ info => Loading presets
6
+ info => Building manager..
7
+ info => Building preview..
8
+ info Using tsconfig paths for react-docgen
9
+ info Using tsconfig paths for react-docgen
10
+ vite v7.0.5 building for production...
11
+ transforming...
12
+ ✓ 74 modules transformed.
13
+ rendering chunks...
14
+ computing gzip size...
15
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/iframe.html  18.09 kB │ gzip: 5.06 kB
16
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/index-CAcFb_De.js  0.42 kB │ gzip: 0.27 kB
17
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/jsx-runtime-D_zvdyIk.js  0.73 kB │ gzip: 0.46 kB
18
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/PolygonIcon.stories-zkeWVFMI.js  0.81 kB │ gzip: 0.48 kB
19
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/firsttest.stories-87oe0ZWP.js  0.91 kB │ gzip: 0.56 kB
20
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/pencil.stories-CQHoGiPb.js  0.92 kB │ gzip: 0.55 kB
21
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/Color-AVL7NMMY-BSr-9z9c.js  29.17 kB │ gzip: 11.03 kB
22
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/matchers-7Z3WT2CE-CcSi9QFY.js  29.66 kB │ gzip: 10.29 kB
23
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/react-18-DucWtq-a.js  178.53 kB │ gzip: 56.32 kB
24
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/DocsRenderer-PQXLIZUC-BAlqNaKM.js  527.68 kB │ gzip: 172.41 kB
25
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/axe-Ddw2Sn-0.js  572.23 kB │ gzip: 158.00 kB
26
+ ../../../../../var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23/assets/iframe-ufe89Puv.js 1,233.58 kB │ gzip: 342.65 kB
27
+ ✓ built in 2.92s
28
+ info => Output directory: /var/folders/yf/6tjdlxt15nd1hwk37_3wbhbw0000gn/T/chromatic--14486-kHkiWFWour23
@@ -0,0 +1,3 @@
1
+ import type { IconProps } from '../types/iconTypes';
2
+ declare function SvgComponent(props: IconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default SvgComponent;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ function SvgComponent(props) {
3
+ const { size = 20, color, className } = props;
4
+ return _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, fill: "none", viewBox: "0 0 16 16", color: color, className: className, children: _jsx("path", { stroke: "#2864BF", strokeLinecap: "round", strokeLinejoin: "round", d: "M3.2 10.4 6 12.8m-3.2-2.4 7.888-8.163a2.175 2.175 0 1 1 3.075 3.076L5.6 13.2l-4 1.2z" }) });
5
+ }
6
+ export default SvgComponent;
@@ -0,0 +1 @@
1
+ export * from "./icons-tsx/PencilIcon";
package/dist/index.js ADDED
@@ -0,0 +1,306 @@
1
+ import * as ee from "react";
2
+ function re(s) {
3
+ if (Object.prototype.hasOwnProperty.call(s, "__esModule")) return s;
4
+ var f = s.default;
5
+ if (typeof f == "function") {
6
+ var u = function c() {
7
+ var n = !1;
8
+ try {
9
+ n = this instanceof c;
10
+ } catch {
11
+ }
12
+ return n ? Reflect.construct(f, arguments, this.constructor) : f.apply(this, arguments);
13
+ };
14
+ u.prototype = f.prototype;
15
+ } else u = {};
16
+ return Object.defineProperty(u, "__esModule", { value: !0 }), Object.keys(s).forEach(function(c) {
17
+ var n = Object.getOwnPropertyDescriptor(s, c);
18
+ Object.defineProperty(u, c, n.get ? n : {
19
+ enumerable: !0,
20
+ get: function() {
21
+ return s[c];
22
+ }
23
+ });
24
+ }), u;
25
+ }
26
+ var v = { exports: {} }, R = {};
27
+ /**
28
+ * @license React
29
+ * react-jsx-runtime.production.js
30
+ *
31
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var $;
37
+ function te() {
38
+ if ($) return R;
39
+ $ = 1;
40
+ var s = Symbol.for("react.transitional.element"), f = Symbol.for("react.fragment");
41
+ function u(c, n, l) {
42
+ var E = null;
43
+ if (l !== void 0 && (E = "" + l), n.key !== void 0 && (E = "" + n.key), "key" in n) {
44
+ l = {};
45
+ for (var b in n)
46
+ b !== "key" && (l[b] = n[b]);
47
+ } else l = n;
48
+ return n = l.ref, {
49
+ $$typeof: s,
50
+ type: c,
51
+ key: E,
52
+ ref: n !== void 0 ? n : null,
53
+ props: l
54
+ };
55
+ }
56
+ return R.Fragment = f, R.jsx = u, R.jsxs = u, R;
57
+ }
58
+ var p = {};
59
+ const ne = /* @__PURE__ */ re(ee);
60
+ /**
61
+ * @license React
62
+ * react-jsx-runtime.development.js
63
+ *
64
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
65
+ *
66
+ * This source code is licensed under the MIT license found in the
67
+ * LICENSE file in the root directory of this source tree.
68
+ */
69
+ var D;
70
+ function oe() {
71
+ return D || (D = 1, process.env.NODE_ENV !== "production" && function() {
72
+ function s(e) {
73
+ if (e == null) return null;
74
+ if (typeof e == "function")
75
+ return e.$$typeof === Z ? null : e.displayName || e.name || null;
76
+ if (typeof e == "string") return e;
77
+ switch (e) {
78
+ case T:
79
+ return "Fragment";
80
+ case q:
81
+ return "Profiler";
82
+ case U:
83
+ return "StrictMode";
84
+ case G:
85
+ return "Suspense";
86
+ case X:
87
+ return "SuspenseList";
88
+ case H:
89
+ return "Activity";
90
+ }
91
+ if (typeof e == "object")
92
+ switch (typeof e.tag == "number" && console.error(
93
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
94
+ ), e.$$typeof) {
95
+ case W:
96
+ return "Portal";
97
+ case z:
98
+ return (e.displayName || "Context") + ".Provider";
99
+ case J:
100
+ return (e._context.displayName || "Context") + ".Consumer";
101
+ case V:
102
+ var r = e.render;
103
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
104
+ case B:
105
+ return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
106
+ case h:
107
+ r = e._payload, e = e._init;
108
+ try {
109
+ return s(e(r));
110
+ } catch {
111
+ }
112
+ }
113
+ return null;
114
+ }
115
+ function f(e) {
116
+ return "" + e;
117
+ }
118
+ function u(e) {
119
+ try {
120
+ f(e);
121
+ var r = !1;
122
+ } catch {
123
+ r = !0;
124
+ }
125
+ if (r) {
126
+ r = console;
127
+ var t = r.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
128
+ return t.call(
129
+ r,
130
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
131
+ o
132
+ ), f(e);
133
+ }
134
+ }
135
+ function c(e) {
136
+ if (e === T) return "<>";
137
+ if (typeof e == "object" && e !== null && e.$$typeof === h)
138
+ return "<...>";
139
+ try {
140
+ var r = s(e);
141
+ return r ? "<" + r + ">" : "<...>";
142
+ } catch {
143
+ return "<...>";
144
+ }
145
+ }
146
+ function n() {
147
+ var e = O.A;
148
+ return e === null ? null : e.getOwner();
149
+ }
150
+ function l() {
151
+ return Error("react-stack-top-frame");
152
+ }
153
+ function E(e) {
154
+ if (w.call(e, "key")) {
155
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
156
+ if (r && r.isReactWarning) return !1;
157
+ }
158
+ return e.key !== void 0;
159
+ }
160
+ function b(e, r) {
161
+ function t() {
162
+ x || (x = !0, console.error(
163
+ "%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)",
164
+ r
165
+ ));
166
+ }
167
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
168
+ get: t,
169
+ configurable: !0
170
+ });
171
+ }
172
+ function M() {
173
+ var e = s(this.type);
174
+ return N[e] || (N[e] = !0, console.error(
175
+ "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."
176
+ )), e = this.props.ref, e !== void 0 ? e : null;
177
+ }
178
+ function L(e, r, t, o, d, i, P, y) {
179
+ return t = i.ref, e = {
180
+ $$typeof: S,
181
+ type: e,
182
+ key: r,
183
+ props: i,
184
+ _owner: d
185
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
186
+ enumerable: !1,
187
+ get: M
188
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
189
+ configurable: !1,
190
+ enumerable: !1,
191
+ writable: !0,
192
+ value: 0
193
+ }), Object.defineProperty(e, "_debugInfo", {
194
+ configurable: !1,
195
+ enumerable: !1,
196
+ writable: !0,
197
+ value: null
198
+ }), Object.defineProperty(e, "_debugStack", {
199
+ configurable: !1,
200
+ enumerable: !1,
201
+ writable: !0,
202
+ value: P
203
+ }), Object.defineProperty(e, "_debugTask", {
204
+ configurable: !1,
205
+ enumerable: !1,
206
+ writable: !0,
207
+ value: y
208
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
209
+ }
210
+ function g(e, r, t, o, d, i, P, y) {
211
+ var a = r.children;
212
+ if (a !== void 0)
213
+ if (o)
214
+ if (Q(a)) {
215
+ for (o = 0; o < a.length; o++)
216
+ j(a[o]);
217
+ Object.freeze && Object.freeze(a);
218
+ } else
219
+ console.error(
220
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
221
+ );
222
+ else j(a);
223
+ if (w.call(r, "key")) {
224
+ a = s(e);
225
+ var m = Object.keys(r).filter(function(K) {
226
+ return K !== "key";
227
+ });
228
+ o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", I[a + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error(
229
+ `A props object containing a "key" prop is being spread into JSX:
230
+ let props = %s;
231
+ <%s {...props} />
232
+ React keys must be passed directly to JSX without using spread:
233
+ let props = %s;
234
+ <%s key={someKey} {...props} />`,
235
+ o,
236
+ a,
237
+ m,
238
+ a
239
+ ), I[a + o] = !0);
240
+ }
241
+ if (a = null, t !== void 0 && (u(t), a = "" + t), E(r) && (u(r.key), a = "" + r.key), "key" in r) {
242
+ t = {};
243
+ for (var A in r)
244
+ A !== "key" && (t[A] = r[A]);
245
+ } else t = r;
246
+ return a && b(
247
+ t,
248
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
249
+ ), L(
250
+ e,
251
+ a,
252
+ i,
253
+ d,
254
+ n(),
255
+ t,
256
+ P,
257
+ y
258
+ );
259
+ }
260
+ function j(e) {
261
+ typeof e == "object" && e !== null && e.$$typeof === S && e._store && (e._store.validated = 1);
262
+ }
263
+ var _ = ne, S = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), O = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, w = Object.prototype.hasOwnProperty, Q = Array.isArray, k = console.createTask ? console.createTask : function() {
264
+ return null;
265
+ };
266
+ _ = {
267
+ "react-stack-bottom-frame": function(e) {
268
+ return e();
269
+ }
270
+ };
271
+ var x, N = {}, C = _["react-stack-bottom-frame"].bind(
272
+ _,
273
+ l
274
+ )(), Y = k(c(l)), I = {};
275
+ p.Fragment = T, p.jsx = function(e, r, t, o, d) {
276
+ var i = 1e4 > O.recentlyCreatedOwnerStacks++;
277
+ return g(
278
+ e,
279
+ r,
280
+ t,
281
+ !1,
282
+ o,
283
+ d,
284
+ i ? Error("react-stack-top-frame") : C,
285
+ i ? k(c(e)) : Y
286
+ );
287
+ }, p.jsxs = function(e, r, t, o, d) {
288
+ var i = 1e4 > O.recentlyCreatedOwnerStacks++;
289
+ return g(
290
+ e,
291
+ r,
292
+ t,
293
+ !0,
294
+ o,
295
+ d,
296
+ i ? Error("react-stack-top-frame") : C,
297
+ i ? k(c(e)) : Y
298
+ );
299
+ };
300
+ }()), p;
301
+ }
302
+ var F;
303
+ function ae() {
304
+ return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = te() : v.exports = oe()), v.exports;
305
+ }
306
+ ae();
@@ -0,0 +1,22 @@
1
+ (function(b,p){typeof exports=="object"&&typeof module<"u"?p(require("react")):typeof define=="function"&&define.amd?define(["react"],p):(b=typeof globalThis<"u"?globalThis:b||self,p(b.React))})(this,function(b){"use strict";function p(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const a in n)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(n,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:()=>n[a]})}}return i.default=n,Object.freeze(i)}const W=p(b);function U(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var i=n.default;if(typeof i=="function"){var a=function s(){var o=!1;try{o=this instanceof s}catch{}return o?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};a.prototype=i.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var o=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(a,s,o.get?o:{enumerable:!0,get:function(){return n[s]}})}),a}var T={exports:{}},E={};/**
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 A;function q(){if(A)return E;A=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function a(s,o,l){var R=null;if(l!==void 0&&(R=""+l),o.key!==void 0&&(R=""+o.key),"key"in o){l={};for(var v in o)v!=="key"&&(l[v]=o[v])}else l=o;return o=l.ref,{$$typeof:n,type:s,key:R,ref:o!==void 0?o:null,props:l}}return E.Fragment=i,E.jsx=a,E.jsxs=a,E}var _={};const z=U(W);/**
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 S;function J(){return S||(S=1,process.env.NODE_ENV!=="production"&&function(){function n(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 k: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:n(e.type)||"Memo";case Y:r=e._payload,e=e._init;try{return n(e(r))}catch{}}return null}function i(e){return""+e}function a(e){try{i(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,u=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.",u),i(e)}}function s(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===Y)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function o(){var e=y.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function R(e){if(D.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function v(e,r){function t(){I||(I=!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=n(this.type);return $[e]||($[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,u,d,f,j,P){return t=f.ref,e={$$typeof:C,type:e,key:r,props:f,_owner:d},(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:j}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function x(e,r,t,u,d,f,j,P){var c=r.children;if(c!==void 0)if(u)if(ue(c)){for(u=0;u<c.length;u++)N(c[u]);Object.freeze&&Object.freeze(c)}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 N(c);if(D.call(r,"key")){c=n(e);var m=Object.keys(r).filter(function(ce){return ce!=="key"});u=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",L[c+u]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,u,c,m,c),L[c+u]=!0)}if(c=null,t!==void 0&&(a(t),c=""+t),R(r)&&(a(r.key),c=""+r.key),"key"in r){t={};for(var h in r)h!=="key"&&(t[h]=r[h])}else t=r;return c&&v(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),X(e,c,f,d,o(),t,j,P)}function N(e){typeof e=="object"&&e!==null&&e.$$typeof===C&&e._store&&(e._store.validated=1)}var O=z,C=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),k=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"),Y=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),y=O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,ue=Array.isArray,g=console.createTask?console.createTask:function(){return null};O={"react-stack-bottom-frame":function(e){return e()}};var I,$={},F=O["react-stack-bottom-frame"].bind(O,l)(),M=g(s(l)),L={};_.Fragment=k,_.jsx=function(e,r,t,u,d){var f=1e4>y.recentlyCreatedOwnerStacks++;return x(e,r,t,!1,u,d,f?Error("react-stack-top-frame"):F,f?g(s(e)):M)},_.jsxs=function(e,r,t,u,d){var f=1e4>y.recentlyCreatedOwnerStacks++;return x(e,r,t,!0,u,d,f?Error("react-stack-top-frame"):F,f?g(s(e)):M)}}()),_}var w;function V(){return w||(w=1,process.env.NODE_ENV==="production"?T.exports=q():T.exports=J()),T.exports}V()});
@@ -0,0 +1,5 @@
1
+ export interface IconProps {
2
+ className?: string;
3
+ size?: number;
4
+ color?: string;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ // For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
2
+ import storybook from "eslint-plugin-storybook";
3
+
4
+ import js from '@eslint/js'
5
+ import globals from 'globals'
6
+ import reactHooks from 'eslint-plugin-react-hooks'
7
+ import reactRefresh from 'eslint-plugin-react-refresh'
8
+ import tseslint from 'typescript-eslint'
9
+ import { globalIgnores } from 'eslint/config'
10
+
11
+ export default tseslint.config([
12
+ globalIgnores(['dist']),
13
+ {
14
+ files: ['**/*.{ts,tsx}'],
15
+ extends: [
16
+ js.configs.recommended,
17
+ tseslint.configs.recommended,
18
+ reactHooks.configs['recommended-latest'],
19
+ reactRefresh.configs.vite,
20
+ ],
21
+ languageOptions: {
22
+ ecmaVersion: 2020,
23
+ globals: globals.browser,
24
+ },
25
+ },
26
+ ], storybook.configs["flat/recommended"]);
package/index.html ADDED
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + React + TS</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "helloipju-hicon",
3
+ "private": false,
4
+ "version": "1.0.0",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "type": "module",
8
+ "author": "helloipju-dev",
9
+ "license": "MIT",
10
+ "scripts": {
11
+ "dev": "vite",
12
+ "build": "tsc -b && vite build",
13
+ "lint": "eslint .",
14
+ "preview": "vite preview",
15
+ "storybook": "storybook dev -p 6006",
16
+ "build-storybook": "storybook build",
17
+ "build-icons": "tsx scripts/convert-svg.ts",
18
+ "build-index": "tsx scripts/generate-index-file.ts",
19
+ "build-stories": "tsx scripts/generate-stories.ts",
20
+ "chromatic": "npx chromatic --project-token=chpt_343f02d9ba157dc"
21
+ },
22
+ "dependencies": {
23
+ "glob": "^11.0.3",
24
+ "react": "^19.1.0",
25
+ "react-dom": "^19.1.0"
26
+ },
27
+ "devDependencies": {
28
+ "@chromatic-com/storybook": "^4.0.1",
29
+ "@eslint/js": "^9.30.1",
30
+ "@storybook/addon-a11y": "^9.0.17",
31
+ "@storybook/addon-docs": "^9.0.17",
32
+ "@storybook/addon-vitest": "^9.0.17",
33
+ "@storybook/react-vite": "^9.0.17",
34
+ "@svgr/core": "^8.1.0",
35
+ "@svgr/plugin-svgo": "^8.1.0",
36
+ "@types/glob": "^9.0.0",
37
+ "@types/node": "^24.0.14",
38
+ "@types/react": "^19.1.8",
39
+ "@types/react-dom": "^19.1.6",
40
+ "@vitejs/plugin-react-swc": "^3.10.2",
41
+ "@vitest/browser": "^3.2.4",
42
+ "@vitest/coverage-v8": "^3.2.4",
43
+ "chromatic": "^13.1.2",
44
+ "eslint": "^9.30.1",
45
+ "eslint-plugin-react-hooks": "^5.2.0",
46
+ "eslint-plugin-react-refresh": "^0.4.20",
47
+ "eslint-plugin-storybook": "^9.0.17",
48
+ "globals": "^16.3.0",
49
+ "playwright": "^1.54.1",
50
+ "storybook": "^9.0.17",
51
+ "ts-node": "^10.9.2",
52
+ "tsx": "^4.20.3",
53
+ "typescript": "^5.8.3",
54
+ "typescript-eslint": "^8.35.1",
55
+ "vite": "^7.0.4",
56
+ "vite-plugin-dts": "^4.5.4",
57
+ "vite-plugin-svgr": "^4.3.0",
58
+ "vitest": "^3.2.4"
59
+ }
60
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": false,
13
+ "verbatimModuleSyntax": true,
14
+ "moduleDetection": "force",
15
+ "noEmit": false,
16
+ "jsx": "react-jsx",
17
+
18
+ /* Linting */
19
+ "strict": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "erasableSyntaxOnly": true,
23
+ "noFallthroughCasesInSwitch": true,
24
+ "noUncheckedSideEffectImports": true,
25
+
26
+ "allowSyntheticDefaultImports": true,
27
+ "forceConsistentCasingInFileNames": true,
28
+ "esModuleInterop": true,
29
+ "outDir": "dist",
30
+ "declaration": true,
31
+
32
+ "types": ["vite/client", "node"]
33
+ },
34
+ "include": ["src/icons-tsx", "src/index.ts"]
35
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "verbatimModuleSyntax": true,
13
+ "moduleDetection": "force",
14
+ "noEmit": true,
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "erasableSyntaxOnly": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
23
+ },
24
+ "include": ["vite.config.ts"]
25
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,66 @@
1
+ /// <reference types="vitest/config" />
2
+ import { defineConfig } from "vite";
3
+ import react from "@vitejs/plugin-react-swc";
4
+ import svgr from "vite-plugin-svgr";
5
+
6
+ // https://vite.dev/config/
7
+ import path, { resolve } from "node:path";
8
+ import { fileURLToPath } from "node:url";
9
+ import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
10
+ import dts from "vite-plugin-dts";
11
+ const dirname =
12
+ typeof __dirname !== "undefined"
13
+ ? __dirname
14
+ : path.dirname(fileURLToPath(import.meta.url));
15
+
16
+ // More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
17
+ export default defineConfig({
18
+ build: {
19
+ emptyOutDir: false,
20
+ lib: {
21
+ entry: resolve(__dirname, "src/index.ts"),
22
+ name: "index",
23
+ fileName: "index",
24
+ },
25
+ rollupOptions: {
26
+ external: ["react"],
27
+ output: {
28
+ globals: {
29
+ react: "React",
30
+ },
31
+ },
32
+ },
33
+ commonjsOptions: {
34
+ esmExternals: ["react"],
35
+ },
36
+ },
37
+ plugins: [react(), svgr(), dts({ rollupTypes: false })],
38
+ test: {
39
+ projects: [
40
+ {
41
+ extends: true,
42
+ plugins: [
43
+ // The plugin will run tests for the stories defined in your Storybook config
44
+ // See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
45
+ storybookTest({
46
+ configDir: path.join(dirname, ".storybook"),
47
+ }),
48
+ ],
49
+ test: {
50
+ name: "storybook",
51
+ browser: {
52
+ enabled: true,
53
+ headless: true,
54
+ provider: "playwright",
55
+ instances: [
56
+ {
57
+ browser: "chromium",
58
+ },
59
+ ],
60
+ },
61
+ setupFiles: [".storybook/vitest.setup.ts"],
62
+ },
63
+ },
64
+ ],
65
+ },
66
+ });
@@ -0,0 +1 @@
1
+ /// <reference types="@vitest/browser/providers/playwright" />