wasvg 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -4
- package/dist/setupTests.d.ts +0 -0
- package/dist/src/categories/CategorySvg.test.d.ts +1 -0
- package/dist/src/categories/Pets.stories.d.ts +9 -0
- package/dist/src/categories/Pets.test.d.ts +1 -0
- package/dist/src/categories/Sports.stories.d.ts +9 -0
- package/dist/src/categories/Sports.test.d.ts +1 -0
- package/dist/src/common/Add.stories.d.ts +9 -0
- package/dist/src/common/Add.test.d.ts +1 -0
- package/dist/src/common/Arena.stories.d.ts +9 -0
- package/dist/src/common/Arena.test.d.ts +1 -0
- package/dist/src/common/Calendar.stories.d.ts +9 -0
- package/dist/src/common/Calendar.test.d.ts +1 -0
- package/dist/src/common/CalendarEvent.stories.d.ts +9 -0
- package/dist/src/common/CalendarEvent.test.d.ts +1 -0
- package/dist/src/common/Chat.stories.d.ts +9 -0
- package/dist/src/common/Chat.test.d.ts +1 -0
- package/dist/src/common/City.stories.d.ts +9 -0
- package/dist/src/common/City.test.d.ts +1 -0
- package/dist/src/common/Close.stories.d.ts +9 -0
- package/dist/src/common/Close.test.d.ts +1 -0
- package/dist/src/common/Coach.stories.d.ts +9 -0
- package/dist/src/common/Coach.test.d.ts +1 -0
- package/dist/src/common/Collapse.stories.d.ts +9 -0
- package/dist/src/common/Collapse.test.d.ts +1 -0
- package/dist/src/common/Collection.stories.d.ts +9 -0
- package/dist/src/common/Collection.test.d.ts +1 -0
- package/dist/src/common/Create.stories.d.ts +9 -0
- package/dist/src/common/Create.test.d.ts +1 -0
- package/dist/src/common/CreateArena.stories.d.ts +9 -0
- package/dist/src/common/CreateArena.test.d.ts +1 -0
- package/dist/src/common/CreateCollection.stories.d.ts +9 -0
- package/dist/src/common/CreateCollection.test.d.ts +1 -0
- package/dist/src/common/CreatePost.stories.d.ts +9 -0
- package/dist/src/common/CreatePost.test.d.ts +1 -0
- package/dist/src/common/CreateTeam.stories.d.ts +9 -0
- package/dist/src/common/CreateTeam.test.d.ts +1 -0
- package/dist/src/common/Discussion.stories.d.ts +9 -0
- package/dist/src/common/Discussion.test.d.ts +1 -0
- package/dist/src/common/Edit.stories.d.ts +9 -0
- package/dist/src/common/Edit.test.d.ts +1 -0
- package/dist/src/common/Explore.stories.d.ts +9 -0
- package/dist/src/common/Explore.test.d.ts +1 -0
- package/dist/src/common/Home.stories.d.ts +9 -0
- package/dist/src/common/Home.test.d.ts +1 -0
- package/dist/src/common/Image.stories.d.ts +9 -0
- package/dist/src/common/Image.test.d.ts +1 -0
- package/dist/src/common/Info.stories.d.ts +9 -0
- package/dist/src/common/Info.test.d.ts +1 -0
- package/dist/src/common/LeftArrow.stories.d.ts +9 -0
- package/dist/src/common/LeftArrow.test.d.ts +1 -0
- package/dist/src/common/Logout.stories.d.ts +9 -0
- package/dist/src/common/Logout.test.d.ts +1 -0
- package/dist/src/common/Map.stories.d.ts +9 -0
- package/dist/src/common/Map.test.d.ts +1 -0
- package/dist/src/common/Market.stories.d.ts +9 -0
- package/dist/src/common/Market.test.d.ts +1 -0
- package/dist/src/common/Menu.stories.d.ts +9 -0
- package/dist/src/common/Menu.test.d.ts +1 -0
- package/dist/src/common/Newsfeed.stories.d.ts +9 -0
- package/dist/src/common/Newsfeed.test.d.ts +1 -0
- package/dist/src/common/Notification.stories.d.ts +9 -0
- package/dist/src/common/Notification.test.d.ts +1 -0
- package/dist/src/common/Partners.stories.d.ts +9 -0
- package/dist/src/common/Partners.test.d.ts +1 -0
- package/dist/src/common/Poll.stories.d.ts +9 -0
- package/dist/src/common/Poll.test.d.ts +1 -0
- package/dist/src/common/Private.stories.d.ts +9 -0
- package/dist/src/common/Private.test.d.ts +1 -0
- package/dist/src/common/RightArrow.stories.d.ts +9 -0
- package/dist/src/common/RightArrow.test.d.ts +1 -0
- package/dist/src/common/Send.d.ts +3 -0
- package/dist/src/common/Team.stories.d.ts +9 -0
- package/dist/src/common/Team.test.d.ts +1 -0
- package/dist/src/common/TextPost.stories.d.ts +9 -0
- package/dist/src/common/TextPost.test.d.ts +1 -0
- package/dist/src/common/UpArrow.stories.d.ts +6 -0
- package/dist/src/common/User.stories.d.ts +9 -0
- package/dist/src/common/User.test.d.ts +1 -0
- package/dist/src/common/WorenaLogo.stories.d.ts +9 -0
- package/dist/src/common/WorenaLogo.test.d.ts +1 -0
- package/dist/{common → src/common}/index.d.ts +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/{interests → src/interests}/InterestSvg.d.ts +2 -2
- package/dist/src/interests/music/MusicInterestSvg.test.d.ts +1 -0
- package/dist/src/interests/music/all/Guitar.stories.d.ts +9 -0
- package/dist/src/interests/music/all/Guitar.test.d.ts +1 -0
- package/dist/src/interests/music/all/Sing.stories.d.ts +9 -0
- package/dist/src/interests/music/all/Sing.test.d.ts +1 -0
- package/dist/src/interests/pets/PetsInterestSvg.test.d.ts +1 -0
- package/dist/src/interests/pets/all/Cat.stories.d.ts +8 -0
- package/dist/src/interests/pets/all/Cat.test.d.ts +1 -0
- package/dist/src/interests/pets/all/Dog.stories.d.ts +8 -0
- package/dist/src/interests/pets/all/Dog.test.d.ts +1 -0
- package/dist/src/interests/sports/SportsInterestSvg.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Badminton.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Badminton.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Basketball.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Basketball.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Football.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Football.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Golf.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Golf.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Hiking.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Hiking.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Hockey.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Hockey.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Pickleball.stories.d.ts +8 -0
- package/dist/src/interests/sports/all/Pickleball.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Running.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Running.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Soccer.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Soccer.test.d.ts +1 -0
- package/dist/src/interests/sports/all/TableTennis.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/TableTennis.test.d.ts +1 -0
- package/dist/src/interests/sports/all/Tennis.stories.d.ts +9 -0
- package/dist/src/interests/sports/all/Tennis.test.d.ts +1 -0
- package/dist/src/svgs/art.d.ts +2 -0
- package/dist/src/svgs/art.stories.d.ts +9 -0
- package/dist/src/svgs/art.test.d.ts +1 -0
- package/dist/src/svgs/ballet.d.ts +2 -0
- package/dist/src/svgs/breakdance.d.ts +2 -0
- package/dist/src/svgs/cello.d.ts +2 -0
- package/dist/src/svgs/chirimia.d.ts +2 -0
- package/dist/src/svgs/chirimia1.d.ts +2 -0
- package/dist/src/svgs/chirimia2.d.ts +2 -0
- package/dist/wasvg.cjs.js +5 -5
- package/dist/wasvg.css +1 -1
- package/dist/wasvg.es.js +80 -46
- package/package.json +18 -5
- /package/dist/{categories → src/categories}/CategorySvg.d.ts +0 -0
- /package/dist/{categories → src/categories}/Pets.d.ts +0 -0
- /package/dist/{categories → src/categories}/Sports.d.ts +0 -0
- /package/dist/{categories → src/categories}/index.d.ts +0 -0
- /package/dist/{common → src/common}/Add.d.ts +0 -0
- /package/dist/{common → src/common}/Arena.d.ts +0 -0
- /package/dist/{common → src/common}/Calendar.d.ts +0 -0
- /package/dist/{common → src/common}/CalendarEvent.d.ts +0 -0
- /package/dist/{common → src/common}/Chat.d.ts +0 -0
- /package/dist/{common → src/common}/City.d.ts +0 -0
- /package/dist/{common → src/common}/Close.d.ts +0 -0
- /package/dist/{common → src/common}/Coach.d.ts +0 -0
- /package/dist/{common → src/common}/Collapse.d.ts +0 -0
- /package/dist/{common → src/common}/Collection.d.ts +0 -0
- /package/dist/{common → src/common}/Create.d.ts +0 -0
- /package/dist/{common → src/common}/CreateArena.d.ts +0 -0
- /package/dist/{common → src/common}/CreateCollection.d.ts +0 -0
- /package/dist/{common → src/common}/CreatePost.d.ts +0 -0
- /package/dist/{common → src/common}/CreateTeam.d.ts +0 -0
- /package/dist/{common → src/common}/Discussion.d.ts +0 -0
- /package/dist/{common → src/common}/Edit.d.ts +0 -0
- /package/dist/{common → src/common}/Explore.d.ts +0 -0
- /package/dist/{common → src/common}/Home.d.ts +0 -0
- /package/dist/{common → src/common}/Image.d.ts +0 -0
- /package/dist/{common → src/common}/Info.d.ts +0 -0
- /package/dist/{common → src/common}/LeftArrow.d.ts +0 -0
- /package/dist/{common → src/common}/Logout.d.ts +0 -0
- /package/dist/{common → src/common}/Map.d.ts +0 -0
- /package/dist/{common → src/common}/Market.d.ts +0 -0
- /package/dist/{common → src/common}/Menu.d.ts +0 -0
- /package/dist/{common → src/common}/Newsfeed.d.ts +0 -0
- /package/dist/{common → src/common}/Notification.d.ts +0 -0
- /package/dist/{common → src/common}/Partners.d.ts +0 -0
- /package/dist/{common → src/common}/Poll.d.ts +0 -0
- /package/dist/{common → src/common}/Private.d.ts +0 -0
- /package/dist/{common → src/common}/RightArrow.d.ts +0 -0
- /package/dist/{common → src/common}/Team.d.ts +0 -0
- /package/dist/{common → src/common}/TextPost.d.ts +0 -0
- /package/dist/{common → src/common}/UpArrow.d.ts +0 -0
- /package/dist/{common → src/common}/User.d.ts +0 -0
- /package/dist/{common → src/common}/WorenaLogo.d.ts +0 -0
- /package/dist/{interests → src/interests}/index.d.ts +0 -0
- /package/dist/{interests → src/interests}/music/MusicInterestSvg.d.ts +0 -0
- /package/dist/{interests → src/interests}/music/all/Guitar.d.ts +0 -0
- /package/dist/{interests → src/interests}/music/all/Sing.d.ts +0 -0
- /package/dist/{interests → src/interests}/music/all/index.d.ts +0 -0
- /package/dist/{interests → src/interests}/music/index.d.ts +0 -0
- /package/dist/{interests → src/interests}/pets/PetsInterestSvg.d.ts +0 -0
- /package/dist/{interests → src/interests}/pets/all/Cat.d.ts +0 -0
- /package/dist/{interests → src/interests}/pets/all/Dog.d.ts +0 -0
- /package/dist/{interests → src/interests}/pets/all/index.d.ts +0 -0
- /package/dist/{interests → src/interests}/pets/index.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/SportsInterestSvg.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Badminton.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Basketball.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Football.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Golf.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Hiking.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Hockey.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Pickleball.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Running.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Soccer.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/TableTennis.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/Tennis.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/all/index.d.ts +0 -0
- /package/dist/{interests → src/interests}/sports/index.d.ts +0 -0
- /package/dist/{util.d.ts → src/util.d.ts} +0 -0
package/dist/wasvg.es.js
CHANGED
|
@@ -61,7 +61,7 @@ function $1() {
|
|
|
61
61
|
return "Suspense";
|
|
62
62
|
case _:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case R:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof n == "object")
|
|
@@ -189,13 +189,13 @@ function $1() {
|
|
|
189
189
|
if (f)
|
|
190
190
|
if (h1(T)) {
|
|
191
191
|
for (f = 0; f < T.length; f++)
|
|
192
|
-
|
|
192
|
+
L(T[f]);
|
|
193
193
|
Object.freeze && Object.freeze(T);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else
|
|
198
|
+
else L(T);
|
|
199
199
|
if (U.call(v, "key")) {
|
|
200
200
|
T = e(n);
|
|
201
201
|
var S = Object.keys(v).filter(function(a1) {
|
|
@@ -233,21 +233,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
233
|
q
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function L(n) {
|
|
237
237
|
typeof n == "object" && n !== null && n.$$typeof === N && n._store && (n._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var H = N1, N = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), Z = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler");
|
|
240
240
|
Symbol.for("react.provider");
|
|
241
|
-
var Q = Symbol.for("react.consumer"), F = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), h = Symbol.for("react.lazy"),
|
|
241
|
+
var Q = Symbol.for("react.consumer"), F = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), m1 = Symbol.for("react.client.reference"), K = H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, h1 = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
H = {
|
|
245
245
|
"react-stack-bottom-frame": function(n) {
|
|
246
246
|
return n();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var O, z = {}, A =
|
|
250
|
-
|
|
249
|
+
var O, z = {}, A = H["react-stack-bottom-frame"].bind(
|
|
250
|
+
H,
|
|
251
251
|
d
|
|
252
252
|
)(), m = V(s(d)), s1 = {};
|
|
253
253
|
i1.Fragment = Z, i1.jsx = function(n, v, w, f, b) {
|
|
@@ -650,11 +650,11 @@ const q1 = "-", r0 = (e) => {
|
|
|
650
650
|
}
|
|
651
651
|
Z === "[" ? u++ : Z === "]" ? u-- : Z === "(" ? x++ : Z === ")" && x--;
|
|
652
652
|
}
|
|
653
|
-
const y = d.length === 0 ? a : a.substring(p),
|
|
653
|
+
const y = d.length === 0 ? a : a.substring(p), L = c0(y), H = L !== y, N = j && j > p ? j - p : void 0;
|
|
654
654
|
return {
|
|
655
655
|
modifiers: d,
|
|
656
|
-
hasImportantModifier:
|
|
657
|
-
baseClassName:
|
|
656
|
+
hasImportantModifier: H,
|
|
657
|
+
baseClassName: L,
|
|
658
658
|
maybePostfixModifierPosition: N
|
|
659
659
|
};
|
|
660
660
|
};
|
|
@@ -702,13 +702,13 @@ const q1 = "-", r0 = (e) => {
|
|
|
702
702
|
let p = "";
|
|
703
703
|
for (let j = x.length - 1; j >= 0; j -= 1) {
|
|
704
704
|
const y = x[j], {
|
|
705
|
-
isExternal:
|
|
706
|
-
modifiers:
|
|
705
|
+
isExternal: L,
|
|
706
|
+
modifiers: H,
|
|
707
707
|
hasImportantModifier: N,
|
|
708
708
|
baseClassName: M,
|
|
709
709
|
maybePostfixModifierPosition: Z
|
|
710
710
|
} = o(y);
|
|
711
|
-
if (
|
|
711
|
+
if (L) {
|
|
712
712
|
p = y + (p.length > 0 ? " " + p : p);
|
|
713
713
|
continue;
|
|
714
714
|
}
|
|
@@ -724,7 +724,7 @@ const q1 = "-", r0 = (e) => {
|
|
|
724
724
|
}
|
|
725
725
|
I = !1;
|
|
726
726
|
}
|
|
727
|
-
const Q = d(
|
|
727
|
+
const Q = d(H).join(":"), F = N ? Q + x1 : Q, $ = F + P;
|
|
728
728
|
if (u.includes($))
|
|
729
729
|
continue;
|
|
730
730
|
u.push($);
|
|
@@ -754,7 +754,7 @@ const E1 = (e) => {
|
|
|
754
754
|
function g0(e, ...t) {
|
|
755
755
|
let o, s, a, d = u;
|
|
756
756
|
function u(p) {
|
|
757
|
-
const j = t.reduce((y,
|
|
757
|
+
const j = t.reduce((y, L) => L(y), e());
|
|
758
758
|
return o = m0(j), s = o.cache.get, a = o.cache.set, d = x, x(p);
|
|
759
759
|
}
|
|
760
760
|
function x(p) {
|
|
@@ -771,19 +771,19 @@ function g0(e, ...t) {
|
|
|
771
771
|
const k = (e) => {
|
|
772
772
|
const t = (o) => o[e] || [];
|
|
773
773
|
return t.isThemeGetter = !0, t;
|
|
774
|
-
},
|
|
774
|
+
}, L1 = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, R1 = /^\((?:(\w[\w-]*):)?(.+)\)$/i, p0 = /^\d+\/\d+$/, f0 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, w0 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, x0 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, b0 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, q0 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, t1 = (e) => p0.test(e), g = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), p1 = (e) => e.endsWith("%") && g(e.slice(0, -1)), B = (e) => f0.test(e), T0 = () => !0, k0 = (e) => (
|
|
775
775
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
776
776
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
777
777
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
778
778
|
w0.test(e) && !x0.test(e)
|
|
779
|
-
), S1 = () => !1, y0 = (e) => b0.test(e), j0 = (e) => q0.test(e), Z0 = (e) => !l(e) && !i(e), C0 = (e) => r1(e, P1, S1), l = (e) =>
|
|
780
|
-
const s =
|
|
779
|
+
), S1 = () => !1, y0 = (e) => b0.test(e), j0 = (e) => q0.test(e), Z0 = (e) => !l(e) && !i(e), C0 = (e) => r1(e, P1, S1), l = (e) => L1.test(e), X = (e) => r1(e, _1, k0), f1 = (e) => r1(e, R0, g), C1 = (e) => r1(e, H1, S1), M0 = (e) => r1(e, A1, j0), u1 = (e) => r1(e, O1, y0), i = (e) => R1.test(e), c1 = (e) => o1(e, _1), z0 = (e) => o1(e, S0), M1 = (e) => o1(e, H1), E0 = (e) => o1(e, P1), L0 = (e) => o1(e, A1), g1 = (e) => o1(e, O1, !0), r1 = (e, t, o) => {
|
|
780
|
+
const s = L1.exec(e);
|
|
781
781
|
return s ? s[1] ? t(s[1]) : o(s[2]) : !1;
|
|
782
782
|
}, o1 = (e, t, o = !1) => {
|
|
783
|
-
const s =
|
|
783
|
+
const s = R1.exec(e);
|
|
784
784
|
return s ? s[1] ? t(s[1]) : o : !1;
|
|
785
|
-
},
|
|
786
|
-
const e = k("color"), t = k("font"), o = k("text"), s = k("font-weight"), a = k("tracking"), d = k("leading"), u = k("breakpoint"), x = k("container"), p = k("spacing"), j = k("radius"), y = k("shadow"),
|
|
785
|
+
}, H1 = (e) => e === "position" || e === "percentage", A1 = (e) => e === "image" || e === "url", P1 = (e) => e === "length" || e === "size" || e === "bg-size", _1 = (e) => e === "length", R0 = (e) => e === "number", S0 = (e) => e === "family-name", O1 = (e) => e === "shadow", H0 = () => {
|
|
786
|
+
const e = k("color"), t = k("font"), o = k("text"), s = k("font-weight"), a = k("tracking"), d = k("leading"), u = k("breakpoint"), x = k("container"), p = k("spacing"), j = k("radius"), y = k("shadow"), L = k("inset-shadow"), H = k("text-shadow"), N = k("drop-shadow"), M = k("blur"), Z = k("perspective"), I = k("aspect"), P = k("ease"), Q = k("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
|
|
787
787
|
"center",
|
|
788
788
|
"top",
|
|
789
789
|
"bottom",
|
|
@@ -801,7 +801,7 @@ const k = (e) => {
|
|
|
801
801
|
"bottom-left",
|
|
802
802
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
803
803
|
"left-bottom"
|
|
804
|
-
], G = () => [...$(), i, l], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], h = () => [i, l, p],
|
|
804
|
+
], G = () => [...$(), i, l], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], h = () => [i, l, p], R = () => [t1, "full", "auto", ...h()], m1 = () => [Y, "none", "subgrid", i, l], K = () => ["auto", {
|
|
805
805
|
span: ["full", Y, i, l]
|
|
806
806
|
}, Y, i, l], U = () => [Y, "auto", i, l], h1 = () => ["auto", "min", "max", "fr", i, l], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...h()], A = () => [t1, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...h()], m = () => [e, i, l], s1 = () => [...$(), M1, C1, {
|
|
807
807
|
position: [i, l]
|
|
@@ -1002,63 +1002,63 @@ const k = (e) => {
|
|
|
1002
1002
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1003
1003
|
*/
|
|
1004
1004
|
inset: [{
|
|
1005
|
-
inset:
|
|
1005
|
+
inset: R()
|
|
1006
1006
|
}],
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Right / Left
|
|
1009
1009
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1010
1010
|
*/
|
|
1011
1011
|
"inset-x": [{
|
|
1012
|
-
"inset-x":
|
|
1012
|
+
"inset-x": R()
|
|
1013
1013
|
}],
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Top / Bottom
|
|
1016
1016
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1017
1017
|
*/
|
|
1018
1018
|
"inset-y": [{
|
|
1019
|
-
"inset-y":
|
|
1019
|
+
"inset-y": R()
|
|
1020
1020
|
}],
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Start
|
|
1023
1023
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1024
1024
|
*/
|
|
1025
1025
|
start: [{
|
|
1026
|
-
start:
|
|
1026
|
+
start: R()
|
|
1027
1027
|
}],
|
|
1028
1028
|
/**
|
|
1029
1029
|
* End
|
|
1030
1030
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1031
1031
|
*/
|
|
1032
1032
|
end: [{
|
|
1033
|
-
end:
|
|
1033
|
+
end: R()
|
|
1034
1034
|
}],
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Top
|
|
1037
1037
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1038
1038
|
*/
|
|
1039
1039
|
top: [{
|
|
1040
|
-
top:
|
|
1040
|
+
top: R()
|
|
1041
1041
|
}],
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Right
|
|
1044
1044
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1045
1045
|
*/
|
|
1046
1046
|
right: [{
|
|
1047
|
-
right:
|
|
1047
|
+
right: R()
|
|
1048
1048
|
}],
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Bottom
|
|
1051
1051
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1052
1052
|
*/
|
|
1053
1053
|
bottom: [{
|
|
1054
|
-
bottom:
|
|
1054
|
+
bottom: R()
|
|
1055
1055
|
}],
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Left
|
|
1058
1058
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1059
1059
|
*/
|
|
1060
1060
|
left: [{
|
|
1061
|
-
left:
|
|
1061
|
+
left: R()
|
|
1062
1062
|
}],
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Visibility
|
|
@@ -1803,7 +1803,7 @@ const k = (e) => {
|
|
|
1803
1803
|
}, Y, i, l],
|
|
1804
1804
|
radial: ["", i, l],
|
|
1805
1805
|
conic: [Y, i, l]
|
|
1806
|
-
},
|
|
1806
|
+
}, L0, M0]
|
|
1807
1807
|
}],
|
|
1808
1808
|
/**
|
|
1809
1809
|
* Background Color
|
|
@@ -2190,7 +2190,7 @@ const k = (e) => {
|
|
|
2190
2190
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2191
2191
|
*/
|
|
2192
2192
|
"inset-shadow": [{
|
|
2193
|
-
"inset-shadow": ["none",
|
|
2193
|
+
"inset-shadow": ["none", L, g1, u1]
|
|
2194
2194
|
}],
|
|
2195
2195
|
/**
|
|
2196
2196
|
* Inset Box Shadow Color
|
|
@@ -2257,7 +2257,7 @@ const k = (e) => {
|
|
|
2257
2257
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2258
2258
|
*/
|
|
2259
2259
|
"text-shadow": [{
|
|
2260
|
-
"text-shadow": ["none",
|
|
2260
|
+
"text-shadow": ["none", H, g1, u1]
|
|
2261
2261
|
}],
|
|
2262
2262
|
/**
|
|
2263
2263
|
* Text Shadow Color
|
|
@@ -3252,7 +3252,7 @@ const k = (e) => {
|
|
|
3252
3252
|
},
|
|
3253
3253
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3254
3254
|
};
|
|
3255
|
-
}, A0 = /* @__PURE__ */ g0(
|
|
3255
|
+
}, A0 = /* @__PURE__ */ g0(H0);
|
|
3256
3256
|
function B1(e) {
|
|
3257
3257
|
var t, o, s = "";
|
|
3258
3258
|
if (typeof e == "string" || typeof e == "number") s += e;
|
|
@@ -3473,7 +3473,7 @@ function U0({
|
|
|
3473
3473
|
}
|
|
3474
3474
|
const V0 = [N0, D0, U0];
|
|
3475
3475
|
function a2({
|
|
3476
|
-
|
|
3476
|
+
seq: e,
|
|
3477
3477
|
categorySeq: t,
|
|
3478
3478
|
size: o = c.sm,
|
|
3479
3479
|
className: s = ""
|
|
@@ -3922,7 +3922,7 @@ function E2({
|
|
|
3922
3922
|
}
|
|
3923
3923
|
);
|
|
3924
3924
|
}
|
|
3925
|
-
function
|
|
3925
|
+
function L2({
|
|
3926
3926
|
className: e = "",
|
|
3927
3927
|
size: t = c.md
|
|
3928
3928
|
}) {
|
|
@@ -3938,7 +3938,7 @@ function R2({
|
|
|
3938
3938
|
}
|
|
3939
3939
|
);
|
|
3940
3940
|
}
|
|
3941
|
-
function
|
|
3941
|
+
function R2({
|
|
3942
3942
|
className: e = "fill-gray-600",
|
|
3943
3943
|
size: t = c.md
|
|
3944
3944
|
}) {
|
|
@@ -3970,7 +3970,7 @@ function S2({
|
|
|
3970
3970
|
}
|
|
3971
3971
|
);
|
|
3972
3972
|
}
|
|
3973
|
-
function
|
|
3973
|
+
function H2({
|
|
3974
3974
|
className: e = "",
|
|
3975
3975
|
size: t = c.xs
|
|
3976
3976
|
}) {
|
|
@@ -4138,6 +4138,39 @@ function $2({
|
|
|
4138
4138
|
}
|
|
4139
4139
|
);
|
|
4140
4140
|
}
|
|
4141
|
+
function G2({
|
|
4142
|
+
className: e = "",
|
|
4143
|
+
size: t = c.md
|
|
4144
|
+
}) {
|
|
4145
|
+
return /* @__PURE__ */ r.jsx(
|
|
4146
|
+
"svg",
|
|
4147
|
+
{
|
|
4148
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4149
|
+
className: e,
|
|
4150
|
+
height: t,
|
|
4151
|
+
width: t,
|
|
4152
|
+
viewBox: "0 0 256 256",
|
|
4153
|
+
children: /* @__PURE__ */ r.jsx(
|
|
4154
|
+
"g",
|
|
4155
|
+
{
|
|
4156
|
+
style: {
|
|
4157
|
+
stroke: "none",
|
|
4158
|
+
strokeWidth: 0,
|
|
4159
|
+
strokeDasharray: "none",
|
|
4160
|
+
strokeLinecap: "butt",
|
|
4161
|
+
strokeLinejoin: "miter",
|
|
4162
|
+
strokeMiterlimit: 10,
|
|
4163
|
+
fill: "none",
|
|
4164
|
+
fillRule: "nonzero",
|
|
4165
|
+
opacity: 1
|
|
4166
|
+
},
|
|
4167
|
+
transform: "translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",
|
|
4168
|
+
children: /* @__PURE__ */ r.jsx("path", { d: "M 89.999 3.075 C 90 3.02 90 2.967 89.999 2.912 c -0.004 -0.134 -0.017 -0.266 -0.038 -0.398 c -0.007 -0.041 -0.009 -0.081 -0.018 -0.122 c -0.034 -0.165 -0.082 -0.327 -0.144 -0.484 c -0.018 -0.046 -0.041 -0.089 -0.061 -0.134 c -0.053 -0.119 -0.113 -0.234 -0.182 -0.346 C 89.528 1.382 89.5 1.336 89.469 1.29 c -0.102 -0.147 -0.212 -0.288 -0.341 -0.417 c -0.13 -0.13 -0.273 -0.241 -0.421 -0.344 c -0.042 -0.029 -0.085 -0.056 -0.129 -0.082 c -0.118 -0.073 -0.239 -0.136 -0.364 -0.191 c -0.039 -0.017 -0.076 -0.037 -0.116 -0.053 c -0.161 -0.063 -0.327 -0.113 -0.497 -0.147 c -0.031 -0.006 -0.063 -0.008 -0.094 -0.014 c -0.142 -0.024 -0.285 -0.038 -0.429 -0.041 C 87.03 0 86.983 0 86.936 0.001 c -0.141 0.003 -0.282 0.017 -0.423 0.041 c -0.035 0.006 -0.069 0.008 -0.104 0.015 c -0.154 0.031 -0.306 0.073 -0.456 0.129 L 1.946 31.709 c -1.124 0.422 -1.888 1.473 -1.943 2.673 c -0.054 1.199 0.612 2.316 1.693 2.838 l 34.455 16.628 l 16.627 34.455 C 53.281 89.344 54.334 90 55.481 90 c 0.046 0 0.091 -0.001 0.137 -0.003 c 1.199 -0.055 2.251 -0.819 2.673 -1.943 L 89.815 4.048 c 0.056 -0.149 0.097 -0.3 0.128 -0.453 c 0.008 -0.041 0.011 -0.081 0.017 -0.122 C 89.982 3.341 89.995 3.208 89.999 3.075 z M 75.086 10.672 L 37.785 47.973 L 10.619 34.864 L 75.086 10.672 z M 55.136 79.381 L 42.027 52.216 l 37.302 -37.302 L 55.136 79.381 z", style: "stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;", transform: " matrix(1 0 0 1 0 0) ", "stroke-linecap": "round" })
|
|
4169
|
+
}
|
|
4170
|
+
)
|
|
4171
|
+
}
|
|
4172
|
+
);
|
|
4173
|
+
}
|
|
4141
4174
|
function J0({
|
|
4142
4175
|
className: e = "",
|
|
4143
4176
|
size: t = c.md
|
|
@@ -4181,7 +4214,7 @@ function X0({
|
|
|
4181
4214
|
);
|
|
4182
4215
|
}
|
|
4183
4216
|
const Q0 = [J0, X0];
|
|
4184
|
-
function
|
|
4217
|
+
function D2({
|
|
4185
4218
|
seq: e,
|
|
4186
4219
|
size: t = c.md,
|
|
4187
4220
|
className: o = ""
|
|
@@ -4203,10 +4236,10 @@ export {
|
|
|
4203
4236
|
u2 as CalendarEventSvg,
|
|
4204
4237
|
d2 as CalendarSvg,
|
|
4205
4238
|
$0 as Cat,
|
|
4206
|
-
|
|
4239
|
+
D2 as CategorySvg,
|
|
4207
4240
|
m2 as ChatSvg,
|
|
4208
4241
|
O2 as CitySvg,
|
|
4209
|
-
|
|
4242
|
+
R2 as CloseSvg,
|
|
4210
4243
|
C2 as CoachSvg,
|
|
4211
4244
|
_2 as CollapseSvg,
|
|
4212
4245
|
y2 as CollectionSvg,
|
|
@@ -4231,7 +4264,7 @@ export {
|
|
|
4231
4264
|
B2 as LogoutSvg,
|
|
4232
4265
|
c2 as MapSvg,
|
|
4233
4266
|
$2 as MarketSvg,
|
|
4234
|
-
|
|
4267
|
+
L2 as MenuSvg,
|
|
4235
4268
|
U0 as MusicInterestSvg,
|
|
4236
4269
|
b2 as NewsfeedSvg,
|
|
4237
4270
|
v2 as NotificationSvg,
|
|
@@ -4239,10 +4272,11 @@ export {
|
|
|
4239
4272
|
D0 as PetsInterestSvg,
|
|
4240
4273
|
X0 as PetsSvg,
|
|
4241
4274
|
O0 as Pickleball,
|
|
4242
|
-
|
|
4275
|
+
H2 as PollSvg,
|
|
4243
4276
|
P2 as PrivateSvg,
|
|
4244
4277
|
z2 as RightArrowSvg,
|
|
4245
4278
|
W1 as Running,
|
|
4279
|
+
G2 as SendSvg,
|
|
4246
4280
|
F0 as Sing,
|
|
4247
4281
|
D1 as Soccer,
|
|
4248
4282
|
N0 as SportsInterestSvg,
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wasvg",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"main": "dist/wasvg.cjs.js",
|
|
5
5
|
"module": "dist/wasvg.es.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
@@ -15,30 +16,42 @@
|
|
|
15
16
|
"./dist/wasvg.css": "./dist/wasvg.css"
|
|
16
17
|
},
|
|
17
18
|
"scripts": {
|
|
18
|
-
"test": "
|
|
19
|
-
"
|
|
19
|
+
"test": "vitest",
|
|
20
|
+
"test:ui": "vitest --ui",
|
|
21
|
+
"build": "vite build",
|
|
22
|
+
"storybook": "storybook dev -p 6006",
|
|
23
|
+
"build-storybook": "storybook build",
|
|
24
|
+
"dev": "vite"
|
|
20
25
|
},
|
|
21
26
|
"keywords": [],
|
|
22
27
|
"author": "",
|
|
23
28
|
"license": "ISC",
|
|
24
29
|
"description": "",
|
|
25
30
|
"devDependencies": {
|
|
31
|
+
"@storybook/addon-docs": "^9.0.16",
|
|
32
|
+
"@storybook/react-vite": "^9.0.16",
|
|
26
33
|
"@tailwindcss/vite": "^4.1.7",
|
|
27
34
|
"@types/react": "^19.1.5",
|
|
28
35
|
"@types/react-dom": "^19.1.5",
|
|
29
36
|
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
37
|
+
"jsdom": "^26.1.0",
|
|
38
|
+
"storybook": "^9.0.16",
|
|
30
39
|
"tailwindcss": "^4.1.7",
|
|
31
40
|
"vite": "^6.3.5",
|
|
32
|
-
"vite-plugin-dts": "^4.5.4"
|
|
41
|
+
"vite-plugin-dts": "^4.5.4",
|
|
42
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
43
|
+
"vitest": "^3.2.4"
|
|
33
44
|
},
|
|
34
45
|
"peerDependencies": {
|
|
35
46
|
"react": "^19.0.0",
|
|
36
47
|
"react-dom": "^19.0.0"
|
|
37
48
|
},
|
|
38
49
|
"dependencies": {
|
|
50
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
51
|
+
"@testing-library/react": "^16.3.0",
|
|
39
52
|
"clsx": "^2.1.1",
|
|
40
53
|
"tailwind-merge": "^3.3.0",
|
|
41
54
|
"tiny-invariant": "^1.3.3",
|
|
42
55
|
"waujs": "^1.0.0"
|
|
43
56
|
}
|
|
44
|
-
}
|
|
57
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|