pop-emojis 0.0.6 → 0.0.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/dist/pop-emojis.js +28 -27
- package/dist/pop-emojis.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/pop-emojis.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ee, { useState as re } from "react";
|
|
2
2
|
import { AnimatePresence as te, motion as ne } from "framer-motion";
|
|
3
|
-
var
|
|
3
|
+
var R = { exports: {} }, p = {};
|
|
4
4
|
var D;
|
|
5
5
|
function ae() {
|
|
6
|
-
if (D) return
|
|
6
|
+
if (D) return p;
|
|
7
7
|
D = 1;
|
|
8
8
|
var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
9
9
|
function f(u, s, o) {
|
|
@@ -21,9 +21,9 @@ function ae() {
|
|
|
21
21
|
props: o
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return p.Fragment = m, p.jsx = f, p.jsxs = f, p;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var E = {};
|
|
27
27
|
var F;
|
|
28
28
|
function oe() {
|
|
29
29
|
return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -133,10 +133,10 @@ function oe() {
|
|
|
133
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
134
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
135
135
|
}
|
|
136
|
-
function L(e, r, t, n,
|
|
136
|
+
function L(e, r, t, n, b, A) {
|
|
137
137
|
var a = t.ref;
|
|
138
138
|
return e = {
|
|
139
|
-
$$typeof:
|
|
139
|
+
$$typeof: w,
|
|
140
140
|
type: e,
|
|
141
141
|
key: r,
|
|
142
142
|
props: t,
|
|
@@ -158,7 +158,7 @@ function oe() {
|
|
|
158
158
|
configurable: !1,
|
|
159
159
|
enumerable: !1,
|
|
160
160
|
writable: !0,
|
|
161
|
-
value:
|
|
161
|
+
value: b
|
|
162
162
|
}), Object.defineProperty(e, "_debugTask", {
|
|
163
163
|
configurable: !1,
|
|
164
164
|
enumerable: !1,
|
|
@@ -166,19 +166,19 @@ function oe() {
|
|
|
166
166
|
value: A
|
|
167
167
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function P(e, r, t, n, b, A) {
|
|
170
170
|
var a = r.children;
|
|
171
171
|
if (a !== void 0)
|
|
172
172
|
if (n)
|
|
173
173
|
if (Q(a)) {
|
|
174
174
|
for (n = 0; n < a.length; n++)
|
|
175
|
-
|
|
175
|
+
h(a[n]);
|
|
176
176
|
Object.freeze && Object.freeze(a);
|
|
177
177
|
} else
|
|
178
178
|
console.error(
|
|
179
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
180
|
);
|
|
181
|
-
else
|
|
181
|
+
else h(a);
|
|
182
182
|
if (g.call(r, "key")) {
|
|
183
183
|
a = l(e);
|
|
184
184
|
var d = Object.keys(r).filter(function(K) {
|
|
@@ -210,31 +210,31 @@ React keys must be passed directly to JSX without using spread:
|
|
|
210
210
|
a,
|
|
211
211
|
t,
|
|
212
212
|
s(),
|
|
213
|
-
|
|
213
|
+
b,
|
|
214
214
|
A
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
217
|
+
function h(e) {
|
|
218
|
+
j(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === y && (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
219
|
}
|
|
220
|
-
function
|
|
221
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
220
|
+
function j(e) {
|
|
221
|
+
return typeof e == "object" && e !== null && e.$$typeof === w;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var _ = 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"), z = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__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"), y = /* @__PURE__ */ Symbol.for("react.lazy"), H = /* @__PURE__ */ Symbol.for("react.activity"), Z = /* @__PURE__ */ Symbol.for("react.client.reference"), x = _.__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
224
|
return null;
|
|
225
225
|
};
|
|
226
|
-
|
|
226
|
+
_ = {
|
|
227
227
|
react_stack_bottom_frame: function(e) {
|
|
228
228
|
return e();
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
var N, C = {}, Y =
|
|
232
|
-
|
|
231
|
+
var N, C = {}, Y = _.react_stack_bottom_frame.bind(
|
|
232
|
+
_,
|
|
233
233
|
o
|
|
234
234
|
)(), I = O(u(o)), $ = {};
|
|
235
|
-
|
|
235
|
+
E.Fragment = k, E.jsx = function(e, r, t) {
|
|
236
236
|
var n = 1e4 > x.recentlyCreatedOwnerStacks++;
|
|
237
|
-
return
|
|
237
|
+
return P(
|
|
238
238
|
e,
|
|
239
239
|
r,
|
|
240
240
|
t,
|
|
@@ -242,9 +242,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
242
242
|
n ? Error("react-stack-top-frame") : Y,
|
|
243
243
|
n ? O(u(e)) : I
|
|
244
244
|
);
|
|
245
|
-
},
|
|
245
|
+
}, E.jsxs = function(e, r, t) {
|
|
246
246
|
var n = 1e4 > x.recentlyCreatedOwnerStacks++;
|
|
247
|
-
return
|
|
247
|
+
return P(
|
|
248
248
|
e,
|
|
249
249
|
r,
|
|
250
250
|
t,
|
|
@@ -253,11 +253,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
253
253
|
n ? O(u(e)) : I
|
|
254
254
|
);
|
|
255
255
|
};
|
|
256
|
-
})()),
|
|
256
|
+
})()), E;
|
|
257
257
|
}
|
|
258
258
|
var M;
|
|
259
259
|
function se() {
|
|
260
|
-
return M || (M = 1, process.env.NODE_ENV === "production" ?
|
|
260
|
+
return M || (M = 1, process.env.NODE_ENV === "production" ? R.exports = ae() : R.exports = oe()), R.exports;
|
|
261
261
|
}
|
|
262
262
|
var v = se();
|
|
263
263
|
function ue({ emoji: l, count: m }) {
|
|
@@ -275,9 +275,10 @@ function ue({ emoji: l, count: m }) {
|
|
|
275
275
|
{
|
|
276
276
|
onClick: s,
|
|
277
277
|
style: {
|
|
278
|
-
borderRadius: "0.25rem",
|
|
279
278
|
padding: "0.5rem 1rem",
|
|
280
|
-
|
|
279
|
+
border: "none",
|
|
280
|
+
background: "transparent",
|
|
281
|
+
cursor: "pointer"
|
|
281
282
|
},
|
|
282
283
|
children: l
|
|
283
284
|
}
|
package/dist/pop-emojis.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(
|
|
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.React,l.FramerMotion))})(this,(function(l,m,A){"use strict";var R={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,a){var u=null;if(a!==void 0&&(u=""+a),s.key!==void 0&&(u=""+s.key),"key"in s){a={};for(var f in s)f!=="key"&&(a[f]=s[f])}else a=s;return s=a.ref,{$$typeof:i,type:c,key:u,ref:s!==void 0?s:null,props:a}}return _.Fragment=p,_.jsx=d,_.jsxs=d,_}var b={};var g;function z(){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===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x: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===x)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=P.A;return e===null?null:e.getOwner()}function a(){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(){M||(M=!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 k(){var e=i(this.type);return $[e]||($[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function G(e,r,t,n,y,h){var o=t.ref;return e={$$typeof:F,type:e,key:r,props:t,_owner:n},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:k}):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:y}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function C(e,r,t,n,y,h){var o=r.children;if(o!==void 0)if(n)if(ae(o)){for(n=0;n<o.length;n++)Y(o[n]);Object.freeze&&Object.freeze(o)}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(o);if(D.call(r,"key")){o=i(e);var E=Object.keys(r).filter(function(se){return se!=="key"});n=0<E.length?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}",U[o+n]||(E=0<E.length?"{"+E.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,n,o,E,o),U[o+n]=!0)}if(o=null,t!==void 0&&(d(t),o=""+t),
|
|
6
|
+
<%s key={someKey} {...props} />`,n,o,E,o),U[o+n]=!0)}if(o=null,t!==void 0&&(d(t),o=""+t),u(r)&&(d(r.key),o=""+r.key),"key"in r){t={};for(var j in r)j!=="key"&&(t[j]=r[j])}else t=r;return o&&f(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),G(e,o,t,s(),y,h)}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===F}var T=m,F=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),x=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"),oe=Symbol.for("react.client.reference"),P=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,ae=Array.isArray,S=console.createTask?console.createTask:function(){return null};T={react_stack_bottom_frame:function(e){return e()}};var M,$={},L=T.react_stack_bottom_frame.bind(T,a)(),W=S(c(a)),U={};b.Fragment=x,b.jsx=function(e,r,t){var n=1e4>P.recentlyCreatedOwnerStacks++;return C(e,r,t,!1,n?Error("react-stack-top-frame"):L,n?S(c(e)):W)},b.jsxs=function(e,r,t){var n=1e4>P.recentlyCreatedOwnerStacks++;return C(e,r,t,!0,n?Error("react-stack-top-frame"):L,n?S(c(e)):W)}})()),b}var N;function J(){return N||(N=1,process.env.NODE_ENV==="production"?R.exports=q():R.exports=z()),R.exports}var v=J();function V({emoji:i,count:p}){const[d,c]=m.useState([]),s=()=>{const a=Date.now(),u=Array.from({length:p},(f,k)=>({id:a+k,x:Math.random()*120-80,y:Math.random()*-100}));c(u),setTimeout(()=>c([]),600)};return v.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[v.jsx("button",{onClick:s,style:{padding:"0.5rem 1rem",border:"none",background:"transparent",cursor:"pointer"},children:i}),v.jsx(A.AnimatePresence,{children:d.map(({id:a,x:u,y:f})=>v.jsx(A.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"},style:{position:"fixed",left:"50%",top:"50%",pointerEvents:"none",fontSize:"1.25rem"},children:i},a))})]})}l.EmojiPop=V,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|