odaptos_design_system 1.4.118 → 1.4.120
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/Scenario.d.ts +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/odaptos_design_system.cjs.development.js +25 -15
- 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 +25 -15
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Interviews/Chat.tsx +35 -35
- package/src/Interviews/ControlsBar.modules.scss +1 -0
- package/src/Interviews/ControlsBar.tsx +2 -2
- package/src/Interviews/Scenario.tsx +34 -0
- package/src/index.ts +1 -1
- package/dist/Interviews/StartInterview.d.ts +0 -9
- package/src/Interviews/StartInterview.tsx +0 -27
- /package/src/Interviews/{StartInterview.modules.scss → Scenario.modules.scss} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ScenarioProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
buttonIcon?: JSX.Element;
|
|
7
|
+
url: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Scenario: ({ title, description, buttonText, buttonIcon, url, className, ...props }: ScenarioProps) => React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './Interviews/CircledIconButton';
|
|
|
15
15
|
export * from './Interviews/GoBack';
|
|
16
16
|
export * from './Interviews/InterviewButton';
|
|
17
17
|
export * from './Interviews/MarkUpBar';
|
|
18
|
-
export * from './Interviews/
|
|
18
|
+
export * from './Interviews/Scenario';
|
|
19
19
|
export * from './Interviews/Task';
|
|
20
20
|
export * from './Interviews/WelcomeMessage';
|
|
21
21
|
export * from './LateralMenu/LateralMenu';
|
|
@@ -7852,7 +7852,7 @@ const DatePicker = ({
|
|
|
7852
7852
|
}))));
|
|
7853
7853
|
};
|
|
7854
7854
|
|
|
7855
|
-
var css_248z$a = ".ControlsBar-modules_control_bar__uxXow{align-items:center;display:inline-flex;gap:.5rem}.ControlsBar-modules_control_bar__uxXow .ControlsBar-modules_separator__Np2W8{background:var(--color-neutral-dark-shades-700,#64666a);height:1rem;width:.0625rem}.ControlsBar-modules_control_bar__uxXow .ControlsBar-modules_record_btn__rp6Um{align-items:flex-start;background:var(--Color-Extended-Red-50,#fff6f6);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);display:flex;gap:.5rem;padding:.5rem}.ControlsBar-modules_chatBubbleIcon__ujTs1 svg{fill:transparent!important}";
|
|
7855
|
+
var css_248z$a = ".ControlsBar-modules_control_bar__uxXow{align-items:center;display:inline-flex;gap:.5rem}.ControlsBar-modules_control_bar__uxXow .ControlsBar-modules_separator__Np2W8{background:var(--color-neutral-dark-shades-700,#64666a);height:1rem;width:.0625rem}.ControlsBar-modules_control_bar__uxXow .ControlsBar-modules_record_btn__rp6Um{align-items:flex-start;background:var(--Color-Extended-Red-50,#fff6f6);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:flex;gap:.5rem;padding:.5rem}.ControlsBar-modules_chatBubbleIcon__ujTs1 svg{fill:transparent!important}";
|
|
7856
7856
|
var styles$a = {"control_bar":"ControlsBar-modules_control_bar__uxXow","separator":"ControlsBar-modules_separator__Np2W8","record_btn":"ControlsBar-modules_record_btn__rp6Um","chatBubbleIcon":"ControlsBar-modules_chatBubbleIcon__ujTs1"};
|
|
7857
7857
|
styleInject(css_248z$a);
|
|
7858
7858
|
|
|
@@ -7903,7 +7903,8 @@ const ControlsBar = ({
|
|
|
7903
7903
|
disabled: disabledRecording,
|
|
7904
7904
|
className: styles$a.record_btn,
|
|
7905
7905
|
onClick: () => {
|
|
7906
|
-
if (isRecording && startRecording) startRecording();
|
|
7906
|
+
if (!isRecording && startRecording) startRecording();
|
|
7907
|
+
if (isRecording) {
|
|
7907
7908
|
if (stopRecording) stopRecording();
|
|
7908
7909
|
}
|
|
7909
7910
|
}
|
|
@@ -8018,15 +8019,10 @@ const Chat = ({
|
|
|
8018
8019
|
}), welcomeTitle && welcomeDescription && !isInterviewer && /*#__PURE__*/React__default.createElement(WelcomeMessage, {
|
|
8019
8020
|
title: welcomeTitle,
|
|
8020
8021
|
description: welcomeDescription
|
|
8021
|
-
}), startInterviewTitle && startInterview && startInterviewBtnTitle && !isInterviewer && /*#__PURE__*/React__default.createElement(StartInterview, {
|
|
8022
|
-
title: startInterviewTitle,
|
|
8023
|
-
buttonText: startInterviewBtnTitle,
|
|
8024
|
-
buttonIcon: startInterviewIcon,
|
|
8025
|
-
onClick: startInterview
|
|
8026
8022
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
8027
8023
|
className: `${styles$b.tasks_container} ${styles$b.no_scrollbar}`
|
|
8028
8024
|
}, isTaskMode ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, tasks.map((task, index) => {
|
|
8029
|
-
return /*#__PURE__*/React__default.createElement(Task, {
|
|
8025
|
+
if (task.type === 'question' || task.type === 'task') return /*#__PURE__*/React__default.createElement(Task, {
|
|
8030
8026
|
key: task._id,
|
|
8031
8027
|
taskNumber: `${task.type === 'task' ? 'Task' : 'Question'} #${index + 1}`,
|
|
8032
8028
|
taskTitle: task.description,
|
|
@@ -8038,6 +8034,12 @@ const Chat = ({
|
|
|
8038
8034
|
sendTask: sendTask,
|
|
8039
8035
|
isDone: false,
|
|
8040
8036
|
isInterviewer: isInterviewer
|
|
8037
|
+
});else return /*#__PURE__*/React__default.createElement(Scenario, {
|
|
8038
|
+
title: `Scenario index`,
|
|
8039
|
+
description: task.description ?? '',
|
|
8040
|
+
buttonText: task.url ? startInterviewBtnTitle : undefined,
|
|
8041
|
+
buttonIcon: task.url ? startInterviewIcon : undefined,
|
|
8042
|
+
url: task.url
|
|
8041
8043
|
});
|
|
8042
8044
|
})) : messages && messages.map(message => {
|
|
8043
8045
|
if (message) {
|
|
@@ -8259,15 +8261,16 @@ const MarkUpBar = ({
|
|
|
8259
8261
|
}, "\uD83D\uDC4E\uD83C\uDFFC")));
|
|
8260
8262
|
};
|
|
8261
8263
|
|
|
8262
|
-
var css_248z$h = ".
|
|
8263
|
-
var styles$h = {"start_interview_container":"
|
|
8264
|
+
var css_248z$h = ".Scenario-modules_start_interview_container__-ZSxv{align-items:flex-start;align-self:stretch;background:#e5f1ff;border:1px solid #66adff;border-radius:.5rem;display:flex;flex-direction:column;gap:.5rem;padding:.5rem .75rem}.Scenario-modules_start_interview_container__-ZSxv button{width:100%}";
|
|
8265
|
+
var styles$h = {"start_interview_container":"Scenario-modules_start_interview_container__-ZSxv"};
|
|
8264
8266
|
styleInject(css_248z$h);
|
|
8265
8267
|
|
|
8266
|
-
const
|
|
8268
|
+
const Scenario = ({
|
|
8267
8269
|
title,
|
|
8270
|
+
description,
|
|
8268
8271
|
buttonText,
|
|
8269
8272
|
buttonIcon,
|
|
8270
|
-
|
|
8273
|
+
url,
|
|
8271
8274
|
className,
|
|
8272
8275
|
...props
|
|
8273
8276
|
}) => {
|
|
@@ -8276,10 +8279,17 @@ const StartInterview = ({
|
|
|
8276
8279
|
}, props), /*#__PURE__*/React__default.createElement(Text, {
|
|
8277
8280
|
text: title,
|
|
8278
8281
|
weight: "bold"
|
|
8279
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
8282
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
8283
|
+
text: description,
|
|
8284
|
+
size: "sm"
|
|
8285
|
+
}), buttonIcon && buttonText && /*#__PURE__*/React__default.createElement("a", {
|
|
8286
|
+
href: url,
|
|
8287
|
+
target: "_blank",
|
|
8288
|
+
rel: "noreferrer"
|
|
8289
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
8280
8290
|
text: buttonText,
|
|
8281
8291
|
iconRight: buttonIcon ?? /*#__PURE__*/React__default.createElement(SendIcon, null)
|
|
8282
|
-
}));
|
|
8292
|
+
})));
|
|
8283
8293
|
};
|
|
8284
8294
|
|
|
8285
8295
|
var css_248z$i = ".Task-modules_task_container__Iaqc-{align-items:flex-start;background:var(--color-neutral-basics-white,#fff);border:1px solid var(--color-neutral-dark-shades-950,#26292e);border-radius:.5rem;display:flex;flex-direction:column;gap:.5rem;justify-content:center;max-width:100%;padding:0}.Task-modules_task_container__Iaqc- .Task-modules_header__f15OM{max-width:100%}.Task-modules_task_container__Iaqc- .Task-modules_header__f15OM .Task-modules_header_left__JJTGR{height:100%}.Task-modules_task_container__Iaqc- .Task-modules_header__f15OM .Task-modules_header_left__JJTGR:hover{background:var(--color-neutral-clear-shades-150,#eee);border-radius:.5rem 0 0 .5rem}.Task-modules_task_container__Iaqc- .Task-modules_header__f15OM .Task-modules_header_right__AymtU:hover{background:var(--color-neutral-clear-shades-150,#eee);border-radius:0 .5rem .5rem 0}.Task-modules_header__f15OM{align-items:center;display:flex;height:100%;justify-content:space-between;max-width:100%;width:100%}.Task-modules_header_left__JJTGR{align-items:flex-start;cursor:pointer;display:flex;flex-direction:column;justify-content:center;min-width:calc(100% - 3.5rem);padding:.3125rem .3125rem .3125rem .62rem;width:100%}.Task-modules_header_left__JJTGR .Task-modules_title__-OmPh{max-width:98%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Task-modules_header_right__AymtU{align-items:center;background:var(--color-neutral-basics-white,#fff);border:none;border-left:1px solid var(--color-neutral-dark-shades-950,#26292e);border-radius:0 .5rem .5rem 0;display:flex;gap:.5rem;height:100%;justify-content:center;max-width:calc(100% - 3.5rem);padding:1rem .75rem}.Task-modules_header_right__AymtU svg{fill:#000;height:1rem;width:1rem}.Task-modules_clickable__BIHxK{cursor:pointer}.Task-modules_disabled_task__NI6LL{align-items:flex-start;background:var(--color-neutral-basics-white,#fff);border:1px solid var(--color-neutral-clear-shades-300,#d5d5d6);border-radius:.5rem;cursor:not-allowed;display:flex;flex-direction:column;gap:.5rem;justify-content:center;max-width:100%;padding:0}.Task-modules_disabled_task__NI6LL .Task-modules_header__f15OM{max-width:100%;width:100%}.Task-modules_disabled_task__NI6LL .Task-modules_header__f15OM .Task-modules_header_left__JJTGR{border-color:var(--color-neutral-clear-shades-300,#d5d5d6);cursor:not-allowed;opacity:.5;width:100%}.Task-modules_disabled_task__NI6LL .Task-modules_header__f15OM .Task-modules_header_right__AymtU{border-color:var(--color-neutral-clear-shades-300,#d5d5d6);cursor:not-allowed;opacity:.5}.Task-modules_active_task__l-n9Q{align-items:flex-start;background:var(--color-neutral-basics-white,#fff);border:1px solid #07f;border-radius:.5rem;display:flex;flex-direction:column;gap:.5rem;justify-content:center;max-width:100%;padding:0}.Task-modules_active_task__l-n9Q .Task-modules_header__f15OM{border-bottom:1px solid var(--color-neutral-clear-shades-300,#d5d5d6);max-width:100%;width:100%}.Task-modules_active_task__l-n9Q .Task-modules_header__f15OM .Task-modules_header_left__JJTGR,.Task-modules_active_task__l-n9Q .Task-modules_header__f15OM .Task-modules_header_right__AymtU{border-color:var(--color-neutral-clear-shades-300,#d5d5d6)}.Task-modules_taskContent__v3Cm1{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:.5rem;padding:.5rem .75rem .25rem}.Task-modules_taskPopover__S07XU{align-items:flex-start;background:var(--color-neutral-basics-white,#fff);border:1px solid var(--color-neutral-dark-shades-950,#26292e);border-radius:.5rem;display:flex;flex-direction:column;overflow:hidden;padding:.5rem .75rem .75rem;width:25.5625rem}.Task-modules_notesContainer__dz0Me{align-items:flex-start;align-self:stretch;border-top:1px solid var(--color-neutral-clear-shades-300,#d5d5d6);display:flex;flex-direction:column;gap:.25rem;padding-top:.5rem}.Task-modules_actionBtnsContainer__Dz-1j{align-items:flex-start;align-self:stretch;display:flex;gap:.5rem;justify-content:flex-end;padding-top:8px}.Task-modules_popover_paper__Re-kl .Task-modules_MuiPopover-paper__7p4Tk,.Task-modules_popover_paper__Re-kl .Task-modules_MuiPopover-root__w6O-O{background:transparent;border-radius:.5rem}";
|
|
@@ -11136,6 +11146,7 @@ exports.RecordingIcon = RecordingIcon;
|
|
|
11136
11146
|
exports.RefreshIcon = RefreshIcon;
|
|
11137
11147
|
exports.RemoveCircledIcon = RemoveCircledIcon;
|
|
11138
11148
|
exports.ReportIcon = ReportIcon;
|
|
11149
|
+
exports.Scenario = Scenario;
|
|
11139
11150
|
exports.ScheduleTasks = ScheduleTasks;
|
|
11140
11151
|
exports.Search = Search;
|
|
11141
11152
|
exports.SearchCircledIcon = SearchCircledIcon;
|
|
@@ -11150,7 +11161,6 @@ exports.ShareIcon = ShareIcon;
|
|
|
11150
11161
|
exports.SingleSelect = SingleSelect;
|
|
11151
11162
|
exports.SmartBrainIcon = SmartBrainIcon;
|
|
11152
11163
|
exports.StarIcon = StarIcon;
|
|
11153
|
-
exports.StartInterview = StartInterview;
|
|
11154
11164
|
exports.Step = Step;
|
|
11155
11165
|
exports.StopRecordIcon = StopRecordingIcon;
|
|
11156
11166
|
exports.Switch = Switch;
|