dirk-cfx-react 1.1.69 → 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 +3 -4
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +3 -4
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4832,7 +4832,7 @@ function ConfigPanel(props) {
|
|
|
4832
4832
|
}
|
|
4833
4833
|
) });
|
|
4834
4834
|
}
|
|
4835
|
-
function LazyImage({ src,
|
|
4835
|
+
function LazyImage({ src, style }) {
|
|
4836
4836
|
const [visible, setVisible] = useState(false);
|
|
4837
4837
|
const ref = useRef(null);
|
|
4838
4838
|
useEffect(() => {
|
|
@@ -4845,7 +4845,7 @@ function LazyImage({ src, alt, style }) {
|
|
|
4845
4845
|
if (ref.current) observer.observe(ref.current);
|
|
4846
4846
|
return () => observer.disconnect();
|
|
4847
4847
|
}, []);
|
|
4848
|
-
return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image$1, { src,
|
|
4848
|
+
return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image$1, { src, fit: "contain", style }) });
|
|
4849
4849
|
}
|
|
4850
4850
|
function SelectItem(props) {
|
|
4851
4851
|
const invItems = useItems();
|
|
@@ -4873,12 +4873,12 @@ function SelectItem(props) {
|
|
|
4873
4873
|
searchable: true,
|
|
4874
4874
|
comboboxProps: { withinPortal: true, zIndex: 2e3 },
|
|
4875
4875
|
leftSectionWidth: "4vh",
|
|
4876
|
+
leftSectionPointerEvents: "none",
|
|
4876
4877
|
leftSection: props.value ? /* @__PURE__ */ jsx(
|
|
4877
4878
|
Image$1,
|
|
4878
4879
|
{
|
|
4879
4880
|
fallbackSrc: "/placeholder.png",
|
|
4880
4881
|
src: invItems[props.value]?.image || "",
|
|
4881
|
-
alt: props.value,
|
|
4882
4882
|
fit: "contain",
|
|
4883
4883
|
maw: "4vh",
|
|
4884
4884
|
style: { aspectRatio: "1 / 1" }
|
|
@@ -4890,7 +4890,6 @@ function SelectItem(props) {
|
|
|
4890
4890
|
LazyImage,
|
|
4891
4891
|
{
|
|
4892
4892
|
src: invItems[item.option.value]?.image || "",
|
|
4893
|
-
alt: item.option.label,
|
|
4894
4893
|
style: { aspectRatio: "1 / 1" }
|
|
4895
4894
|
}
|
|
4896
4895
|
),
|