@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.mjs
CHANGED
|
@@ -3528,7 +3528,25 @@ var InputDynamic = ({
|
|
|
3528
3528
|
{
|
|
3529
3529
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
3530
3530
|
children: [
|
|
3531
|
-
options && options.length > 0 ? option.flag ? option.flag.startsWith("http") ? /* @__PURE__ */ jsx(
|
|
3531
|
+
options && options.length > 0 ? option.flag ? option.flag.startsWith("http") ? /* @__PURE__ */ jsx(
|
|
3532
|
+
"img",
|
|
3533
|
+
{
|
|
3534
|
+
alt: option.label,
|
|
3535
|
+
src: option.flag,
|
|
3536
|
+
height: 20,
|
|
3537
|
+
width: 20,
|
|
3538
|
+
style: { objectFit: "contain" },
|
|
3539
|
+
onError: (e) => {
|
|
3540
|
+
const target = e.currentTarget;
|
|
3541
|
+
target.src = "/assets/images/helper/error.svg";
|
|
3542
|
+
target.style.objectFit = "fill";
|
|
3543
|
+
target.style.scale = "0.7";
|
|
3544
|
+
if (target.parentElement) {
|
|
3545
|
+
target.parentElement.style.backgroundColor = tokens.colorNeutralStroke1;
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
) : /* @__PURE__ */ jsx(Icon, { icon: option.flag, width: 20, height: 20 }) : null : option.flag ? /* @__PURE__ */ jsx(Icon, { icon: option.flag, width: 20, height: 20 }) : null,
|
|
3532
3550
|
/* @__PURE__ */ jsx("span", { children: option.label })
|
|
3533
3551
|
]
|
|
3534
3552
|
}
|