koin.js 1.0.0 → 1.0.2
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.js +277 -277
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +2944 -0
- package/package.json +12 -3
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React5, { memo, useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
2
2
|
import { Play, Pause, RotateCcw, Rewind, Save, Download, Camera, Video, Circle, Monitor, ChevronDown, RefreshCw, HelpCircle, Maximize, Gamepad2, Joystick, Code, Power, Square, Keyboard, X, Palette, ChevronUp, Gauge, VolumeX, Volume1, Volume2, Loader2, Trophy, AlertTriangle, List, Settings, PauseCircle, Check, Clock, User, Copy, Lock, Zap, HardDrive, Trash2, Cpu, AlertCircle, FileCode, ExternalLink, EyeOff, Eye, Shield, CheckCircle, LogOut, Info, XCircle } from 'lucide-react';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { Nostalgist } from 'nostalgist';
|
|
@@ -974,7 +974,7 @@ var PlayerControls = memo(function PlayerControls2({
|
|
|
974
974
|
] });
|
|
975
975
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
976
976
|
/* @__PURE__ */ jsx(MobileControlDrawer_default, { systemColor, children: controlsContent }),
|
|
977
|
-
/* @__PURE__ */ jsx("div", { className: "hidden sm:flex w-full items-center justify-between gap-
|
|
977
|
+
/* @__PURE__ */ jsx("div", { className: "hidden sm:flex w-full items-center justify-between gap-2 px-4 py-2 bg-black/80 backdrop-blur-sm border-t border-white/10 shrink-0 overflow-x-auto", children: controlsContent })
|
|
978
978
|
] });
|
|
979
979
|
});
|
|
980
980
|
var PlayerControls_default = PlayerControls;
|
|
@@ -2037,7 +2037,7 @@ function getButtonStyles(buttonType, isPressed) {
|
|
|
2037
2037
|
};
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
|
-
var VirtualButton =
|
|
2040
|
+
var VirtualButton = React5.memo(function VirtualButton2({
|
|
2041
2041
|
config,
|
|
2042
2042
|
isPressed,
|
|
2043
2043
|
onPress,
|
|
@@ -2751,7 +2751,7 @@ function dispatchKeyboardEvent(type, code) {
|
|
|
2751
2751
|
canvas.dispatchEvent(event);
|
|
2752
2752
|
return true;
|
|
2753
2753
|
}
|
|
2754
|
-
var Dpad =
|
|
2754
|
+
var Dpad = React5.memo(function Dpad2({
|
|
2755
2755
|
size,
|
|
2756
2756
|
x,
|
|
2757
2757
|
y,
|
|
@@ -4003,7 +4003,7 @@ function CheatModal({
|
|
|
4003
4003
|
onToggle,
|
|
4004
4004
|
onClose
|
|
4005
4005
|
}) {
|
|
4006
|
-
const [copiedId, setCopiedId] =
|
|
4006
|
+
const [copiedId, setCopiedId] = React5.useState(null);
|
|
4007
4007
|
if (!isOpen) return null;
|
|
4008
4008
|
const handleCopy = async (code, id) => {
|
|
4009
4009
|
await navigator.clipboard.writeText(code);
|
|
@@ -7671,7 +7671,7 @@ var GamePlayer = memo(function GamePlayer2(props) {
|
|
|
7671
7671
|
onSelectBios: props.onSelectBios ? handleBiosSelection : void 0
|
|
7672
7672
|
}
|
|
7673
7673
|
),
|
|
7674
|
-
/* @__PURE__ */ jsx(
|
|
7674
|
+
isFullscreen2 && /* @__PURE__ */ jsx(
|
|
7675
7675
|
VirtualController,
|
|
7676
7676
|
{
|
|
7677
7677
|
system,
|