@lax-wp/design-system 0.11.20 → 0.11.21
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -9938,9 +9938,9 @@ const Mue = ({
|
|
|
9938
9938
|
if (h && typeof r == "object")
|
|
9939
9939
|
return r;
|
|
9940
9940
|
if (r || i?.toLowerCase() === "boolean" && r === 0 || i?.toLowerCase() === "currency" && Number(r) >= 0) {
|
|
9941
|
-
if ((r === !0 || r === "True") && !m)
|
|
9941
|
+
if ((r === !0 || r === "True") && !m && i?.toLowerCase() !== "choice")
|
|
9942
9942
|
return "Yes";
|
|
9943
|
-
if ((r === !1 || r === "False") && !m)
|
|
9943
|
+
if ((r === !1 || r === "False") && !m && i?.toLowerCase() !== "choice")
|
|
9944
9944
|
return "No";
|
|
9945
9945
|
if (i?.toLowerCase() === "url")
|
|
9946
9946
|
return /* @__PURE__ */ A("a", { href: r, className: "text-primary-600 truncate", children: Q(r) });
|
|
@@ -10124,7 +10124,7 @@ const Mue = ({
|
|
|
10124
10124
|
size: "extra-small",
|
|
10125
10125
|
className: "pt-0.5",
|
|
10126
10126
|
appearance: "body",
|
|
10127
|
-
children: /* @__PURE__ */ A("mark", { className: "rounded-md py-0.5 px-1 bg-error-100", children: /* @__PURE__ */ A("del", { children: f || i?.toLowerCase() === "boolean" && f === "0" ? f === "True" ? "Yes" : f === "False" ? "No" : i?.toLowerCase() === "boolean" ? I3(f) : i?.toLowerCase() === "currency" ? Za(f, s?.currency_code) : i?.toLowerCase() === "date" ? gi(f, {
|
|
10127
|
+
children: /* @__PURE__ */ A("mark", { className: "rounded-md py-0.5 px-1 bg-error-100", children: /* @__PURE__ */ A("del", { children: f || i?.toLowerCase() === "boolean" && f === "0" ? f === "True" && i?.toLowerCase() !== "choice" ? "Yes" : f === "False" && i?.toLowerCase() !== "choice" ? "No" : i?.toLowerCase() === "boolean" ? I3(f) : i?.toLowerCase() === "currency" ? Za(f, s?.currency_code) : i?.toLowerCase() === "date" ? gi(f, {
|
|
10128
10128
|
skipTimezone: !0,
|
|
10129
10129
|
withTime: !1
|
|
10130
10130
|
}) : i?.toLowerCase() === "datetime" ? gi(f, {
|