@leapdevuk/component-toolbox 0.0.124 → 0.0.125
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/CHANGELOG.md +6 -0
- package/dist/components/datepicker/utils.d.ts +1 -1
- package/dist/index.cjs.js +19 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8224,7 +8224,7 @@ const te = (e, r, t, n, a) => {
|
|
|
8224
8224
|
t && typeof e == "string" ? e.replace(" ", "T").replace("Z", "").concat("Z") : e,
|
|
8225
8225
|
`${r.formatLong.date({ width: "short" })}${n ? "" : o}`
|
|
8226
8226
|
) : "";
|
|
8227
|
-
}, i2 = (e, r
|
|
8227
|
+
}, i2 = (e, r) => {
|
|
8228
8228
|
if (!e)
|
|
8229
8229
|
return console.warn("formatReportDate called with null or undefined date."), "";
|
|
8230
8230
|
if (typeof e == "string" && e.includes("T")) {
|
|
@@ -8236,7 +8236,7 @@ const te = (e, r, t, n, a) => {
|
|
|
8236
8236
|
const t = e.split("-");
|
|
8237
8237
|
if (t.length !== 3 || t.some((n) => isNaN(Number(n))))
|
|
8238
8238
|
return console.warn(`Invalid date string format: ${e}`), "";
|
|
8239
|
-
r === "en-US" ? e = `${t[1]}-${t[2]}-${t[0]}` : e = `${t[2]}-${t[1]}-${t[0]}`;
|
|
8239
|
+
r.code === "en-US" ? e = `${t[1]}-${t[2]}-${t[0]}` : e = `${t[2]}-${t[1]}-${t[0]}`;
|
|
8240
8240
|
}
|
|
8241
8241
|
return e;
|
|
8242
8242
|
}, it = (e) => {
|