pop-emojis 0.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,73 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## React Compiler
11
+
12
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
+
14
+ ## Expanding the ESLint configuration
15
+
16
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
17
+
18
+ ```js
19
+ export default defineConfig([
20
+ globalIgnores(['dist']),
21
+ {
22
+ files: ['**/*.{ts,tsx}'],
23
+ extends: [
24
+ // Other configs...
25
+
26
+ // Remove tseslint.configs.recommended and replace with this
27
+ tseslint.configs.recommendedTypeChecked,
28
+ // Alternatively, use this for stricter rules
29
+ tseslint.configs.strictTypeChecked,
30
+ // Optionally, add this for stylistic rules
31
+ tseslint.configs.stylisticTypeChecked,
32
+
33
+ // Other configs...
34
+ ],
35
+ languageOptions: {
36
+ parserOptions: {
37
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
+ tsconfigRootDir: import.meta.dirname,
39
+ },
40
+ // other options...
41
+ },
42
+ },
43
+ ])
44
+ ```
45
+
46
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
+
48
+ ```js
49
+ // eslint.config.js
50
+ import reactX from 'eslint-plugin-react-x'
51
+ import reactDom from 'eslint-plugin-react-dom'
52
+
53
+ export default defineConfig([
54
+ globalIgnores(['dist']),
55
+ {
56
+ files: ['**/*.{ts,tsx}'],
57
+ extends: [
58
+ // Other configs...
59
+ // Enable lint rules for React
60
+ reactX.configs['recommended-typescript'],
61
+ // Enable lint rules for React DOM
62
+ reactDom.configs.recommended,
63
+ ],
64
+ languageOptions: {
65
+ parserOptions: {
66
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
+ tsconfigRootDir: import.meta.dirname,
68
+ },
69
+ // other options...
70
+ },
71
+ },
72
+ ])
73
+ ```
@@ -0,0 +1,297 @@
1
+ import ee, { useState as re } from "react";
2
+ import { AnimatePresence as te, motion as ne } from "framer-motion";
3
+ var R = { exports: {} }, _ = {};
4
+ var D;
5
+ function ae() {
6
+ if (D) return _;
7
+ D = 1;
8
+ var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.fragment");
9
+ function f(c, s, o) {
10
+ var u = null;
11
+ if (o !== void 0 && (u = "" + o), s.key !== void 0 && (u = "" + s.key), "key" in s) {
12
+ o = {};
13
+ for (var i in s)
14
+ i !== "key" && (o[i] = s[i]);
15
+ } else o = s;
16
+ return s = o.ref, {
17
+ $$typeof: l,
18
+ type: c,
19
+ key: u,
20
+ ref: s !== void 0 ? s : null,
21
+ props: o
22
+ };
23
+ }
24
+ return _.Fragment = m, _.jsx = f, _.jsxs = f, _;
25
+ }
26
+ var E = {};
27
+ var F;
28
+ function oe() {
29
+ return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
30
+ function l(e) {
31
+ if (e == null) return null;
32
+ if (typeof e == "function")
33
+ return e.$$typeof === Z ? null : e.displayName || e.name || null;
34
+ if (typeof e == "string") return e;
35
+ switch (e) {
36
+ case k:
37
+ return "Fragment";
38
+ case q:
39
+ return "Profiler";
40
+ case U:
41
+ return "StrictMode";
42
+ case G:
43
+ return "Suspense";
44
+ case X:
45
+ return "SuspenseList";
46
+ case H:
47
+ return "Activity";
48
+ }
49
+ if (typeof e == "object")
50
+ switch (typeof e.tag == "number" && console.error(
51
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
52
+ ), e.$$typeof) {
53
+ case W:
54
+ return "Portal";
55
+ case V:
56
+ return e.displayName || "Context";
57
+ case J:
58
+ return (e._context.displayName || "Context") + ".Consumer";
59
+ case z:
60
+ var r = e.render;
61
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
62
+ case B:
63
+ return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
64
+ case x:
65
+ r = e._payload, e = e._init;
66
+ try {
67
+ return l(e(r));
68
+ } catch {
69
+ }
70
+ }
71
+ return null;
72
+ }
73
+ function m(e) {
74
+ return "" + e;
75
+ }
76
+ function f(e) {
77
+ try {
78
+ m(e);
79
+ var r = !1;
80
+ } catch {
81
+ r = !0;
82
+ }
83
+ if (r) {
84
+ r = console;
85
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
86
+ return t.call(
87
+ r,
88
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
89
+ n
90
+ ), m(e);
91
+ }
92
+ }
93
+ function c(e) {
94
+ if (e === k) return "<>";
95
+ if (typeof e == "object" && e !== null && e.$$typeof === x)
96
+ return "<...>";
97
+ try {
98
+ var r = l(e);
99
+ return r ? "<" + r + ">" : "<...>";
100
+ } catch {
101
+ return "<...>";
102
+ }
103
+ }
104
+ function s() {
105
+ var e = y.A;
106
+ return e === null ? null : e.getOwner();
107
+ }
108
+ function o() {
109
+ return Error("react-stack-top-frame");
110
+ }
111
+ function u(e) {
112
+ if (g.call(e, "key")) {
113
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
114
+ if (r && r.isReactWarning) return !1;
115
+ }
116
+ return e.key !== void 0;
117
+ }
118
+ function i(e, r) {
119
+ function t() {
120
+ N || (N = !0, console.error(
121
+ "%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)",
122
+ r
123
+ ));
124
+ }
125
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
126
+ get: t,
127
+ configurable: !0
128
+ });
129
+ }
130
+ function T() {
131
+ var e = l(this.type);
132
+ return C[e] || (C[e] = !0, console.error(
133
+ "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."
134
+ )), e = this.props.ref, e !== void 0 ? e : null;
135
+ }
136
+ function L(e, r, t, n, b, A) {
137
+ var a = t.ref;
138
+ return e = {
139
+ $$typeof: w,
140
+ type: e,
141
+ key: r,
142
+ props: t,
143
+ _owner: n
144
+ }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
145
+ enumerable: !1,
146
+ get: T
147
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
148
+ configurable: !1,
149
+ enumerable: !1,
150
+ writable: !0,
151
+ value: 0
152
+ }), Object.defineProperty(e, "_debugInfo", {
153
+ configurable: !1,
154
+ enumerable: !1,
155
+ writable: !0,
156
+ value: null
157
+ }), Object.defineProperty(e, "_debugStack", {
158
+ configurable: !1,
159
+ enumerable: !1,
160
+ writable: !0,
161
+ value: b
162
+ }), Object.defineProperty(e, "_debugTask", {
163
+ configurable: !1,
164
+ enumerable: !1,
165
+ writable: !0,
166
+ value: A
167
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
168
+ }
169
+ function P(e, r, t, n, b, A) {
170
+ var a = r.children;
171
+ if (a !== void 0)
172
+ if (n)
173
+ if (Q(a)) {
174
+ for (n = 0; n < a.length; n++)
175
+ S(a[n]);
176
+ Object.freeze && Object.freeze(a);
177
+ } else
178
+ console.error(
179
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
+ );
181
+ else S(a);
182
+ if (g.call(r, "key")) {
183
+ a = l(e);
184
+ var d = Object.keys(r).filter(function(K) {
185
+ return K !== "key";
186
+ });
187
+ n = 0 < d.length ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}", $[a + n] || (d = 0 < d.length ? "{" + d.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ `A props object containing a "key" prop is being spread into JSX:
189
+ let props = %s;
190
+ <%s {...props} />
191
+ React keys must be passed directly to JSX without using spread:
192
+ let props = %s;
193
+ <%s key={someKey} {...props} />`,
194
+ n,
195
+ a,
196
+ d,
197
+ a
198
+ ), $[a + n] = !0);
199
+ }
200
+ if (a = null, t !== void 0 && (f(t), a = "" + t), u(r) && (f(r.key), a = "" + r.key), "key" in r) {
201
+ t = {};
202
+ for (var h in r)
203
+ h !== "key" && (t[h] = r[h]);
204
+ } else t = r;
205
+ return a && i(
206
+ t,
207
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
208
+ ), L(
209
+ e,
210
+ a,
211
+ t,
212
+ s(),
213
+ b,
214
+ A
215
+ );
216
+ }
217
+ function S(e) {
218
+ j(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === x && (e._payload.status === "fulfilled" ? j(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
219
+ }
220
+ function j(e) {
221
+ return typeof e == "object" && e !== null && e.$$typeof === w;
222
+ }
223
+ var p = ee, w = /* @__PURE__ */ Symbol.for("react.transitional.element"), W = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), U = /* @__PURE__ */ Symbol.for("react.strict_mode"), q = /* @__PURE__ */ Symbol.for("react.profiler"), J = /* @__PURE__ */ Symbol.for("react.consumer"), V = /* @__PURE__ */ Symbol.for("react.context"), z = /* @__PURE__ */ Symbol.for("react.forward_ref"), G = /* @__PURE__ */ Symbol.for("react.suspense"), X = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), x = /* @__PURE__ */ Symbol.for("react.lazy"), H = /* @__PURE__ */ Symbol.for("react.activity"), Z = /* @__PURE__ */ Symbol.for("react.client.reference"), y = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
224
+ return null;
225
+ };
226
+ p = {
227
+ react_stack_bottom_frame: function(e) {
228
+ return e();
229
+ }
230
+ };
231
+ var N, C = {}, Y = p.react_stack_bottom_frame.bind(
232
+ p,
233
+ o
234
+ )(), I = O(c(o)), $ = {};
235
+ E.Fragment = k, E.jsx = function(e, r, t) {
236
+ var n = 1e4 > y.recentlyCreatedOwnerStacks++;
237
+ return P(
238
+ e,
239
+ r,
240
+ t,
241
+ !1,
242
+ n ? Error("react-stack-top-frame") : Y,
243
+ n ? O(c(e)) : I
244
+ );
245
+ }, E.jsxs = function(e, r, t) {
246
+ var n = 1e4 > y.recentlyCreatedOwnerStacks++;
247
+ return P(
248
+ e,
249
+ r,
250
+ t,
251
+ !0,
252
+ n ? Error("react-stack-top-frame") : Y,
253
+ n ? O(c(e)) : I
254
+ );
255
+ };
256
+ })()), E;
257
+ }
258
+ var M;
259
+ function se() {
260
+ return M || (M = 1, process.env.NODE_ENV === "production" ? R.exports = ae() : R.exports = oe()), R.exports;
261
+ }
262
+ var v = se();
263
+ function ce({ emoji: l = "🔥", count: m = 6 }) {
264
+ const [f, c] = re([]), s = () => {
265
+ const o = Date.now(), u = Array.from({ length: m }, (i, T) => ({
266
+ id: o + T,
267
+ x: Math.random() * 180 - 80,
268
+ y: Math.random() * -100
269
+ }));
270
+ c(u), setTimeout(() => c([]), 600);
271
+ };
272
+ return /* @__PURE__ */ v.jsxs("div", { className: "relative inline-block", children: [
273
+ /* @__PURE__ */ v.jsx(
274
+ "button",
275
+ {
276
+ onClick: s,
277
+ className: "rounded px-4 py-2 text-white",
278
+ children: "🫡"
279
+ }
280
+ ),
281
+ /* @__PURE__ */ v.jsx(te, { children: f.map(({ id: o, x: u, y: i }) => /* @__PURE__ */ v.jsx(
282
+ ne.span,
283
+ {
284
+ initial: { scale: 0.5, opacity: 1, x: 0, y: 0 },
285
+ animate: { scale: 1, opacity: 0, x: u, y: i },
286
+ exit: { opacity: 0 },
287
+ transition: { duration: 0.8, ease: "easeOut" },
288
+ className: "pointer-events-none absolute left-1/2 top-1/3 text-xl",
289
+ children: l
290
+ },
291
+ o
292
+ )) })
293
+ ] });
294
+ }
295
+ export {
296
+ ce as EmojiPop
297
+ };
@@ -0,0 +1,6 @@
1
+ (function(l,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("framer-motion")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion"],m):(l=typeof globalThis<"u"?globalThis:l||self,m(l.PopEmojis={},l.require$$0,l.framerMotion))})(this,(function(l,m,S){"use strict";var v={exports:{}},_={};var w;function q(){if(w)return _;w=1;var i=Symbol.for("react.transitional.element"),p=Symbol.for("react.fragment");function d(c,s,o){var u=null;if(o!==void 0&&(u=""+o),s.key!==void 0&&(u=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:i,type:c,key:u,ref:s!==void 0?s:null,props:o}}return _.Fragment=p,_.jsx=d,_.jsxs=d,_}var b={};var g;function J(){return g||(g=1,process.env.NODE_ENV!=="production"&&(function(){function i(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 y:return"Fragment";case H:return"Profiler";case B:return"StrictMode";case ee:return"Suspense";case re:return"SuspenseList";case ne: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 X:return"Portal";case Q:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case K:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return r=e.displayName||null,r!==null?r:i(e.type)||"Memo";case O:r=e._payload,e=e._init;try{return i(e(r))}catch{}}return null}function p(e){return""+e}function d(e){try{p(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),p(e)}}function c(e){if(e===y)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===O)return"<...>";try{var r=i(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=h.A;return e===null?null:e.getOwner()}function o(){return Error("react-stack-top-frame")}function u(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 f(e,r){function t(){F||(F=!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 x(){var e=i(this.type);return M[e]||(M[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 G(e,r,t,n,k,P){var a=t.ref;return e={$$typeof:$,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:x}):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:k}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function C(e,r,t,n,k,P){var a=r.children;if(a!==void 0)if(n)if(oe(a)){for(n=0;n<a.length;n++)Y(a[n]);Object.freeze&&Object.freeze(a)}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 Y(a);if(D.call(r,"key")){a=i(e);var E=Object.keys(r).filter(function(se){return se!=="key"});n=0<E.length?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}",U[a+n]||(E=0<E.length?"{"+E.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,n,a,E,a),U[a+n]=!0)}if(a=null,t!==void 0&&(d(t),a=""+t),u(r)&&(d(r.key),a=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return a&&f(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),G(e,a,t,s(),k,P)}function Y(e){I(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===O&&(e._payload.status==="fulfilled"?I(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function I(e){return typeof e=="object"&&e!==null&&e.$$typeof===$}var T=m,$=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),h=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,oe=Array.isArray,j=console.createTask?console.createTask:function(){return null};T={react_stack_bottom_frame:function(e){return e()}};var F,M={},L=T.react_stack_bottom_frame.bind(T,o)(),W=j(c(o)),U={};b.Fragment=y,b.jsx=function(e,r,t){var n=1e4>h.recentlyCreatedOwnerStacks++;return C(e,r,t,!1,n?Error("react-stack-top-frame"):L,n?j(c(e)):W)},b.jsxs=function(e,r,t){var n=1e4>h.recentlyCreatedOwnerStacks++;return C(e,r,t,!0,n?Error("react-stack-top-frame"):L,n?j(c(e)):W)}})()),b}var N;function V(){return N||(N=1,process.env.NODE_ENV==="production"?v.exports=q():v.exports=J()),v.exports}var R=V();function z({emoji:i="🔥",count:p=6}){const[d,c]=m.useState([]),s=()=>{const o=Date.now(),u=Array.from({length:p},(f,x)=>({id:o+x,x:Math.random()*180-80,y:Math.random()*-100}));c(u),setTimeout(()=>c([]),600)};return R.jsxs("div",{className:"relative inline-block",children:[R.jsx("button",{onClick:s,className:"rounded px-4 py-2 text-white",children:"🫡"}),R.jsx(S.AnimatePresence,{children:d.map(({id:o,x:u,y:f})=>R.jsx(S.motion.span,{initial:{scale:.5,opacity:1,x:0,y:0},animate:{scale:1,opacity:0,x:u,y:f},exit:{opacity:0},transition:{duration:.8,ease:"easeOut"},className:"pointer-events-none absolute left-1/2 top-1/3 text-xl",children:i},o))})]})}l.EmojiPop=z,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "pop-emojis",
3
+ "private": false,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "author": "MahindraGamni",
7
+ "description": "A React component for animated emoji pop effects",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "scripts": {
21
+ "dev": "vite",
22
+ "build": "tsc && vite build",
23
+ "build:lib": "tsc && vite build --mode lib",
24
+ "lint": "eslint .",
25
+ "preview": "vite preview",
26
+ "test": "vitest",
27
+ "test:ui": "vitest --ui"
28
+ },
29
+ "dependencies": {
30
+ "framer-motion": "^12.23.26"
31
+ },
32
+ "peerDependencies": {
33
+ "react": ">=18.0.0",
34
+ "react-dom": ">=18.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "@eslint/js": "^9.39.1",
38
+ "@tailwindcss/postcss": "^4.1.18",
39
+ "motion": "^12.23.26",
40
+ "react": "^19.2.0",
41
+ "react-dom": "^19.2.0",
42
+ "@testing-library/jest-dom": "^6.9.1",
43
+ "@testing-library/react": "^16.3.1",
44
+ "@testing-library/user-event": "^14.6.1",
45
+ "@types/node": "^24.10.1",
46
+ "@types/react": "^19.2.5",
47
+ "@types/react-dom": "^19.2.3",
48
+ "@vitejs/plugin-react": "^5.1.1",
49
+ "autoprefixer": "^10.4.23",
50
+ "eslint": "^9.39.1",
51
+ "eslint-plugin-react-hooks": "^7.0.1",
52
+ "eslint-plugin-react-refresh": "^0.4.24",
53
+ "globals": "^16.5.0",
54
+ "jsdom": "^27.4.0",
55
+ "postcss": "^8.5.6",
56
+ "tailwindcss": "^4.1.18",
57
+ "typescript": "~5.9.3",
58
+ "typescript-eslint": "^8.46.4",
59
+ "vite": "^7.2.4",
60
+ "vitest": "^4.0.16"
61
+ }
62
+ }