@namuna-nur/ui-kit 1.10.5 → 1.10.7

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 (72) hide show
  1. package/lib/atoms/index.js +403 -408
  2. package/lib/index.js +175 -161
  3. package/lib/molecules/index.js +3168 -2543
  4. package/lib/shared/assets-icons-0.js +13 -12
  5. package/lib/shared/assets-icons-2.js +11 -9
  6. package/lib/shared/assets-icons-3.js +10 -7
  7. package/lib/shared/assets-icons-4.js +14 -14
  8. package/lib/src/assets/icons/index.d.ts +6 -1
  9. package/lib/src/atoms/ReplyMessage/ReplyMessage.d.ts +2 -0
  10. package/lib/src/atoms/ReplyMessage/ReplyMessage.data.d.ts +1 -0
  11. package/lib/src/atoms/ReplyMessage/ReplyMessage.stories.d.ts +11 -0
  12. package/lib/src/atoms/ReplyMessage/ReplyMessage.tokens.d.ts +11 -0
  13. package/lib/src/atoms/ReplyMessage/ReplyMessage.types.d.ts +25 -0
  14. package/lib/src/atoms/ReplyMessage/ReplyMessage.utils.d.ts +1 -0
  15. package/lib/src/atoms/ReplyMessage/index.d.ts +3 -0
  16. package/lib/src/atoms/index.d.ts +1 -1
  17. package/lib/src/molecules/AudioMessage/AudioMessage.d.ts +2 -0
  18. package/lib/src/molecules/AudioMessage/AudioMessage.data.d.ts +4 -0
  19. package/lib/src/molecules/AudioMessage/AudioMessage.stories.d.ts +7 -0
  20. package/lib/src/molecules/AudioMessage/AudioMessage.test.d.ts +1 -0
  21. package/lib/src/molecules/AudioMessage/AudioMessage.tokens.d.ts +16 -0
  22. package/lib/src/molecules/AudioMessage/AudioMessage.types.d.ts +24 -0
  23. package/lib/src/molecules/AudioMessage/index.d.ts +3 -0
  24. package/lib/src/molecules/CardFiles/CardFiles.types.d.ts +2 -2
  25. package/lib/src/molecules/ChatList/ChatList.d.ts +0 -1
  26. package/lib/src/molecules/ChatMessage/ChatMessage.d.ts +1 -1
  27. package/lib/src/molecules/ChatMessage/ChatMessage.data.d.ts +1 -1
  28. package/lib/src/molecules/ChatMessage/ChatMessage.types.d.ts +7 -2
  29. package/lib/src/molecules/Combobox/Combobox.tokens.d.ts +2 -0
  30. package/lib/src/molecules/Combobox/Combobox.types.d.ts +4 -0
  31. package/lib/src/molecules/DocumentMessage/DocumentMessage.d.ts +2 -0
  32. package/lib/src/molecules/DocumentMessage/DocumentMessage.data.d.ts +4 -0
  33. package/lib/src/molecules/DocumentMessage/DocumentMessage.stories.d.ts +7 -0
  34. package/lib/src/molecules/DocumentMessage/DocumentMessage.test.d.ts +1 -0
  35. package/lib/src/molecules/DocumentMessage/DocumentMessage.tokens.d.ts +9 -0
  36. package/lib/src/molecules/DocumentMessage/DocumentMessage.types.d.ts +22 -0
  37. package/lib/src/molecules/DocumentMessage/index.d.ts +3 -0
  38. package/lib/src/molecules/FileCard/FileCard.d.ts +11 -0
  39. package/lib/src/molecules/FileCard/FileCard.stories.d.ts +7 -0
  40. package/lib/src/molecules/FileCard/FileCard.test.d.ts +1 -0
  41. package/lib/src/molecules/FileCard/FileCard.tokens.d.ts +9 -0
  42. package/lib/src/molecules/FileCard/FileCard.types.d.ts +15 -0
  43. package/lib/src/molecules/FileCard/index.d.ts +3 -0
  44. package/lib/src/molecules/ImageMessage/ImageMessage.d.ts +2 -0
  45. package/lib/src/molecules/ImageMessage/ImageMessage.data.d.ts +4 -0
  46. package/lib/src/molecules/ImageMessage/ImageMessage.stories.d.ts +7 -0
  47. package/lib/src/molecules/ImageMessage/ImageMessage.test.d.ts +1 -0
  48. package/lib/src/molecules/ImageMessage/ImageMessage.tokens.d.ts +6 -0
  49. package/lib/src/molecules/ImageMessage/ImageMessage.types.d.ts +17 -0
  50. package/lib/src/molecules/ImageMessage/index.d.ts +3 -0
  51. package/lib/src/{atoms → molecules}/Message/Message.stories.d.ts +1 -0
  52. package/lib/src/molecules/Message/Message.test.d.ts +1 -0
  53. package/lib/src/{atoms → molecules}/Message/Message.types.d.ts +5 -1
  54. package/lib/src/molecules/MessageSettings/MessageSettings.d.ts +1 -1
  55. package/lib/src/molecules/MessageSettings/MessageSettings.types.d.ts +2 -1
  56. package/lib/src/molecules/PaymentCard/PaymentCard.d.ts +1 -1
  57. package/lib/src/molecules/PaymentCard/PaymentCard.types.d.ts +1 -1
  58. package/lib/src/molecules/VideoMessage/VideoMessage.d.ts +2 -0
  59. package/lib/src/molecules/VideoMessage/VideoMessage.data.d.ts +4 -0
  60. package/lib/src/molecules/VideoMessage/VideoMessage.stories.d.ts +7 -0
  61. package/lib/src/molecules/VideoMessage/VideoMessage.test.d.ts +1 -0
  62. package/lib/src/molecules/VideoMessage/VideoMessage.tokens.d.ts +9 -0
  63. package/lib/src/molecules/VideoMessage/VideoMessage.types.d.ts +25 -0
  64. package/lib/src/molecules/VideoMessage/index.d.ts +3 -0
  65. package/lib/src/molecules/index.d.ts +6 -0
  66. package/lib/src/utils/date.d.ts +2 -0
  67. package/lib/utils/index.js +37 -29
  68. package/package.json +1 -1
  69. /package/lib/src/atoms/{Message/Message.test.d.ts → ReplyMessage/ReplyMessage.test.d.ts} +0 -0
  70. /package/lib/src/{atoms → molecules}/Message/Message.d.ts +0 -0
  71. /package/lib/src/{atoms → molecules}/Message/Message.tokens.d.ts +0 -0
  72. /package/lib/src/{atoms → molecules}/Message/index.d.ts +0 -0
@@ -4,18 +4,18 @@ const l = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.
4
4
  } }, /* @__PURE__ */ e.createElement("path", { d: "M0 0h20v20H0z" })), /* @__PURE__ */ e.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ e.createElement("path", { d: "m10 11.17-4.08 4.08a.8.8 0 0 1-.59.23.8.8 0 0 1-.58-.23.8.8 0 0 1-.23-.58q0-.35.23-.59L8.83 10 4.75 5.92a.8.8 0 0 1-.23-.59q0-.35.23-.58a.8.8 0 0 1 .58-.23q.35 0 .59.23L10 8.83l4.08-4.08a.8.8 0 0 1 .59-.23q.35 0 .58.23t.23.58-.23.59L11.17 10l4.08 4.08q.23.23.23.59 0 .35-.23.58a.8.8 0 0 1-.58.23.8.8 0 0 1-.59-.23z" }))), h = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", ...t }, /* @__PURE__ */ e.createElement("path", { stroke: "#4A4A4A", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: 0.3, strokeWidth: 1.5, d: "M15 5 5 15M5 5l10 10" })), m = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "currentFill", fillOpacity: 0.8, d: "M13.58 2.08a2.44 2.44 0 0 0-3.16 0L3.11 8.3a2.4 2.4 0 0 0-.86 1.86v9.16a2.43 2.43 0 0 0 2.43 2.43h14.64a2.43 2.43 0 0 0 2.43-2.43v-9.16a2.4 2.4 0 0 0-.86-1.86zM9 12.38a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0m-1.12 4.87a1.13 1.13 0 1 1 0-2.25 1.13 1.13 0 0 1 0 2.25m4.12 0A1.13 1.13 0 1 1 12 15a1.13 1.13 0 0 1 0 2.25m0-3.75a1.13 1.13 0 1 1 0-2.25 1.13 1.13 0 0 1 0 2.25m4.13 0a1.13 1.13 0 1 1 0-2.25 1.13 1.13 0 0 1 0 2.25m0 3.75a1.13 1.13 0 1 1 0-2.25 1.13 1.13 0 0 1 0 2.25" })), g = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 19, height: 19, fill: "currentFill", ...t }, /* @__PURE__ */ e.createElement("path", { fillOpacity: 0.4, d: "M13.94 12.28a7.72 7.72 0 1 0-1.65 1.66l.11.14 4.57 4.57a1.19 1.19 0 0 0 1.68-1.68l-4.57-4.57zm.31-4.56a6.53 6.53 0 1 1-13.06 0 6.53 6.53 0 0 1 13.06 0" })), w = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 6, height: 24, fill: "none", ...t }, /* @__PURE__ */ e.createElement("circle", { cx: 2.91, cy: 2.68, r: 2.53, fill: "currentFill" }), /* @__PURE__ */ e.createElement("circle", { cx: 2.91, cy: 11.7, r: 2.53, fill: "currentFill" }), /* @__PURE__ */ e.createElement("circle", { cx: 2.91, cy: 20.71, r: 2.53, fill: "currentFill" })), d = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "currentFill", ...t }, /* @__PURE__ */ e.createElement("path", { stroke: "currentColor", strokeLinejoin: "round", strokeWidth: 1.5, d: "M9.38 16.56v-3.75c4.54 0 6.22 1.32 8.12 3.75 0-4.65-1.55-9.37-8.12-9.37V3.44L2.5 10z" })), v = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 29, height: 29, fill: "none", ...t }, /* @__PURE__ */ e.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m10.61 20.05 5.9-5.9-5.9-5.9" })), p = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "currentFill", ...t }, /* @__PURE__ */ e.createElement("path", { stroke: "currentColor", strokeWidth: 1.5, d: "M5 9.17c0-2.36 0-3.54.73-4.27s1.91-.73 4.27-.73h2.5c2.36 0 3.54 0 4.27.73s.73 1.91.73 4.27v4.16c0 2.36 0 3.54-.73 4.27s-1.91.73-4.27.73H10c-2.36 0-3.54 0-4.27-.73S5 15.7 5 13.33z" }), /* @__PURE__ */ e.createElement("path", { stroke: "currentColor", strokeWidth: 1.5, d: "M5 15.83a2.5 2.5 0 0 1-2.5-2.5v-5c0-3.14 0-4.71.98-5.69.97-.97 2.54-.97 5.69-.97h3.33a2.5 2.5 0 0 1 2.5 2.5" }));
5
5
  export {
6
6
  i as S,
7
- c as a,
8
- s as b,
9
- r as c,
10
- o as d,
11
- a as e,
12
- g as f,
13
- l as g,
14
- v as h,
15
- w as i,
16
- h as j,
17
- m as k,
18
- d as l,
19
- p as m,
20
- n
7
+ r as a,
8
+ o as b,
9
+ a as c,
10
+ g as d,
11
+ l as e,
12
+ v as f,
13
+ w as g,
14
+ h,
15
+ m as i,
16
+ c as j,
17
+ d as k,
18
+ p as l,
19
+ n as m,
20
+ s as n
21
21
  };
@@ -13,6 +13,8 @@ import { default as AsteriskIcon } from './asterisk.svg?react';
13
13
  import { default as AvatarIcon } from './avatar.svg?react';
14
14
  import { default as BackIcon } from './back.svg?react';
15
15
  import { default as BellIcon } from './bell.svg?react';
16
+ import { default as BigFileCardDownloadIcon } from './big-file-card-download.svg?react';
17
+ import { default as BigFileCardIcon } from './big-file-card.svg?react';
16
18
  import { default as BigFileIcon } from './big-file.svg?react';
17
19
  import { default as BigStarIcon } from './big-star.svg?react';
18
20
  import { default as BotIcon } from './bot.svg?react';
@@ -109,6 +111,7 @@ import { default as OptionsIcon } from './options.svg?react';
109
111
  import { default as OrderDoneIcon } from './order-done.svg?react';
110
112
  import { default as ParkingPlaceIcon } from './parking-place.svg?react';
111
113
  import { default as ParkingIcon } from './parking.svg?react';
114
+ import { default as PauseIcon } from './pause.svg?react';
112
115
  import { default as PdfFileIcon } from './pdf-file.svg?react';
113
116
  import { default as PdfIcon } from './pdf.svg?react';
114
117
  import { default as PencilIcon } from './pencil.svg?react';
@@ -116,6 +119,7 @@ import { default as PhoneIcon } from './phone.svg?react';
116
119
  import { default as PickerLeftIcon } from './pickerLeft.svg?react';
117
120
  import { default as PickerRightIcon } from './pickerRight.svg?react';
118
121
  import { default as PlaneIcon } from './plane.svg?react';
122
+ import { default as PlayIcon } from './play.svg?react';
119
123
  import { default as PlumberServiceIcon } from './plumber-service.svg?react';
120
124
  import { default as PlusInputIcon } from './plus-input.svg?react';
121
125
  import { default as PlusIcon } from './plus.svg?react';
@@ -154,6 +158,7 @@ import { default as UserIcon } from './user.svg?react';
154
158
  import { default as UsersSettingsIcon } from './users-settings.svg?react';
155
159
  import { default as UsersIcon } from './users.svg?react';
156
160
  import { default as UtilityServiceIcon } from './utility-services.svg?react';
161
+ import { default as VolumeMuteIcon } from './volume-mute.svg?react';
157
162
  import { default as XmarkIcon } from './x-mark.svg?react';
158
163
  import { default as LogoIcon } from '../images/logo.svg?react';
159
- export { AddHomeIcon, AddUserIcon, AdjustmentsIcon, AnalyticsIcon, AsteriskIcon, ArrowDownIcon, ArrowDownDownloadIcon, ArrowDownMiniIcon, ArrowDownSmallIcon, ArrowIcon, ArrowUpIcon, AvatarIcon, ArrowLineIcon, BackIcon, BellIcon, BotIcon, BigFileIcon, BuildingIcon, BigStarIcon, BurgerFilterIcon, BurgerIcon, CalendarIcon, CameraIcon, CleaningIcon, CameraMiniIcon, CameraServiceIcon, CarMultipleIcon, CarbonFilterIcon, CardIcon, ChatCheckIcon, ChatMessageIcon, CheckIcon, CheckDoubleIcon, ChatsIcon, CheckMarkIcon, CleaningServiceIcon, CloseIcon, ColdWaterIcon, CommentIcon, ControlIcon, CreateGroupIcon, CrossIcon, CrossProfileIcon, DangerIcon, DeleteIcon, DocumentFillIcon, DocumentIcon, DocumentTextIcon, DotListIcon, DotableSettings, DoubleChatIcon, DownloadIcon, DropDownIcon, DropUpIcon, EditIcon, EditPencilIcon, ElectricianSereviceIcon, ElectricalEnergyIcon, EmailIcon, EmployeesIcon, EmptyDoc, ExitIcon, ExportIcon, EyeCardIcon, EyeClosedIcon, EyeIcon, FeedbacksIcon, FileIcon, FileReportIcon, FileUploadIcon, FilterIcon, FinanceIcon, FireIcon, FolderHomeIcon, FolderIcon, FolderInputIcon, FolderSolidIcon, FullFolderIcon, GarbageIcon, GisHomeIcon, GridIcon, GroupUserIcon, HistoryBoldIcon, HomeDotIcon, HomeIcon, HomeSuccessIcon, HotWaterIcon, HouseIcon, LogoIcon, LogoWithTextIcon, LeftIcon, LeaveIcon, LinkDownloadIcon, ListIcon, LoadIcon, LockIcon, LogoutIcon, MagnifyIcon, ManageObjectsIcon, MapIcon, MenuDotsIcon, ModalPlusIcon, MobileIcon, NewsIcon, NotificationBellIcon, NotificationIcon, OfficeIcon, OperatorIcon, OptionsIcon, OrderDoneIcon, ParkingIcon, ParkingPlaceIcon, PdfFileIcon, PdfIcon, PencilIcon, PhoneIcon, PickerLeftIcon, PickerRightIcon, PlaneIcon, PlusIcon, PlusInputIcon, PlumberServiceIcon, PrintIcon, RatingIcon, RentServiceIcon, RepairServiceIcon, ReportIcon, RightIcon, RoleSettingIcon, ResponseArrowIcon, RoundedCopyIcon, ServiceManagementIcon, SettingIcon, ShareIcon, SolarEyeIcon, StarIcon, StarPerson, StatusCheckIcon, StatusCloseIcon, StatusInfoIcon, StatusWarningIcon, StepperReloadIcon, SidebarOpenIcon, SpinnerIcon, TelegramIcon, ThinPlusIcon, TimeLineIcon, TrashIcon, UserIcon, UserStarIcon, UserSuccesIcon, UserTimeIcon, UserProfileAvatarIcon, UserSettingsIcon, UsersIcon, UsersSettingsIcon, UtilityServiceIcon, XmarkIcon, };
164
+ export { AddHomeIcon, AddUserIcon, AdjustmentsIcon, AnalyticsIcon, AsteriskIcon, ArrowDownIcon, ArrowDownDownloadIcon, ArrowDownMiniIcon, ArrowDownSmallIcon, ArrowIcon, ArrowUpIcon, AvatarIcon, ArrowLineIcon, BackIcon, BellIcon, BotIcon, BigFileIcon, BigFileCardIcon, BigFileCardDownloadIcon, BuildingIcon, BigStarIcon, BurgerFilterIcon, BurgerIcon, CalendarIcon, CameraIcon, CleaningIcon, CameraMiniIcon, CameraServiceIcon, CarMultipleIcon, CarbonFilterIcon, CardIcon, ChatCheckIcon, ChatMessageIcon, CheckIcon, CheckDoubleIcon, ChatsIcon, CheckMarkIcon, CleaningServiceIcon, CloseIcon, ColdWaterIcon, CommentIcon, ControlIcon, CreateGroupIcon, CrossIcon, CrossProfileIcon, DangerIcon, DeleteIcon, DocumentFillIcon, DocumentIcon, DocumentTextIcon, DotListIcon, DotableSettings, DoubleChatIcon, DownloadIcon, DropDownIcon, DropUpIcon, EditIcon, EditPencilIcon, ElectricianSereviceIcon, ElectricalEnergyIcon, EmailIcon, EmployeesIcon, EmptyDoc, ExitIcon, ExportIcon, EyeCardIcon, EyeClosedIcon, EyeIcon, FeedbacksIcon, FileIcon, FileReportIcon, FileUploadIcon, FilterIcon, FinanceIcon, FireIcon, FolderHomeIcon, FolderIcon, FolderInputIcon, FolderSolidIcon, FullFolderIcon, GarbageIcon, GisHomeIcon, GridIcon, GroupUserIcon, HistoryBoldIcon, HomeDotIcon, HomeIcon, HomeSuccessIcon, HotWaterIcon, HouseIcon, LogoIcon, LogoWithTextIcon, LeftIcon, LeaveIcon, LinkDownloadIcon, ListIcon, LoadIcon, LockIcon, LogoutIcon, MagnifyIcon, ManageObjectsIcon, MapIcon, MenuDotsIcon, ModalPlusIcon, MobileIcon, NewsIcon, NotificationBellIcon, NotificationIcon, OfficeIcon, OperatorIcon, OptionsIcon, OrderDoneIcon, ParkingIcon, ParkingPlaceIcon, PauseIcon, PdfFileIcon, PdfIcon, PencilIcon, PhoneIcon, PickerLeftIcon, PickerRightIcon, PlaneIcon, PlayIcon, PlusIcon, PlusInputIcon, PlumberServiceIcon, PrintIcon, RatingIcon, RentServiceIcon, RepairServiceIcon, ReportIcon, RightIcon, RoleSettingIcon, ResponseArrowIcon, RoundedCopyIcon, ServiceManagementIcon, SettingIcon, ShareIcon, SolarEyeIcon, StarIcon, StarPerson, StatusCheckIcon, StatusCloseIcon, StatusInfoIcon, StatusWarningIcon, StepperReloadIcon, SidebarOpenIcon, SpinnerIcon, TelegramIcon, ThinPlusIcon, TimeLineIcon, TrashIcon, UserIcon, UserStarIcon, UserSuccesIcon, UserTimeIcon, UserProfileAvatarIcon, UserSettingsIcon, UsersIcon, UsersSettingsIcon, UtilityServiceIcon, VolumeMuteIcon, XmarkIcon, };
@@ -0,0 +1,2 @@
1
+ import { ReplyMessageProps } from '..';
2
+ export declare const ReplyMessage: ({ senderName, messageText, contentType, fileUrl, fileName, onClose, showCloseButton, classNames, }: ReplyMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const MEDIA_LABELS: Record<string, string>;
@@ -0,0 +1,11 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ReplyMessageStory, ReplyMessage } from '..';
3
+ declare const meta: Meta<typeof ReplyMessage>;
4
+ export declare const Default: ReplyMessageStory;
5
+ export declare const WithoutCloseButton: ReplyMessageStory;
6
+ export declare const ImageReply: ReplyMessageStory;
7
+ export declare const VideoReply: ReplyMessageStory;
8
+ export declare const AudioReply: ReplyMessageStory;
9
+ export declare const FileReply: ReplyMessageStory;
10
+ export declare const ImageReplyWithCaption: ReplyMessageStory;
11
+ export default meta;
@@ -0,0 +1,11 @@
1
+ export declare const replyMessageTokens: {
2
+ wrapper: string;
3
+ message: string;
4
+ title: string;
5
+ content: string;
6
+ subtitle: string;
7
+ closeButton: string;
8
+ closeIcon: string;
9
+ thumbnail: string;
10
+ mediaLabel: string;
11
+ };
@@ -0,0 +1,25 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { ReplyMessage } from '..';
3
+ type MessageContentType = 'text' | 'image' | 'video' | 'audio' | 'file';
4
+ export type ReplyMessageProps = {
5
+ senderName: string;
6
+ messageText?: string;
7
+ contentType?: MessageContentType;
8
+ fileUrl?: string;
9
+ fileName?: string;
10
+ onClose?: () => void;
11
+ showCloseButton?: boolean;
12
+ classNames?: {
13
+ content?: string;
14
+ wrapper?: string;
15
+ message?: string;
16
+ title?: string;
17
+ subtitle?: string;
18
+ closeButton?: string;
19
+ closeIcon?: string;
20
+ thumbnail?: string;
21
+ mediaIcon?: string;
22
+ };
23
+ };
24
+ export type ReplyMessageStory = StoryObj<typeof ReplyMessage>;
25
+ export {};
@@ -0,0 +1 @@
1
+ export declare const getSubtitleText: (contentType: string, fileName?: string, messageText?: string) => string | null;
@@ -0,0 +1,3 @@
1
+ export { ReplyMessage } from './ReplyMessage';
2
+ export * from './ReplyMessage.tokens';
3
+ export type * from './ReplyMessage.types';
@@ -5,7 +5,6 @@ export * from './Headline';
5
5
  export * from './Input';
6
6
  export * from './Label';
7
7
  export * from './Notification';
8
- export * from './Message';
9
8
  export * from './Radio';
10
9
  export * from './Status';
11
10
  export * from './Switch';
@@ -19,3 +18,4 @@ export * from './Avatar';
19
18
  export * from './TabDots';
20
19
  export * from './Skeleton';
21
20
  export * from './Spinner';
21
+ export * from './ReplyMessage';
@@ -0,0 +1,2 @@
1
+ import { AudioMessageProps } from '..';
2
+ export declare const AudioMessage: ({ src, duration, size, timestamp, status, isMine, waveColor, progressColor, onClick, classNames, }: AudioMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { AudioMessageProps } from '..';
2
+ export declare const audioMessageData: AudioMessageProps;
3
+ export declare const audioMessageDeliveredData: AudioMessageProps;
4
+ export declare const audioMessageReceivedData: AudioMessageProps;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { AudioMessage, AudioMessageStory } from '..';
3
+ declare const meta: Meta<typeof AudioMessage>;
4
+ export default meta;
5
+ export declare const Default: AudioMessageStory;
6
+ export declare const Delivered: AudioMessageStory;
7
+ export declare const Received: AudioMessageStory;
@@ -0,0 +1,16 @@
1
+ export declare const AudioMessageTokens: {
2
+ root: string;
3
+ playButton: string;
4
+ playIcon: string;
5
+ content: string;
6
+ waveform: string;
7
+ progressTrack: string;
8
+ progressBar: string;
9
+ infoRow: string;
10
+ info: string;
11
+ duration: string;
12
+ size: string;
13
+ footer: string;
14
+ timestamp: string;
15
+ status: string;
16
+ };
@@ -0,0 +1,24 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { AudioMessage } from '..';
3
+ export type AudioMessageStatus = 'delivered' | 'read';
4
+ export type AudioMessageProps = {
5
+ src: string;
6
+ duration: string;
7
+ size: string;
8
+ timestamp?: Date | string;
9
+ status?: AudioMessageStatus;
10
+ isMine?: boolean;
11
+ waveColor?: string;
12
+ progressColor?: string;
13
+ onClick?: () => void;
14
+ classNames?: {
15
+ root?: string;
16
+ playButton?: string;
17
+ waveform?: string;
18
+ info?: string;
19
+ duration?: string;
20
+ size?: string;
21
+ footer?: string;
22
+ };
23
+ };
24
+ export type AudioMessageStory = StoryObj<typeof AudioMessage>;
@@ -0,0 +1,3 @@
1
+ export { AudioMessage } from './AudioMessage';
2
+ export * from './AudioMessage.tokens';
3
+ export type * from './AudioMessage.types';
@@ -3,7 +3,7 @@ import { CardFiles } from './CardFiles';
3
3
  export type CardFilesProps = {
4
4
  title: string;
5
5
  file?: File | null;
6
- dateAndTime: Date | string;
6
+ dateTime: Date | string;
7
7
  className?: string;
8
8
  isDisabled: boolean;
9
9
  onDelete?: (e: React.MouseEvent<HTMLButtonElement>) => void;
@@ -27,7 +27,7 @@ export type CardFilesTokens = {
27
27
  basic: string;
28
28
  active: string;
29
29
  };
30
- dateAndTime: string;
30
+ dateTime: Date | string;
31
31
  fileName: string;
32
32
  sizeFile: string;
33
33
  disabled: string;
@@ -1,3 +1,2 @@
1
- import { default as React } from 'react';
2
1
  import { ChatListProps } from '..';
3
2
  export declare const ChatList: React.FC<ChatListProps>;
@@ -1,2 +1,2 @@
1
1
  import { ChatMessageProps } from '..';
2
- export declare const ChatMessage: ({ currentUserId, senderId, senderName, messages, avatar, isGroupChat, selectedMessages, onSelectedMessage, visibleSelections, classNames, }: ChatMessageProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ChatMessage: ({ currentUserId, senderId, senderName, messages, avatar, isGroupChat, selectedMessages, onSelectedMessage, visibleSelections, classNames, onMessageAction, }: ChatMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { MessageType } from '../../atoms';
1
+ import { MessageType } from '..';
2
2
  export declare const messageData: MessageType[];
3
3
  export declare const messagesData: MessageType[];
@@ -1,7 +1,11 @@
1
1
  import { StoryObj } from '@storybook/react';
2
- import { MessageType } from '../../atoms';
3
- import { ChatMessage } from '..';
2
+ import { MessageType, ChatMessage, MessageSettingsEventType } from '..';
4
3
  export type ChatMessageStory = StoryObj<typeof ChatMessage>;
4
+ export type ChatMessageActionPayload = {
5
+ messageId: string | undefined;
6
+ messageText: string;
7
+ senderName: string;
8
+ };
5
9
  export type ChatMessageProps = {
6
10
  currentUserId: string | number;
7
11
  senderId: string | number;
@@ -22,4 +26,5 @@ export type ChatMessageProps = {
22
26
  item?: string;
23
27
  selection?: string;
24
28
  };
29
+ onMessageAction: (actionId: MessageSettingsEventType, payload: ChatMessageActionPayload) => void;
25
30
  };
@@ -1,4 +1,5 @@
1
1
  export declare const comboboxTokens: {
2
+ container: string;
2
3
  base: {
3
4
  trigger: string;
4
5
  focus: string;
@@ -8,6 +9,7 @@ export declare const comboboxTokens: {
8
9
  textWrapper: string;
9
10
  icon: string;
10
11
  iconDisabled: string;
12
+ labelContainer: string;
11
13
  };
12
14
  search: {
13
15
  wrapper: string;
@@ -10,6 +10,7 @@ export type ComboboxProps = {
10
10
  onSearchChange: (query: string) => void;
11
11
  onDebouncedSearch?: (query: string) => void;
12
12
  debounceDelay?: number;
13
+ labelText?: string;
13
14
  placeholder?: string;
14
15
  searchPlaceholder?: string;
15
16
  emptyMessage?: string;
@@ -19,12 +20,15 @@ export type ComboboxProps = {
19
20
  container?: HTMLElement | null;
20
21
  disablePortal?: boolean;
21
22
  classNames?: {
23
+ container?: string;
24
+ labelText?: string;
22
25
  parent?: string;
23
26
  trigger?: string;
24
27
  selected?: string;
25
28
  placeholder?: string;
26
29
  content?: string;
27
30
  searchInput?: string;
31
+ labelContainer?: string;
28
32
  };
29
33
  };
30
34
  export type ComboboxRef = {
@@ -0,0 +1,2 @@
1
+ import { DocumentMessageProps } from '..';
2
+ export declare const DocumentMessage: ({ title, size, dateTime, timestamp, status, isMine, onClick, classNames, }: DocumentMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { DocumentMessageProps } from '..';
2
+ export declare const DOCUMENT_MESSAGE_DATA: DocumentMessageProps;
3
+ export declare const DOCUMENT_MESSAGE_DELIVERED_DATA: DocumentMessageProps;
4
+ export declare const DOCUMENT_MESSAGE_RECEIVED_DATA: DocumentMessageProps;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { DocumentMessage, DocumentMessageStory } from '..';
3
+ declare const meta: Meta<typeof DocumentMessage>;
4
+ export default meta;
5
+ export declare const Default: DocumentMessageStory;
6
+ export declare const Delivered: DocumentMessageStory;
7
+ export declare const Received: DocumentMessageStory;
@@ -0,0 +1,9 @@
1
+ export declare const DocumentMessageTokens: {
2
+ root: string;
3
+ icon: string;
4
+ content: string;
5
+ title: string;
6
+ size: string;
7
+ dateAndTime: string;
8
+ footer: string;
9
+ };
@@ -0,0 +1,22 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { DocumentMessage } from '..';
3
+ export type DocumentMessageStatus = 'delivered' | 'read';
4
+ export type DocumentMessageProps = {
5
+ title: string;
6
+ size: string;
7
+ dateTime: Date | string;
8
+ timestamp?: Date | string;
9
+ status?: DocumentMessageStatus;
10
+ isMine?: boolean;
11
+ onClick?: () => void;
12
+ classNames?: {
13
+ root?: string;
14
+ icon?: string;
15
+ content?: string;
16
+ title?: string;
17
+ size?: string;
18
+ dateTime?: string;
19
+ footer?: string;
20
+ };
21
+ };
22
+ export type DocumentMessageStory = StoryObj<typeof DocumentMessage>;
@@ -0,0 +1,3 @@
1
+ export { DocumentMessage } from './DocumentMessage';
2
+ export * from './DocumentMessage.tokens';
3
+ export type * from './DocumentMessage.types';
@@ -0,0 +1,11 @@
1
+ export declare const FileCard: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
2
+ name: string;
3
+ size: number;
4
+ dateTime: Date | string;
5
+ isDownloaded?: boolean;
6
+ classNames?: {
7
+ wrapper?: string;
8
+ iconWrapper?: string;
9
+ content?: string;
10
+ };
11
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { FileCard } from './FileCard';
3
+ import { FileCardStory } from './FileCard.types';
4
+ declare const meta: Meta<typeof FileCard>;
5
+ export declare const Default: FileCardStory;
6
+ export declare const Downloaded: FileCardStory;
7
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const fileCardTokens: {
2
+ wrapper: string;
3
+ iconWrapper: string;
4
+ icon: string;
5
+ content: string;
6
+ name: string;
7
+ size: string;
8
+ dateAndTime: string;
9
+ };
@@ -0,0 +1,15 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { HTMLAttributes } from 'react';
3
+ import { FileCard } from './FileCard';
4
+ export type FileCardProps = HTMLAttributes<HTMLDivElement> & {
5
+ name: string;
6
+ size: number;
7
+ dateTime: Date | string;
8
+ isDownloaded?: boolean;
9
+ classNames?: {
10
+ wrapper?: string;
11
+ iconWrapper?: string;
12
+ content?: string;
13
+ };
14
+ };
15
+ export type FileCardStory = StoryObj<typeof FileCard>;
@@ -0,0 +1,3 @@
1
+ export { FileCard } from './FileCard';
2
+ export * from './FileCard.tokens';
3
+ export type * from './FileCard.types';
@@ -0,0 +1,2 @@
1
+ import { ImageMessageProps } from '..';
2
+ export declare const ImageMessage: ({ src, alt, status, isMine, onClick, classNames, }: ImageMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ImageMessageProps } from '..';
2
+ export declare const ImageMessageData: ImageMessageProps;
3
+ export declare const ImageMessageDeliveredData: ImageMessageProps;
4
+ export declare const ImageMessageReceivedData: ImageMessageProps;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ImageMessage, ImageMessageStory } from '..';
3
+ declare const meta: Meta<typeof ImageMessage>;
4
+ export declare const Default: ImageMessageStory;
5
+ export declare const Delivered: ImageMessageStory;
6
+ export declare const Received: ImageMessageStory;
7
+ export default meta;
@@ -0,0 +1,6 @@
1
+ export declare const ImageMessageTokens: {
2
+ root: string;
3
+ image: string;
4
+ overlay: string;
5
+ status: string;
6
+ };
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { ImageMessage } from '..';
3
+ export type ImageMessageStatus = 'delivered' | 'read';
4
+ export type ImageMessageProps = {
5
+ src: string;
6
+ alt?: string;
7
+ status?: ImageMessageStatus;
8
+ isMine?: boolean;
9
+ onClick?: () => void;
10
+ classNames?: {
11
+ root?: string;
12
+ image?: string;
13
+ overlay?: string;
14
+ status?: string;
15
+ };
16
+ };
17
+ export type ImageMessageStory = StoryObj<typeof ImageMessage>;
@@ -0,0 +1,3 @@
1
+ export { ImageMessage } from './ImageMessage';
2
+ export * from './ImageMessage.tokens';
3
+ export type * from './ImageMessage.types';
@@ -7,4 +7,5 @@ export declare const DeliveredMessage: MessageStory;
7
7
  export declare const ReadMessage: MessageStory;
8
8
  export declare const MyMessage: MessageStory;
9
9
  export declare const OtherMessage: MessageStory;
10
+ export declare const ReplyMessage: MessageStory;
10
11
  export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  import { HTMLAttributes } from 'react';
3
- import { Message } from '..';
3
+ import { Message } from './Message';
4
4
  export type MessageStory = StoryObj<typeof Message>;
5
5
  export type MessageStatus = 'sent' | 'delivered' | 'read';
6
6
  export type MessageType = {
@@ -8,6 +8,10 @@ export type MessageType = {
8
8
  text: string;
9
9
  timestamp: Date | null;
10
10
  status: MessageStatus;
11
+ reply?: {
12
+ senderName: string;
13
+ messageText: string;
14
+ };
11
15
  };
12
16
  export type MessageTokens = {
13
17
  base: string;
@@ -1,2 +1,2 @@
1
1
  import { MessageSettingsProps } from '..';
2
- export declare const MessageSettings: ({ trigger, onClick }: MessageSettingsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MessageSettings: ({ trigger, onClick, isMine, }: MessageSettingsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  import { FunctionComponent, ReactNode, SVGProps } from 'react';
3
3
  import { MessageSettings } from '..';
4
- export type MessageSettingsStory = StoryObj<typeof MessageSettings>;
5
4
  export type OnHandleSettings = (actionId: MessageSettingsEventType) => void;
6
5
  export type MessageSettingsProps = {
7
6
  trigger: ReactNode;
8
7
  onClick: OnHandleSettings;
8
+ isMine?: boolean;
9
9
  };
10
10
  export type MessageSettingsEventType = 'copy' | 'edit' | 'delete' | 'select' | 'response' | 'download';
11
11
  export type MessageSettingsDataType = {
@@ -19,3 +19,4 @@ export type MessageSettingsDataType = {
19
19
  isDanger?: boolean;
20
20
  text: string;
21
21
  };
22
+ export type MessageSettingsStory = StoryObj<typeof MessageSettings>;
@@ -1,2 +1,2 @@
1
1
  import { PaymentCardProps } from '..';
2
- export declare const PaymentCard: ({ title, dateAndTime, onDelete, onDownload, onShow, firstStatus, lastStatus, firstStatusText, lastStatusText, price, classNames, }: PaymentCardProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const PaymentCard: ({ title, dateTime, onDelete, onDownload, onShow, firstStatus, lastStatus, firstStatusText, lastStatusText, price, classNames, }: PaymentCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ import { PaymentCard } from '..';
3
3
  export type PaymentCardStory = StoryObj<typeof PaymentCard>;
4
4
  export type PaymentCardProps = {
5
5
  title: string;
6
- dateAndTime: Date | string;
6
+ dateTime: Date | string;
7
7
  onDelete?: (e: React.MouseEvent<HTMLButtonElement>) => void;
8
8
  onDownload?: (e: React.MouseEvent<HTMLButtonElement>) => void;
9
9
  onShow?: (e: React.MouseEvent<HTMLButtonElement>) => void;
@@ -0,0 +1,2 @@
1
+ import { VideoMessageProps } from '..';
2
+ export declare const VideoMessage: ({ src, poster, alt, duration, timestamp, status, isMine, onClick, onToggleMute, classNames, }: VideoMessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { VideoMessageProps } from '..';
2
+ export declare const VideoMessageData: VideoMessageProps;
3
+ export declare const VideoMessageDeliveredData: VideoMessageProps;
4
+ export declare const VideoMessageReceivedData: VideoMessageProps;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { VideoMessage, VideoMessageStory } from '..';
3
+ declare const meta: Meta<typeof VideoMessage>;
4
+ export declare const Default: VideoMessageStory;
5
+ export declare const Delivered: VideoMessageStory;
6
+ export declare const Received: VideoMessageStory;
7
+ export default meta;
@@ -0,0 +1,9 @@
1
+ export declare const VideoMessageTokens: {
2
+ root: string;
3
+ video: string;
4
+ topBar: string;
5
+ duration: string;
6
+ muteButton: string;
7
+ footer: string;
8
+ timestamp: string;
9
+ };