wafields 0.46.0 → 0.46.1
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/wafields.es.js
CHANGED
|
@@ -37542,18 +37542,18 @@ function FD({ className: e = "", onClick: t = Wr, icon: n, label: r }) {
|
|
|
37542
37542
|
children: n
|
|
37543
37543
|
});
|
|
37544
37544
|
}
|
|
37545
|
-
function ID({
|
|
37545
|
+
function ID({ label: e = "Message", isHighlighted: t = !1, onClick: n = Wr, className: r = "" }) {
|
|
37546
37546
|
return /* @__PURE__ */ x(Ho, {
|
|
37547
|
-
label:
|
|
37547
|
+
label: e,
|
|
37548
37548
|
icon: {
|
|
37549
37549
|
Svg: ka,
|
|
37550
37550
|
size: Mi.sm,
|
|
37551
37551
|
className: "fill-none text-blue-500"
|
|
37552
37552
|
},
|
|
37553
37553
|
labelClassName: "text-sm text-blue-500",
|
|
37554
|
-
onClick:
|
|
37555
|
-
className: Ur("gap-1 border border-blue-500 rounded-full",
|
|
37556
|
-
isHighlighted:
|
|
37554
|
+
onClick: n,
|
|
37555
|
+
className: Ur("gap-1 border border-blue-500 rounded-full", r),
|
|
37556
|
+
isHighlighted: t
|
|
37557
37557
|
});
|
|
37558
37558
|
}
|
|
37559
37559
|
var LD = "#4b5563", RD = "#f87171";
|
|
@@ -48896,15 +48896,15 @@ function IP({ onInvite: e, disabled: t, unsentEmails: n, errorMessage: r, classN
|
|
|
48896
48896
|
}
|
|
48897
48897
|
//#endregion
|
|
48898
48898
|
//#region src/common/message/MessageInput.tsx
|
|
48899
|
-
function LP({ onSend: e, disabled: t = !1, autoFocus: n = !1 }) {
|
|
48900
|
-
let [
|
|
48899
|
+
function LP({ onSend: e, disabled: t = !1, autoFocus: n = !1, initialContent: r = "" }) {
|
|
48900
|
+
let [i, a] = y(r);
|
|
48901
48901
|
return /* @__PURE__ */ S(oo, {
|
|
48902
48902
|
className: "w-full bg-white mt-5 border border-gray-300 rounded-2xl px-3 pt-2 pb-1 gap-1",
|
|
48903
48903
|
children: [/* @__PURE__ */ x(fs, {
|
|
48904
48904
|
className: "w-full",
|
|
48905
48905
|
placeholder: "Type a message...",
|
|
48906
|
-
text:
|
|
48907
|
-
onChange:
|
|
48906
|
+
text: i,
|
|
48907
|
+
onChange: a,
|
|
48908
48908
|
disabled: t,
|
|
48909
48909
|
autoFocus: n,
|
|
48910
48910
|
minRows: 2,
|
|
@@ -48913,39 +48913,43 @@ function LP({ onSend: e, disabled: t = !1, autoFocus: n = !1 }) {
|
|
|
48913
48913
|
className: "w-full justify-end",
|
|
48914
48914
|
children: /* @__PURE__ */ x(zo, {
|
|
48915
48915
|
onClick: () => {
|
|
48916
|
-
let n =
|
|
48917
|
-
!n || t || (
|
|
48916
|
+
let n = i.trim();
|
|
48917
|
+
!n || t || (a(""), e(n));
|
|
48918
48918
|
},
|
|
48919
|
-
isHighlighted: !!
|
|
48919
|
+
isHighlighted: !!i.trim() && !t
|
|
48920
48920
|
})
|
|
48921
48921
|
})]
|
|
48922
48922
|
});
|
|
48923
48923
|
}
|
|
48924
48924
|
//#endregion
|
|
48925
48925
|
//#region src/common/message/MessageSender.tsx
|
|
48926
|
-
function RP({ onSend: e, errorMessage: t, disabled: n }) {
|
|
48927
|
-
let [
|
|
48928
|
-
|
|
48926
|
+
function RP({ onSend: e, errorMessage: t, disabled: n, label: r = "Message", defaultContent: i = "" }) {
|
|
48927
|
+
let [a, o] = y(!1), [s, c] = y(!1), l = () => {
|
|
48928
|
+
o(!1), c(!1);
|
|
48929
48929
|
};
|
|
48930
48930
|
return m(() => {
|
|
48931
|
-
!
|
|
48931
|
+
!s || t || n || l();
|
|
48932
48932
|
}, [
|
|
48933
|
-
|
|
48933
|
+
s,
|
|
48934
48934
|
t,
|
|
48935
48935
|
n
|
|
48936
|
-
]), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(ID, {
|
|
48937
|
-
|
|
48938
|
-
|
|
48936
|
+
]), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(ID, {
|
|
48937
|
+
label: r,
|
|
48938
|
+
onClick: () => o(!0)
|
|
48939
|
+
}), /* @__PURE__ */ x(ko, {
|
|
48940
|
+
isOpen: a,
|
|
48941
|
+
onClose: l,
|
|
48939
48942
|
title: "",
|
|
48940
48943
|
isHeaderHidden: !0,
|
|
48941
48944
|
content: /* @__PURE__ */ S(oo, {
|
|
48942
48945
|
className: "gap-2 w-full",
|
|
48943
48946
|
children: [/* @__PURE__ */ x(LP, {
|
|
48944
48947
|
onSend: (t) => {
|
|
48945
|
-
e(t),
|
|
48948
|
+
e(t), c(!0);
|
|
48946
48949
|
},
|
|
48947
48950
|
disabled: n,
|
|
48948
|
-
autoFocus: !0
|
|
48951
|
+
autoFocus: !0,
|
|
48952
|
+
initialContent: i
|
|
48949
48953
|
}), t && /* @__PURE__ */ x(fm, { label: t })]
|
|
48950
48954
|
})
|
|
48951
48955
|
})] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wafields",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.1",
|
|
4
4
|
"main": "dist/wafields.cjs.js",
|
|
5
5
|
"module": "dist/wafields.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@emotion/react": "^11.14.0",
|
|
66
66
|
"@emotion/styled": "^11.14.0",
|
|
67
67
|
"path": "^0.12.7",
|
|
68
|
-
"wacomm": "^2.31.
|
|
68
|
+
"wacomm": "^2.31.2",
|
|
69
69
|
"wasvg": "^1.46.0",
|
|
70
70
|
"waujs": "^1.28.1",
|
|
71
71
|
"wenum": "^2.9.0"
|