@top-message/ui-lib 2.23.21 → 2.23.22
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
CHANGED
|
@@ -70015,7 +70015,7 @@ const bpt = (e) => {
|
|
|
70015
70015
|
y && !(Array.isArray(y) && !y.filter((E) => E).length) && /* @__PURE__ */ h("div", { className: V0.children, children: y })
|
|
70016
70016
|
] });
|
|
70017
70017
|
}
|
|
70018
|
-
), Fht = "
|
|
70018
|
+
), Fht = "_wrapper_1txog_1", Wht = "_thumbnail_1txog_6", Jht = "_document_1txog_17", Yht = "_image_1txog_21", qht = "_video_1txog_25", Kht = "_audio_1txog_29", Qht = "_archive_1txog_33", Uht = "_unknown_1txog_37", $ht = "_icon_1txog_41", _ht = "_previewImage_1txog_45", ebt = "_fileName_1txog_52", tbt = "_small_1txog_65", nbt = "_medium_1txog_69", rbt = "_large_1txog_73", abt = "_clickable_1txog_78", obt = "_disabled_1txog_94", ibt = "_removeButton_1txog_113", sbt = "_removeIcon_1txog_132", lbt = "_right_1txog_139", cbt = "_left_1txog_144", ubt = "_card_1txog_149", cr = {
|
|
70019
70019
|
wrapper: Fht,
|
|
70020
70020
|
thumbnail: Wht,
|
|
70021
70021
|
document: Jht,
|
|
@@ -70065,13 +70065,14 @@ const bpt = (e) => {
|
|
|
70065
70065
|
disabled: l = !1,
|
|
70066
70066
|
onRemove: c,
|
|
70067
70067
|
removeButtonPosition: f = "right",
|
|
70068
|
-
loading: v = !1
|
|
70068
|
+
loading: v = !1,
|
|
70069
|
+
plainView: d = !1
|
|
70069
70070
|
}) => {
|
|
70070
|
-
const
|
|
70071
|
+
const C = Lt(() => fbt(e), [e]), p = Lt(() => e === "image", [e]), m = Lt(() => i && p, [i, p]), g = () => {
|
|
70071
70072
|
!l && o && o();
|
|
70072
|
-
},
|
|
70073
|
-
|
|
70074
|
-
},
|
|
70073
|
+
}, b = (L) => {
|
|
70074
|
+
L.stopPropagation(), !l && c && c();
|
|
70075
|
+
}, y = Lt(
|
|
70075
70076
|
() => ({
|
|
70076
70077
|
small: 16,
|
|
70077
70078
|
medium: 24,
|
|
@@ -70079,7 +70080,7 @@ const bpt = (e) => {
|
|
|
70079
70080
|
xlarge: 48
|
|
70080
70081
|
})[n],
|
|
70081
70082
|
[n]
|
|
70082
|
-
),
|
|
70083
|
+
), w = Lt(
|
|
70083
70084
|
() => ({
|
|
70084
70085
|
small: 32,
|
|
70085
70086
|
medium: 48,
|
|
@@ -70087,19 +70088,19 @@ const bpt = (e) => {
|
|
|
70087
70088
|
xlarge: 96
|
|
70088
70089
|
})[n],
|
|
70089
70090
|
[n]
|
|
70090
|
-
),
|
|
70091
|
+
), M = m && !v ? /* @__PURE__ */ h(
|
|
70091
70092
|
s1e,
|
|
70092
70093
|
{
|
|
70093
70094
|
src: i,
|
|
70094
70095
|
className: cr.previewImage,
|
|
70095
70096
|
preview: !1,
|
|
70096
|
-
width:
|
|
70097
|
+
width: w
|
|
70097
70098
|
}
|
|
70098
70099
|
) : /* @__PURE__ */ h(
|
|
70099
70100
|
"div",
|
|
70100
70101
|
{
|
|
70101
70102
|
className: `${cr.thumbnail} ${cr[e] || ""}`,
|
|
70102
|
-
style: { width:
|
|
70103
|
+
style: { width: w, height: w },
|
|
70103
70104
|
children: v ? /* @__PURE__ */ h(
|
|
70104
70105
|
$dt,
|
|
70105
70106
|
{
|
|
@@ -70110,8 +70111,8 @@ const bpt = (e) => {
|
|
|
70110
70111
|
) : /* @__PURE__ */ h(
|
|
70111
70112
|
It,
|
|
70112
70113
|
{
|
|
70113
|
-
name:
|
|
70114
|
-
size:
|
|
70114
|
+
name: C,
|
|
70115
|
+
size: y,
|
|
70115
70116
|
className: cr.icon
|
|
70116
70117
|
}
|
|
70117
70118
|
)
|
|
@@ -70129,20 +70130,20 @@ const bpt = (e) => {
|
|
|
70129
70130
|
`,
|
|
70130
70131
|
title: t,
|
|
70131
70132
|
style: a,
|
|
70132
|
-
onClick:
|
|
70133
|
+
onClick: g,
|
|
70133
70134
|
children: [
|
|
70134
70135
|
c && /* @__PURE__ */ h(
|
|
70135
70136
|
$n,
|
|
70136
70137
|
{
|
|
70137
70138
|
className: `${cr.removeButton} ${cr[f]}`,
|
|
70138
|
-
onClick:
|
|
70139
|
+
onClick: b,
|
|
70139
70140
|
disabled: l,
|
|
70140
70141
|
type: "minimal",
|
|
70141
70142
|
size: "xsmall",
|
|
70142
70143
|
iconName: "dismiss"
|
|
70143
70144
|
}
|
|
70144
70145
|
),
|
|
70145
|
-
s && t ? /* @__PURE__ */ ye(
|
|
70146
|
+
s && t || !d ? /* @__PURE__ */ ye(
|
|
70146
70147
|
Hvt,
|
|
70147
70148
|
{
|
|
70148
70149
|
withEmptyHeader: !0,
|
|
@@ -70154,16 +70155,16 @@ const bpt = (e) => {
|
|
|
70154
70155
|
border: "1px solid var(--slate-300)"
|
|
70155
70156
|
},
|
|
70156
70157
|
bodyStyles: {
|
|
70157
|
-
padding: "var(--scale-1) var(--scale-2) var(--scale-1) var(--scale-1)",
|
|
70158
|
+
padding: t ? "var(--scale-1) var(--scale-2) var(--scale-1) var(--scale-1)" : "var(--scale-1half)",
|
|
70158
70159
|
marginTop: 0
|
|
70159
70160
|
},
|
|
70160
70161
|
className: cr.card,
|
|
70161
70162
|
children: [
|
|
70162
|
-
|
|
70163
|
-
/* @__PURE__ */ h("div", { className: cr.fileName, children: t })
|
|
70163
|
+
M,
|
|
70164
|
+
t && /* @__PURE__ */ h("div", { className: cr.fileName, children: t })
|
|
70164
70165
|
]
|
|
70165
70166
|
}
|
|
70166
|
-
) :
|
|
70167
|
+
) : M
|
|
70167
70168
|
]
|
|
70168
70169
|
}
|
|
70169
70170
|
);
|