@uzum-tech/ui 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/index.js +192 -160
  2. package/dist/index.mjs +192 -160
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/chat/src/Chat.d.ts +1074 -0
  6. package/es/chat/src/ChatListItems.d.ts +360 -0
  7. package/es/chat/src/ChatMainArea.d.ts +360 -0
  8. package/es/chat/src/ChatMainArea.mjs +1 -0
  9. package/es/chat/src/ChatMessages.d.ts +360 -0
  10. package/es/chat/src/ChatMessages.mjs +30 -3
  11. package/es/chat/src/ChatParts/Sidebar.d.ts +78 -0
  12. package/es/chat/src/interface.d.ts +1 -0
  13. package/es/chat/styles/dark.d.ts +27 -0
  14. package/es/chat/styles/dark.mjs +2 -0
  15. package/es/chat/styles/light.d.ts +27 -0
  16. package/es/chat/styles/light.mjs +2 -0
  17. package/es/components.d.ts +1830 -0
  18. package/es/message-bubble/src/MessageBubble.mjs +6 -2
  19. package/es/message-bubble/src/interface.d.ts +2 -0
  20. package/es/message-bubble/src/styles/index.cssr.mjs +5 -7
  21. package/es/version.d.ts +1 -1
  22. package/es/version.mjs +1 -1
  23. package/lib/chat/src/Chat.d.ts +1074 -0
  24. package/lib/chat/src/ChatListItems.d.ts +360 -0
  25. package/lib/chat/src/ChatMainArea.d.ts +360 -0
  26. package/lib/chat/src/ChatMainArea.js +1 -0
  27. package/lib/chat/src/ChatMessages.d.ts +360 -0
  28. package/lib/chat/src/ChatMessages.js +10 -3
  29. package/lib/chat/src/ChatParts/Sidebar.d.ts +78 -0
  30. package/lib/chat/src/interface.d.ts +1 -0
  31. package/lib/chat/styles/dark.d.ts +27 -0
  32. package/lib/chat/styles/dark.js +6 -4
  33. package/lib/chat/styles/light.d.ts +27 -0
  34. package/lib/chat/styles/light.js +6 -4
  35. package/lib/components.d.ts +1830 -0
  36. package/lib/message-bubble/src/MessageBubble.js +5 -1
  37. package/lib/message-bubble/src/interface.d.ts +2 -0
  38. package/lib/message-bubble/src/styles/index.cssr.js +5 -7
  39. package/lib/version.d.ts +1 -1
  40. package/lib/version.js +1 -1
  41. package/package.json +1 -1
  42. package/web-types.json +10 -14
@@ -239,7 +239,9 @@ export default defineComponent({
239
239
  const hasBubbleActionsSlot = slots.bubbleActions !== undefined;
240
240
  const hasBubbleActionsConfig = Boolean(props.actions && props.actions.length > 0);
241
241
  const hasTitle = Boolean(props.title || slots.title);
242
- const hasContentInsideBubble = Boolean(props.content || slots.default || hasTitle || normalizedAttachmentsRef.value.length > 1);
242
+ const afterContentSlot = slots.afterContent || slots['after-content'];
243
+ const hasAfterContent = Boolean(afterContentSlot);
244
+ const hasContentInsideBubble = Boolean(props.content || slots.default || hasAfterContent || hasTitle || normalizedAttachmentsRef.value.length > 1);
243
245
  const messageBubbleContent = hasContentInsideBubble ? h("div", {
244
246
  class: [`${mergedClsPrefixRef.value}-message-bubble__bubble`, props.isOwn ? `${mergedClsPrefixRef.value}-message-bubble__bubble--own` : `${mergedClsPrefixRef.value}-message-bubble__bubble--other`]
245
247
  }, hasTitle && h(UText, {
@@ -247,7 +249,9 @@ export default defineComponent({
247
249
  variant: "body-l-semi-bold"
248
250
  }, slots.title ? slots.title(messagePayloadRef.value) : resolveRenderContent(props.title)), normalizedAttachmentsRef.value.length > 0 && renderAttachment(true), (props.content || slots.default) && h("div", {
249
251
  class: `${mergedClsPrefixRef.value}-message-bubble__text`
250
- }, slots.default ? slots.default(messagePayloadRef.value) : resolveRenderContent(props.content))) : normalizedAttachmentsRef.value.length === 1 ? renderAttachment() : null;
252
+ }, slots.default ? slots.default(messagePayloadRef.value) : resolveRenderContent(props.content)), hasAfterContent && h("div", {
253
+ class: `${mergedClsPrefixRef.value}-message-bubble__after-content`
254
+ }, afterContentSlot === null || afterContentSlot === void 0 ? void 0 : afterContentSlot(messagePayloadRef.value))) : normalizedAttachmentsRef.value.length === 1 ? renderAttachment() : null;
251
255
  return h("div", {
252
256
  class: [`${mergedClsPrefixRef.value}-message-bubble__message`, props.isOwn ? `${mergedClsPrefixRef.value}-message-bubble__message--own` : `${mergedClsPrefixRef.value}-message-bubble__message--other`]
253
257
  }, h("div", {
@@ -26,6 +26,8 @@ export declare enum MessageBubbleAttachmentStatus {
26
26
  export interface MessageBubbleSlots {
27
27
  default?: (message: MessageBubbleMessagePayload) => VNodeChild;
28
28
  title?: (message: MessageBubbleMessagePayload) => VNodeChild;
29
+ afterContent?: (message: MessageBubbleMessagePayload) => VNodeChild;
30
+ 'after-content'?: (message: MessageBubbleMessagePayload) => VNodeChild;
29
31
  service?: (variant: MessageBubbleServiceVariant) => VNodeChild;
30
32
  messageStatus?: (message: MessageBubbleMessagePayload) => VNodeChild;
31
33
  bubbleActions?: (message: MessageBubbleMessagePayload) => VNodeChild;
@@ -50,6 +50,8 @@ export default cB('message-bubble', `
50
50
  width: fit-content;
51
51
  display: flex;
52
52
  flex-direction: column;
53
+ padding: 12px;
54
+ gap: 12px;
53
55
  `, [cM('own', `
54
56
  background-color: var(--u-message-bubble-background-color-own);
55
57
  color: var(--u-message-bubble-text-color-own);
@@ -57,16 +59,12 @@ export default cB('message-bubble', `
57
59
  border-bottom-right-radius: 6px;
58
60
  `)]), cE('title', `
59
61
  color: var(--u-message-bubble-title-color);
60
- padding: 12px 16px 0;
61
62
  white-space: pre-wrap;
62
63
  `), cE('text', `
63
- padding: 12px 16px;
64
64
  white-space: pre-wrap;
65
- `), cE('text', `
66
- padding-top: 8px;
67
- `, [c('&&:first-child', `
68
- padding-top: 12px;
69
- `)]), cE('meta', `
65
+ `), cE('after-content', `
66
+ white-space: normal;
67
+ `), cE('meta', `
70
68
  display: flex;
71
69
  align-items: center;
72
70
  gap: 4px;
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.3.0";
1
+ declare const _default: "2.3.1";
2
2
  export default _default;
package/es/version.mjs CHANGED
@@ -1 +1 @@
1
- export default '2.3.0';
1
+ export default '2.3.1';