@appquality/unguess-design-system 3.1.88-beta-attachments → 3.1.89-beta-attachments
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/build/index.js +370 -299
- package/build/stories/buttons/button/index.stories.d.ts +0 -1
- package/build/stories/buttons/utils.d.ts +39 -39
- package/build/stories/chat/_types.d.ts +2 -1
- package/build/stories/chat/context/chatContext.d.ts +1 -0
- package/build/stories/chat/parts/ThumbnailContainer/DeleteThumbnailX.d.ts +1 -2
- package/build/stories/chat/parts/ThumbnailContainer/ImageThumbnail.d.ts +11 -0
- package/build/stories/chat/parts/ThumbnailContainer/VideoThumbnail.d.ts +11 -0
- package/build/stories/dropdowns/select/index.stories.d.ts +0 -1
- package/build/stories/editor/index.stories.d.ts +0 -1
- package/package.json +1 -1
- package/build/stories/chat/parts/ThumbnailContainer/Thumbnail.d.ts +0 -14
- package/yarn-error.log +0 -17994
package/build/index.js
CHANGED
|
@@ -37,13 +37,13 @@ var Mention = require('@tiptap/extension-mention');
|
|
|
37
37
|
var tippy = require('tippy.js');
|
|
38
38
|
var Image$2 = require('@tiptap/extension-image');
|
|
39
39
|
var Dropcursor = require('@tiptap/extension-dropcursor');
|
|
40
|
+
var reactGrid = require('@zendeskgarden/react-grid');
|
|
40
41
|
var reactModals = require('@zendeskgarden/react-modals');
|
|
41
42
|
var SlickSlider = require('react-slick');
|
|
42
43
|
var Video = require('@appquality/stream-player');
|
|
43
44
|
var containerUtilities = require('@zendeskgarden/container-utilities');
|
|
44
45
|
var reactColorpickers = require('@zendeskgarden/react-colorpickers');
|
|
45
46
|
var reactDropdowns = require('@zendeskgarden/react-dropdowns');
|
|
46
|
-
var reactGrid = require('@zendeskgarden/react-grid');
|
|
47
47
|
var formik = require('formik');
|
|
48
48
|
var reactChrome = require('@zendeskgarden/react-chrome');
|
|
49
49
|
var reactPagination = require('@zendeskgarden/react-pagination');
|
|
@@ -841,48 +841,48 @@ Tag.Avatar = StyledAvatar;
|
|
|
841
841
|
Tag.Close = StyledClose;
|
|
842
842
|
Tag.SecondaryText = StyledSpan;
|
|
843
843
|
|
|
844
|
-
var _path$
|
|
845
|
-
function _extends$
|
|
846
|
-
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
844
|
+
var _path$F;
|
|
845
|
+
function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
|
|
846
|
+
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
847
847
|
width: 24,
|
|
848
848
|
height: 24,
|
|
849
849
|
viewBox: "0 0 24 24",
|
|
850
850
|
fill: "none",
|
|
851
851
|
xmlns: "http://www.w3.org/2000/svg"
|
|
852
|
-
}, props), _path$
|
|
852
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
853
853
|
d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z",
|
|
854
854
|
fill: "#E80C7A"
|
|
855
855
|
})));
|
|
856
856
|
|
|
857
|
-
var _path$
|
|
858
|
-
function _extends$
|
|
859
|
-
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
857
|
+
var _path$E;
|
|
858
|
+
function _extends$Q() { _extends$Q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Q.apply(this, arguments); }
|
|
859
|
+
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
860
860
|
width: 24,
|
|
861
861
|
height: 24,
|
|
862
862
|
viewBox: "0 0 24 24",
|
|
863
863
|
fill: "none",
|
|
864
864
|
xmlns: "http://www.w3.org/2000/svg"
|
|
865
|
-
}, props), _path$
|
|
865
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
866
866
|
d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
|
|
867
867
|
fill: "#FFCD1A"
|
|
868
868
|
})));
|
|
869
869
|
|
|
870
|
-
var _path$
|
|
871
|
-
function _extends$
|
|
872
|
-
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
870
|
+
var _path$D;
|
|
871
|
+
function _extends$P() { _extends$P = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$P.apply(this, arguments); }
|
|
872
|
+
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
873
873
|
width: 24,
|
|
874
874
|
height: 24,
|
|
875
875
|
viewBox: "0 0 24 24",
|
|
876
876
|
fill: "none",
|
|
877
877
|
xmlns: "http://www.w3.org/2000/svg"
|
|
878
|
-
}, props), _path$
|
|
878
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
879
879
|
d: "M11.9993 7.32625L18.3893 17.5563H5.60929L11.9993 7.32625ZM11.1493 4.91625L2.94929 18.0262C2.53929 18.6962 3.01929 19.5563 3.79929 19.5563H20.1993C20.9893 19.5563 21.4593 18.6962 21.0493 18.0262L12.8493 4.91625C12.4593 4.28625 11.5393 4.28625 11.1493 4.91625Z",
|
|
880
880
|
fill: "#7B0DFF"
|
|
881
881
|
})));
|
|
882
882
|
|
|
883
|
-
var _rect$4, _path$
|
|
884
|
-
function _extends$
|
|
885
|
-
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
883
|
+
var _rect$4, _path$C, _path2$c, _path3$4;
|
|
884
|
+
function _extends$O() { _extends$O = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$O.apply(this, arguments); }
|
|
885
|
+
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
886
886
|
width: 24,
|
|
887
887
|
height: 24,
|
|
888
888
|
viewBox: "0 0 24 24",
|
|
@@ -893,10 +893,10 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
893
893
|
height: 24,
|
|
894
894
|
rx: 12,
|
|
895
895
|
fill: "#F6F6F8"
|
|
896
|
-
})), _path$
|
|
896
|
+
})), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
897
897
|
d: "M20.6953 5.73905C21.0148 5.41953 21.0148 4.90149 20.6953 4.58197C20.3758 4.26245 19.8577 4.26245 19.5382 4.58197L11.88 12.2402L10.0849 9.95981C9.80539 9.60476 9.29098 9.54352 8.93593 9.82303C8.58088 10.1025 8.51963 10.6169 8.79914 10.972L11.1642 13.9763C11.3089 14.16 11.5252 14.2731 11.7586 14.2869C11.9921 14.3008 12.2203 14.2141 12.3856 14.0487L20.6953 5.73905Z",
|
|
898
898
|
fill: "#50BF95"
|
|
899
|
-
})), _path2$
|
|
899
|
+
})), _path2$c || (_path2$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
900
900
|
d: "M3 12C3 7.02944 7.02944 3 12 3C13.3602 3 14.6521 3.3023 15.8102 3.84415C16.2195 4.03565 16.396 4.52268 16.2045 4.93196C16.013 5.34125 15.526 5.5178 15.1167 5.3263C14.1712 4.88391 13.1156 4.63636 12 4.63636C7.93318 4.63636 4.63636 7.93318 4.63636 12C4.63636 16.0668 7.93318 19.3636 12 19.3636C16.0668 19.3636 19.3636 16.0668 19.3636 12C19.3636 11.3631 19.283 10.7462 19.1317 10.1585C19.0191 9.72084 19.2826 9.27479 19.7202 9.16218C20.1578 9.04957 20.6038 9.31303 20.7165 9.75064C20.9017 10.4705 21 11.2243 21 12C21 16.9705 16.9705 21 12 21C7.02944 21 3 16.9705 3 12Z",
|
|
901
901
|
fill: "#50BF95"
|
|
902
902
|
})), _path3$4 || (_path3$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -904,9 +904,9 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
904
904
|
fill: "#007345"
|
|
905
905
|
})));
|
|
906
906
|
|
|
907
|
-
var _rect$3, _path$
|
|
908
|
-
function _extends$
|
|
909
|
-
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
907
|
+
var _rect$3, _path$B, _path2$b;
|
|
908
|
+
function _extends$N() { _extends$N = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$N.apply(this, arguments); }
|
|
909
|
+
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
910
910
|
width: 24,
|
|
911
911
|
height: 24,
|
|
912
912
|
viewBox: "0 0 24 24",
|
|
@@ -917,21 +917,21 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
917
917
|
height: 24,
|
|
918
918
|
rx: 12,
|
|
919
919
|
fill: "#F6F6F8"
|
|
920
|
-
})), _path$
|
|
920
|
+
})), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
921
921
|
fillRule: "evenodd",
|
|
922
922
|
clipRule: "evenodd",
|
|
923
923
|
d: "M13.55 19.0875C14.25 19.7875 15.1063 20.1375 16.1188 20.1375C17.1313 20.1375 17.9875 19.7875 18.6875 19.0875C19.3875 18.3875 19.7375 17.5312 19.7375 16.5187C19.7375 15.5062 19.3875 14.65 18.6875 13.95C17.9875 13.25 17.1313 12.9 16.1188 12.9C15.1063 12.9 14.25 13.25 13.55 13.95C12.85 14.65 12.5 15.5062 12.5 16.5187C12.5 17.5312 12.85 18.3875 13.55 19.0875ZM17.5062 18.2812C17.4187 18.2812 17.3375 18.25 17.2625 18.1875L15.7438 16.7812C15.6813 16.6687 15.65 16.6 15.65 16.575V14.55C15.65 14.4375 15.6875 14.3437 15.7625 14.2687C15.8375 14.1937 15.9313 14.1562 16.0438 14.1562C16.1563 14.1562 16.25 14.1937 16.325 14.2687C16.4 14.3437 16.4375 14.4375 16.4375 14.55V16.4813L17.7313 17.6625C17.8063 17.725 17.8469 17.8062 17.8531 17.9062C17.8594 18.0063 17.825 18.0938 17.75 18.1688C17.675 18.2438 17.5937 18.2812 17.5062 18.2812Z",
|
|
924
924
|
fill: "#D1820A"
|
|
925
|
-
})), _path2$
|
|
925
|
+
})), _path2$b || (_path2$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
926
926
|
fillRule: "evenodd",
|
|
927
927
|
clipRule: "evenodd",
|
|
928
928
|
d: "M6.125 19.5C5.8125 19.5 5.54688 19.3906 5.32812 19.1719C5.10938 18.9531 5 18.6875 5 18.375V10.2375C5 9.925 5.10938 9.65937 5.32812 9.44062C5.54688 9.22187 5.8125 9.1125 6.125 9.1125H7.4375V7.36875C7.4375 6.36875 7.78437 5.51562 8.47812 4.80937C9.17188 4.10312 10.0125 3.75 11 3.75C11.9875 3.75 12.8281 4.10312 13.5219 4.80937C14.2156 5.51562 14.5625 6.36875 14.5625 7.36875V9.1125H15.875C16.1875 9.1125 16.4531 9.22187 16.6719 9.44062C16.8906 9.65937 17 9.925 17 10.2375V11.8687C16.8125 11.8187 16.625 11.7875 16.4375 11.775C16.25 11.7625 16.0625 11.7625 15.875 11.775C14.6 11.825 13.5312 12.3094 12.6688 13.2281C11.8063 14.1469 11.375 15.2437 11.375 16.5187C11.375 17.0687 11.4688 17.5969 11.6562 18.1031C11.8438 18.6094 12.1063 19.075 12.4438 19.5H6.125ZM13.4375 9.1125H8.5625V7.36875C8.5625 6.68125 8.8 6.09375 9.275 5.60625C9.75 5.11875 10.325 4.875 11 4.875C11.675 4.875 12.25 5.11875 12.725 5.60625C13.2 6.09375 13.4375 6.68125 13.4375 7.36875V9.1125Z",
|
|
929
929
|
fill: "#F4AC1A"
|
|
930
930
|
})));
|
|
931
931
|
|
|
932
|
-
var _rect$2, _path$
|
|
933
|
-
function _extends$
|
|
934
|
-
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
932
|
+
var _rect$2, _path$A, _path2$a;
|
|
933
|
+
function _extends$M() { _extends$M = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$M.apply(this, arguments); }
|
|
934
|
+
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
935
935
|
width: 24,
|
|
936
936
|
height: 24,
|
|
937
937
|
viewBox: "0 0 24 24",
|
|
@@ -942,13 +942,13 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
942
942
|
height: 24,
|
|
943
943
|
rx: 12,
|
|
944
944
|
fill: "#F6F6F8"
|
|
945
|
-
})), _path$
|
|
945
|
+
})), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
946
946
|
d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
|
|
947
947
|
stroke: "#024780",
|
|
948
948
|
strokeWidth: 1.5,
|
|
949
949
|
strokeLinecap: "round",
|
|
950
950
|
strokeLinejoin: "round"
|
|
951
|
-
})), _path2$
|
|
951
|
+
})), _path2$a || (_path2$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
952
952
|
d: "M15.4918 4.52347C14.4312 4.02725 13.2477 3.75003 11.9995 3.75003C7.44316 3.75003 3.74951 7.44368 3.74951 12C3.74951 16.5564 7.44316 20.25 11.9995 20.25C16.5558 20.25 20.2495 16.5564 20.2495 12C20.2495 11.2878 20.1593 10.5968 19.9896 9.93753",
|
|
953
953
|
stroke: "#53AFFA",
|
|
954
954
|
strokeWidth: 1.5,
|
|
@@ -956,9 +956,9 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
956
956
|
strokeLinejoin: "round"
|
|
957
957
|
})));
|
|
958
958
|
|
|
959
|
-
var _rect$1, _path$
|
|
960
|
-
function _extends$
|
|
961
|
-
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
959
|
+
var _rect$1, _path$z, _path2$9, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
|
|
960
|
+
function _extends$L() { _extends$L = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$L.apply(this, arguments); }
|
|
961
|
+
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
962
962
|
width: 24,
|
|
963
963
|
height: 24,
|
|
964
964
|
viewBox: "0 0 24 24",
|
|
@@ -969,10 +969,10 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
969
969
|
height: 24,
|
|
970
970
|
rx: 12,
|
|
971
971
|
fill: "#F6F6F8"
|
|
972
|
-
})), _path$
|
|
972
|
+
})), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
973
973
|
d: "M13.059 16.7647C13.059 16.1799 12.585 15.7059 12.0002 15.7059C11.4154 15.7059 10.9414 16.1799 10.9414 16.7647V19.9412C10.9414 20.5259 11.4154 21 12.0002 21C12.585 21 13.059 20.5259 13.059 19.9412V16.7647Z",
|
|
974
974
|
fill: "#D1820A"
|
|
975
|
-
})), _path2$
|
|
975
|
+
})), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
976
976
|
d: "M16.1149 14.6183C15.7014 14.2048 15.031 14.2048 14.6175 14.6183C14.204 15.0318 14.204 15.7022 14.6175 16.1157L16.8649 18.3631C17.2783 18.7766 17.9488 18.7766 18.3623 18.3631C18.7757 17.9496 18.7757 17.2792 18.3623 16.8657L16.1149 14.6183Z",
|
|
977
977
|
fill: "#D1820A"
|
|
978
978
|
})), _path3$3 || (_path3$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1001,9 +1001,9 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
1001
1001
|
fill: "#FFB65A"
|
|
1002
1002
|
})));
|
|
1003
1003
|
|
|
1004
|
-
var _g$b, _path$
|
|
1005
|
-
function _extends$
|
|
1006
|
-
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1004
|
+
var _g$b, _path$y, _path2$8, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
1005
|
+
function _extends$K() { _extends$K = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$K.apply(this, arguments); }
|
|
1006
|
+
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
1007
1007
|
width: 24,
|
|
1008
1008
|
height: 24,
|
|
1009
1009
|
viewBox: "0 0 24 24",
|
|
@@ -1015,11 +1015,11 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1015
1015
|
opacity: 0.3,
|
|
1016
1016
|
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
1017
1017
|
fill: "#50BF95"
|
|
1018
|
-
}))), _path$
|
|
1018
|
+
}))), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1019
1019
|
d: "M12.487 3.19652C8.68003 3.19652 5.59895 6.27761 5.59895 10.0846C5.59895 10.2597 5.59895 10.4348 5.62438 10.5855C5.29857 11.1863 4.82307 12.013 4.24678 12.514C3.82117 12.8897 3.92096 13.2908 3.97085 13.4405C4.09609 13.7663 4.44635 14.0413 5.02265 14.2418C5.22322 14.3172 5.44825 14.3671 5.64883 14.417L5.67427 16.8464C5.67427 17.7984 6.47559 18.6251 7.45304 18.6251L8.93044 18.1496L9.08111 19.0263C9.18091 19.6026 9.68185 20.0282 10.2836 20.0282C10.3589 20.0282 10.4343 20.0282 10.5086 20.0028L15.1424 19.177C15.8185 19.0517 16.2441 18.4256 16.1443 17.7495L15.8185 16.1214C17.9974 14.9189 19.375 12.5892 19.375 10.0845C19.375 6.30279 16.2696 3.19641 12.4869 3.19641L12.487 3.19652Z",
|
|
1020
1020
|
fill: "#2B8473",
|
|
1021
1021
|
stroke: "#2B8473"
|
|
1022
|
-
})), _path2$
|
|
1022
|
+
})), _path2$8 || (_path2$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1023
1023
|
fillRule: "evenodd",
|
|
1024
1024
|
clipRule: "evenodd",
|
|
1025
1025
|
d: "M6.39343 10.7683V10.1215H8.06761V10.7683H6.39343Z",
|
|
@@ -1071,9 +1071,9 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1071
1071
|
fill: "#ECF4F2"
|
|
1072
1072
|
})));
|
|
1073
1073
|
|
|
1074
|
-
var _g$a, _path$
|
|
1075
|
-
function _extends$
|
|
1076
|
-
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1074
|
+
var _g$a, _path$x;
|
|
1075
|
+
function _extends$J() { _extends$J = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$J.apply(this, arguments); }
|
|
1076
|
+
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
1077
1077
|
width: 24,
|
|
1078
1078
|
height: 24,
|
|
1079
1079
|
viewBox: "0 0 24 24",
|
|
@@ -1085,7 +1085,7 @@ const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createEleme
|
|
|
1085
1085
|
opacity: 0.3,
|
|
1086
1086
|
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
1087
1087
|
fill: "#003A57"
|
|
1088
|
-
}))), _path$
|
|
1088
|
+
}))), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1089
1089
|
d: "M17.9983 7.16705C17.5188 6.58566 17.1422 6.73039 17.1422 6.73039C17.1422 6.73039 16.406 7.02453 16.0401 7.16303C15.6742 7.30153 15.2408 7.17357 15.2408 7.17357L14.7579 6.8851C14.7579 6.8851 14.4296 6.56554 14.3656 6.18067C14.3123 5.78958 14.1888 5.00269 14.1888 5.00269C14.1888 5.00269 14.1356 4.61159 13.3938 4.47257C12.652 4.33356 12.4678 4.68715 12.4678 4.68715C12.4678 4.68715 12.0932 5.38344 11.9091 5.73703C11.7249 6.09062 11.3114 6.27118 11.3114 6.27118L10.7639 6.36908C10.7639 6.36908 10.3144 6.33771 10.0176 6.07271L9.12712 5.27769C9.12712 5.27769 8.8303 5.01268 8.18313 5.38632C7.53595 5.75997 7.61705 6.14953 7.61705 6.14953L7.86033 7.3182C7.94143 7.70776 7.74381 8.11275 7.74381 8.11275L7.38528 8.53794C7.38528 8.53794 7.02217 8.80577 6.62387 8.78845C6.22557 8.77114 5.43527 8.7474 5.43527 8.7474C5.43527 8.7474 5.03697 8.73009 4.78646 9.44201C4.53595 10.1539 4.84804 10.3956 4.84804 10.3956C4.84804 10.3956 5.46774 10.896 5.77983 11.1376C6.09192 11.3793 6.19373 11.8296 6.19373 11.8296L6.20207 12.3921C6.20207 12.3921 6.09618 12.8314 5.79331 13.079C5.49043 13.3266 4.86759 13.8171 4.86759 13.8171C4.86759 13.8171 4.56471 14.0647 4.81769 14.7769C5.08144 15.4828 5.46713 15.4783 5.46713 15.4783C5.46713 15.4783 6.26012 15.4569 6.64582 15.4524C7.03152 15.4479 7.40116 15.7145 7.40116 15.7145L7.76458 16.1447C7.76458 16.1447 7.96976 16.5499 7.89441 16.9425C7.81907 17.3351 7.66208 18.1094 7.66208 18.1094C7.66208 18.1094 7.58674 18.502 8.23785 18.8824C8.88895 19.2629 9.18553 19.0044 9.18553 19.0044C9.18553 19.0044 9.7724 18.4765 10.069 18.218C10.3655 17.9595 10.8115 17.9347 10.8115 17.9347L11.3609 18.0394C11.3609 18.0394 11.77 18.225 11.9608 18.5803C12.1516 18.9356 12.5268 19.6354 12.5268 19.6354C12.5268 19.6354 12.7176 19.9907 13.4583 19.8539C14.1946 19.7343 14.2529 19.337 14.2529 19.337C14.2529 19.337 14.3586 18.5487 14.4232 18.1623C14.4814 17.765 14.8086 17.4598 14.8086 17.4598L15.2939 17.1796C15.2939 17.1796 15.7281 17.0598 16.095 17.1971C16.4682 17.3453 17.1975 17.637 17.1975 17.637C17.1975 17.637 17.5707 17.7851 18.0424 17.2073C18.5142 16.6295 18.3189 16.2913 18.3189 16.2913C18.3189 16.2913 17.9006 15.6164 17.6882 15.2736C17.4759 14.9307 17.5197 14.4836 17.5197 14.4836L17.7038 13.9555C17.7038 13.9555 17.9482 13.5816 18.3203 13.454C18.6925 13.3264 19.4431 13.0822 19.4431 13.0822C19.4431 13.0822 19.8153 12.9546 19.8113 12.2005C19.8074 11.4464 19.4297 11.3153 19.4297 11.3153C19.4297 11.3153 18.6807 11.0641 18.303 10.9331C17.9253 10.802 17.677 10.4217 17.677 10.4217L17.4861 9.8919C17.4861 9.8919 17.4293 9.4447 17.6368 9.1067C17.8443 8.7687 18.2486 8.09891 18.2486 8.09891C18.2486 8.09891 18.4778 7.74844 17.9983 7.16707L17.9983 7.16705ZM9.33902 8.38466L10.6176 10.5992C10.0433 11.149 9.82793 11.9715 10.0567 12.7413L7.86713 14.0054C6.98868 12.0106 7.60355 9.66286 9.33905 8.38457L9.33902 8.38466ZM13.9748 16.414C11.9998 17.2778 9.65918 16.6363 8.37099 14.8783L10.5605 13.6141C11.1128 14.1971 11.9329 14.4219 12.6961 14.1994L13.9748 16.414ZM12.6552 13.132C12.1159 13.4434 11.4325 13.2561 11.1176 12.7107C10.8027 12.1652 10.9822 11.4797 11.5215 11.1684C12.0608 10.857 12.7441 11.0443 13.0591 11.5897C13.374 12.1352 13.1945 12.8207 12.6552 13.132ZM14.8376 15.9158L13.5591 13.7012C14.1333 13.1515 14.3487 12.3289 14.12 11.5591L16.3095 10.295C17.188 12.2898 16.5731 14.6376 14.8376 15.9159L14.8376 15.9158ZM13.6161 10.6863C13.0638 10.1034 12.2437 9.87862 11.4805 10.1011L10.2019 7.88652C12.1769 7.02266 14.5112 7.65314 15.8057 9.42223L13.6161 10.6863Z",
|
|
1090
1090
|
fill: "#003A57"
|
|
1091
1091
|
})));
|
|
@@ -1947,8 +1947,8 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
|
1947
1947
|
};
|
|
1948
1948
|
|
|
1949
1949
|
var _g$9, _defs$4;
|
|
1950
|
-
function _extends$
|
|
1951
|
-
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1950
|
+
function _extends$I() { _extends$I = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$I.apply(this, arguments); }
|
|
1951
|
+
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
1952
1952
|
width: 27,
|
|
1953
1953
|
height: 26,
|
|
1954
1954
|
viewBox: "0 0 27 26",
|
|
@@ -1971,8 +1971,8 @@ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1971
1971
|
})))));
|
|
1972
1972
|
|
|
1973
1973
|
var _g$8, _defs$3;
|
|
1974
|
-
function _extends$
|
|
1975
|
-
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1974
|
+
function _extends$H() { _extends$H = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
|
|
1975
|
+
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
1976
1976
|
width: 27,
|
|
1977
1977
|
height: 26,
|
|
1978
1978
|
viewBox: "0 0 27 26",
|
|
@@ -1995,8 +1995,8 @@ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1995
1995
|
})))));
|
|
1996
1996
|
|
|
1997
1997
|
var _g$7, _defs$2;
|
|
1998
|
-
function _extends$
|
|
1999
|
-
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1998
|
+
function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
|
|
1999
|
+
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
2000
2000
|
width: 27,
|
|
2001
2001
|
height: 26,
|
|
2002
2002
|
viewBox: "0 0 27 26",
|
|
@@ -2025,8 +2025,8 @@ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2025
2025
|
})))));
|
|
2026
2026
|
|
|
2027
2027
|
var _g$6, _defs$1;
|
|
2028
|
-
function _extends$
|
|
2029
|
-
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2028
|
+
function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
|
|
2029
|
+
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
2030
2030
|
width: 27,
|
|
2031
2031
|
height: 26,
|
|
2032
2032
|
viewBox: "0 0 27 26",
|
|
@@ -2055,8 +2055,8 @@ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2055
2055
|
})))));
|
|
2056
2056
|
|
|
2057
2057
|
var _g$5, _defs;
|
|
2058
|
-
function _extends$
|
|
2059
|
-
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2058
|
+
function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
|
|
2059
|
+
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
2060
2060
|
width: 26,
|
|
2061
2061
|
height: 26,
|
|
2062
2062
|
viewBox: "0 0 26 26",
|
|
@@ -2316,7 +2316,6 @@ const ChatContext = React.createContext(null);
|
|
|
2316
2316
|
const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, children, }) => {
|
|
2317
2317
|
const [editor, setEditor] = React.useState();
|
|
2318
2318
|
const [thumbnails, setThumbnails] = React.useState([]);
|
|
2319
|
-
//const [isMediaUploading, setIsMediaUploading] = useState<boolean>(false);
|
|
2320
2319
|
const getMentions = (editor) => {
|
|
2321
2320
|
const result = [];
|
|
2322
2321
|
editor.state.doc.descendants((node) => {
|
|
@@ -2349,8 +2348,6 @@ const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, childr
|
|
|
2349
2348
|
return file;
|
|
2350
2349
|
}));
|
|
2351
2350
|
},
|
|
2352
|
-
//isMediaUploading, // Incluso nel valore del contesto
|
|
2353
|
-
//setIsMediaUploading, // Incluso nel valore del contesto
|
|
2354
2351
|
addThumbnails: ({ files, }) => {
|
|
2355
2352
|
files.forEach((file) => (file.isLoadingMedia = true));
|
|
2356
2353
|
setThumbnails((prev) => [...prev, ...files]);
|
|
@@ -2373,6 +2370,9 @@ const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, childr
|
|
|
2373
2370
|
});
|
|
2374
2371
|
}
|
|
2375
2372
|
},
|
|
2373
|
+
clearThumbnails: () => {
|
|
2374
|
+
setThumbnails([]);
|
|
2375
|
+
},
|
|
2376
2376
|
removeThumbnail: (index) => setThumbnails(thumbnails.filter((_, i) => i !== index)),
|
|
2377
2377
|
triggerSave: () => {
|
|
2378
2378
|
if (editor && onSave && !editor.isEmpty) {
|
|
@@ -2725,28 +2725,96 @@ const ChatTitle = styled__default["default"](Title$1) `
|
|
|
2725
2725
|
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.md}`};
|
|
2726
2726
|
`;
|
|
2727
2727
|
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2728
|
+
const UgClose$1 = styled__default["default"](reactNotifications.Close) `
|
|
2729
|
+
display: flex;
|
|
2730
|
+
align-items: center;
|
|
2731
|
+
justify-content: center;
|
|
2732
|
+
width: ${({ theme }) => theme.space.xl};
|
|
2733
|
+
height: ${({ theme }) => theme.space.xl};
|
|
2734
|
+
`;
|
|
2735
|
+
/**
|
|
2736
|
+
* Title is a basic component used to display a title. Often used in card headers.
|
|
2737
|
+
*/
|
|
2738
|
+
const Close = (props) => jsxRuntime.jsx(UgClose$1, Object.assign({}, props));
|
|
2739
|
+
|
|
2740
|
+
const NOTIFICATION_COMPONENT_ID = "notifications.notification";
|
|
2741
|
+
const CLOSE_COMPONENT_ID = "notifications.notification.close";
|
|
2742
|
+
const CLOSE_ICON_COMPONENT_ID = "notifications.notification.close-icon";
|
|
2743
|
+
const TITLE_COMPONENT_ID = "notifications.notification.title";
|
|
2744
|
+
const UgClose = styled__default["default"](Close).attrs((props) => {
|
|
2745
|
+
var _a;
|
|
2746
|
+
return ({
|
|
2747
|
+
"data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_ICON_COMPONENT_ID,
|
|
2748
|
+
});
|
|
2749
|
+
}) `
|
|
2750
|
+
${(props) => reactTheming.retrieveComponentStyles(CLOSE_ICON_COMPONENT_ID, props)};
|
|
2751
|
+
`;
|
|
2752
|
+
const UgAnchor = styled__default["default"](reactButtons.Anchor).attrs((props) => {
|
|
2753
|
+
var _a;
|
|
2754
|
+
return ({
|
|
2755
|
+
"data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_COMPONENT_ID,
|
|
2756
|
+
});
|
|
2757
|
+
}) `
|
|
2758
|
+
${(props) => reactTheming.retrieveComponentStyles(CLOSE_COMPONENT_ID, props)};
|
|
2759
|
+
`;
|
|
2760
|
+
const UgTitle = styled__default["default"](Title$1).attrs((props) => {
|
|
2761
|
+
var _a;
|
|
2762
|
+
return ({
|
|
2763
|
+
"data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : TITLE_COMPONENT_ID,
|
|
2764
|
+
});
|
|
2765
|
+
}) `
|
|
2766
|
+
${(props) => reactTheming.retrieveComponentStyles(TITLE_COMPONENT_ID, props)};
|
|
2767
|
+
`;
|
|
2768
|
+
const UgNotification = styled__default["default"](reactNotifications.Notification) `
|
|
2769
|
+
display: flex;
|
|
2770
|
+
align-items: center;
|
|
2771
|
+
justify-content: space-between;
|
|
2772
|
+
padding-right: ${({ theme }) => theme.space.md};
|
|
2773
|
+
white-space: pre;
|
|
2774
|
+
|
|
2775
|
+
${UgAnchor} {
|
|
2776
|
+
flex-shrink: 0;
|
|
2777
|
+
margin-left: ${({ theme }) => theme.space.md};
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
${(props) => reactTheming.retrieveComponentStyles(NOTIFICATION_COMPONENT_ID, props)};
|
|
2781
|
+
`;
|
|
2782
|
+
/**
|
|
2783
|
+
* A Notification is a passive status update that keeps users informed of system progress.
|
|
2784
|
+
* <hr>
|
|
2785
|
+
* Used for this:
|
|
2786
|
+
- For a passive status update about user or system activity
|
|
2787
|
+
*/
|
|
2788
|
+
const Notification = (_a) => {
|
|
2789
|
+
var { closeText, message, onClose, type, isPrimary, isRegular } = _a, props = __rest(_a, ["closeText", "message", "onClose", "type", "isPrimary", "isRegular"]);
|
|
2790
|
+
return (jsxRuntime.jsxs(UgNotification, Object.assign({ type: type, isPrimary: isPrimary }, props, { children: [jsxRuntime.jsx(UgTitle, Object.assign({ isRegular: isRegular, type: type, isPrimary: isPrimary }, { children: message })), jsxRuntime.jsx(UgAnchor, Object.assign({ type: type, isPrimary: isPrimary, onClick: onClose }, { children: closeText !== null && closeText !== void 0 ? closeText : jsxRuntime.jsx(UgClose, {}) }))] })));
|
|
2791
|
+
};
|
|
2792
|
+
// ToastProvider
|
|
2793
|
+
const ToastProvider = (props) => (jsxRuntime.jsx(reactNotifications.ToastProvider, Object.assign({}, props)));
|
|
2794
|
+
const useToast = reactNotifications.useToast;
|
|
2795
|
+
|
|
2796
|
+
var _path$w;
|
|
2797
|
+
function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
|
|
2798
|
+
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
2731
2799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2732
2800
|
width: 16,
|
|
2733
2801
|
height: 16,
|
|
2734
2802
|
focusable: "false",
|
|
2735
2803
|
viewBox: "0 0 16 16"
|
|
2736
|
-
}, props), _path$
|
|
2804
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2737
2805
|
fill: "currentColor",
|
|
2738
2806
|
d: "M7.5 0C9.952 0 12 2.048 12 4.5a4.483 4.483 0 01-1.27 3.108C12.078 8.39 13 9.855 13 11.5c0 2.452-2.048 4.5-4.5 4.5H4a1 1 0 01-1-1V1a1 1 0 011-1h3.5zM5 14h3.5c1.348 0 2.5-1.152 2.5-2.5S9.848 9 8.5 9H5v5zM7.5 2H5v5h2.5C8.848 7 10 5.848 10 4.5S8.848 2 7.5 2z"
|
|
2739
2807
|
})));
|
|
2740
2808
|
|
|
2741
|
-
var _path$
|
|
2742
|
-
function _extends$
|
|
2743
|
-
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2809
|
+
var _path$v;
|
|
2810
|
+
function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
2811
|
+
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
2744
2812
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2745
2813
|
width: 16,
|
|
2746
2814
|
height: 16,
|
|
2747
2815
|
focusable: "false",
|
|
2748
2816
|
viewBox: "0 0 16 16"
|
|
2749
|
-
}, props), _path$
|
|
2817
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2750
2818
|
fill: "none",
|
|
2751
2819
|
stroke: "currentColor",
|
|
2752
2820
|
strokeLinecap: "round",
|
|
@@ -2754,18 +2822,18 @@ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2754
2822
|
d: "M8 1h3M9.5 1l-3 14M5 15h3"
|
|
2755
2823
|
})));
|
|
2756
2824
|
|
|
2757
|
-
var _path$
|
|
2758
|
-
function _extends$
|
|
2759
|
-
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2825
|
+
var _path$u, _path2$7;
|
|
2826
|
+
function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
|
|
2827
|
+
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
2760
2828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2761
2829
|
width: 16,
|
|
2762
2830
|
height: 16,
|
|
2763
2831
|
focusable: "false",
|
|
2764
2832
|
viewBox: "0 0 16 16"
|
|
2765
|
-
}, props), _path$
|
|
2833
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2766
2834
|
fill: "currentColor",
|
|
2767
2835
|
d: "M7 8H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1zm6 0h-3c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1z"
|
|
2768
|
-
})), _path2$
|
|
2836
|
+
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2769
2837
|
fill: "none",
|
|
2770
2838
|
stroke: "currentColor",
|
|
2771
2839
|
strokeLinecap: "round",
|
|
@@ -2774,8 +2842,8 @@ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
2774
2842
|
})));
|
|
2775
2843
|
|
|
2776
2844
|
var _g$4;
|
|
2777
|
-
function _extends$
|
|
2778
|
-
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2845
|
+
function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
|
|
2846
|
+
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2779
2847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2780
2848
|
width: 16,
|
|
2781
2849
|
height: 16,
|
|
@@ -2802,8 +2870,8 @@ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2802
2870
|
}))));
|
|
2803
2871
|
|
|
2804
2872
|
var _g$3;
|
|
2805
|
-
function _extends$
|
|
2806
|
-
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2873
|
+
function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
2874
|
+
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2807
2875
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2808
2876
|
width: 16,
|
|
2809
2877
|
height: 16,
|
|
@@ -2830,8 +2898,8 @@ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2830
2898
|
}))));
|
|
2831
2899
|
|
|
2832
2900
|
var _g$2;
|
|
2833
|
-
function _extends$
|
|
2834
|
-
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2901
|
+
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
2902
|
+
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2835
2903
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2836
2904
|
width: 16,
|
|
2837
2905
|
height: 16,
|
|
@@ -2904,58 +2972,58 @@ const Tooltip = styled__default["default"](TooltipComponent) `
|
|
|
2904
2972
|
box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor("neutralHue", 600, theme, 0.15))};
|
|
2905
2973
|
`;
|
|
2906
2974
|
|
|
2907
|
-
var _path$
|
|
2908
|
-
function _extends$
|
|
2909
|
-
const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2975
|
+
var _path$t;
|
|
2976
|
+
function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
|
|
2977
|
+
const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
2910
2978
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2911
2979
|
width: 16,
|
|
2912
2980
|
height: 16,
|
|
2913
2981
|
focusable: "false",
|
|
2914
2982
|
viewBox: "0 0 16 16"
|
|
2915
|
-
}, props), _path$
|
|
2983
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2916
2984
|
fill: "currentColor",
|
|
2917
2985
|
d: "M7 1c2.176 0 4 1.824 4 4 0 1.315-.666 2.501-1.673 3.234C10.869 8.792 12 10.287 12 12c0 2.176-1.824 4-4 4H3.5a.5.5 0 01-.5-.5v-14a.5.5 0 01.5-.5H7zM4 15h4c1.624 0 3-1.376 3-3S9.624 9 8 9H4v6zM7 2H4v6h3c1.624 0 3-1.376 3-3S8.624 2 7 2z"
|
|
2918
2986
|
})));
|
|
2919
2987
|
|
|
2920
|
-
var _path$
|
|
2921
|
-
function _extends$
|
|
2922
|
-
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2988
|
+
var _path$s;
|
|
2989
|
+
function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
|
|
2990
|
+
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
2923
2991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2924
2992
|
width: 16,
|
|
2925
2993
|
height: 16,
|
|
2926
2994
|
focusable: "false",
|
|
2927
2995
|
viewBox: "0 0 16 16"
|
|
2928
|
-
}, props), _path$
|
|
2996
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2929
2997
|
fill: "none",
|
|
2930
2998
|
stroke: "currentColor",
|
|
2931
2999
|
strokeLinecap: "round",
|
|
2932
3000
|
d: "M7.5 1.5h3M9 1.5l-3 14m-1.5 0h3"
|
|
2933
3001
|
})));
|
|
2934
3002
|
|
|
2935
|
-
var _path$
|
|
2936
|
-
function _extends$
|
|
2937
|
-
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3003
|
+
var _path$r;
|
|
3004
|
+
function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
3005
|
+
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
2938
3006
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2939
3007
|
width: 16,
|
|
2940
3008
|
height: 16,
|
|
2941
3009
|
focusable: "false",
|
|
2942
3010
|
role: "presentation"
|
|
2943
|
-
}, props), _path$
|
|
3011
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2944
3012
|
fill: "none",
|
|
2945
3013
|
stroke: "currentColor",
|
|
2946
3014
|
strokeLinecap: "round",
|
|
2947
3015
|
d: "M11.5 4.5V8h0A3.5 3.5 0 018 11.5h0A3.5 3.5 0 014.5 8h0A3.5 3.5 0 018 4.5h0A3.5 3.5 0 0111.5 8h0v1.5a2 2 0 002 2h0a2 2 0 002-2V8h0A7.5 7.5 0 008 .5h0A7.5 7.5 0 00.5 8h0A7.5 7.5 0 008 15.5h3.41"
|
|
2948
3016
|
})));
|
|
2949
3017
|
|
|
2950
|
-
var _path$
|
|
2951
|
-
function _extends$
|
|
2952
|
-
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3018
|
+
var _path$q;
|
|
3019
|
+
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
3020
|
+
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
2953
3021
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2954
3022
|
width: 16,
|
|
2955
3023
|
height: 16,
|
|
2956
3024
|
focusable: "false",
|
|
2957
3025
|
role: "presentation"
|
|
2958
|
-
}, props), _path$
|
|
3026
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2959
3027
|
fill: "none",
|
|
2960
3028
|
stroke: "currentColor",
|
|
2961
3029
|
strokeLinecap: "round",
|
|
@@ -3277,118 +3345,183 @@ const editorExtensions = ({ placeholderOptions, mentionableUsers, }) => {
|
|
|
3277
3345
|
];
|
|
3278
3346
|
};
|
|
3279
3347
|
|
|
3348
|
+
var _circle$2, _path$p, _path2$6;
|
|
3349
|
+
function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
3350
|
+
const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
3351
|
+
width: 56,
|
|
3352
|
+
height: 56,
|
|
3353
|
+
viewBox: "0 0 56 56",
|
|
3354
|
+
fill: "#68737d",
|
|
3355
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3356
|
+
}, props), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
3357
|
+
cx: 28,
|
|
3358
|
+
cy: 28,
|
|
3359
|
+
r: 28,
|
|
3360
|
+
fill: "#edf7ff"
|
|
3361
|
+
})), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3362
|
+
d: "M16.929 16.929L39.071 39.071",
|
|
3363
|
+
stroke: "currentColor",
|
|
3364
|
+
strokeWidth: 4
|
|
3365
|
+
})), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3366
|
+
d: "M16.929 39.071L39.071 16.929",
|
|
3367
|
+
stroke: "currentColor",
|
|
3368
|
+
strokeWidth: 4
|
|
3369
|
+
})));
|
|
3370
|
+
|
|
3280
3371
|
const StyledDeleteThumbnailX = styled__default["default"].div `
|
|
3281
3372
|
position: absolute;
|
|
3282
3373
|
top: 0;
|
|
3283
3374
|
right: 0;
|
|
3284
|
-
|
|
3375
|
+
display: flex;
|
|
3285
3376
|
cursor: pointer;
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3377
|
+
width: 32px;
|
|
3378
|
+
height: 32px;
|
|
3379
|
+
opacity: 0;
|
|
3380
|
+
z-index: 2;
|
|
3381
|
+
`;
|
|
3382
|
+
const DeleteThumbnailX = ({ deleteThumbnail }) => {
|
|
3383
|
+
return (jsxRuntime.jsx(StyledDeleteThumbnailX, Object.assign({ className: "deleteThumbnail" }, { children: jsxRuntime.jsx(SvgRemoveMediaIcon, { onClick: (e) => deleteThumbnail(e) }) })));
|
|
3384
|
+
};
|
|
3385
|
+
|
|
3386
|
+
const ImageCard = styled__default["default"](SpecialCard) `
|
|
3387
|
+
padding: 0;
|
|
3388
|
+
:hover .deleteThumbnail {
|
|
3389
|
+
opacity: 1;
|
|
3390
|
+
}
|
|
3391
|
+
`;
|
|
3392
|
+
const Preview$1 = styled__default["default"].div `
|
|
3291
3393
|
display: flex;
|
|
3292
3394
|
justify-content: center;
|
|
3293
3395
|
align-items: center;
|
|
3294
|
-
|
|
3396
|
+
height: 150px;
|
|
3397
|
+
width: 100%;
|
|
3398
|
+
background-image: url(${(props) => props.url});
|
|
3399
|
+
background-color: ${({ theme }) => theme.palette.grey[100]};
|
|
3400
|
+
background-size: contain;
|
|
3401
|
+
background-position: center;
|
|
3402
|
+
background-repeat: no-repeat;
|
|
3295
3403
|
`;
|
|
3296
|
-
const
|
|
3297
|
-
|
|
3404
|
+
const ImageThumbnail = ({ src, index = 0, removeThumbnail, clickThumbnail, showX = true, isLoadingMedia = false, isError = false, }) => {
|
|
3405
|
+
const handleCancel = (e) => {
|
|
3406
|
+
e.stopPropagation();
|
|
3407
|
+
if (removeThumbnail)
|
|
3408
|
+
removeThumbnail(index);
|
|
3409
|
+
};
|
|
3410
|
+
return (jsxRuntime.jsxs(ImageCard, Object.assign({ onClick: clickThumbnail }, { children: [isLoadingMedia && (jsxRuntime.jsx(Preview$1, Object.assign({ url: "" }, { children: jsxRuntime.jsx(reactLoaders.Spinner, { style: {
|
|
3411
|
+
display: "flex",
|
|
3412
|
+
alignItems: "center",
|
|
3413
|
+
justifyContent: "center",
|
|
3414
|
+
}, size: "large" }) }))), isError && (
|
|
3415
|
+
// todo: add error icon
|
|
3416
|
+
jsxRuntime.jsx("span", { children: "error uploading media" })), !isLoadingMedia && (jsxRuntime.jsx(Preview$1, Object.assign({ url: src }, { children: showX && (jsxRuntime.jsx(DeleteThumbnailX, { deleteThumbnail: (e) => handleCancel(e) })) })))] })));
|
|
3298
3417
|
};
|
|
3299
3418
|
|
|
3300
|
-
var _path$
|
|
3301
|
-
function _extends$
|
|
3302
|
-
const
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
}, props),
|
|
3309
|
-
|
|
3310
|
-
|
|
3419
|
+
var _circle$1, _path$o;
|
|
3420
|
+
function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
|
|
3421
|
+
const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
3422
|
+
width: 56,
|
|
3423
|
+
height: 56,
|
|
3424
|
+
viewBox: "0 0 56 56",
|
|
3425
|
+
fill: "none",
|
|
3426
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3427
|
+
}, props), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
3428
|
+
cx: 28,
|
|
3429
|
+
cy: 28,
|
|
3430
|
+
r: 28,
|
|
3431
|
+
fill: "white"
|
|
3432
|
+
})), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3433
|
+
d: "M47 28L18.5 44.4545L18.5 11.5455L47 28Z",
|
|
3434
|
+
fill: "currentColor"
|
|
3311
3435
|
})));
|
|
3312
3436
|
|
|
3313
|
-
const
|
|
3314
|
-
|
|
3315
|
-
height: 90px;
|
|
3316
|
-
width: 80px;
|
|
3317
|
-
justify-content: center;
|
|
3318
|
-
padding: 1px;
|
|
3437
|
+
const VideoCard = styled__default["default"](SpecialCard) `
|
|
3438
|
+
padding: 0;
|
|
3319
3439
|
position: relative;
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3440
|
+
overflow: hidden;
|
|
3441
|
+
|
|
3442
|
+
&:hover .deleteThumbnail {
|
|
3443
|
+
opacity: 1;
|
|
3444
|
+
z-index: 9999;
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
&:before {
|
|
3448
|
+
content: "";
|
|
3449
|
+
position: absolute;
|
|
3450
|
+
top: 0;
|
|
3451
|
+
left: 0;
|
|
3323
3452
|
width: 100%;
|
|
3324
3453
|
height: 100%;
|
|
3325
|
-
|
|
3454
|
+
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
3455
|
+
opacity: 0.3;
|
|
3456
|
+
z-index: 1;
|
|
3326
3457
|
}
|
|
3327
|
-
|
|
3458
|
+
|
|
3459
|
+
> svg {
|
|
3328
3460
|
position: absolute;
|
|
3329
|
-
|
|
3330
|
-
left:
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3461
|
+
top: 50%;
|
|
3462
|
+
left: 50%;
|
|
3463
|
+
transform: translate(-50%, -50%);
|
|
3464
|
+
width: 32px;
|
|
3465
|
+
height: 32px;
|
|
3466
|
+
z-index: 2;
|
|
3467
|
+
}
|
|
3468
|
+
`;
|
|
3469
|
+
const Preview = styled__default["default"].div `
|
|
3470
|
+
padding: ${({ theme }) => theme.space.md};
|
|
3471
|
+
display: flex;
|
|
3472
|
+
justify-content: center;
|
|
3473
|
+
align-items: center;
|
|
3474
|
+
height: 150px;
|
|
3475
|
+
width: 100%;
|
|
3476
|
+
|
|
3477
|
+
> video {
|
|
3478
|
+
width: 100%;
|
|
3479
|
+
height: 100%;
|
|
3334
3480
|
}
|
|
3335
3481
|
`;
|
|
3336
|
-
const
|
|
3337
|
-
//const { isMediaUploading, setIsMediaUploading } = useChatContext();
|
|
3482
|
+
const VideoThumbnail = ({ src, index = 0, removeThumbnail, clickThumbnail, showX = true, isLoadingMedia = false, isError = false, }) => {
|
|
3338
3483
|
const handleCancel = (e) => {
|
|
3339
3484
|
e.stopPropagation();
|
|
3340
3485
|
if (removeThumbnail)
|
|
3341
3486
|
removeThumbnail(index);
|
|
3342
3487
|
};
|
|
3343
|
-
return (jsxRuntime.jsxs(
|
|
3488
|
+
return (jsxRuntime.jsxs(VideoCard, Object.assign({ onClick: clickThumbnail }, { children: [isLoadingMedia && (jsxRuntime.jsx(Preview, { children: jsxRuntime.jsx(reactLoaders.Spinner, { style: {
|
|
3489
|
+
display: "flex",
|
|
3490
|
+
alignItems: "center",
|
|
3491
|
+
justifyContent: "center",
|
|
3492
|
+
}, size: "large" }) })), isError && (
|
|
3344
3493
|
// todo: add error icon
|
|
3345
|
-
jsxRuntime.jsx("span", { children: "error uploading media" })), !isLoadingMedia &&
|
|
3346
|
-
width: "100%",
|
|
3347
|
-
height: "100%",
|
|
3348
|
-
backgroundColor: "gray",
|
|
3349
|
-
zIndex: "-1",
|
|
3350
|
-
opacity: "0.5",
|
|
3351
|
-
color: "black",
|
|
3352
|
-
} }, { children: [jsxRuntime.jsx(SvgPlayFill, { style: {
|
|
3353
|
-
position: "absolute",
|
|
3354
|
-
top: "35%",
|
|
3355
|
-
left: "35%",
|
|
3356
|
-
width: "30px",
|
|
3357
|
-
height: "30px",
|
|
3358
|
-
backgroundColor: "white",
|
|
3359
|
-
borderRadius: "50%",
|
|
3360
|
-
} }), jsxRuntime.jsx("video", Object.assign({ width: "80", height: "89" }, { children: jsxRuntime.jsx("source", { src: src, type: "video/mp4" }) }))] }))), showLabel && jsxRuntime.jsx("span", Object.assign({ className: "thumbnailLabel" }, { children: label }))] })));
|
|
3494
|
+
jsxRuntime.jsx("span", { children: "error uploading media" })), !isLoadingMedia && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showX && (jsxRuntime.jsx(DeleteThumbnailX, { deleteThumbnail: (e) => handleCancel(e) })), jsxRuntime.jsx(Preview, { children: jsxRuntime.jsx("video", Object.assign({ src: src }, { children: jsxRuntime.jsx("track", { kind: "captions" }) })) }), jsxRuntime.jsx(SvgVideoPlayIcon, {})] }))] })));
|
|
3361
3495
|
};
|
|
3362
3496
|
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3497
|
+
const UgGrid = styled__default["default"](reactGrid.Grid) `
|
|
3498
|
+
padding-left: 0;
|
|
3499
|
+
padding-right: 0;
|
|
3500
|
+
`;
|
|
3501
|
+
/**
|
|
3502
|
+
* The Grid component is a framework for building modular layouts.
|
|
3503
|
+
* <hr>
|
|
3504
|
+
* Used for this:
|
|
3505
|
+
- To structure the layout of a page
|
|
3506
|
+
*/
|
|
3507
|
+
const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
|
|
3508
|
+
|
|
3509
|
+
const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props));
|
|
3510
|
+
|
|
3511
|
+
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
3512
|
+
margin-bottom: ${theme.space.lg};
|
|
3513
|
+
|
|
3514
|
+
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
3515
|
+
margin-bottom: ${theme.space.md};
|
|
3376
3516
|
}
|
|
3377
3517
|
`;
|
|
3518
|
+
const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
3519
|
+
|
|
3378
3520
|
const ThumbnailContainer = ({ openLightbox }) => {
|
|
3379
3521
|
const { thumbnails, removeThumbnail } = useChatContext();
|
|
3380
3522
|
if (!thumbnails || thumbnails.length === 0) {
|
|
3381
3523
|
return null;
|
|
3382
3524
|
}
|
|
3383
|
-
/* const mediaFiles: File[] = thumbnails.map((file) => {
|
|
3384
|
-
// Crea un nuovo oggetto File senza la proprietà isLoadingMedia
|
|
3385
|
-
const blob = new Blob([file], { type: file.type });
|
|
3386
|
-
|
|
3387
|
-
// Creiamo un nuovo File utilizzando il Blob e mantenendo il nome del file originale
|
|
3388
|
-
const nf = new File([blob], file.name, { type: file.type });
|
|
3389
|
-
|
|
3390
|
-
return nf;
|
|
3391
|
-
});*/
|
|
3392
3525
|
const mediaFiles = [];
|
|
3393
3526
|
thumbnails.forEach((file) => {
|
|
3394
3527
|
mediaFiles.push({
|
|
@@ -3399,9 +3532,18 @@ const ThumbnailContainer = ({ openLightbox }) => {
|
|
|
3399
3532
|
});
|
|
3400
3533
|
});
|
|
3401
3534
|
console.log("mediafiles", mediaFiles);
|
|
3402
|
-
return (jsxRuntime.jsx(
|
|
3403
|
-
|
|
3404
|
-
|
|
3535
|
+
return (jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: mediaFiles.map((file, index) => {
|
|
3536
|
+
// Check if item is an image or a video
|
|
3537
|
+
if (file.fileType.includes('image'))
|
|
3538
|
+
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: file.status === "uploading", removeThumbnail: () => removeThumbnail(index), clickThumbnail: () => {
|
|
3539
|
+
openLightbox(thumbnails[index], index);
|
|
3540
|
+
} }, index) })));
|
|
3541
|
+
if (file.fileType.includes('video'))
|
|
3542
|
+
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: file.status === "uploading", removeThumbnail: () => removeThumbnail(index), clickThumbnail: () => {
|
|
3543
|
+
openLightbox(thumbnails[index], index);
|
|
3544
|
+
} }, index) })));
|
|
3545
|
+
return null;
|
|
3546
|
+
}) })) }));
|
|
3405
3547
|
};
|
|
3406
3548
|
|
|
3407
3549
|
const UgModalBody = styled__default["default"](reactModals.Body) `
|
|
@@ -3470,28 +3612,28 @@ Lightbox.Body = ModalBody; // Includes Main and Details
|
|
|
3470
3612
|
Lightbox.Footer = Footer$3;
|
|
3471
3613
|
Lightbox.Close = reactModals.Close;
|
|
3472
3614
|
|
|
3473
|
-
var _path$
|
|
3474
|
-
function _extends$
|
|
3475
|
-
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3615
|
+
var _path$n;
|
|
3616
|
+
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
3617
|
+
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
3476
3618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3477
3619
|
width: 16,
|
|
3478
3620
|
height: 16,
|
|
3479
3621
|
focusable: "false",
|
|
3480
3622
|
viewBox: "0 0 16 16"
|
|
3481
|
-
}, props), _path$
|
|
3623
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3482
3624
|
fill: "currentColor",
|
|
3483
3625
|
d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
|
|
3484
3626
|
})));
|
|
3485
3627
|
|
|
3486
|
-
var _path$
|
|
3487
|
-
function _extends$
|
|
3488
|
-
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3628
|
+
var _path$m;
|
|
3629
|
+
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
3630
|
+
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
3489
3631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3490
3632
|
width: 16,
|
|
3491
3633
|
height: 16,
|
|
3492
3634
|
focusable: "false",
|
|
3493
3635
|
viewBox: "0 0 16 16"
|
|
3494
|
-
}, props), _path$
|
|
3636
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3495
3637
|
fill: "currentColor",
|
|
3496
3638
|
d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
|
|
3497
3639
|
})));
|
|
@@ -3749,6 +3891,19 @@ const PlayerTooltip = (_a) => {
|
|
|
3749
3891
|
return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$1, { children: children }) })));
|
|
3750
3892
|
};
|
|
3751
3893
|
|
|
3894
|
+
var _path$l;
|
|
3895
|
+
function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
|
|
3896
|
+
const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
3897
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3898
|
+
width: 16,
|
|
3899
|
+
height: 16,
|
|
3900
|
+
focusable: "false",
|
|
3901
|
+
viewBox: "0 0 16 16"
|
|
3902
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3903
|
+
fill: "currentColor",
|
|
3904
|
+
d: "M6 15.79c-.13 0-.26-.03-.38-.08a.977.977 0 01-.62-.92V1.21a1 1 0 01.62-.93C6 .12 6.42.21 6.71.5l6.44 6.44c.58.58.58 1.54 0 2.12L6.71 15.5c-.19.19-.45.29-.71.29z"
|
|
3905
|
+
})));
|
|
3906
|
+
|
|
3752
3907
|
var _g$1;
|
|
3753
3908
|
function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
3754
3909
|
const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
@@ -4345,6 +4500,7 @@ const CommentBox = (_a) => {
|
|
|
4345
4500
|
var { placeholderOptions } = _a, props = __rest(_a, ["placeholderOptions"]);
|
|
4346
4501
|
const { children, hasFloatingMenu, hasButtonsMenu, bubbleOptions, i18n } = props;
|
|
4347
4502
|
const { editor, setEditor, mentionableUsers, triggerSave, thumbnails, addThumbnails } = useChatContext();
|
|
4503
|
+
const { addToast } = useToast();
|
|
4348
4504
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
4349
4505
|
const [selectedImage, setSelectedImage] = React.useState({});
|
|
4350
4506
|
const [selectedImageIndex, setSelectedImageIndex] = React.useState(0);
|
|
@@ -4382,22 +4538,12 @@ const CommentBox = (_a) => {
|
|
|
4382
4538
|
const files = Array.from(event.dataTransfer.files).map((file) => {
|
|
4383
4539
|
return Object.assign(file, { isLoadingMedia: false });
|
|
4384
4540
|
});
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
type="error"
|
|
4392
|
-
message={"File type not supported"}
|
|
4393
|
-
closeText={"Close"}
|
|
4394
|
-
isPrimary
|
|
4395
|
-
/>
|
|
4396
|
-
),
|
|
4397
|
-
{ placement: "top" }
|
|
4398
|
-
);
|
|
4399
|
-
}
|
|
4400
|
-
}*/
|
|
4541
|
+
const wronfFiles = files.filter((file) => !/^(image|video)\//.test(file.type));
|
|
4542
|
+
if (wronfFiles.length > 0) {
|
|
4543
|
+
for (const file of wronfFiles) {
|
|
4544
|
+
addToast(({ close }) => (jsxRuntime.jsx(Notification, { onClose: close, type: "error", message: `${props.messageBadFileFormat} - ${file.name}`, isPrimary: true })), { placement: 'top' });
|
|
4545
|
+
}
|
|
4546
|
+
}
|
|
4401
4547
|
const mediaFiles = files.filter((file) => /^(image|video)\//.test(file.type));
|
|
4402
4548
|
if (mediaFiles.length === 0)
|
|
4403
4549
|
return false;
|
|
@@ -4512,16 +4658,6 @@ const Grey600Span = styled.styled.span `
|
|
|
4512
4658
|
const Grey800Span = styled.styled.span `
|
|
4513
4659
|
color: ${({ theme }) => theme.palette.grey[800]};
|
|
4514
4660
|
`;
|
|
4515
|
-
const StyledThumbnailContainer = styled.styled.div `
|
|
4516
|
-
display: grid;
|
|
4517
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
4518
|
-
overflow-y: scroll;
|
|
4519
|
-
justify-items: center;
|
|
4520
|
-
gap: 9px;
|
|
4521
|
-
background-color: inherit;
|
|
4522
|
-
margin-top: 10px;
|
|
4523
|
-
height: auto;
|
|
4524
|
-
`;
|
|
4525
4661
|
const Comment = ({ author, message, children, date, media = [], header, }) => {
|
|
4526
4662
|
var _a, _b;
|
|
4527
4663
|
const { mentionableUsers } = useChatContext();
|
|
@@ -4541,6 +4677,7 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
|
|
|
4541
4677
|
};
|
|
4542
4678
|
const videoRefs = React.useRef([]);
|
|
4543
4679
|
const slideChange = React.useCallback((index) => {
|
|
4680
|
+
setSelectedImage(media[index]);
|
|
4544
4681
|
setSelectedImageIndex(index);
|
|
4545
4682
|
videoRefs.current.forEach((ref) => {
|
|
4546
4683
|
if (ref) {
|
|
@@ -4557,14 +4694,39 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
|
|
|
4557
4694
|
ed.setOptions({
|
|
4558
4695
|
editable: false,
|
|
4559
4696
|
});
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4697
|
+
const dowloadSelectedMedia = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
4698
|
+
try {
|
|
4699
|
+
const response = yield fetch(selectedImage.url);
|
|
4700
|
+
const blob = yield response.blob();
|
|
4701
|
+
const link = document.createElement('a');
|
|
4702
|
+
link.href = window.URL.createObjectURL(blob);
|
|
4703
|
+
link.download = "media_" + selectedImage.id.toString() || 'downloadedFile';
|
|
4704
|
+
document.body.appendChild(link);
|
|
4705
|
+
link.click();
|
|
4706
|
+
window.URL.revokeObjectURL(link.href);
|
|
4707
|
+
document.body.removeChild(link);
|
|
4708
|
+
}
|
|
4709
|
+
catch (error) {
|
|
4710
|
+
console.error('An error occurred while downloading: ', error);
|
|
4711
|
+
}
|
|
4712
|
+
});
|
|
4713
|
+
return (jsxRuntime.jsxs(CommentCard, { children: [jsxRuntime.jsxs(AuthorContainer, { children: [jsxRuntime.jsx(Avatar, Object.assign({ avatarType: (_a = author.avatarType) !== null && _a !== void 0 ? _a : "text", style: { flexShrink: 0 } }, { children: author.avatar })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs(CommentTitle, { children: [(_b = author.name) !== null && _b !== void 0 ? _b : "User", jsxRuntime.jsx(CommentDate, { children: date })] }), jsxRuntime.jsx(ReadOnly, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: false }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed }) })) })] })] }), jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: media.map((file, index) => {
|
|
4714
|
+
// Check if item is an image or a video
|
|
4715
|
+
if (file.type.includes('image'))
|
|
4716
|
+
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 4, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.url, index: index, showX: true, isLoadingMedia: false, clickThumbnail: () => {
|
|
4717
|
+
handleClickThumbnail(file, index);
|
|
4718
|
+
} }, index) })));
|
|
4719
|
+
if (file.type.includes('video'))
|
|
4720
|
+
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 4, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.url, index: index, showX: true, isLoadingMedia: false, clickThumbnail: () => {
|
|
4721
|
+
handleClickThumbnail(file, index);
|
|
4722
|
+
} }, index) })));
|
|
4723
|
+
return null;
|
|
4724
|
+
}) })) }), isOpen && selectedImage && (jsxRuntime.jsxs(Lightbox, Object.assign({ onClose: closeLightbox }, { children: [jsxRuntime.jsx(Lightbox.Header, { children: jsxRuntime.jsxs(reactTypography.MD, Object.assign({ isBold: true }, { children: [jsxRuntime.jsx(Grey600Span, { children: header && header.title }), header && header.message && (jsxRuntime.jsxs(Grey800Span, { children: [" | ", header.message] }))] })) }), jsxRuntime.jsxs(Lightbox.Body, { children: [jsxRuntime.jsx(Lightbox.Body.Main, Object.assign({ style: { flex: 2 } }, { children: jsxRuntime.jsx(Slider, Object.assign({ prevArrow: jsxRuntime.jsx(Slider.PrevButton, { isBright: true }), nextArrow: jsxRuntime.jsx(Slider.NextButton, { isBright: true }), onSlideChange: slideChange, initialSlide: selectedImageIndex }, { children: media.map((item, index) => (jsxRuntime.jsxs(Slider.Slide, { children: [item.type === "image" && (jsxRuntime.jsx("img", { src: item.url, alt: `{{${item.url}}}` })), item.type === "video" && (jsxRuntime.jsx(Player, { ref: (ref) => {
|
|
4563
4725
|
videoRefs.current.push(ref);
|
|
4564
4726
|
}, url: item.url }))] }))) })) })), jsxRuntime.jsx(Lightbox.Body.Details, Object.assign({ style: { flex: 1 } }, { children: jsxRuntime.jsx(Comment, Object.assign({ header: header, author: {
|
|
4565
4727
|
avatar: author.avatar,
|
|
4566
4728
|
name: author.name,
|
|
4567
|
-
}, date: date, message: message }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("br", {}) }) })) }))] }), jsxRuntime.jsx(Lightbox.Footer, { children: jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, onClick:
|
|
4729
|
+
}, date: date, message: message }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("br", {}) }) })) }))] }), jsxRuntime.jsx(Lightbox.Footer, { children: jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, onClick: dowloadSelectedMedia }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgDownloadStroke, {}) }), "Download"] })) }), jsxRuntime.jsx(Lightbox.Close, { "aria-label": "Close modal" })] }))), jsxRuntime.jsx(Footer$2, { children: children })] }));
|
|
4568
4730
|
};
|
|
4569
4731
|
|
|
4570
4732
|
/**
|
|
@@ -4585,18 +4747,6 @@ Chat.Comments = MessagesContainer;
|
|
|
4585
4747
|
Chat.Input = CommentBox;
|
|
4586
4748
|
Chat.Footer = ChatFooter;
|
|
4587
4749
|
|
|
4588
|
-
const UgClose$1 = styled__default["default"](reactNotifications.Close) `
|
|
4589
|
-
display: flex;
|
|
4590
|
-
align-items: center;
|
|
4591
|
-
justify-content: center;
|
|
4592
|
-
width: ${({ theme }) => theme.space.xl};
|
|
4593
|
-
height: ${({ theme }) => theme.space.xl};
|
|
4594
|
-
`;
|
|
4595
|
-
/**
|
|
4596
|
-
* Title is a basic component used to display a title. Often used in card headers.
|
|
4597
|
-
*/
|
|
4598
|
-
const Close = (props) => jsxRuntime.jsx(UgClose$1, Object.assign({}, props));
|
|
4599
|
-
|
|
4600
4750
|
var _circle;
|
|
4601
4751
|
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
4602
4752
|
const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
@@ -5215,29 +5365,6 @@ const UgToggle = styled__default["default"](reactForms.Toggle) ``;
|
|
|
5215
5365
|
**/
|
|
5216
5366
|
const Toggle = (props) => jsxRuntime.jsx(UgToggle, Object.assign({}, props));
|
|
5217
5367
|
|
|
5218
|
-
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
5219
|
-
margin-bottom: ${theme.space.lg};
|
|
5220
|
-
|
|
5221
|
-
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
5222
|
-
margin-bottom: ${theme.space.md};
|
|
5223
|
-
}
|
|
5224
|
-
`;
|
|
5225
|
-
const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
5226
|
-
|
|
5227
|
-
const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props));
|
|
5228
|
-
|
|
5229
|
-
const UgGrid = styled__default["default"](reactGrid.Grid) `
|
|
5230
|
-
padding-left: 0;
|
|
5231
|
-
padding-right: 0;
|
|
5232
|
-
`;
|
|
5233
|
-
/**
|
|
5234
|
-
* The Grid component is a framework for building modular layouts.
|
|
5235
|
-
* <hr>
|
|
5236
|
-
* Used for this:
|
|
5237
|
-
- To structure the layout of a page
|
|
5238
|
-
*/
|
|
5239
|
-
const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
|
|
5240
|
-
|
|
5241
5368
|
/**
|
|
5242
5369
|
* The Dots loader communicates ongoing activity after a user takes an action.
|
|
5243
5370
|
* It tells them that something is taking place.
|
|
@@ -5729,62 +5856,6 @@ NavAccordionItem.Label = AccordionItemLabel;
|
|
|
5729
5856
|
*/
|
|
5730
5857
|
const Chrome = (props) => jsxRuntime.jsx(reactChrome.Chrome, Object.assign({}, props));
|
|
5731
5858
|
|
|
5732
|
-
const NOTIFICATION_COMPONENT_ID = "notifications.notification";
|
|
5733
|
-
const CLOSE_COMPONENT_ID = "notifications.notification.close";
|
|
5734
|
-
const CLOSE_ICON_COMPONENT_ID = "notifications.notification.close-icon";
|
|
5735
|
-
const TITLE_COMPONENT_ID = "notifications.notification.title";
|
|
5736
|
-
const UgClose = styled__default["default"](Close).attrs((props) => {
|
|
5737
|
-
var _a;
|
|
5738
|
-
return ({
|
|
5739
|
-
"data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_ICON_COMPONENT_ID,
|
|
5740
|
-
});
|
|
5741
|
-
}) `
|
|
5742
|
-
${(props) => reactTheming.retrieveComponentStyles(CLOSE_ICON_COMPONENT_ID, props)};
|
|
5743
|
-
`;
|
|
5744
|
-
const UgAnchor = styled__default["default"](reactButtons.Anchor).attrs((props) => {
|
|
5745
|
-
var _a;
|
|
5746
|
-
return ({
|
|
5747
|
-
"data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_COMPONENT_ID,
|
|
5748
|
-
});
|
|
5749
|
-
}) `
|
|
5750
|
-
${(props) => reactTheming.retrieveComponentStyles(CLOSE_COMPONENT_ID, props)};
|
|
5751
|
-
`;
|
|
5752
|
-
const UgTitle = styled__default["default"](Title$1).attrs((props) => {
|
|
5753
|
-
var _a;
|
|
5754
|
-
return ({
|
|
5755
|
-
"data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : TITLE_COMPONENT_ID,
|
|
5756
|
-
});
|
|
5757
|
-
}) `
|
|
5758
|
-
${(props) => reactTheming.retrieveComponentStyles(TITLE_COMPONENT_ID, props)};
|
|
5759
|
-
`;
|
|
5760
|
-
const UgNotification = styled__default["default"](reactNotifications.Notification) `
|
|
5761
|
-
display: flex;
|
|
5762
|
-
align-items: center;
|
|
5763
|
-
justify-content: space-between;
|
|
5764
|
-
padding-right: ${({ theme }) => theme.space.md};
|
|
5765
|
-
white-space: pre;
|
|
5766
|
-
|
|
5767
|
-
${UgAnchor} {
|
|
5768
|
-
flex-shrink: 0;
|
|
5769
|
-
margin-left: ${({ theme }) => theme.space.md};
|
|
5770
|
-
}
|
|
5771
|
-
|
|
5772
|
-
${(props) => reactTheming.retrieveComponentStyles(NOTIFICATION_COMPONENT_ID, props)};
|
|
5773
|
-
`;
|
|
5774
|
-
/**
|
|
5775
|
-
* A Notification is a passive status update that keeps users informed of system progress.
|
|
5776
|
-
* <hr>
|
|
5777
|
-
* Used for this:
|
|
5778
|
-
- For a passive status update about user or system activity
|
|
5779
|
-
*/
|
|
5780
|
-
const Notification = (_a) => {
|
|
5781
|
-
var { closeText, message, onClose, type, isPrimary, isRegular } = _a, props = __rest(_a, ["closeText", "message", "onClose", "type", "isPrimary", "isRegular"]);
|
|
5782
|
-
return (jsxRuntime.jsxs(UgNotification, Object.assign({ type: type, isPrimary: isPrimary }, props, { children: [jsxRuntime.jsx(UgTitle, Object.assign({ isRegular: isRegular, type: type, isPrimary: isPrimary }, { children: message })), jsxRuntime.jsx(UgAnchor, Object.assign({ type: type, isPrimary: isPrimary, onClick: onClose }, { children: closeText !== null && closeText !== void 0 ? closeText : jsxRuntime.jsx(UgClose, {}) }))] })));
|
|
5783
|
-
};
|
|
5784
|
-
// ToastProvider
|
|
5785
|
-
const ToastProvider = (props) => (jsxRuntime.jsx(reactNotifications.ToastProvider, Object.assign({}, props)));
|
|
5786
|
-
const useToast = reactNotifications.useToast;
|
|
5787
|
-
|
|
5788
5859
|
const UgPagination = styled__default["default"](reactPagination.Pagination) ``;
|
|
5789
5860
|
/**
|
|
5790
5861
|
* Pagination separates content into pages and allows users to navigate between those pages.
|