odaptos_design_system 1.4.103 → 1.4.104
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/Interviews/Chat.d.ts +2 -1
- package/dist/Interviews/ControlsBar.d.ts +2 -1
- package/dist/Interviews/InterviewButton.d.ts +2 -1
- package/dist/odaptos_design_system.cjs.development.js +15 -8
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +15 -8
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Interviews/Chat.tsx +71 -67
- package/src/Interviews/ControlsBar.tsx +13 -10
- package/src/Interviews/InterviewButton.modules.scss +4 -0
- package/src/Interviews/InterviewButton.tsx +4 -1
|
@@ -28,6 +28,7 @@ export interface ChatProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
28
28
|
sendMessage: () => void;
|
|
29
29
|
className?: string;
|
|
30
30
|
isTaskMode?: boolean;
|
|
31
|
+
isChatDisplay?: boolean;
|
|
31
32
|
}
|
|
32
|
-
export declare const Chat: ({ goBackText, goBack, chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, startInterviewIcon, startInterview, tasks, sendTask, validateTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, ...props }: ChatProps) => React.JSX.Element;
|
|
33
|
+
export declare const Chat: ({ goBackText, goBack, chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, startInterviewIcon, startInterview, tasks, sendTask, validateTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isChatDisplay, ...props }: ChatProps) => React.JSX.Element;
|
|
33
34
|
export {};
|
|
@@ -21,5 +21,6 @@ export interface ControlsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
isCameraActive?: boolean;
|
|
22
22
|
isRecording?: boolean;
|
|
23
23
|
disabledRecording?: boolean;
|
|
24
|
+
disabledEndInterview?: boolean;
|
|
24
25
|
}
|
|
25
|
-
export declare const ControlsBar: ({ className, isInterviewer, isScreenShare, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, startRecording, stopRecording, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, disabledRecording, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
26
|
+
export declare const ControlsBar: ({ className, isInterviewer, isScreenShare, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, startRecording, stopRecording, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, disabledRecording, disabledEndInterview, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
@@ -3,8 +3,9 @@ export interface InterviewButtonProps extends HTMLAttributes<HTMLButtonElement>
|
|
|
3
3
|
icon: JSX.Element;
|
|
4
4
|
variant: 'screenshare' | 'end-interview' | 'protocol';
|
|
5
5
|
text: string;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
isNotif?: boolean;
|
|
7
8
|
isActive?: boolean;
|
|
8
9
|
className?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const InterviewButton: ({ icon, className, variant, text, isNotif, isActive, ...props }: InterviewButtonProps) => React.JSX.Element;
|
|
11
|
+
export declare const InterviewButton: ({ icon, className, variant, text, disabled, isNotif, isActive, ...props }: InterviewButtonProps) => React.JSX.Element;
|
|
@@ -7878,6 +7878,7 @@ const ControlsBar = ({
|
|
|
7878
7878
|
isCameraActive,
|
|
7879
7879
|
isRecording,
|
|
7880
7880
|
disabledRecording,
|
|
7881
|
+
disabledEndInterview,
|
|
7881
7882
|
...props
|
|
7882
7883
|
}) => {
|
|
7883
7884
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
@@ -7906,9 +7907,10 @@ const ControlsBar = ({
|
|
|
7906
7907
|
if (stopRecording) stopRecording();
|
|
7907
7908
|
}
|
|
7908
7909
|
}
|
|
7909
|
-
}, isRecording ? /*#__PURE__*/React__default.createElement(StopRecordingIcon, null) : /*#__PURE__*/React__default.createElement(RecordIcon, null)),
|
|
7910
|
+
}, isRecording ? /*#__PURE__*/React__default.createElement(StopRecordingIcon, null) : /*#__PURE__*/React__default.createElement(RecordIcon, null)), isInterviewer && endInterview && /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
7910
7911
|
text: "End Interview",
|
|
7911
7912
|
variant: "end-interview",
|
|
7913
|
+
disabled: disabledEndInterview,
|
|
7912
7914
|
onClick: () => endInterview(),
|
|
7913
7915
|
icon: /*#__PURE__*/React__default.createElement(HangUpIcon, null)
|
|
7914
7916
|
}), !isInterviewer && !isScreenShare && enableScreenSharing && /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
@@ -7940,10 +7942,12 @@ const ControlsBar = ({
|
|
|
7940
7942
|
},
|
|
7941
7943
|
isActive: areTasksOpen,
|
|
7942
7944
|
isNotif: isNewTask
|
|
7943
|
-
}),
|
|
7945
|
+
}), /*#__PURE__*/React__default.createElement(CircledIconButton, {
|
|
7944
7946
|
icon: /*#__PURE__*/React__default.createElement(ChatBubbleIcon, null),
|
|
7945
7947
|
className: styles$a.chatBubbleIcon,
|
|
7946
|
-
onClick: () =>
|
|
7948
|
+
onClick: () => {
|
|
7949
|
+
if (displayChat) displayChat();
|
|
7950
|
+
},
|
|
7947
7951
|
isActive: isChatOpen,
|
|
7948
7952
|
isNotif: isNewMessage
|
|
7949
7953
|
}));
|
|
@@ -7973,9 +7977,10 @@ const Chat = ({
|
|
|
7973
7977
|
sendMessage,
|
|
7974
7978
|
className,
|
|
7975
7979
|
isTaskMode,
|
|
7980
|
+
isChatDisplay,
|
|
7976
7981
|
...props
|
|
7977
7982
|
}) => {
|
|
7978
|
-
return /*#__PURE__*/React__default.createElement(Grid, Object.assign({
|
|
7983
|
+
if (isChatDisplay) return /*#__PURE__*/React__default.createElement(Grid, Object.assign({
|
|
7979
7984
|
container: true,
|
|
7980
7985
|
item: true,
|
|
7981
7986
|
xs: 3,
|
|
@@ -8019,7 +8024,7 @@ const Chat = ({
|
|
|
8019
8024
|
value: chatInputValue,
|
|
8020
8025
|
onChange: chatInputonChange,
|
|
8021
8026
|
sendMessage: sendMessage
|
|
8022
|
-
}));
|
|
8027
|
+
}));else return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
8023
8028
|
};
|
|
8024
8029
|
|
|
8025
8030
|
var css_248z$c = ".ChatInput-modules_chat_input_container__kI77U{align-items:center;align-self:stretch;background:var(--color-neutral-clear-shades-150,#eee);border-radius:.5rem;display:flex;flex-direction:row;gap:.5rem;margin-top:auto;padding:.625rem .75rem}.ChatInput-modules_chat_input_container__kI77U input{background:var(--color-neutral-clear-shades-150,#eee);border:none;color:var(--color-neutral-dark-shades-950,#26292e);font-family:OpenSans;font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;width:100%}.ChatInput-modules_chat_input_container__kI77U input:focus{outline:none}.ChatInput-modules_chat_input_container__kI77U input::-moz-placeholder{color:var(--color-neutral-dark-shades-550,#8a8b8e);opacity:1}.ChatInput-modules_chat_input_container__kI77U input::placeholder{color:var(--color-neutral-dark-shades-550,#8a8b8e);opacity:1}";
|
|
@@ -8093,8 +8098,8 @@ const GoBack = ({
|
|
|
8093
8098
|
}));
|
|
8094
8099
|
};
|
|
8095
8100
|
|
|
8096
|
-
var css_248z$f = ".InterviewButton-modules_interview_button__7qkQR{align-items:center;border:none;border-radius:1.5rem;box-shadow:0 4px 8px 3px rgba(0,0,0,.08),0 1px 3px 0 rgba(0,0,0,.15);cursor:pointer;display:inline-flex;gap:.5rem;padding:.375rem .75rem;position:relative}.InterviewButton-modules_interview_button__7qkQR svg{height:1.5rem;width:1.5rem}.InterviewButton-modules_interview_button_screenshare__Py-K3{background:var(--color-primary-500,#07f)}.InterviewButton-modules_interview_button_screenshare__Py-K3:hover{background:var(--color-primary-400,#3392ff)}.InterviewButton-modules_interview_button_screenshare__Py-K3:active{background:var(--color-primary-600,#005fcc)}.InterviewButton-modules_interview_button_screenshare__Py-K3 p{color:#fff!important}.InterviewButton-modules_interview_button_screenshare__Py-K3 svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__Mf5w- p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w- svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:hover{background:var(--color-neutral-dark-shades-550,#8a8b8e)}.InterviewButton-modules_interview_button_protocol__Mf5w-:hover p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:hover svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:active{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__Mf5w-:active p{color:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:active svg{stroke:var(--color-neutral-basics-black,#00040a)!important;fill:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_active__-T2FK{background:var(--color-primary-300,#66adff)}.InterviewButton-modules_active__-T2FK p{color:#00040a!important}.InterviewButton-modules_active__-T2FK svg{stroke:#00040a!important;fill:#00040a!important;height:1.5rem;width:1.5rem}.InterviewButton-modules_interview_button_end_interview__4NuDP{background:var(--color-extended-red-500,#f54c4c)}.InterviewButton-modules_interview_button_end_interview__4NuDP:hover{background:var(--color-extended-red-400,#f77070)}.InterviewButton-modules_interview_button_end_interview__4NuDP:active{background:var(--color-extended-red-600,#c73f3d)}.InterviewButton-modules_interview_button_end_interview__4NuDP p{color:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_interview_button_end_interview__4NuDP svg{stroke:var(--color-neutral-basics-black,#00040a)!important;fill:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_notif_icon__wQi4a{height:.75rem!important;position:absolute;right:0;top:0;width:.75rem!important}";
|
|
8097
|
-
var styles$f = {"interview_button":"InterviewButton-modules_interview_button__7qkQR","interview_button_screenshare":"InterviewButton-modules_interview_button_screenshare__Py-K3","interview_button_protocol":"InterviewButton-modules_interview_button_protocol__Mf5w-","active":"InterviewButton-modules_active__-T2FK","interview_button_end_interview":"InterviewButton-modules_interview_button_end_interview__4NuDP","notif_icon":"InterviewButton-modules_notif_icon__wQi4a"};
|
|
8101
|
+
var css_248z$f = ".InterviewButton-modules_interview_button__7qkQR{align-items:center;border:none;border-radius:1.5rem;box-shadow:0 4px 8px 3px rgba(0,0,0,.08),0 1px 3px 0 rgba(0,0,0,.15);cursor:pointer;display:inline-flex;gap:.5rem;padding:.375rem .75rem;position:relative}.InterviewButton-modules_interview_button__7qkQR svg{height:1.5rem;width:1.5rem}.InterviewButton-modules_interview_button_screenshare__Py-K3{background:var(--color-primary-500,#07f)}.InterviewButton-modules_interview_button_screenshare__Py-K3:hover{background:var(--color-primary-400,#3392ff)}.InterviewButton-modules_interview_button_screenshare__Py-K3:active{background:var(--color-primary-600,#005fcc)}.InterviewButton-modules_interview_button_screenshare__Py-K3 p{color:#fff!important}.InterviewButton-modules_interview_button_screenshare__Py-K3 svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__Mf5w- p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w- svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:hover{background:var(--color-neutral-dark-shades-550,#8a8b8e)}.InterviewButton-modules_interview_button_protocol__Mf5w-:hover p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:hover svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:active{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__Mf5w-:active p{color:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_interview_button_protocol__Mf5w-:active svg{stroke:var(--color-neutral-basics-black,#00040a)!important;fill:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_active__-T2FK{background:var(--color-primary-300,#66adff)}.InterviewButton-modules_active__-T2FK p{color:#00040a!important}.InterviewButton-modules_active__-T2FK svg{stroke:#00040a!important;fill:#00040a!important;height:1.5rem;width:1.5rem}.InterviewButton-modules_disabled__QPcBv{opacity:.2}.InterviewButton-modules_interview_button_end_interview__4NuDP{background:var(--color-extended-red-500,#f54c4c)}.InterviewButton-modules_interview_button_end_interview__4NuDP:hover{background:var(--color-extended-red-400,#f77070)}.InterviewButton-modules_interview_button_end_interview__4NuDP:active{background:var(--color-extended-red-600,#c73f3d)}.InterviewButton-modules_interview_button_end_interview__4NuDP p{color:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_interview_button_end_interview__4NuDP svg{stroke:var(--color-neutral-basics-black,#00040a)!important;fill:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_notif_icon__wQi4a{height:.75rem!important;position:absolute;right:0;top:0;width:.75rem!important}";
|
|
8102
|
+
var styles$f = {"interview_button":"InterviewButton-modules_interview_button__7qkQR","interview_button_screenshare":"InterviewButton-modules_interview_button_screenshare__Py-K3","interview_button_protocol":"InterviewButton-modules_interview_button_protocol__Mf5w-","active":"InterviewButton-modules_active__-T2FK","disabled":"InterviewButton-modules_disabled__QPcBv","interview_button_end_interview":"InterviewButton-modules_interview_button_end_interview__4NuDP","notif_icon":"InterviewButton-modules_notif_icon__wQi4a"};
|
|
8098
8103
|
styleInject(css_248z$f);
|
|
8099
8104
|
|
|
8100
8105
|
const InterviewButton = ({
|
|
@@ -8102,6 +8107,7 @@ const InterviewButton = ({
|
|
|
8102
8107
|
className,
|
|
8103
8108
|
variant,
|
|
8104
8109
|
text,
|
|
8110
|
+
disabled,
|
|
8105
8111
|
isNotif = false,
|
|
8106
8112
|
isActive = false,
|
|
8107
8113
|
...props
|
|
@@ -8110,7 +8116,8 @@ const InterviewButton = ({
|
|
|
8110
8116
|
if (variant === 'protocol') return styles$f.interview_button_protocol;else if (variant === 'screenshare') return styles$f.interview_button_screenshare;else if (variant === 'end-interview') return styles$f.interview_button_end_interview;else return;
|
|
8111
8117
|
};
|
|
8112
8118
|
return /*#__PURE__*/React__default.createElement("button", Object.assign({
|
|
8113
|
-
className: `${styles$f.interview_button} ${defineVariantStyle()} ${className ?? ''} ${isActive ? styles$f.active : ''}
|
|
8119
|
+
className: `${styles$f.interview_button} ${defineVariantStyle()} ${className ?? ''} ${isActive ? styles$f.active : ''}
|
|
8120
|
+
${disabled ? styles$f.disabled : ''}`
|
|
8114
8121
|
}, props), icon ?? /*#__PURE__*/React__default.createElement(MeetingIcon, null), /*#__PURE__*/React__default.createElement(Text, {
|
|
8115
8122
|
text: text,
|
|
8116
8123
|
size: "base",
|