huspy-icons 0.1.5 → 0.1.8
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 +62 -6
- package/dist/fonts/HuspyIcons.css +23 -8
- package/dist/fonts/HuspyIcons.eot +0 -0
- package/dist/fonts/HuspyIcons.json +9 -4
- package/dist/fonts/HuspyIcons.ts +21 -6
- package/dist/fonts/HuspyIcons.ttf +0 -0
- package/dist/fonts/HuspyIcons.woff +0 -0
- package/dist/fonts/HuspyIcons.woff2 +0 -0
- package/dist/native/index.d.ts +1 -1
- package/dist/native/index.js +15 -5
- package/dist/native/index.js.map +1 -1
- package/dist/react/index.d.mts +13 -3
- package/dist/react/index.d.ts +13 -3
- package/dist/react/index.js +378 -68
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +376 -66
- package/dist/react/index.mjs.map +1 -1
- package/package.json +6 -2
- package/src/native/Icon.tsx +11 -9
- package/src/native/glyphMap.ts +10 -5
- package/src/react/ArrowLeft.tsx +7 -1
- package/src/react/Cancel.tsx +32 -0
- package/src/react/Check.tsx +8 -2
- package/src/react/Edit.tsx +32 -0
- package/src/react/EyeHidden.tsx +38 -0
- package/src/react/EyeVisible.tsx +32 -0
- package/src/react/Icon.tsx +19 -4
- package/src/react/IconSlot.tsx +8 -2
- package/src/react/Search.tsx +32 -0
- package/src/react/User.tsx +32 -0
- package/src/react/index.ts +6 -1
- package/src/react/index.tsx +6 -1
- package/src/react/ArrowUpRight.tsx +0 -26
package/dist/react/index.mjs
CHANGED
|
@@ -42,60 +42,84 @@ var init_ArrowLeft = __esm({
|
|
|
42
42
|
init_types();
|
|
43
43
|
SvgArrowLeft = ({ size = 16, ...props }) => {
|
|
44
44
|
const sizeValue = resolveSize(size);
|
|
45
|
-
return /* @__PURE__ */ React.createElement(
|
|
46
|
-
"
|
|
45
|
+
return /* @__PURE__ */ React.createElement(
|
|
46
|
+
"svg",
|
|
47
47
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
fill: "
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
48
|
+
width: sizeValue,
|
|
49
|
+
height: sizeValue,
|
|
50
|
+
viewBox: "0 0 24 24",
|
|
51
|
+
fill: "none",
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
...props
|
|
54
|
+
},
|
|
55
|
+
/* @__PURE__ */ React.createElement(
|
|
56
|
+
"path",
|
|
57
|
+
{
|
|
58
|
+
fillRule: "evenodd",
|
|
59
|
+
clipRule: "evenodd",
|
|
60
|
+
d: "M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.41421 12L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z",
|
|
61
|
+
fill: "currentColor"
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ React.createElement(
|
|
65
|
+
"path",
|
|
66
|
+
{
|
|
67
|
+
fillRule: "evenodd",
|
|
68
|
+
clipRule: "evenodd",
|
|
69
|
+
d: "M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z",
|
|
70
|
+
fill: "currentColor"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
);
|
|
62
74
|
};
|
|
63
75
|
ArrowLeft_default = SvgArrowLeft;
|
|
64
76
|
}
|
|
65
77
|
});
|
|
66
78
|
|
|
67
|
-
// src/react/
|
|
68
|
-
var
|
|
69
|
-
__export(
|
|
70
|
-
default: () =>
|
|
79
|
+
// src/react/Cancel.tsx
|
|
80
|
+
var Cancel_exports = {};
|
|
81
|
+
__export(Cancel_exports, {
|
|
82
|
+
default: () => Cancel_default
|
|
71
83
|
});
|
|
72
84
|
import * as React2 from "react";
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
"src/react/
|
|
85
|
+
var SvgCancel, Cancel_default;
|
|
86
|
+
var init_Cancel = __esm({
|
|
87
|
+
"src/react/Cancel.tsx"() {
|
|
76
88
|
"use strict";
|
|
77
89
|
init_types();
|
|
78
|
-
|
|
90
|
+
SvgCancel = ({ size = 16, ...props }) => {
|
|
79
91
|
const sizeValue = resolveSize(size);
|
|
80
|
-
return /* @__PURE__ */ React2.createElement(
|
|
81
|
-
"
|
|
82
|
-
{
|
|
83
|
-
fillRule: "evenodd",
|
|
84
|
-
clipRule: "evenodd",
|
|
85
|
-
d: "M6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V8H7C6.44772 8 6 7.55228 6 7Z",
|
|
86
|
-
fill: "currentColor"
|
|
87
|
-
}
|
|
88
|
-
), /* @__PURE__ */ React2.createElement(
|
|
89
|
-
"path",
|
|
92
|
+
return /* @__PURE__ */ React2.createElement(
|
|
93
|
+
"svg",
|
|
90
94
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
fill: "
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
width: sizeValue,
|
|
96
|
+
height: sizeValue,
|
|
97
|
+
viewBox: "0 0 24 24",
|
|
98
|
+
fill: "none",
|
|
99
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
100
|
+
...props
|
|
101
|
+
},
|
|
102
|
+
/* @__PURE__ */ React2.createElement(
|
|
103
|
+
"path",
|
|
104
|
+
{
|
|
105
|
+
fillRule: "evenodd",
|
|
106
|
+
clipRule: "evenodd",
|
|
107
|
+
d: "M18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289Z",
|
|
108
|
+
fill: "currentColor"
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ React2.createElement(
|
|
112
|
+
"path",
|
|
113
|
+
{
|
|
114
|
+
fillRule: "evenodd",
|
|
115
|
+
clipRule: "evenodd",
|
|
116
|
+
d: "M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z",
|
|
117
|
+
fill: "currentColor"
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
);
|
|
97
121
|
};
|
|
98
|
-
|
|
122
|
+
Cancel_default = SvgCancel;
|
|
99
123
|
}
|
|
100
124
|
});
|
|
101
125
|
|
|
@@ -112,26 +136,187 @@ var init_Check = __esm({
|
|
|
112
136
|
init_types();
|
|
113
137
|
SvgCheck = ({ size = 16, ...props }) => {
|
|
114
138
|
const sizeValue = resolveSize(size);
|
|
115
|
-
return /* @__PURE__ */ React3.createElement(
|
|
116
|
-
"
|
|
139
|
+
return /* @__PURE__ */ React3.createElement(
|
|
140
|
+
"svg",
|
|
117
141
|
{
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
fill: "
|
|
122
|
-
|
|
123
|
-
|
|
142
|
+
width: sizeValue,
|
|
143
|
+
height: sizeValue,
|
|
144
|
+
viewBox: "0 0 16 16",
|
|
145
|
+
fill: "none",
|
|
146
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
147
|
+
...props
|
|
148
|
+
},
|
|
149
|
+
/* @__PURE__ */ React3.createElement(
|
|
150
|
+
"path",
|
|
151
|
+
{
|
|
152
|
+
fillRule: "evenodd",
|
|
153
|
+
clipRule: "evenodd",
|
|
154
|
+
d: "M13.8047 3.52858C14.0651 3.78892 14.0651 4.21103 13.8047 4.47138L6.4714 11.8047C6.21106 12.0651 5.78894 12.0651 5.5286 11.8047L2.19526 8.47138C1.93491 8.21103 1.93491 7.78892 2.19526 7.52858C2.45561 7.26823 2.87772 7.26823 3.13807 7.52858L6 10.3905L12.8619 3.52858C13.1223 3.26823 13.5444 3.26823 13.8047 3.52858Z",
|
|
155
|
+
fill: "currentColor"
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
);
|
|
124
159
|
};
|
|
125
160
|
Check_default = SvgCheck;
|
|
126
161
|
}
|
|
127
162
|
});
|
|
128
163
|
|
|
164
|
+
// src/react/Edit.tsx
|
|
165
|
+
var Edit_exports = {};
|
|
166
|
+
__export(Edit_exports, {
|
|
167
|
+
default: () => Edit_default
|
|
168
|
+
});
|
|
169
|
+
import * as React4 from "react";
|
|
170
|
+
var SvgEdit, Edit_default;
|
|
171
|
+
var init_Edit = __esm({
|
|
172
|
+
"src/react/Edit.tsx"() {
|
|
173
|
+
"use strict";
|
|
174
|
+
init_types();
|
|
175
|
+
SvgEdit = ({ size = 16, ...props }) => {
|
|
176
|
+
const sizeValue = resolveSize(size);
|
|
177
|
+
return /* @__PURE__ */ React4.createElement(
|
|
178
|
+
"svg",
|
|
179
|
+
{
|
|
180
|
+
width: sizeValue,
|
|
181
|
+
height: sizeValue,
|
|
182
|
+
viewBox: "0 0 24 24",
|
|
183
|
+
fill: "none",
|
|
184
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
185
|
+
...props
|
|
186
|
+
},
|
|
187
|
+
/* @__PURE__ */ React4.createElement(
|
|
188
|
+
"path",
|
|
189
|
+
{
|
|
190
|
+
fillRule: "evenodd",
|
|
191
|
+
clipRule: "evenodd",
|
|
192
|
+
d: "M19.8596 3.11765C19.6197 3.02426 19.3627 2.98143 19.1049 2.99207C18.8471 3.00271 18.5946 3.06656 18.3636 3.1793C18.1325 3.29203 17.9282 3.45107 17.7634 3.64587C17.7455 3.66702 17.7267 3.68742 17.7071 3.70701L4.39491 17.0192L3.42524 20.5747L6.9807 19.605L20.2929 6.2928C20.3158 6.26991 20.3398 6.24815 20.3648 6.22759C20.5625 6.06494 20.7235 5.86358 20.8378 5.6366C20.9522 5.40964 21.0174 5.16186 21.0298 4.90899C21.0422 4.65612 21.0014 4.40333 20.9099 4.16664C20.8183 3.92993 20.6779 3.71425 20.4972 3.53353C20.3165 3.3528 20.0994 3.21103 19.8596 3.11765ZM19.0224 0.993769C19.5557 0.971764 20.088 1.06031 20.5852 1.25394C21.0825 1.44757 21.5343 1.74216 21.9114 2.11932C22.2886 2.4965 22.5829 2.948 22.7752 3.44525C22.9676 3.94252 23.0535 4.47436 23.0274 5.00678C23.0014 5.5392 22.8639 6.06014 22.624 6.53634C22.392 6.99698 22.0692 7.4058 21.6754 7.73877L8.20713 21.207C8.08407 21.3301 7.93104 21.4189 7.76314 21.4647L2.26314 22.9647C1.91693 23.0591 1.54667 22.9608 1.29292 22.707C1.03917 22.4533 0.940838 22.083 1.03526 21.7368L2.53526 16.2368C2.58105 16.0689 2.66986 15.9159 2.79292 15.7928L16.2657 2.31998C16.605 1.92839 17.0203 1.60935 17.4865 1.38187C17.9661 1.14787 18.4891 1.01577 19.0224 0.993769Z",
|
|
193
|
+
fill: "currentColor"
|
|
194
|
+
}
|
|
195
|
+
),
|
|
196
|
+
/* @__PURE__ */ React4.createElement(
|
|
197
|
+
"path",
|
|
198
|
+
{
|
|
199
|
+
fillRule: "evenodd",
|
|
200
|
+
clipRule: "evenodd",
|
|
201
|
+
d: "M14.2929 4.29289C14.6834 3.90237 15.3166 3.90237 15.7071 4.29289L19.7071 8.29289C20.0976 8.68342 20.0976 9.31658 19.7071 9.70711C19.3166 10.0976 18.6834 10.0976 18.2929 9.70711L14.2929 5.70711C13.9024 5.31658 13.9024 4.68342 14.2929 4.29289Z",
|
|
202
|
+
fill: "currentColor"
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
);
|
|
206
|
+
};
|
|
207
|
+
Edit_default = SvgEdit;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// src/react/EyeHidden.tsx
|
|
212
|
+
var EyeHidden_exports = {};
|
|
213
|
+
__export(EyeHidden_exports, {
|
|
214
|
+
default: () => EyeHidden_default
|
|
215
|
+
});
|
|
216
|
+
import * as React5 from "react";
|
|
217
|
+
var SvgEyeHidden, EyeHidden_default;
|
|
218
|
+
var init_EyeHidden = __esm({
|
|
219
|
+
"src/react/EyeHidden.tsx"() {
|
|
220
|
+
"use strict";
|
|
221
|
+
init_types();
|
|
222
|
+
SvgEyeHidden = ({ size = 16, ...props }) => {
|
|
223
|
+
const sizeValue = resolveSize(size);
|
|
224
|
+
return /* @__PURE__ */ React5.createElement(
|
|
225
|
+
"svg",
|
|
226
|
+
{
|
|
227
|
+
width: sizeValue,
|
|
228
|
+
height: sizeValue,
|
|
229
|
+
viewBox: "0 0 24 24",
|
|
230
|
+
fill: "none",
|
|
231
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
232
|
+
...props
|
|
233
|
+
},
|
|
234
|
+
/* @__PURE__ */ React5.createElement(
|
|
235
|
+
"path",
|
|
236
|
+
{
|
|
237
|
+
fillRule: "evenodd",
|
|
238
|
+
clipRule: "evenodd",
|
|
239
|
+
d: "M2.02994 11.7575C2.61883 9.4019 5.4549 5 12.0001 5C18.5453 5 21.3813 9.4019 21.9702 11.7575L22.0285 11.9907L21.9745 12.2249C21.3836 14.7852 18.5247 19 12.0001 19C5.42044 19 2.6206 14.4091 2.03532 12.2631L1.96655 12.011L2.02994 11.7575ZM4.04308 11.9886C4.61202 13.6329 6.83349 17 12.0001 17C17.2425 17 19.4283 13.8356 19.9639 12.0101C19.4182 10.2828 17.2104 7 12.0001 7C6.81136 7 4.60029 10.2556 4.04308 11.9886Z",
|
|
240
|
+
fill: "currentColor"
|
|
241
|
+
}
|
|
242
|
+
),
|
|
243
|
+
/* @__PURE__ */ React5.createElement(
|
|
244
|
+
"path",
|
|
245
|
+
{
|
|
246
|
+
fillRule: "evenodd",
|
|
247
|
+
clipRule: "evenodd",
|
|
248
|
+
d: "M12.0001 10C10.8955 10 10.0001 10.8954 10.0001 12C10.0001 13.1046 10.8955 14 12.0001 14C13.1046 14 14.0001 13.1046 14.0001 12C14.0001 10.8954 13.1046 10 12.0001 10ZM8.00008 12C8.00008 9.79086 9.79094 8 12.0001 8C14.2092 8 16.0001 9.79086 16.0001 12C16.0001 14.2091 14.2092 16 12.0001 16C9.79094 16 8.00008 14.2091 8.00008 12Z",
|
|
249
|
+
fill: "currentColor"
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
/* @__PURE__ */ React5.createElement(
|
|
253
|
+
"path",
|
|
254
|
+
{
|
|
255
|
+
fillRule: "evenodd",
|
|
256
|
+
clipRule: "evenodd",
|
|
257
|
+
d: "M20.7072 3.29289C21.0977 3.68342 21.0977 4.31658 20.7072 4.70711L4.70719 20.7071C4.31666 21.0976 3.6835 21.0976 3.29297 20.7071C2.90245 20.3166 2.90245 19.6834 3.29297 19.2929L19.293 3.29289C19.6835 2.90237 20.3167 2.90237 20.7072 3.29289Z",
|
|
258
|
+
fill: "currentColor"
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
);
|
|
262
|
+
};
|
|
263
|
+
EyeHidden_default = SvgEyeHidden;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
// src/react/EyeVisible.tsx
|
|
268
|
+
var EyeVisible_exports = {};
|
|
269
|
+
__export(EyeVisible_exports, {
|
|
270
|
+
default: () => EyeVisible_default
|
|
271
|
+
});
|
|
272
|
+
import * as React6 from "react";
|
|
273
|
+
var SvgEyeVisible, EyeVisible_default;
|
|
274
|
+
var init_EyeVisible = __esm({
|
|
275
|
+
"src/react/EyeVisible.tsx"() {
|
|
276
|
+
"use strict";
|
|
277
|
+
init_types();
|
|
278
|
+
SvgEyeVisible = ({ size = 16, ...props }) => {
|
|
279
|
+
const sizeValue = resolveSize(size);
|
|
280
|
+
return /* @__PURE__ */ React6.createElement(
|
|
281
|
+
"svg",
|
|
282
|
+
{
|
|
283
|
+
width: sizeValue,
|
|
284
|
+
height: sizeValue,
|
|
285
|
+
viewBox: "0 0 24 24",
|
|
286
|
+
fill: "none",
|
|
287
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
288
|
+
...props
|
|
289
|
+
},
|
|
290
|
+
/* @__PURE__ */ React6.createElement(
|
|
291
|
+
"path",
|
|
292
|
+
{
|
|
293
|
+
fillRule: "evenodd",
|
|
294
|
+
clipRule: "evenodd",
|
|
295
|
+
d: "M2.02994 11.7575C2.61883 9.4019 5.4549 5 12.0001 5C18.5453 5 21.3813 9.4019 21.9702 11.7575L22.0285 11.9906L21.9745 12.2249C21.3836 14.7852 18.5247 19 12.0001 19C5.42044 19 2.6206 14.4091 2.03532 12.2631L1.96655 12.011L2.02994 11.7575ZM4.04308 11.9886C4.61202 13.6329 6.83349 17 12.0001 17C17.2425 17 19.4283 13.8356 19.9639 12.0101C19.4182 10.2828 17.2104 7 12.0001 7C6.81136 7 4.60029 10.2556 4.04308 11.9886Z",
|
|
296
|
+
fill: "currentColor"
|
|
297
|
+
}
|
|
298
|
+
),
|
|
299
|
+
/* @__PURE__ */ React6.createElement(
|
|
300
|
+
"path",
|
|
301
|
+
{
|
|
302
|
+
fillRule: "evenodd",
|
|
303
|
+
clipRule: "evenodd",
|
|
304
|
+
d: "M12.0001 10C10.8955 10 10.0001 10.8954 10.0001 12C10.0001 13.1046 10.8955 14 12.0001 14C13.1046 14 14.0001 13.1046 14.0001 12C14.0001 10.8954 13.1046 10 12.0001 10ZM8.00008 12C8.00008 9.79086 9.79094 8 12.0001 8C14.2092 8 16.0001 9.79086 16.0001 12C16.0001 14.2091 14.2092 16 12.0001 16C9.79094 16 8.00008 14.2091 8.00008 12Z",
|
|
305
|
+
fill: "currentColor"
|
|
306
|
+
}
|
|
307
|
+
)
|
|
308
|
+
);
|
|
309
|
+
};
|
|
310
|
+
EyeVisible_default = SvgEyeVisible;
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
|
|
129
314
|
// src/react/IconSlot.tsx
|
|
130
315
|
var IconSlot_exports = {};
|
|
131
316
|
__export(IconSlot_exports, {
|
|
132
317
|
default: () => IconSlot_default
|
|
133
318
|
});
|
|
134
|
-
import * as
|
|
319
|
+
import * as React7 from "react";
|
|
135
320
|
var SvgIconSlot, IconSlot_default;
|
|
136
321
|
var init_IconSlot = __esm({
|
|
137
322
|
"src/react/IconSlot.tsx"() {
|
|
@@ -139,45 +324,165 @@ var init_IconSlot = __esm({
|
|
|
139
324
|
init_types();
|
|
140
325
|
SvgIconSlot = ({ size = 16, ...props }) => {
|
|
141
326
|
const sizeValue = resolveSize(size);
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
"
|
|
327
|
+
return /* @__PURE__ */ React7.createElement(
|
|
328
|
+
"svg",
|
|
144
329
|
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
330
|
+
width: sizeValue,
|
|
331
|
+
height: sizeValue,
|
|
332
|
+
viewBox: "0 0 24 24",
|
|
333
|
+
fill: "none",
|
|
334
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
335
|
+
...props
|
|
336
|
+
},
|
|
337
|
+
/* @__PURE__ */ React7.createElement(
|
|
338
|
+
"path",
|
|
339
|
+
{
|
|
340
|
+
d: "M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z",
|
|
341
|
+
fill: "currentColor"
|
|
342
|
+
}
|
|
343
|
+
)
|
|
344
|
+
);
|
|
149
345
|
};
|
|
150
346
|
IconSlot_default = SvgIconSlot;
|
|
151
347
|
}
|
|
152
348
|
});
|
|
153
349
|
|
|
350
|
+
// src/react/Search.tsx
|
|
351
|
+
var Search_exports = {};
|
|
352
|
+
__export(Search_exports, {
|
|
353
|
+
default: () => Search_default
|
|
354
|
+
});
|
|
355
|
+
import * as React8 from "react";
|
|
356
|
+
var SvgSearch, Search_default;
|
|
357
|
+
var init_Search = __esm({
|
|
358
|
+
"src/react/Search.tsx"() {
|
|
359
|
+
"use strict";
|
|
360
|
+
init_types();
|
|
361
|
+
SvgSearch = ({ size = 16, ...props }) => {
|
|
362
|
+
const sizeValue = resolveSize(size);
|
|
363
|
+
return /* @__PURE__ */ React8.createElement(
|
|
364
|
+
"svg",
|
|
365
|
+
{
|
|
366
|
+
width: sizeValue,
|
|
367
|
+
height: sizeValue,
|
|
368
|
+
viewBox: "0 0 24 24",
|
|
369
|
+
fill: "none",
|
|
370
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
371
|
+
...props
|
|
372
|
+
},
|
|
373
|
+
/* @__PURE__ */ React8.createElement(
|
|
374
|
+
"path",
|
|
375
|
+
{
|
|
376
|
+
fillRule: "evenodd",
|
|
377
|
+
clipRule: "evenodd",
|
|
378
|
+
d: "M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4ZM2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11Z",
|
|
379
|
+
fill: "currentColor"
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
/* @__PURE__ */ React8.createElement(
|
|
383
|
+
"path",
|
|
384
|
+
{
|
|
385
|
+
fillRule: "evenodd",
|
|
386
|
+
clipRule: "evenodd",
|
|
387
|
+
d: "M15.9929 15.9929C16.3834 15.6024 17.0166 15.6024 17.4071 15.9929L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L15.9929 17.4071C15.6024 17.0166 15.6024 16.3834 15.9929 15.9929Z",
|
|
388
|
+
fill: "currentColor"
|
|
389
|
+
}
|
|
390
|
+
)
|
|
391
|
+
);
|
|
392
|
+
};
|
|
393
|
+
Search_default = SvgSearch;
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
|
|
397
|
+
// src/react/User.tsx
|
|
398
|
+
var User_exports = {};
|
|
399
|
+
__export(User_exports, {
|
|
400
|
+
default: () => User_default
|
|
401
|
+
});
|
|
402
|
+
import * as React9 from "react";
|
|
403
|
+
var SvgUser, User_default;
|
|
404
|
+
var init_User = __esm({
|
|
405
|
+
"src/react/User.tsx"() {
|
|
406
|
+
"use strict";
|
|
407
|
+
init_types();
|
|
408
|
+
SvgUser = ({ size = 16, ...props }) => {
|
|
409
|
+
const sizeValue = resolveSize(size);
|
|
410
|
+
return /* @__PURE__ */ React9.createElement(
|
|
411
|
+
"svg",
|
|
412
|
+
{
|
|
413
|
+
width: sizeValue,
|
|
414
|
+
height: sizeValue,
|
|
415
|
+
viewBox: "0 0 24 24",
|
|
416
|
+
fill: "none",
|
|
417
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
418
|
+
...props
|
|
419
|
+
},
|
|
420
|
+
/* @__PURE__ */ React9.createElement(
|
|
421
|
+
"path",
|
|
422
|
+
{
|
|
423
|
+
fillRule: "evenodd",
|
|
424
|
+
clipRule: "evenodd",
|
|
425
|
+
d: "M5.46447 15.4645C6.40215 14.5268 7.67392 14 9 14H15C16.3261 14 17.5979 14.5268 18.5355 15.4645C19.4732 16.4021 20 17.6739 20 19V21C20 21.5523 19.5523 22 19 22C18.4477 22 18 21.5523 18 21V19C18 18.2044 17.6839 17.4413 17.1213 16.8787C16.5587 16.3161 15.7956 16 15 16H9C8.20435 16 7.44129 16.3161 6.87868 16.8787C6.31607 17.4413 6 18.2043 6 19V21C6 21.5523 5.55228 22 5 22C4.44772 22 4 21.5523 4 21V19C4 17.6739 4.52678 16.4021 5.46447 15.4645Z",
|
|
426
|
+
fill: "currentColor"
|
|
427
|
+
}
|
|
428
|
+
),
|
|
429
|
+
/* @__PURE__ */ React9.createElement(
|
|
430
|
+
"path",
|
|
431
|
+
{
|
|
432
|
+
fillRule: "evenodd",
|
|
433
|
+
clipRule: "evenodd",
|
|
434
|
+
d: "M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7Z",
|
|
435
|
+
fill: "currentColor"
|
|
436
|
+
}
|
|
437
|
+
)
|
|
438
|
+
);
|
|
439
|
+
};
|
|
440
|
+
User_default = SvgUser;
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
|
|
154
444
|
// src/react/index.ts
|
|
155
445
|
init_ArrowLeft();
|
|
156
|
-
|
|
446
|
+
init_Cancel();
|
|
157
447
|
init_Check();
|
|
448
|
+
init_Edit();
|
|
449
|
+
init_EyeHidden();
|
|
450
|
+
init_EyeVisible();
|
|
158
451
|
init_IconSlot();
|
|
452
|
+
init_Search();
|
|
453
|
+
init_User();
|
|
159
454
|
|
|
160
455
|
// src/react/Icon.tsx
|
|
161
|
-
import * as
|
|
456
|
+
import * as React10 from "react";
|
|
162
457
|
function loadIcon(name) {
|
|
163
458
|
switch (name) {
|
|
164
459
|
case "arrow-left":
|
|
165
460
|
return Promise.resolve().then(() => (init_ArrowLeft(), ArrowLeft_exports)).then((m) => m.default);
|
|
166
|
-
case "
|
|
167
|
-
return Promise.resolve().then(() => (
|
|
461
|
+
case "cancel":
|
|
462
|
+
return Promise.resolve().then(() => (init_Cancel(), Cancel_exports)).then((m) => m.default);
|
|
168
463
|
case "check":
|
|
169
464
|
return Promise.resolve().then(() => (init_Check(), Check_exports)).then((m) => m.default);
|
|
465
|
+
case "edit":
|
|
466
|
+
return Promise.resolve().then(() => (init_Edit(), Edit_exports)).then((m) => m.default);
|
|
467
|
+
case "eye-hidden":
|
|
468
|
+
return Promise.resolve().then(() => (init_EyeHidden(), EyeHidden_exports)).then((m) => m.default);
|
|
469
|
+
case "eye-visible":
|
|
470
|
+
return Promise.resolve().then(() => (init_EyeVisible(), EyeVisible_exports)).then((m) => m.default);
|
|
170
471
|
case "icon-slot":
|
|
171
472
|
return Promise.resolve().then(() => (init_IconSlot(), IconSlot_exports)).then((m) => m.default);
|
|
473
|
+
case "search":
|
|
474
|
+
return Promise.resolve().then(() => (init_Search(), Search_exports)).then((m) => m.default);
|
|
475
|
+
case "user":
|
|
476
|
+
return Promise.resolve().then(() => (init_User(), User_exports)).then((m) => m.default);
|
|
172
477
|
default:
|
|
173
478
|
return Promise.reject(new Error(`Icon "${name}" not found`));
|
|
174
479
|
}
|
|
175
480
|
}
|
|
176
481
|
var Icon = ({ name, size = 16, color, ...props }) => {
|
|
177
|
-
const [IconComponent, setIconComponent] =
|
|
178
|
-
const [loading, setLoading] =
|
|
179
|
-
const [error, setError] =
|
|
180
|
-
|
|
482
|
+
const [IconComponent, setIconComponent] = React10.useState(null);
|
|
483
|
+
const [loading, setLoading] = React10.useState(true);
|
|
484
|
+
const [error, setError] = React10.useState(null);
|
|
485
|
+
React10.useEffect(() => {
|
|
181
486
|
setLoading(true);
|
|
182
487
|
setError(null);
|
|
183
488
|
loadIcon(name).then((Component) => {
|
|
@@ -196,7 +501,7 @@ var Icon = ({ name, size = 16, color, ...props }) => {
|
|
|
196
501
|
return null;
|
|
197
502
|
}
|
|
198
503
|
const style = color ? { ...props.style, color } : props.style;
|
|
199
|
-
return /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ React10.createElement(IconComponent, { size, ...props, style });
|
|
200
505
|
};
|
|
201
506
|
var Icon_default = Icon;
|
|
202
507
|
|
|
@@ -204,11 +509,16 @@ var Icon_default = Icon;
|
|
|
204
509
|
init_types();
|
|
205
510
|
export {
|
|
206
511
|
ArrowLeft_default as ArrowLeft,
|
|
207
|
-
|
|
512
|
+
Cancel_default as Cancel,
|
|
208
513
|
Check_default as Check,
|
|
514
|
+
Edit_default as Edit,
|
|
515
|
+
EyeHidden_default as EyeHidden,
|
|
516
|
+
EyeVisible_default as EyeVisible,
|
|
209
517
|
ICON_SIZES,
|
|
210
518
|
Icon_default as Icon,
|
|
211
519
|
IconSlot_default as IconSlot,
|
|
520
|
+
Search_default as Search,
|
|
521
|
+
User_default as User,
|
|
212
522
|
resolveSize
|
|
213
523
|
};
|
|
214
524
|
//# sourceMappingURL=index.mjs.map
|
package/dist/react/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/types.ts","../../src/react/ArrowLeft.tsx","../../src/react/ArrowUpRight.tsx","../../src/react/Check.tsx","../../src/react/IconSlot.tsx","../../src/react/index.ts","../../src/react/Icon.tsx"],"sourcesContent":["export type IconSize = number | 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n\n/**\n * Icon size presets\n */\nexport const ICON_SIZES = {\n xs: 8,\n sm: 12,\n md: 16,\n lg: 20,\n xl: 24,\n} as const;\n\n/**\n * Icon size token type\n */\nexport type IconSizeToken = keyof typeof ICON_SIZES;\n\n/**\n * Props for React (web) icons\n */\nexport interface ReactIconProps extends React.SVGProps<SVGSVGElement> {\n size?: IconSize;\n}\n\n/**\n * Props for React Native icons\n */\nexport interface NativeIconProps {\n size?: IconSize;\n width?: number;\n height?: number;\n color?: string;\n style?: any;\n}\n\n/**\n * Resolves an icon size to a numeric value\n * @param size - Size value or token\n * @returns Numeric size in pixels\n */\nexport function resolveSize(size: IconSize = 'lg'): number {\n if (typeof size === 'number') {\n return size;\n }\n \n return ICON_SIZES[size] ?? ICON_SIZES.lg;\n}\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgArrowLeft = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg width={sizeValue} height={sizeValue} viewBox=\"0 0 24 24\" fill=\"none\" {...props}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.41421 12L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgArrowLeft;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgArrowUpRight = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg width={sizeValue} height={sizeValue} viewBox=\"0 0 24 24\" fill=\"none\" {...props}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V8H7C6.44772 8 6 7.55228 6 7Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M17.7071 6.29289C18.0976 6.68342 18.0976 7.31658 17.7071 7.70711L7.70711 17.7071C7.31658 18.0976 6.68342 18.0976 6.29289 17.7071C5.90237 17.3166 5.90237 16.6834 6.29289 16.2929L16.2929 6.29289C16.6834 5.90237 17.3166 5.90237 17.7071 6.29289Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgArrowUpRight;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgCheck = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg width={sizeValue} height={sizeValue} viewBox=\"0 0 24 24\" fill=\"none\" {...props}>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgCheck;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgIconSlot = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg width={sizeValue} height={sizeValue} viewBox=\"0 0 15 15\" fill=\"none\" {...props}>\n <path\n d=\"M13.3333 7.33333C13.3333 4.01962 10.647 1.33333 7.33333 1.33333C4.01962 1.33333 1.33333 4.01962 1.33333 7.33333C1.33333 10.647 4.01962 13.3333 7.33333 13.3333C10.647 13.3333 13.3333 10.647 13.3333 7.33333ZM14.6667 7.33333C14.6667 11.3834 11.3834 14.6667 7.33333 14.6667C3.28325 14.6667 0 11.3834 0 7.33333C0 3.28325 3.28325 0 7.33333 0C11.3834 0 14.6667 3.28325 14.6667 7.33333Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgIconSlot;\n","// Auto-generated exports\nexport { default as ArrowLeft } from './ArrowLeft';\nexport { default as ArrowUpRight } from './ArrowUpRight';\nexport { default as Check } from './Check';\nexport { default as IconSlot } from './IconSlot';\n\n// Unified Icon component\nexport { default as Icon } from './Icon';\nexport type { IconName, IconProps } from './Icon';\n\n // Export types\nexport type {\n IconSize,\n IconSizeToken,\n ReactIconProps,\n} from '../shared/types';\n\nexport { ICON_SIZES, resolveSize } from '../shared/types';\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\n\n/**\n * Icon imports - using dynamic imports for tree-shaking\n * Auto-generated - do not edit manually\n */\n// Icon: arrow-left\n// Icon: arrow-up-right\n// Icon: check\n// Icon: icon-slot\n\n/**\n * Available icon names\n */\nexport type IconName = 'arrow-left' | 'arrow-up-right' | 'check' | 'icon-slot';\n\n/**\n * Props for the unified Icon component\n */\nexport interface IconProps extends Omit<ReactIconProps, 'size'> {\n name: IconName;\n size?: ReactIconProps['size'];\n color?: string;\n}\n\n/**\n * Loads an icon component dynamically\n * This pattern allows bundlers to tree-shake unused icons\n * \n * Icons use default exports (export default SvgIconName),\n * so we access .default from the dynamic import result\n */\nfunction loadIcon(name: IconName): Promise<React.ComponentType<any>> {\n switch (name) {\n case 'arrow-left':\n return import('./ArrowLeft').then(m => m.default);\n case 'arrow-up-right':\n return import('./ArrowUpRight').then(m => m.default);\n case 'check':\n return import('./Check').then(m => m.default);\n case 'icon-slot':\n return import('./IconSlot').then(m => m.default);\n default:\n return Promise.reject(new Error(`Icon \"${name}\" not found`));\n }\n}\n\n/**\n * Unified Icon component that renders icons by name\n * Uses dynamic imports for tree-shaking support\n */\nconst Icon = ({ name, size = 16, color, ...props }: IconProps) => {\n const [IconComponent, setIconComponent] = React.useState<React.ComponentType<any> | null>(null);\n const [loading, setLoading] = React.useState(true);\n const [error, setError] = React.useState<string | null>(null);\n\n React.useEffect(() => {\n setLoading(true);\n setError(null);\n \n loadIcon(name)\n .then((Component) => {\n setIconComponent(() => Component);\n setLoading(false);\n })\n .catch((err) => {\n console.warn(err.message);\n setError(err.message);\n setLoading(false);\n });\n }, [name]);\n\n if (loading) {\n return null; // Consider showing a placeholder\n }\n\n if (error || !IconComponent) {\n return null;\n }\n\n // Apply color via style prop if provided (SVGs use fill=\"currentColor\")\n const style = color \n ? { ...props.style, color } \n : props.style;\n\n return <IconComponent size={size} {...props} style={style} />;\n};\n\nexport default Icon;"],"mappings":";;;;;;;;;;;AAyCO,SAAS,YAAY,OAAiB,MAAc;AACzD,MAAI,OAAO,SAAS,UAAU;AAC5B,WAAO;AAAA,EACT;AAEA,SAAO,WAAW,IAAI,KAAK,WAAW;AACxC;AA/CA,IAKa;AALb;AAAA;AAAA;AAKO,IAAM,aAAa;AAAA,MACxB,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA;AAAA;;;ACXA;AAAA;AAAA;AAAA;AAAA,YAAY,WAAW;AAAvB,IAIM,cAqBC;AAzBP;AAAA;AAAA;AAEA;AAEA,IAAM,eAAe,CAAC,EAAE,OAAO,IAAI,GAAG,MAAM,MAAsB;AAChE,YAAM,YAAY,YAAY,IAAI;AAElC,aACE,oCAAC,SAAI,OAAO,WAAW,QAAQ,WAAW,SAAQ,aAAY,MAAK,QAAQ,GAAG,SAC9E;AAAA,QAAC;AAAA;AAAA,UACC,UAAS;AAAA,UACT,UAAS;AAAA,UACT,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP,GACA;AAAA,QAAC;AAAA;AAAA,UACC,UAAS;AAAA,UACT,UAAS;AAAA,UACT,GAAE;AAAA,UACF,MAAK;AAAA;AAAA,MACP,CACF;AAAA,IAEF;AAEA,IAAO,oBAAQ;AAAA;AAAA;;;ACzBf;AAAA;AAAA;AAAA;AAAA,YAAYA,YAAW;AAAvB,IAIM,iBAqBC;AAzBP;AAAA;AAAA;AAEA;AAEA,IAAM,kBAAkB,CAAC,EAAE,OAAO,IAAI,GAAG,MAAM,MAAsB;AACnE,YAAM,YAAY,YAAY,IAAI;AAElC,aACE,qCAAC,SAAI,OAA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,IACZ,KAAK;AACH,aAAO,oEAAsB,KAAK,OAAK,EAAE,OAAO;AAAA,IAClD,KAAK;AACH,aAAO,0EAAyB,KAAK,OAAK,EAAE,OAAO;AAAA,IACrD,KAAK;AACH,aAAO,4DAAkB,KAAK,OAAK,EAAE,OAAO;AAAA,IAC9C,KAAK;AACH,aAAO,kEAAqB,KAAK,OAAK,EAAE,OAAO;AAAA,IACjD;AACE,aAAO,QAAQ,OAAO,IAAI,MAAM,SAAS,IAAI,aAAa,CAAC;AAAA,EAC/D;AACF;AAMA,IAAM,OAAO,CAAC,EAAE,MAAM,OAAO,IAAI,OAAO,GAAG,MAAM,MAAiB;AAChE,QAAM,CAAC,eAAe,gBAAgB,IAAU,gBAA0C,IAAI;AAC9F,QAAM,CAAC,SAAS,UAAU,IAAU,gBAAS,IAAI;AACjD,QAAM,CAAC,OAAO,QAAQ,IAAU,gBAAwB,IAAI;AAE5D,EAAM,iBAAU,MAAM;AACpB,eAAW,IAAI;AACf,aAAS,IAAI;AAEb,aAAS,IAAI,EACV,KAAK,CAAC,cAAc;AACnB,uBAAiB,MAAM,SAAS;AAChC,iBAAW,KAAK;AAAA,IAClB,CAAC,EACA,MAAM,CAAC,QAAQ;AACd,cAAQ,KAAK,IAAI,OAAO;AACxB,eAAS,IAAI,OAAO;AACpB,iBAAW,KAAK;AAAA,IAClB,CAAC;AAAA,EACL,GAAG,CAAC,IAAI,CAAC;AAET,MAAI,SAAS;AACX,WAAO;AAAA,EACT;AAEA,MAAI,SAAS,CAAC,eAAe;AAC3B,WAAO;AAAA,EACT;AAGA,QAAM,QAAQ,QACV,EAAE,GAAG,MAAM,OAAO,MAAM,IACxB,MAAM;AAEV,SAAO,qCAAC,iBAAc,MAAa,GAAG,OAAO,OAAc;AAC7D;AAEA,IAAO,eAAQ;;;ADxEf;","names":["React","React","React","React"]}
|
|
1
|
+
{"version":3,"sources":["../../src/shared/types.ts","../../src/react/ArrowLeft.tsx","../../src/react/Cancel.tsx","../../src/react/Check.tsx","../../src/react/Edit.tsx","../../src/react/EyeHidden.tsx","../../src/react/EyeVisible.tsx","../../src/react/IconSlot.tsx","../../src/react/Search.tsx","../../src/react/User.tsx","../../src/react/index.ts","../../src/react/Icon.tsx"],"sourcesContent":["export type IconSize = number | 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n\n/**\n * Icon size presets\n */\nexport const ICON_SIZES = {\n xs: 8,\n sm: 12,\n md: 16,\n lg: 20,\n xl: 24,\n} as const;\n\n/**\n * Icon size token type\n */\nexport type IconSizeToken = keyof typeof ICON_SIZES;\n\n/**\n * Props for React (web) icons\n */\nexport interface ReactIconProps extends React.SVGProps<SVGSVGElement> {\n size?: IconSize;\n}\n\n/**\n * Props for React Native icons\n */\nexport interface NativeIconProps {\n size?: IconSize;\n width?: number;\n height?: number;\n color?: string;\n style?: any;\n}\n\n/**\n * Resolves an icon size to a numeric value\n * @param size - Size value or token\n * @returns Numeric size in pixels\n */\nexport function resolveSize(size: IconSize = 'lg'): number {\n if (typeof size === 'number') {\n return size;\n }\n \n return ICON_SIZES[size] ?? ICON_SIZES.lg;\n}\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgArrowLeft = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.41421 12L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgArrowLeft;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgCancel = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgCancel;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgCheck = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M13.8047 3.52858C14.0651 3.78892 14.0651 4.21103 13.8047 4.47138L6.4714 11.8047C6.21106 12.0651 5.78894 12.0651 5.5286 11.8047L2.19526 8.47138C1.93491 8.21103 1.93491 7.78892 2.19526 7.52858C2.45561 7.26823 2.87772 7.26823 3.13807 7.52858L6 10.3905L12.8619 3.52858C13.1223 3.26823 13.5444 3.26823 13.8047 3.52858Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgCheck;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgEdit = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19.8596 3.11765C19.6197 3.02426 19.3627 2.98143 19.1049 2.99207C18.8471 3.00271 18.5946 3.06656 18.3636 3.1793C18.1325 3.29203 17.9282 3.45107 17.7634 3.64587C17.7455 3.66702 17.7267 3.68742 17.7071 3.70701L4.39491 17.0192L3.42524 20.5747L6.9807 19.605L20.2929 6.2928C20.3158 6.26991 20.3398 6.24815 20.3648 6.22759C20.5625 6.06494 20.7235 5.86358 20.8378 5.6366C20.9522 5.40964 21.0174 5.16186 21.0298 4.90899C21.0422 4.65612 21.0014 4.40333 20.9099 4.16664C20.8183 3.92993 20.6779 3.71425 20.4972 3.53353C20.3165 3.3528 20.0994 3.21103 19.8596 3.11765ZM19.0224 0.993769C19.5557 0.971764 20.088 1.06031 20.5852 1.25394C21.0825 1.44757 21.5343 1.74216 21.9114 2.11932C22.2886 2.4965 22.5829 2.948 22.7752 3.44525C22.9676 3.94252 23.0535 4.47436 23.0274 5.00678C23.0014 5.5392 22.8639 6.06014 22.624 6.53634C22.392 6.99698 22.0692 7.4058 21.6754 7.73877L8.20713 21.207C8.08407 21.3301 7.93104 21.4189 7.76314 21.4647L2.26314 22.9647C1.91693 23.0591 1.54667 22.9608 1.29292 22.707C1.03917 22.4533 0.940838 22.083 1.03526 21.7368L2.53526 16.2368C2.58105 16.0689 2.66986 15.9159 2.79292 15.7928L16.2657 2.31998C16.605 1.92839 17.0203 1.60935 17.4865 1.38187C17.9661 1.14787 18.4891 1.01577 19.0224 0.993769Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.2929 4.29289C14.6834 3.90237 15.3166 3.90237 15.7071 4.29289L19.7071 8.29289C20.0976 8.68342 20.0976 9.31658 19.7071 9.70711C19.3166 10.0976 18.6834 10.0976 18.2929 9.70711L14.2929 5.70711C13.9024 5.31658 13.9024 4.68342 14.2929 4.29289Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgEdit;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgEyeHidden = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.02994 11.7575C2.61883 9.4019 5.4549 5 12.0001 5C18.5453 5 21.3813 9.4019 21.9702 11.7575L22.0285 11.9907L21.9745 12.2249C21.3836 14.7852 18.5247 19 12.0001 19C5.42044 19 2.6206 14.4091 2.03532 12.2631L1.96655 12.011L2.02994 11.7575ZM4.04308 11.9886C4.61202 13.6329 6.83349 17 12.0001 17C17.2425 17 19.4283 13.8356 19.9639 12.0101C19.4182 10.2828 17.2104 7 12.0001 7C6.81136 7 4.60029 10.2556 4.04308 11.9886Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.0001 10C10.8955 10 10.0001 10.8954 10.0001 12C10.0001 13.1046 10.8955 14 12.0001 14C13.1046 14 14.0001 13.1046 14.0001 12C14.0001 10.8954 13.1046 10 12.0001 10ZM8.00008 12C8.00008 9.79086 9.79094 8 12.0001 8C14.2092 8 16.0001 9.79086 16.0001 12C16.0001 14.2091 14.2092 16 12.0001 16C9.79094 16 8.00008 14.2091 8.00008 12Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20.7072 3.29289C21.0977 3.68342 21.0977 4.31658 20.7072 4.70711L4.70719 20.7071C4.31666 21.0976 3.6835 21.0976 3.29297 20.7071C2.90245 20.3166 2.90245 19.6834 3.29297 19.2929L19.293 3.29289C19.6835 2.90237 20.3167 2.90237 20.7072 3.29289Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgEyeHidden;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgEyeVisible = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.02994 11.7575C2.61883 9.4019 5.4549 5 12.0001 5C18.5453 5 21.3813 9.4019 21.9702 11.7575L22.0285 11.9906L21.9745 12.2249C21.3836 14.7852 18.5247 19 12.0001 19C5.42044 19 2.6206 14.4091 2.03532 12.2631L1.96655 12.011L2.02994 11.7575ZM4.04308 11.9886C4.61202 13.6329 6.83349 17 12.0001 17C17.2425 17 19.4283 13.8356 19.9639 12.0101C19.4182 10.2828 17.2104 7 12.0001 7C6.81136 7 4.60029 10.2556 4.04308 11.9886Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.0001 10C10.8955 10 10.0001 10.8954 10.0001 12C10.0001 13.1046 10.8955 14 12.0001 14C13.1046 14 14.0001 13.1046 14.0001 12C14.0001 10.8954 13.1046 10 12.0001 10ZM8.00008 12C8.00008 9.79086 9.79094 8 12.0001 8C14.2092 8 16.0001 9.79086 16.0001 12C16.0001 14.2091 14.2092 16 12.0001 16C9.79094 16 8.00008 14.2091 8.00008 12Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgEyeVisible;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgIconSlot = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n d=\"M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgIconSlot;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgSearch = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4ZM2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M15.9929 15.9929C16.3834 15.6024 17.0166 15.6024 17.4071 15.9929L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L15.9929 17.4071C15.6024 17.0166 15.6024 16.3834 15.9929 15.9929Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgSearch;\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\nimport { resolveSize } from '../shared/types';\n\nconst SvgUser = ({ size = 16, ...props }: ReactIconProps) => {\n const sizeValue = resolveSize(size);\n \n return (\n <svg\n width={sizeValue} height={sizeValue}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.46447 15.4645C6.40215 14.5268 7.67392 14 9 14H15C16.3261 14 17.5979 14.5268 18.5355 15.4645C19.4732 16.4021 20 17.6739 20 19V21C20 21.5523 19.5523 22 19 22C18.4477 22 18 21.5523 18 21V19C18 18.2044 17.6839 17.4413 17.1213 16.8787C16.5587 16.3161 15.7956 16 15 16H9C8.20435 16 7.44129 16.3161 6.87868 16.8787C6.31607 17.4413 6 18.2043 6 19V21C6 21.5523 5.55228 22 5 22C4.44772 22 4 21.5523 4 21V19C4 17.6739 4.52678 16.4021 5.46447 15.4645Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport default SvgUser;\n","// Auto-generated exports\nexport { default as ArrowLeft } from './ArrowLeft';\nexport { default as Cancel } from './Cancel';\nexport { default as Check } from './Check';\nexport { default as Edit } from './Edit';\nexport { default as EyeHidden } from './EyeHidden';\nexport { default as EyeVisible } from './EyeVisible';\nexport { default as IconSlot } from './IconSlot';\nexport { default as Search } from './Search';\nexport { default as User } from './User';\n\n// Unified Icon component\nexport { default as Icon } from './Icon';\nexport type { IconName, IconProps } from './Icon';\n\n // Export types\nexport type {\n IconSize,\n IconSizeToken,\n ReactIconProps,\n} from '../shared/types';\n\nexport { ICON_SIZES, resolveSize } from '../shared/types';\n","import * as React from 'react';\nimport type { ReactIconProps } from '../shared/types';\n\n/**\n * Icon imports - using dynamic imports for tree-shaking\n * Auto-generated - do not edit manually\n */\n// Icon: arrow-left\n// Icon: cancel\n// Icon: check\n// Icon: edit\n// Icon: eye-hidden\n// Icon: eye-visible\n// Icon: icon-slot\n// Icon: search\n// Icon: user\n\n/**\n * Available icon names\n */\nexport type IconName = 'arrow-left' | 'cancel' | 'check' | 'edit' | 'eye-hidden' | 'eye-visible' | 'icon-slot' | 'search' | 'user';\n\n/**\n * Props for the unified Icon component\n */\nexport interface IconProps extends Omit<ReactIconProps, 'size'> {\n name: IconName;\n size?: ReactIconProps['size'];\n color?: string;\n}\n\n/**\n * Loads an icon component dynamically\n * This pattern allows bundlers to tree-shake unused icons\n * \n * Icons use default exports (export default SvgIconName),\n * so we access .default from the dynamic import result\n */\nfunction loadIcon(name: IconName): Promise<React.ComponentType<any>> {\n switch (name) {\n case 'arrow-left':\n return import('./ArrowLeft').then(m => m.default);\n case 'cancel':\n return import('./Cancel').then(m => m.default);\n case 'check':\n return import('./Check').then(m => m.default);\n case 'edit':\n return import('./Edit').then(m => m.default);\n case 'eye-hidden':\n return import('./EyeHidden').then(m => m.default);\n case 'eye-visible':\n return import('./EyeVisible').then(m => m.default);\n case 'icon-slot':\n return import('./IconSlot').then(m => m.default);\n case 'search':\n return import('./Search').then(m => m.default);\n case 'user':\n return import('./User').then(m => m.default);\n default:\n return Promise.reject(new Error(`Icon \"${name}\" not found`));\n }\n}\n\n/**\n * Unified Icon component that renders icons by name\n * Uses dynamic imports for tree-shaking support\n */\nconst Icon = ({ name, size = 16, color, ...props }: IconProps) => {\n const [IconComponent, setIconComponent] = React.useState<React.ComponentType<any> | null>(null);\n const [loading, setLoading] = React.useState(true);\n const [error, setError] = React.useState<string | null>(null);\n\n React.useEffect(() => {\n setLoading(true);\n setError(null);\n \n loadIcon(name)\n .then((Component) => {\n setIconComponent(() => Component);\n setLoading(false);\n })\n .catch((err) => {\n console.warn(err.message);\n setError(err.message);\n setLoading(false);\n });\n }, [name]);\n\n if (loading) {\n return null; // Consider showing a placeholder\n }\n\n if (error || !IconComponent) {\n return null;\n }\n\n // Apply color via style prop if provided (SVGs use fill=\"currentColor\")\n const style = color \n ? { ...props.style, color } \n : props.style;\n\n return <IconComponent size={size} {...props} style={style} />;\n};\n\nexport default Icon;"],"mappings":";;;;;;;;;;;AAyCO,SAAS,YAAY,OAAiB,MAAc;AACzD,MAAI,OAAO,SAAS,UAAU;AAC5B,WAAO;AAAA,EACT;AAEA,SAAO,WAAW,IAAI,KAAK,WAAW;AACxC;AA/CA,IAKa;AALb;AAAA;AAAA;AAKO,IAAM,aAAa;AAAA,MACxB,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA;AAAA;;;ACXA;AAAA;AAAA;AAAA;AAAA,YAAY,WAAW;AAAvB,IAIM,cA2BC;AA/BP;AAAA;AAAA;AAEA;AAEA,IAAM,eAAe,CAAC,EAAE,OAAO,IAAI,GAAG,MAAM,MAAsB;AAChE,YAAM,YAAY,YAAY,IAAI;AAElC,aACE;AAAA,QAAC;AAAA;AAAA,UACD,OAA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,IAAI;AACf,aAAS,IAAI;AAEb,aAAS,IAAI,EACV,KAAK,CAAC,cAAc;AACnB,uBAAiB,MAAM,SAAS;AAChC,iBAAW,KAAK;AAAA,IAClB,CAAC,EACA,MAAM,CAAC,QAAQ;AACd,cAAQ,KAAK,IAAI,OAAO;AACxB,eAAS,IAAI,OAAO;AACpB,iBAAW,KAAK;AAAA,IAClB,CAAC;AAAA,EACL,GAAG,CAAC,IAAI,CAAC;AAET,MAAI,SAAS;AACX,WAAO;AAAA,EACT;AAEA,MAAI,SAAS,CAAC,eAAe;AAC3B,WAAO;AAAA,EACT;AAGA,QAAM,QAAQ,QACV,EAAE,GAAG,MAAM,OAAO,MAAM,IACxB,MAAM;AAEV,SAAO,sCAAC,iBAAc,MAAa,GAAG,OAAO,OAAc;AAC7D;AAEA,IAAO,eAAQ;;;ADlFf;","names":["React","React","React","React","React","React","React","React","React"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "huspy-icons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Cross-platform icon package for Huspy - React and React Native compatible",
|
|
5
5
|
"author": "Huspy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,11 @@
|
|
|
46
46
|
"gen": "npm run svgo && npm run gen:react && npm run gen:native && npm run gen:types",
|
|
47
47
|
"build": "tsup",
|
|
48
48
|
"prepare": "npm run svgo && npm run gen:react && npm run gen:native && npm run gen:types && npm run build",
|
|
49
|
-
"typecheck": "tsc --noEmit"
|
|
49
|
+
"typecheck": "tsc --noEmit",
|
|
50
|
+
"version:patch": "node scripts/bump-version.js patch",
|
|
51
|
+
"version:minor": "node scripts/bump-version.js minor",
|
|
52
|
+
"version:major": "node scripts/bump-version.js major",
|
|
53
|
+
"postversion": "git push && git push --tags"
|
|
50
54
|
},
|
|
51
55
|
"devDependencies": {
|
|
52
56
|
"@svgr/cli": "^8.1.0",
|