@hokkiai/discord-emoji-selector 1.2.2 → 1.2.4
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.cjs +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17608,7 +17608,7 @@ function EmojiSelector({
|
|
|
17608
17608
|
const el = scrollRef.current;
|
|
17609
17609
|
if (!el) return;
|
|
17610
17610
|
e.preventDefault();
|
|
17611
|
-
el.
|
|
17611
|
+
el.scrollTop += e.deltaY;
|
|
17612
17612
|
}, []);
|
|
17613
17613
|
(0, import_react7.useEffect)(() => {
|
|
17614
17614
|
const el = scrollRef.current;
|
|
@@ -17687,13 +17687,14 @@ function EmojiSelector({
|
|
|
17687
17687
|
{
|
|
17688
17688
|
ref: scrollRef,
|
|
17689
17689
|
style: {
|
|
17690
|
-
flexBasis: "fit-content"
|
|
17690
|
+
flexBasis: "fit-content",
|
|
17691
|
+
scrollBehavior: "smooth"
|
|
17691
17692
|
},
|
|
17692
17693
|
className: "HOKKIEMOJIPICKER-emojidisplay overflow-y-scroll bg-[#131416] h-full w-full flex flex-wrap px-2 items-start justfy-start justify-self-start gap-y-0.5",
|
|
17693
17694
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
17694
17695
|
import_react7.Suspense,
|
|
17695
17696
|
{
|
|
17696
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "w-full h-full flex items-center justify-center
|
|
17697
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex flex-col items-center gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "animate-spin size-8 my-6 border-2 border-white/20 border-t-white/80 rounded-full" }) }) }),
|
|
17697
17698
|
children: emojis.map((category) => {
|
|
17698
17699
|
if (!category) return;
|
|
17699
17700
|
const categoryInfo = categoryData[category.name];
|
package/dist/index.js
CHANGED
|
@@ -17304,7 +17304,7 @@ function EmojiSelector({
|
|
|
17304
17304
|
const el = scrollRef.current;
|
|
17305
17305
|
if (!el) return;
|
|
17306
17306
|
e.preventDefault();
|
|
17307
|
-
el.
|
|
17307
|
+
el.scrollTop += e.deltaY;
|
|
17308
17308
|
}, []);
|
|
17309
17309
|
useEffect5(() => {
|
|
17310
17310
|
const el = scrollRef.current;
|
|
@@ -17383,13 +17383,14 @@ function EmojiSelector({
|
|
|
17383
17383
|
{
|
|
17384
17384
|
ref: scrollRef,
|
|
17385
17385
|
style: {
|
|
17386
|
-
flexBasis: "fit-content"
|
|
17386
|
+
flexBasis: "fit-content",
|
|
17387
|
+
scrollBehavior: "smooth"
|
|
17387
17388
|
},
|
|
17388
17389
|
className: "HOKKIEMOJIPICKER-emojidisplay overflow-y-scroll bg-[#131416] h-full w-full flex flex-wrap px-2 items-start justfy-start justify-self-start gap-y-0.5",
|
|
17389
17390
|
children: /* @__PURE__ */ jsx6(
|
|
17390
17391
|
Suspense,
|
|
17391
17392
|
{
|
|
17392
|
-
fallback: /* @__PURE__ */ jsx6("div", { className: "w-full h-full flex items-center justify-center
|
|
17393
|
+
fallback: /* @__PURE__ */ jsx6("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx6("div", { className: "flex flex-col items-center gap-3", children: /* @__PURE__ */ jsx6("div", { className: "animate-spin size-8 my-6 border-2 border-white/20 border-t-white/80 rounded-full" }) }) }),
|
|
17393
17394
|
children: emojis.map((category) => {
|
|
17394
17395
|
if (!category) return;
|
|
17395
17396
|
const categoryInfo = categoryData[category.name];
|