@schema-forms-data/react 4.0.3 → 4.0.4
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 +2 -2
- package/dist/index.js +70 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -15252,7 +15252,41 @@ const Nd = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(
|
|
|
15252
15252
|
}, [s]);
|
|
15253
15253
|
if (m.status === "done" || m.status === "idle" && w) {
|
|
15254
15254
|
const $ = m.status === "done" ? m.fileName : "Arquivo enviado", E = m.status === "done" ? m.size : null;
|
|
15255
|
-
return /* @__PURE__ */ g("div", { className: "flex items-center justify-between rounded-lg border border-
|
|
15255
|
+
return /* @__PURE__ */ g("div", { className: "flex items-center justify-between rounded-lg border border-green-500 bg-green-500/5 px-4 py-3 gap-2", children: [
|
|
15256
|
+
/* @__PURE__ */ g(
|
|
15257
|
+
"svg",
|
|
15258
|
+
{
|
|
15259
|
+
className: "shrink-0 text-green-500",
|
|
15260
|
+
width: "20",
|
|
15261
|
+
height: "20",
|
|
15262
|
+
viewBox: "0 0 20 20",
|
|
15263
|
+
fill: "none",
|
|
15264
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15265
|
+
"aria-hidden": "true",
|
|
15266
|
+
children: [
|
|
15267
|
+
/* @__PURE__ */ l(
|
|
15268
|
+
"rect",
|
|
15269
|
+
{
|
|
15270
|
+
width: "20",
|
|
15271
|
+
height: "20",
|
|
15272
|
+
rx: "4",
|
|
15273
|
+
fill: "currentColor",
|
|
15274
|
+
fillOpacity: "0.15"
|
|
15275
|
+
}
|
|
15276
|
+
),
|
|
15277
|
+
/* @__PURE__ */ l(
|
|
15278
|
+
"path",
|
|
15279
|
+
{
|
|
15280
|
+
d: "M5 10.5L8.5 14L15 7",
|
|
15281
|
+
stroke: "currentColor",
|
|
15282
|
+
strokeWidth: "2",
|
|
15283
|
+
strokeLinecap: "round",
|
|
15284
|
+
strokeLinejoin: "round"
|
|
15285
|
+
}
|
|
15286
|
+
)
|
|
15287
|
+
]
|
|
15288
|
+
}
|
|
15289
|
+
),
|
|
15256
15290
|
/* @__PURE__ */ l("span", { className: "text-sm font-medium truncate flex-1", children: $ }),
|
|
15257
15291
|
E !== null && /* @__PURE__ */ l("span", { className: "text-xs text-muted-foreground shrink-0", children: Nd(E) }),
|
|
15258
15292
|
!r && /* @__PURE__ */ l(
|
|
@@ -29632,7 +29666,41 @@ const vu = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(
|
|
|
29632
29666
|
}, [s]);
|
|
29633
29667
|
if (m.status === "done" || m.status === "idle" && w) {
|
|
29634
29668
|
const $ = m.status === "done" ? m.fileName : "Arquivo enviado", E = m.status === "done" ? m.size : null;
|
|
29635
|
-
return /* @__PURE__ */ g("div", { className: "flex items-center justify-between rounded-lg border border-
|
|
29669
|
+
return /* @__PURE__ */ g("div", { className: "flex items-center justify-between rounded-lg border border-green-500 bg-green-500/5 px-4 py-3 gap-2", children: [
|
|
29670
|
+
/* @__PURE__ */ g(
|
|
29671
|
+
"svg",
|
|
29672
|
+
{
|
|
29673
|
+
className: "shrink-0 text-green-500",
|
|
29674
|
+
width: "20",
|
|
29675
|
+
height: "20",
|
|
29676
|
+
viewBox: "0 0 20 20",
|
|
29677
|
+
fill: "none",
|
|
29678
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29679
|
+
"aria-hidden": "true",
|
|
29680
|
+
children: [
|
|
29681
|
+
/* @__PURE__ */ l(
|
|
29682
|
+
"rect",
|
|
29683
|
+
{
|
|
29684
|
+
width: "20",
|
|
29685
|
+
height: "20",
|
|
29686
|
+
rx: "4",
|
|
29687
|
+
fill: "currentColor",
|
|
29688
|
+
fillOpacity: "0.15"
|
|
29689
|
+
}
|
|
29690
|
+
),
|
|
29691
|
+
/* @__PURE__ */ l(
|
|
29692
|
+
"path",
|
|
29693
|
+
{
|
|
29694
|
+
d: "M5 10.5L8.5 14L15 7",
|
|
29695
|
+
stroke: "currentColor",
|
|
29696
|
+
strokeWidth: "2",
|
|
29697
|
+
strokeLinecap: "round",
|
|
29698
|
+
strokeLinejoin: "round"
|
|
29699
|
+
}
|
|
29700
|
+
)
|
|
29701
|
+
]
|
|
29702
|
+
}
|
|
29703
|
+
),
|
|
29636
29704
|
/* @__PURE__ */ l("span", { className: "text-sm font-medium truncate flex-1", children: $ }),
|
|
29637
29705
|
E !== null && /* @__PURE__ */ l("span", { className: "text-xs text-muted-foreground shrink-0", children: vu(E) }),
|
|
29638
29706
|
!r && /* @__PURE__ */ l(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schema-forms-data/react",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "All-in-one re-export: @schema-forms-data/core + templates + renderer + builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SchemaForms",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"lucide-react": "^0.400.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@schema-forms-data/
|
|
47
|
-
"@schema-forms-data/
|
|
48
|
-
"@schema-forms-data/
|
|
49
|
-
"@schema-forms-data/
|
|
46
|
+
"@schema-forms-data/renderer": "4.0.4",
|
|
47
|
+
"@schema-forms-data/core": "4.0.4",
|
|
48
|
+
"@schema-forms-data/builder": "4.0.4",
|
|
49
|
+
"@schema-forms-data/templates": "4.0.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^18.0.0",
|