funda-ui 4.6.344 → 4.6.358
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/Chatbox/index.css +13 -5
- package/Chatbox/index.js +47 -37
- package/lib/cjs/Chatbox/index.js +47 -37
- package/lib/css/Chatbox/index.css +13 -5
- package/lib/esm/Chatbox/index.scss +17 -8
- package/lib/esm/Chatbox/index.tsx +9 -2
- package/lib/esm/EventCalendarTimeline/index.tsx +1 -1
- package/package.json +1 -1
package/Chatbox/index.css
CHANGED
|
@@ -364,20 +364,27 @@
|
|
|
364
364
|
bottom: 10px;
|
|
365
365
|
z-index: 1;
|
|
366
366
|
width: calc(100% - 40px);
|
|
367
|
+
border: 1px solid var(--custom-chatbox-gray-color);
|
|
368
|
+
border-radius: 0.35rem;
|
|
369
|
+
transition: all 0.3s ease;
|
|
367
370
|
}
|
|
368
371
|
.custom-chatbox-container .msgcontrol img, .custom-chatbox-container .msgcontrol svg, .custom-chatbox-container .msgcontrol video, .custom-chatbox-container .msgcontrol canvas, .custom-chatbox-container .msgcontrol audio, .custom-chatbox-container .msgcontrol iframe, .custom-chatbox-container .msgcontrol embed, .custom-chatbox-container .msgcontrol object {
|
|
369
372
|
display: inline;
|
|
370
373
|
}
|
|
374
|
+
.custom-chatbox-container .msgcontrol.focus {
|
|
375
|
+
border-color: var(--app-chatbox-primary-color);
|
|
376
|
+
}
|
|
371
377
|
.custom-chatbox-container .msgcontrol .messageInput {
|
|
372
378
|
width: 100%;
|
|
373
|
-
border: 1px solid var(--custom-chatbox-msg-border);
|
|
374
379
|
border-radius: 4px;
|
|
375
380
|
font-size: 0.875rem;
|
|
376
381
|
border: none;
|
|
377
382
|
outline: none;
|
|
383
|
+
margin-bottom: 2.2rem;
|
|
378
384
|
}
|
|
379
385
|
.custom-chatbox-container .msgcontrol .messageInput:focus, .custom-chatbox-container .msgcontrol .messageInput:focus-visible {
|
|
380
386
|
outline: none;
|
|
387
|
+
box-shadow: none;
|
|
381
388
|
}
|
|
382
389
|
.custom-chatbox-container .msgcontrol .messageInput .messageInput-control {
|
|
383
390
|
background: var(--custom-chatbox-input-bg);
|
|
@@ -387,7 +394,7 @@
|
|
|
387
394
|
color: var(--custom-chatbox-default-txt-color);
|
|
388
395
|
resize: none;
|
|
389
396
|
max-height: 50vh;
|
|
390
|
-
border:
|
|
397
|
+
border: none;
|
|
391
398
|
}
|
|
392
399
|
.custom-chatbox-container .msgcontrol .messageInput .messageInput-control::-webkit-scrollbar {
|
|
393
400
|
width: 3px;
|
|
@@ -397,7 +404,8 @@
|
|
|
397
404
|
}
|
|
398
405
|
.custom-chatbox-container .msgcontrol .messageInput .messageInput-control:focus, .custom-chatbox-container .msgcontrol .messageInput .messageInput-control:focus-visible {
|
|
399
406
|
border-color: transparent;
|
|
400
|
-
outline:
|
|
407
|
+
outline: none;
|
|
408
|
+
box-shadow: none;
|
|
401
409
|
}
|
|
402
410
|
.custom-chatbox-container .msgcontrol button {
|
|
403
411
|
padding: 6px;
|
|
@@ -413,7 +421,7 @@
|
|
|
413
421
|
font-size: 0.875rem;
|
|
414
422
|
z-index: 2;
|
|
415
423
|
right: 0.4rem;
|
|
416
|
-
bottom: 0.
|
|
424
|
+
bottom: 0.3rem;
|
|
417
425
|
width: 40px;
|
|
418
426
|
height: 40px;
|
|
419
427
|
padding: 0;
|
|
@@ -466,7 +474,7 @@
|
|
|
466
474
|
.custom-chatbox-container .toolkit-btns {
|
|
467
475
|
display: flex;
|
|
468
476
|
position: absolute;
|
|
469
|
-
bottom:
|
|
477
|
+
bottom: 15px;
|
|
470
478
|
margin-left: 5px;
|
|
471
479
|
z-index: 1;
|
|
472
480
|
flex-wrap: wrap;
|
package/Chatbox/index.js
CHANGED
|
@@ -4258,36 +4258,40 @@ var Chatbox = function Chatbox(props) {
|
|
|
4258
4258
|
var inputContentRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
4259
4259
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4260
4260
|
_useState2 = src_slicedToArray(_useState, 2),
|
|
4261
|
-
|
|
4262
|
-
|
|
4261
|
+
focused = _useState2[0],
|
|
4262
|
+
setFocused = _useState2[1];
|
|
4263
4263
|
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4264
4264
|
_useState4 = src_slicedToArray(_useState3, 2),
|
|
4265
|
-
|
|
4266
|
-
|
|
4265
|
+
loaderDisplay = _useState4[0],
|
|
4266
|
+
setLoaderDisplay = _useState4[1];
|
|
4267
4267
|
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4268
4268
|
_useState6 = src_slicedToArray(_useState5, 2),
|
|
4269
|
-
|
|
4270
|
-
|
|
4269
|
+
loading = _useState6[0],
|
|
4270
|
+
setLoading = _useState6[1];
|
|
4271
4271
|
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4272
4272
|
_useState8 = src_slicedToArray(_useState7, 2),
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4273
|
+
thinking = _useState8[0],
|
|
4274
|
+
setThinking = _useState8[1];
|
|
4275
|
+
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4276
4276
|
_useState10 = src_slicedToArray(_useState9, 2),
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4277
|
+
show = _useState10[0],
|
|
4278
|
+
setShow = _useState10[1];
|
|
4279
|
+
var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
4280
4280
|
_useState12 = src_slicedToArray(_useState11, 2),
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4281
|
+
msgList = _useState12[0],
|
|
4282
|
+
setMsgList = _useState12[1];
|
|
4283
|
+
var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
4284
4284
|
_useState14 = src_slicedToArray(_useState13, 2),
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4285
|
+
elapsedTime = _useState14[0],
|
|
4286
|
+
setElapsedTime = _useState14[1];
|
|
4287
|
+
var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
4288
4288
|
_useState16 = src_slicedToArray(_useState15, 2),
|
|
4289
|
-
|
|
4290
|
-
|
|
4289
|
+
tempAnimText = _useState16[0],
|
|
4290
|
+
setTempAnimText = _useState16[1];
|
|
4291
|
+
var _useState17 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true),
|
|
4292
|
+
_useState18 = src_slicedToArray(_useState17, 2),
|
|
4293
|
+
enableStreamMode = _useState18[0],
|
|
4294
|
+
setEnableStreamMode = _useState18[1];
|
|
4291
4295
|
var animatedMessagesRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(new Set()); // Add a ref to keep track of messages that have already been animated
|
|
4292
4296
|
|
|
4293
4297
|
//
|
|
@@ -4584,10 +4588,10 @@ var Chatbox = function Chatbox(props) {
|
|
|
4584
4588
|
//================================================================
|
|
4585
4589
|
// Custom Questions
|
|
4586
4590
|
//================================================================
|
|
4587
|
-
var
|
|
4588
|
-
|
|
4589
|
-
questions =
|
|
4590
|
-
setQuestions =
|
|
4591
|
+
var _useState19 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.defaultQuestions),
|
|
4592
|
+
_useState20 = src_slicedToArray(_useState19, 2),
|
|
4593
|
+
questions = _useState20[0],
|
|
4594
|
+
setQuestions = _useState20[1];
|
|
4591
4595
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
4592
4596
|
if (props.defaultQuestions) {
|
|
4593
4597
|
setQuestions(props.defaultQuestions);
|
|
@@ -4608,10 +4612,10 @@ var Chatbox = function Chatbox(props) {
|
|
|
4608
4612
|
// Custom buttons
|
|
4609
4613
|
//================================================================
|
|
4610
4614
|
var toolkitBtnsRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
4611
|
-
var
|
|
4612
|
-
|
|
4613
|
-
activeButtons =
|
|
4614
|
-
setActiveButtons =
|
|
4615
|
+
var _useState21 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4616
|
+
_useState22 = src_slicedToArray(_useState21, 2),
|
|
4617
|
+
activeButtons = _useState22[0],
|
|
4618
|
+
setActiveButtons = _useState22[1];
|
|
4615
4619
|
var closeDropdowns = function closeDropdowns() {
|
|
4616
4620
|
setActiveButtons(function (prev) {
|
|
4617
4621
|
var _args$toolkitButtons;
|
|
@@ -4685,15 +4689,15 @@ var Chatbox = function Chatbox(props) {
|
|
|
4685
4689
|
}();
|
|
4686
4690
|
|
|
4687
4691
|
// options
|
|
4688
|
-
var _useState21 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4689
|
-
_useState22 = src_slicedToArray(_useState21, 2),
|
|
4690
|
-
selectedOpt = _useState22[0],
|
|
4691
|
-
setSelectedOpt = _useState22[1];
|
|
4692
|
-
// Store dynamic options
|
|
4693
4692
|
var _useState23 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4694
4693
|
_useState24 = src_slicedToArray(_useState23, 2),
|
|
4695
|
-
|
|
4696
|
-
|
|
4694
|
+
selectedOpt = _useState24[0],
|
|
4695
|
+
setSelectedOpt = _useState24[1];
|
|
4696
|
+
// Store dynamic options
|
|
4697
|
+
var _useState25 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4698
|
+
_useState26 = src_slicedToArray(_useState25, 2),
|
|
4699
|
+
dynamicOptions = _useState26[0],
|
|
4700
|
+
setDynamicOptions = _useState26[1];
|
|
4697
4701
|
var getButtonOptions = function getButtonOptions(btn, buttonId) {
|
|
4698
4702
|
// If you are using the dynamic option and already have a cache, return the option for caching
|
|
4699
4703
|
//---------
|
|
@@ -5659,7 +5663,7 @@ var Chatbox = function Chatbox(props) {
|
|
|
5659
5663
|
__html: ((_args$newChatButton = args().newChatButton) === null || _args$newChatButton === void 0 ? void 0 : _args$newChatButton.label) || ''
|
|
5660
5664
|
}
|
|
5661
5665
|
})))), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
5662
|
-
className: "msgcontrol"
|
|
5666
|
+
className: "msgcontrol ".concat(focused ? 'focus' : '')
|
|
5663
5667
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((cjs_default()), {
|
|
5664
5668
|
ref: msInput,
|
|
5665
5669
|
contentRef: inputContentRef,
|
|
@@ -5681,7 +5685,13 @@ var Chatbox = function Chatbox(props) {
|
|
|
5681
5685
|
var _args$onInputChange, _args16;
|
|
5682
5686
|
(_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current, e.target.value);
|
|
5683
5687
|
},
|
|
5684
|
-
|
|
5688
|
+
onFocus: function onFocus() {
|
|
5689
|
+
setFocused(true);
|
|
5690
|
+
},
|
|
5691
|
+
onBlur: function onBlur() {
|
|
5692
|
+
setFocused(false);
|
|
5693
|
+
},
|
|
5694
|
+
rows: args().defaultRows || 2,
|
|
5685
5695
|
autoSize: true,
|
|
5686
5696
|
autoSizeMaxHeight: 200
|
|
5687
5697
|
}), loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
|
package/lib/cjs/Chatbox/index.js
CHANGED
|
@@ -4258,36 +4258,40 @@ var Chatbox = function Chatbox(props) {
|
|
|
4258
4258
|
var inputContentRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
4259
4259
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4260
4260
|
_useState2 = src_slicedToArray(_useState, 2),
|
|
4261
|
-
|
|
4262
|
-
|
|
4261
|
+
focused = _useState2[0],
|
|
4262
|
+
setFocused = _useState2[1];
|
|
4263
4263
|
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4264
4264
|
_useState4 = src_slicedToArray(_useState3, 2),
|
|
4265
|
-
|
|
4266
|
-
|
|
4265
|
+
loaderDisplay = _useState4[0],
|
|
4266
|
+
setLoaderDisplay = _useState4[1];
|
|
4267
4267
|
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4268
4268
|
_useState6 = src_slicedToArray(_useState5, 2),
|
|
4269
|
-
|
|
4270
|
-
|
|
4269
|
+
loading = _useState6[0],
|
|
4270
|
+
setLoading = _useState6[1];
|
|
4271
4271
|
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4272
4272
|
_useState8 = src_slicedToArray(_useState7, 2),
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4273
|
+
thinking = _useState8[0],
|
|
4274
|
+
setThinking = _useState8[1];
|
|
4275
|
+
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
4276
4276
|
_useState10 = src_slicedToArray(_useState9, 2),
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4277
|
+
show = _useState10[0],
|
|
4278
|
+
setShow = _useState10[1];
|
|
4279
|
+
var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
4280
4280
|
_useState12 = src_slicedToArray(_useState11, 2),
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4281
|
+
msgList = _useState12[0],
|
|
4282
|
+
setMsgList = _useState12[1];
|
|
4283
|
+
var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
4284
4284
|
_useState14 = src_slicedToArray(_useState13, 2),
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
4285
|
+
elapsedTime = _useState14[0],
|
|
4286
|
+
setElapsedTime = _useState14[1];
|
|
4287
|
+
var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
4288
4288
|
_useState16 = src_slicedToArray(_useState15, 2),
|
|
4289
|
-
|
|
4290
|
-
|
|
4289
|
+
tempAnimText = _useState16[0],
|
|
4290
|
+
setTempAnimText = _useState16[1];
|
|
4291
|
+
var _useState17 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true),
|
|
4292
|
+
_useState18 = src_slicedToArray(_useState17, 2),
|
|
4293
|
+
enableStreamMode = _useState18[0],
|
|
4294
|
+
setEnableStreamMode = _useState18[1];
|
|
4291
4295
|
var animatedMessagesRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(new Set()); // Add a ref to keep track of messages that have already been animated
|
|
4292
4296
|
|
|
4293
4297
|
//
|
|
@@ -4584,10 +4588,10 @@ var Chatbox = function Chatbox(props) {
|
|
|
4584
4588
|
//================================================================
|
|
4585
4589
|
// Custom Questions
|
|
4586
4590
|
//================================================================
|
|
4587
|
-
var
|
|
4588
|
-
|
|
4589
|
-
questions =
|
|
4590
|
-
setQuestions =
|
|
4591
|
+
var _useState19 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.defaultQuestions),
|
|
4592
|
+
_useState20 = src_slicedToArray(_useState19, 2),
|
|
4593
|
+
questions = _useState20[0],
|
|
4594
|
+
setQuestions = _useState20[1];
|
|
4591
4595
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
4592
4596
|
if (props.defaultQuestions) {
|
|
4593
4597
|
setQuestions(props.defaultQuestions);
|
|
@@ -4608,10 +4612,10 @@ var Chatbox = function Chatbox(props) {
|
|
|
4608
4612
|
// Custom buttons
|
|
4609
4613
|
//================================================================
|
|
4610
4614
|
var toolkitBtnsRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
4611
|
-
var
|
|
4612
|
-
|
|
4613
|
-
activeButtons =
|
|
4614
|
-
setActiveButtons =
|
|
4615
|
+
var _useState21 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4616
|
+
_useState22 = src_slicedToArray(_useState21, 2),
|
|
4617
|
+
activeButtons = _useState22[0],
|
|
4618
|
+
setActiveButtons = _useState22[1];
|
|
4615
4619
|
var closeDropdowns = function closeDropdowns() {
|
|
4616
4620
|
setActiveButtons(function (prev) {
|
|
4617
4621
|
var _args$toolkitButtons;
|
|
@@ -4685,15 +4689,15 @@ var Chatbox = function Chatbox(props) {
|
|
|
4685
4689
|
}();
|
|
4686
4690
|
|
|
4687
4691
|
// options
|
|
4688
|
-
var _useState21 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4689
|
-
_useState22 = src_slicedToArray(_useState21, 2),
|
|
4690
|
-
selectedOpt = _useState22[0],
|
|
4691
|
-
setSelectedOpt = _useState22[1];
|
|
4692
|
-
// Store dynamic options
|
|
4693
4692
|
var _useState23 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4694
4693
|
_useState24 = src_slicedToArray(_useState23, 2),
|
|
4695
|
-
|
|
4696
|
-
|
|
4694
|
+
selectedOpt = _useState24[0],
|
|
4695
|
+
setSelectedOpt = _useState24[1];
|
|
4696
|
+
// Store dynamic options
|
|
4697
|
+
var _useState25 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
4698
|
+
_useState26 = src_slicedToArray(_useState25, 2),
|
|
4699
|
+
dynamicOptions = _useState26[0],
|
|
4700
|
+
setDynamicOptions = _useState26[1];
|
|
4697
4701
|
var getButtonOptions = function getButtonOptions(btn, buttonId) {
|
|
4698
4702
|
// If you are using the dynamic option and already have a cache, return the option for caching
|
|
4699
4703
|
//---------
|
|
@@ -5659,7 +5663,7 @@ var Chatbox = function Chatbox(props) {
|
|
|
5659
5663
|
__html: ((_args$newChatButton = args().newChatButton) === null || _args$newChatButton === void 0 ? void 0 : _args$newChatButton.label) || ''
|
|
5660
5664
|
}
|
|
5661
5665
|
})))), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
5662
|
-
className: "msgcontrol"
|
|
5666
|
+
className: "msgcontrol ".concat(focused ? 'focus' : '')
|
|
5663
5667
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((cjs_default()), {
|
|
5664
5668
|
ref: msInput,
|
|
5665
5669
|
contentRef: inputContentRef,
|
|
@@ -5681,7 +5685,13 @@ var Chatbox = function Chatbox(props) {
|
|
|
5681
5685
|
var _args$onInputChange, _args16;
|
|
5682
5686
|
(_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current, e.target.value);
|
|
5683
5687
|
},
|
|
5684
|
-
|
|
5688
|
+
onFocus: function onFocus() {
|
|
5689
|
+
setFocused(true);
|
|
5690
|
+
},
|
|
5691
|
+
onBlur: function onBlur() {
|
|
5692
|
+
setFocused(false);
|
|
5693
|
+
},
|
|
5694
|
+
rows: args().defaultRows || 2,
|
|
5685
5695
|
autoSize: true,
|
|
5686
5696
|
autoSizeMaxHeight: 200
|
|
5687
5697
|
}), loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
|
|
@@ -364,20 +364,27 @@
|
|
|
364
364
|
bottom: 10px;
|
|
365
365
|
z-index: 1;
|
|
366
366
|
width: calc(100% - 40px);
|
|
367
|
+
border: 1px solid var(--custom-chatbox-gray-color);
|
|
368
|
+
border-radius: 0.35rem;
|
|
369
|
+
transition: all 0.3s ease;
|
|
367
370
|
}
|
|
368
371
|
.custom-chatbox-container .msgcontrol img, .custom-chatbox-container .msgcontrol svg, .custom-chatbox-container .msgcontrol video, .custom-chatbox-container .msgcontrol canvas, .custom-chatbox-container .msgcontrol audio, .custom-chatbox-container .msgcontrol iframe, .custom-chatbox-container .msgcontrol embed, .custom-chatbox-container .msgcontrol object {
|
|
369
372
|
display: inline;
|
|
370
373
|
}
|
|
374
|
+
.custom-chatbox-container .msgcontrol.focus {
|
|
375
|
+
border-color: var(--app-chatbox-primary-color);
|
|
376
|
+
}
|
|
371
377
|
.custom-chatbox-container .msgcontrol .messageInput {
|
|
372
378
|
width: 100%;
|
|
373
|
-
border: 1px solid var(--custom-chatbox-msg-border);
|
|
374
379
|
border-radius: 4px;
|
|
375
380
|
font-size: 0.875rem;
|
|
376
381
|
border: none;
|
|
377
382
|
outline: none;
|
|
383
|
+
margin-bottom: 2.2rem;
|
|
378
384
|
}
|
|
379
385
|
.custom-chatbox-container .msgcontrol .messageInput:focus, .custom-chatbox-container .msgcontrol .messageInput:focus-visible {
|
|
380
386
|
outline: none;
|
|
387
|
+
box-shadow: none;
|
|
381
388
|
}
|
|
382
389
|
.custom-chatbox-container .msgcontrol .messageInput .messageInput-control {
|
|
383
390
|
background: var(--custom-chatbox-input-bg);
|
|
@@ -387,7 +394,7 @@
|
|
|
387
394
|
color: var(--custom-chatbox-default-txt-color);
|
|
388
395
|
resize: none;
|
|
389
396
|
max-height: 50vh;
|
|
390
|
-
border:
|
|
397
|
+
border: none;
|
|
391
398
|
}
|
|
392
399
|
.custom-chatbox-container .msgcontrol .messageInput .messageInput-control::-webkit-scrollbar {
|
|
393
400
|
width: 3px;
|
|
@@ -397,7 +404,8 @@
|
|
|
397
404
|
}
|
|
398
405
|
.custom-chatbox-container .msgcontrol .messageInput .messageInput-control:focus, .custom-chatbox-container .msgcontrol .messageInput .messageInput-control:focus-visible {
|
|
399
406
|
border-color: transparent;
|
|
400
|
-
outline:
|
|
407
|
+
outline: none;
|
|
408
|
+
box-shadow: none;
|
|
401
409
|
}
|
|
402
410
|
.custom-chatbox-container .msgcontrol button {
|
|
403
411
|
padding: 6px;
|
|
@@ -413,7 +421,7 @@
|
|
|
413
421
|
font-size: 0.875rem;
|
|
414
422
|
z-index: 2;
|
|
415
423
|
right: 0.4rem;
|
|
416
|
-
bottom: 0.
|
|
424
|
+
bottom: 0.3rem;
|
|
417
425
|
width: 40px;
|
|
418
426
|
height: 40px;
|
|
419
427
|
padding: 0;
|
|
@@ -466,7 +474,7 @@
|
|
|
466
474
|
.custom-chatbox-container .toolkit-btns {
|
|
467
475
|
display: flex;
|
|
468
476
|
position: absolute;
|
|
469
|
-
bottom:
|
|
477
|
+
bottom: 15px;
|
|
470
478
|
margin-left: 5px;
|
|
471
479
|
z-index: 1;
|
|
472
480
|
flex-wrap: wrap;
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
--custom-chatbox-questions-hover-bg: #e9e9e9;
|
|
167
167
|
--custom-chatbox-content-html-elem-border-color: #ddd;
|
|
168
168
|
--custom-chatbox-content-html-elem-bg: rgba(0,0,0,.05);
|
|
169
|
-
|
|
169
|
+
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
min-width: var(--custom-chatbox-w);
|
|
@@ -439,26 +439,33 @@
|
|
|
439
439
|
bottom: 10px;
|
|
440
440
|
z-index: 1;
|
|
441
441
|
width: calc(100% - 40px);
|
|
442
|
+
border: 1px solid var(--custom-chatbox-gray-color);
|
|
443
|
+
border-radius: 0.35rem;
|
|
444
|
+
transition: all 0.3s ease;
|
|
442
445
|
|
|
443
446
|
img, svg, video, canvas, audio, iframe, embed, object {
|
|
444
447
|
display: inline;
|
|
445
448
|
}
|
|
446
449
|
|
|
450
|
+
&.focus {
|
|
451
|
+
border-color: var(--app-chatbox-primary-color);
|
|
452
|
+
}
|
|
453
|
+
|
|
447
454
|
|
|
448
455
|
.messageInput {
|
|
449
456
|
width: 100%;
|
|
450
|
-
border: 1px solid var(--custom-chatbox-msg-border);
|
|
451
457
|
border-radius: 4px;
|
|
452
458
|
font-size: 0.875rem;
|
|
453
459
|
border: none;
|
|
454
460
|
outline: none;
|
|
461
|
+
margin-bottom: 2.2rem;
|
|
455
462
|
|
|
456
463
|
&:focus,
|
|
457
464
|
&:focus-visible {
|
|
458
465
|
outline: none;
|
|
466
|
+
box-shadow: none;
|
|
459
467
|
}
|
|
460
468
|
|
|
461
|
-
|
|
462
469
|
.messageInput-control {
|
|
463
470
|
background: var(--custom-chatbox-input-bg);
|
|
464
471
|
padding: .5rem;
|
|
@@ -467,7 +474,8 @@
|
|
|
467
474
|
color: var(--custom-chatbox-default-txt-color);
|
|
468
475
|
resize: none;
|
|
469
476
|
max-height: 50vh;
|
|
470
|
-
border:
|
|
477
|
+
border: none;
|
|
478
|
+
|
|
471
479
|
|
|
472
480
|
&::-webkit-scrollbar {
|
|
473
481
|
width: 3px;
|
|
@@ -480,7 +488,8 @@
|
|
|
480
488
|
&:focus,
|
|
481
489
|
&:focus-visible {
|
|
482
490
|
border-color: transparent;
|
|
483
|
-
outline:
|
|
491
|
+
outline: none;
|
|
492
|
+
box-shadow: none;
|
|
484
493
|
}
|
|
485
494
|
|
|
486
495
|
|
|
@@ -502,7 +511,7 @@
|
|
|
502
511
|
font-size: 0.875rem;
|
|
503
512
|
z-index: 2;
|
|
504
513
|
right: .4rem;
|
|
505
|
-
bottom: .
|
|
514
|
+
bottom: .3rem;
|
|
506
515
|
width: 40px;
|
|
507
516
|
height: 40px;
|
|
508
517
|
padding: 0;
|
|
@@ -576,7 +585,7 @@
|
|
|
576
585
|
.toolkit-btns {
|
|
577
586
|
display: flex;
|
|
578
587
|
position: absolute;
|
|
579
|
-
bottom:
|
|
588
|
+
bottom: 15px;
|
|
580
589
|
margin-left: 5px;
|
|
581
590
|
z-index: 1;
|
|
582
591
|
flex-wrap: wrap;
|
|
@@ -735,6 +744,6 @@
|
|
|
735
744
|
}
|
|
736
745
|
|
|
737
746
|
}
|
|
738
|
-
|
|
747
|
+
|
|
739
748
|
|
|
740
749
|
}
|
|
@@ -161,6 +161,7 @@ const Chatbox = (props: ChatboxProps) => {
|
|
|
161
161
|
const msgContainerRef = useRef<HTMLDivElement>(null);
|
|
162
162
|
const msInput = useRef<HTMLTextAreaElement>(null);
|
|
163
163
|
const inputContentRef = useRef<any>(null);
|
|
164
|
+
const [focused, setFocused] = useState(false);
|
|
164
165
|
|
|
165
166
|
const [loaderDisplay, setLoaderDisplay] = useState<boolean>(false);
|
|
166
167
|
const [loading, setLoading] = useState<boolean>(false);
|
|
@@ -1460,7 +1461,7 @@ const Chatbox = (props: ChatboxProps) => {
|
|
|
1460
1461
|
|
|
1461
1462
|
|
|
1462
1463
|
{/**------------- CONTROL AREA -------------*/}
|
|
1463
|
-
<div className=
|
|
1464
|
+
<div className={`msgcontrol ${focused ? 'focus' : ''}`}>
|
|
1464
1465
|
|
|
1465
1466
|
<Textarea
|
|
1466
1467
|
ref={msInput}
|
|
@@ -1484,7 +1485,13 @@ const Chatbox = (props: ChatboxProps) => {
|
|
|
1484
1485
|
onChange={(e) => {
|
|
1485
1486
|
args().onInputChange?.(inputContentRef.current, e.target.value);
|
|
1486
1487
|
}}
|
|
1487
|
-
|
|
1488
|
+
onFocus={() => {
|
|
1489
|
+
setFocused(true);
|
|
1490
|
+
}}
|
|
1491
|
+
onBlur={() => {
|
|
1492
|
+
setFocused(false);
|
|
1493
|
+
}}
|
|
1494
|
+
rows={args().defaultRows || 2}
|
|
1488
1495
|
autoSize
|
|
1489
1496
|
autoSizeMaxHeight={200}
|
|
1490
1497
|
/>
|
|
@@ -2233,7 +2233,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
2233
2233
|
{/* //########## MODE: WEEK ############# */}
|
|
2234
2234
|
{appearanceMode === 'week' ? <>
|
|
2235
2235
|
<div className="custom-event-tl__header__info">
|
|
2236
|
-
{typeof appearanceWeekTmpl === 'function' ? <>{appearanceWeekTmpl(displayWeekForHeader[0], displayWeekForHeader[1])}</> : <>{displayWeekForHeader[0]} - {displayWeekForHeader[1]}</>}
|
|
2236
|
+
{typeof appearanceWeekTmpl === 'function' ? <>{appearanceWeekTmpl(displayWeekForHeader[0], displayWeekForHeader[1]) as never}</> : <>{displayWeekForHeader[0]} - {displayWeekForHeader[1]}</>}
|
|
2237
2237
|
</div>
|
|
2238
2238
|
</> : null}
|
|
2239
2239
|
{/* //########## /MODE: WEEK ############# */}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "4.6.
|
|
5
|
+
"version": "4.6.358",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|