odaptos_design_system 2.0.35 → 2.0.37
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/Molecules/Interviews/EndRecording.d.ts +2 -1
- package/dist/Molecules/Interviews/SelfProtocolManager.d.ts +4 -0
- package/dist/odaptos_design_system.cjs.development.js +12 -4
- 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 +12 -4
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Molecules/Interviews/EndRecording.tsx +12 -1
- package/src/Molecules/Interviews/SelfProtocolManager.tsx +8 -3
|
@@ -3,7 +3,8 @@ export interface EndRecordingProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
stopRecTitle: string;
|
|
4
4
|
stopRecDescription: string;
|
|
5
5
|
stopRecCTA: string;
|
|
6
|
+
whyStopRecordingIsDisabled?: string;
|
|
6
7
|
disabledStopRecording?: boolean;
|
|
7
8
|
stopRecording: () => void;
|
|
8
9
|
}
|
|
9
|
-
export declare const EndRecording: ({ stopRecTitle, stopRecDescription, stopRecCTA, disabledStopRecording, stopRecording, }: EndRecordingProps) => React.JSX.Element;
|
|
10
|
+
export declare const EndRecording: ({ stopRecTitle, stopRecDescription, stopRecCTA, disabledStopRecording, whyStopRecordingIsDisabled, stopRecording, }: EndRecordingProps) => React.JSX.Element;
|
|
@@ -17,6 +17,10 @@ interface Texts {
|
|
|
17
17
|
stopRecCTANM: string;
|
|
18
18
|
SusExplanationTitle: string;
|
|
19
19
|
SusExplanationDescription: string;
|
|
20
|
+
whyStopRecordingIsDisabled: string;
|
|
21
|
+
task: string;
|
|
22
|
+
question: string;
|
|
23
|
+
scenario: string;
|
|
20
24
|
}
|
|
21
25
|
export interface SelfProtocolManagerProps extends HTMLAttributes<HTMLDivElement> {
|
|
22
26
|
texts: Texts;
|
|
@@ -11867,11 +11867,11 @@ const SelfProtocolManager = ({
|
|
|
11867
11867
|
const getTaskTitle = task => {
|
|
11868
11868
|
let taskType = '';
|
|
11869
11869
|
if (task.type === 'task') {
|
|
11870
|
-
taskType =
|
|
11870
|
+
taskType = texts.task;
|
|
11871
11871
|
} else if (task.type === 'question') {
|
|
11872
|
-
taskType =
|
|
11872
|
+
taskType = texts.question;
|
|
11873
11873
|
} else {
|
|
11874
|
-
taskType =
|
|
11874
|
+
taskType = texts.scenario;
|
|
11875
11875
|
}
|
|
11876
11876
|
return `${taskType} #${task.index}`; //Task #1, Question #2, Scenario #3
|
|
11877
11877
|
};
|
|
@@ -11963,7 +11963,8 @@ const SelfProtocolManager = ({
|
|
|
11963
11963
|
stopRecDescription: texts.stopRecDescriptionNM,
|
|
11964
11964
|
stopRecCTA: texts.stopRecCTANM,
|
|
11965
11965
|
stopRecording: stopRecording,
|
|
11966
|
-
disabledStopRecording: disabledStopRecording
|
|
11966
|
+
disabledStopRecording: disabledStopRecording,
|
|
11967
|
+
whyStopRecordingIsDisabled: texts.whyStopRecordingIsDisabled
|
|
11967
11968
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11968
11969
|
ref: refTask
|
|
11969
11970
|
}))));
|
|
@@ -12207,8 +12208,11 @@ const EndRecording = ({
|
|
|
12207
12208
|
stopRecDescription,
|
|
12208
12209
|
stopRecCTA,
|
|
12209
12210
|
disabledStopRecording,
|
|
12211
|
+
whyStopRecordingIsDisabled,
|
|
12210
12212
|
stopRecording
|
|
12211
12213
|
}) => {
|
|
12214
|
+
console.log('disabledStopRecording', disabledStopRecording);
|
|
12215
|
+
console.log('whyStopRecordingIsDisabled', whyStopRecordingIsDisabled);
|
|
12212
12216
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12213
12217
|
className: styles$l.stop_rec_container
|
|
12214
12218
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
@@ -12226,6 +12230,10 @@ const EndRecording = ({
|
|
|
12226
12230
|
stroke: '#FFF6F6'
|
|
12227
12231
|
}),
|
|
12228
12232
|
disabled: disabledStopRecording
|
|
12233
|
+
}), disabledStopRecording && whyStopRecordingIsDisabled && /*#__PURE__*/React__default.createElement(Text, {
|
|
12234
|
+
text: whyStopRecordingIsDisabled,
|
|
12235
|
+
size: "sm",
|
|
12236
|
+
color: colors.red_400
|
|
12229
12237
|
}));
|
|
12230
12238
|
};
|
|
12231
12239
|
|