@uzum-tech/ui 1.14.5 → 1.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47342,6 +47342,7 @@
47342
47342
  height: 44px;
47343
47343
  `)]), cE("message-text", `
47344
47344
  padding: 12px 16px;
47345
+ white-space: pre-wrap;
47345
47346
  `), cE("message-attachment", `
47346
47347
  display: flex;
47347
47348
  align-items: center;
@@ -47418,6 +47419,7 @@
47418
47419
  `, [c$1(".u-input-wrapper", `
47419
47420
  flex-wrap: wrap;
47420
47421
  padding: 0 4px;
47422
+ height: 100%;
47421
47423
  `, [c$1(".u-input__prefix", `
47422
47424
  width: 100%;
47423
47425
  margin: 0;
@@ -47428,13 +47430,20 @@
47428
47430
  border-top-right-radius: 12px;
47429
47431
  `), c$1("li", `
47430
47432
  padding: 12px;
47431
- `)]), c$1(".u-input__input-el", `
47432
- padding: 8px;
47433
+ `)]), c$1(".u-input__textarea-el", `
47434
+ padding-top: 12px;
47435
+ padding-left: 12px;
47436
+ padding-right: 48px;
47433
47437
  `), c$1(".u-input__placeholder", `
47434
- margin: 8px;
47438
+ padding-top: 12px;
47439
+ padding-left: 12px;
47440
+ padding-right: 48px;
47435
47441
  `)])]), cE("editing-block", `
47436
47442
  width: 100%;
47437
47443
  `), cE("input-suffix", `
47444
+ position: absolute;
47445
+ right: 12px;
47446
+ bottom: 12px;
47438
47447
  color: var(--u-input-suffix-color) !important;
47439
47448
  cursor: pointer;
47440
47449
  margin-right: 4px;
@@ -47569,6 +47578,7 @@
47569
47578
  ...originalInputSelf,
47570
47579
  color: elementsTertiary,
47571
47580
  colorFocus: elementsTertiary,
47581
+ heightMedium: "45px",
47572
47582
  border: "none",
47573
47583
  borderFocus: "none",
47574
47584
  borderHover: "none",
@@ -57497,7 +57507,7 @@
57497
57507
  if (isSending.value) {
57498
57508
  return;
57499
57509
  }
57500
- const hasContent = inputValue.value.trim();
57510
+ const hasContent = inputValue.value;
57501
57511
  const hasAttachments = attachmentFileList.value.length > 0;
57502
57512
  if (editMessageIdRef?.value && hasContent) {
57503
57513
  isSending.value = true;
@@ -57506,7 +57516,7 @@
57506
57516
  if (messageToEdit) {
57507
57517
  const updatedMessage = {
57508
57518
  ...messageToEdit,
57509
- content: inputValue.value.trim()
57519
+ content: inputValue.value
57510
57520
  };
57511
57521
  const bubbleActions = bubbleActionsRef?.value;
57512
57522
  if (bubbleActions) {
@@ -57554,7 +57564,7 @@
57554
57564
  percentage: file.percentage ?? void 0
57555
57565
  };
57556
57566
  }) : void 0;
57557
- handleMessageSend(inputValue.value.trim(), attachments);
57567
+ handleMessageSend(inputValue.value, attachments);
57558
57568
  inputValue.value = "";
57559
57569
  attachmentFileList.value = [];
57560
57570
  chatInputs.value[selectedChatRef.value.id] = "";
@@ -57693,9 +57703,13 @@
57693
57703
  value: inputValue.value,
57694
57704
  placeholder: inputPlaceholderRef.value,
57695
57705
  class: `${mergedClsPrefixRef.value}-chat-main__input`,
57696
- ...footerInputPropsRef.value,
57697
57706
  theme: mergedThemeRef.value.peers.Input,
57698
57707
  themeOverrides: mergedThemeRef.value.peerOverrides.Input,
57708
+ type: "textarea",
57709
+ autosize: {
57710
+ minRows: 1,
57711
+ maxRows: 5
57712
+ },
57699
57713
  onUpdateValue: (value) => {
57700
57714
  inputValue.value = value;
57701
57715
  if (selectedChatRef.value) {
@@ -57708,7 +57722,8 @@
57708
57722
  e.stopPropagation();
57709
57723
  void handleSendMessage();
57710
57724
  }
57711
- }
57725
+ },
57726
+ ...footerInputPropsRef.value
57712
57727
  },
57713
57728
  {
57714
57729
  prefix: () => renderEditingBlock(),
@@ -132268,7 +132283,7 @@
132268
132283
  watermarkProps: watermarkProps
132269
132284
  });
132270
132285
 
132271
- var version = "1.14.5";
132286
+ var version = "1.14.6";
132272
132287
 
132273
132288
  function useExposeProxy(targetRef) {
132274
132289
  return new Proxy({}, {