@starasia/admin 6.3.3 → 6.4.0
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.es.js
CHANGED
|
@@ -4027,11 +4027,9 @@ const Hi = (t) => {
|
|
|
4027
4027
|
children: Ii(t.defaultUrl || "") || ((r = t.fileSelected) == null ? void 0 : r.name)
|
|
4028
4028
|
}
|
|
4029
4029
|
),
|
|
4030
|
-
!t.defaultUrl && /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
4031
|
-
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children:
|
|
4032
|
-
|
|
4033
|
-
)}` }),
|
|
4034
|
-
/* @__PURE__ */ e(w, { name: "Dot", size: "xs" }),
|
|
4030
|
+
(!t.defaultUrl || t.fileSize || t.fileDate) && /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
4031
|
+
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: t.defaultUrl ? t.fileSize ?? "" : Ai(((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000") }),
|
|
4032
|
+
(t.defaultUrl ? !!(t.fileSize && t.fileDate) : !0) && /* @__PURE__ */ e(w, { name: "Dot", size: "xs" }),
|
|
4035
4033
|
/* @__PURE__ */ e(
|
|
4036
4034
|
v,
|
|
4037
4035
|
{
|
|
@@ -4050,20 +4048,13 @@ const Hi = (t) => {
|
|
|
4050
4048
|
T,
|
|
4051
4049
|
{
|
|
4052
4050
|
size: "xs",
|
|
4053
|
-
|
|
4051
|
+
variant: "tertiary",
|
|
4052
|
+
tone: "error",
|
|
4054
4053
|
type: "button",
|
|
4055
4054
|
onClick: (o) => {
|
|
4056
4055
|
o.stopPropagation(), t.handleOnDeleteFile();
|
|
4057
4056
|
},
|
|
4058
|
-
iconLeft: /* @__PURE__ */ e(
|
|
4059
|
-
w,
|
|
4060
|
-
{
|
|
4061
|
-
name: "Trash1",
|
|
4062
|
-
style: {
|
|
4063
|
-
color: "var(--sa-icon-error-selected)"
|
|
4064
|
-
}
|
|
4065
|
-
}
|
|
4066
|
-
)
|
|
4057
|
+
iconLeft: /* @__PURE__ */ e(w, { name: "Trash1" })
|
|
4067
4058
|
}
|
|
4068
4059
|
)
|
|
4069
4060
|
]
|
|
@@ -4110,6 +4101,7 @@ const Hi = (t) => {
|
|
|
4110
4101
|
{
|
|
4111
4102
|
fileSelected: r.fileSelected,
|
|
4112
4103
|
fileDate: r.fileDate,
|
|
4104
|
+
fileSize: r.fileSize,
|
|
4113
4105
|
handleOnDeleteFile: r.handleOnDeleteFile,
|
|
4114
4106
|
handleOnClickFile: o,
|
|
4115
4107
|
defaultUrl: r.defaultUrl
|