dirk-cfx-react 1.1.68 → 1.1.70
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/components/index.cjs +7 -5
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +7 -5
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2349,7 +2349,7 @@ var GTA_CONTROLS = [
|
|
|
2349
2349
|
// ── Misc ───────────────────────────────────────────────────────────────────
|
|
2350
2350
|
{ id: 51, symbol: "INPUT_CONTEXT", label: "Context (E)", defaultKey: "E", group: "Misc" },
|
|
2351
2351
|
{ id: 52, symbol: "INPUT_CONTEXT_SECONDARY", label: "Context Secondary", defaultKey: "Q", group: "Misc" },
|
|
2352
|
-
{ id:
|
|
2352
|
+
{ id: 19, symbol: "INPUT_CHARACTER_WHEEL", label: "Character Wheel", defaultKey: "Left Alt", group: "Misc" },
|
|
2353
2353
|
{ id: 105, symbol: "INPUT_HUD_SPECIAL", label: "Special Ability", defaultKey: "Caps Lock", group: "Misc" },
|
|
2354
2354
|
{ id: 121, symbol: "INPUT_MULTIPLAYER_INFO", label: "Player List", defaultKey: "Z", group: "Misc" },
|
|
2355
2355
|
{ id: 170, symbol: "INPUT_SAVE_REPLAY_CLIP", label: "Save Replay Clip", defaultKey: "F1", group: "Misc" },
|
|
@@ -4841,7 +4841,7 @@ function ConfigPanel(props) {
|
|
|
4841
4841
|
}
|
|
4842
4842
|
) });
|
|
4843
4843
|
}
|
|
4844
|
-
function LazyImage({ src,
|
|
4844
|
+
function LazyImage({ src, style }) {
|
|
4845
4845
|
const [visible, setVisible] = React6.useState(false);
|
|
4846
4846
|
const ref = React6.useRef(null);
|
|
4847
4847
|
React6.useEffect(() => {
|
|
@@ -4854,7 +4854,7 @@ function LazyImage({ src, alt, style }) {
|
|
|
4854
4854
|
if (ref.current) observer.observe(ref.current);
|
|
4855
4855
|
return () => observer.disconnect();
|
|
4856
4856
|
}, []);
|
|
4857
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsxRuntime.jsx(core.Image, { src,
|
|
4857
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsxRuntime.jsx(core.Image, { src, fit: "contain", style }) });
|
|
4858
4858
|
}
|
|
4859
4859
|
function SelectItem(props) {
|
|
4860
4860
|
const invItems = useItems();
|
|
@@ -4882,12 +4882,12 @@ function SelectItem(props) {
|
|
|
4882
4882
|
searchable: true,
|
|
4883
4883
|
comboboxProps: { withinPortal: true, zIndex: 2e3 },
|
|
4884
4884
|
leftSectionWidth: "4vh",
|
|
4885
|
+
leftSectionPointerEvents: "none",
|
|
4885
4886
|
leftSection: props.value ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4886
4887
|
core.Image,
|
|
4887
4888
|
{
|
|
4888
4889
|
fallbackSrc: "/placeholder.png",
|
|
4889
4890
|
src: invItems[props.value]?.image || "",
|
|
4890
|
-
alt: props.value,
|
|
4891
4891
|
fit: "contain",
|
|
4892
4892
|
maw: "4vh",
|
|
4893
4893
|
style: { aspectRatio: "1 / 1" }
|
|
@@ -4899,7 +4899,6 @@ function SelectItem(props) {
|
|
|
4899
4899
|
LazyImage,
|
|
4900
4900
|
{
|
|
4901
4901
|
src: invItems[item.option.value]?.image || "",
|
|
4902
|
-
alt: item.option.label,
|
|
4903
4902
|
style: { aspectRatio: "1 / 1" }
|
|
4904
4903
|
}
|
|
4905
4904
|
),
|
|
@@ -5288,7 +5287,10 @@ var FiveMKeyBindInput = Object.assign(Root, {
|
|
|
5288
5287
|
});
|
|
5289
5288
|
function buildGroupedData(extraIds = []) {
|
|
5290
5289
|
const groups = /* @__PURE__ */ new Map();
|
|
5290
|
+
const seen = /* @__PURE__ */ new Set();
|
|
5291
5291
|
for (const c of GTA_CONTROLS) {
|
|
5292
|
+
if (seen.has(c.id)) continue;
|
|
5293
|
+
seen.add(c.id);
|
|
5292
5294
|
if (!groups.has(c.group)) groups.set(c.group, []);
|
|
5293
5295
|
groups.get(c.group).push(c);
|
|
5294
5296
|
}
|