@asdp/ferryui 0.1.22-dev.9197 → 0.1.22-dev.9201
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 +19 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3537,7 +3537,25 @@ var InputDynamic = ({
|
|
|
3537
3537
|
{
|
|
3538
3538
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
3539
3539
|
children: [
|
|
3540
|
-
options && options.length > 0 ? option.flag ? option.flag.startsWith("http") ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3540
|
+
options && options.length > 0 ? option.flag ? option.flag.startsWith("http") ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3541
|
+
"img",
|
|
3542
|
+
{
|
|
3543
|
+
alt: option.label,
|
|
3544
|
+
src: option.flag,
|
|
3545
|
+
height: 20,
|
|
3546
|
+
width: 20,
|
|
3547
|
+
style: { objectFit: "contain" },
|
|
3548
|
+
onError: (e) => {
|
|
3549
|
+
const target = e.currentTarget;
|
|
3550
|
+
target.src = "/assets/images/helper/error.svg";
|
|
3551
|
+
target.style.objectFit = "fill";
|
|
3552
|
+
target.style.scale = "0.7";
|
|
3553
|
+
if (target.parentElement) {
|
|
3554
|
+
target.parentElement.style.backgroundColor = reactComponents.tokens.colorNeutralStroke1;
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3558
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { icon: option.flag, width: 20, height: 20 }) : null : option.flag ? /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { icon: option.flag, width: 20, height: 20 }) : null,
|
|
3541
3559
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: option.label })
|
|
3542
3560
|
]
|
|
3543
3561
|
}
|