odaptos_design_system 2.0.97 → 2.0.99
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/ControlsBar.d.ts +5 -2
- package/dist/odaptos_design_system.cjs.development.js +21 -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 +21 -8
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Molecules/Interviews/ControlsBar.modules.scss +6 -0
- package/src/Molecules/Interviews/ControlsBar.tsx +168 -143
|
@@ -12730,13 +12730,13 @@ const CircledIconButton = ({
|
|
|
12730
12730
|
}));
|
|
12731
12731
|
};
|
|
12732
12732
|
|
|
12733
|
-
var css_248z$p = ".ControlsBar-modules_control_bar__ft1eh{align-items:center;display:inline-flex;gap:.5rem}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_separator__0fqPr{background:var(--color-neutral-dark-shades-700,#64666a);height:1rem;width:.0625rem}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8{align-items:center;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 .75rem .5rem .5rem}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:hover{background:var(--Color-Neutral-Basics-White,#fff)}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:active{background:var(--Color-Extended-Red-100,#fddbdb)}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:disabled{cursor:not-allowed}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:disabled:active,.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:disabled:hover{background:var(--Color-Extended-Red-50,#fff6f6)}.ControlsBar-modules_chatBubbleIcon__vCKpm svg{fill:transparent!important}.ControlsBar-modules_stop_rec_popover__3zCEy{display:flex;flex-direction:column;padding:1rem;width:-moz-min-content;width:min-content}.ControlsBar-modules_stop_rec_popover_actions__GxI-F{display:flex;gap:.5rem;margin-top:.5rem;width:-moz-max-content;width:max-content}";
|
|
12734
|
-
var styles$p = {"control_bar":"ControlsBar-modules_control_bar__ft1eh","separator":"ControlsBar-modules_separator__0fqPr","record_btn":"ControlsBar-modules_record_btn__DLwh8","chatBubbleIcon":"ControlsBar-modules_chatBubbleIcon__vCKpm","stop_rec_popover":"ControlsBar-modules_stop_rec_popover__3zCEy","stop_rec_popover_actions":"ControlsBar-modules_stop_rec_popover_actions__GxI-F"};
|
|
12733
|
+
var css_248z$p = ".ControlsBar-modules_control_bar__ft1eh{align-items:center;display:inline-flex;gap:.5rem}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_separator__0fqPr{background:var(--color-neutral-dark-shades-700,#64666a);height:1rem;width:.0625rem}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_observer_count__n86ih{align-items:center;display:flex;gap:.5rem}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8{align-items:center;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 .75rem .5rem .5rem}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:hover{background:var(--Color-Neutral-Basics-White,#fff)}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:active{background:var(--Color-Extended-Red-100,#fddbdb)}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:disabled{cursor:not-allowed}.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:disabled:active,.ControlsBar-modules_control_bar__ft1eh .ControlsBar-modules_record_btn__DLwh8:disabled:hover{background:var(--Color-Extended-Red-50,#fff6f6)}.ControlsBar-modules_chatBubbleIcon__vCKpm svg{fill:transparent!important}.ControlsBar-modules_stop_rec_popover__3zCEy{display:flex;flex-direction:column;padding:1rem;width:-moz-min-content;width:min-content}.ControlsBar-modules_stop_rec_popover_actions__GxI-F{display:flex;gap:.5rem;margin-top:.5rem;width:-moz-max-content;width:max-content}";
|
|
12734
|
+
var styles$p = {"control_bar":"ControlsBar-modules_control_bar__ft1eh","separator":"ControlsBar-modules_separator__0fqPr","observer_count":"ControlsBar-modules_observer_count__n86ih","record_btn":"ControlsBar-modules_record_btn__DLwh8","chatBubbleIcon":"ControlsBar-modules_chatBubbleIcon__vCKpm","stop_rec_popover":"ControlsBar-modules_stop_rec_popover__3zCEy","stop_rec_popover_actions":"ControlsBar-modules_stop_rec_popover_actions__GxI-F"};
|
|
12735
12735
|
styleInject(css_248z$p);
|
|
12736
12736
|
|
|
12737
12737
|
const ControlsBar = ({
|
|
12738
12738
|
className,
|
|
12739
|
-
|
|
12739
|
+
identity,
|
|
12740
12740
|
endInterview,
|
|
12741
12741
|
enableScreenSharing,
|
|
12742
12742
|
enableMicrophone,
|
|
@@ -12769,11 +12769,24 @@ const ControlsBar = ({
|
|
|
12769
12769
|
stopRecPopoverBtnTwoOnClick,
|
|
12770
12770
|
stopRecText,
|
|
12771
12771
|
startRecText,
|
|
12772
|
+
exitInterview,
|
|
12773
|
+
exitInterviewText,
|
|
12774
|
+
disabledExitInterview,
|
|
12772
12775
|
...props
|
|
12773
12776
|
}) => {
|
|
12774
12777
|
const [isStopRecPopoverOpen, setIsStopRecPopoverOpen] = useState(false);
|
|
12775
12778
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
12776
|
-
|
|
12779
|
+
if (identity === 'observer') {
|
|
12780
|
+
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
12781
|
+
className: `${styles$p.control_bar} ${className ?? ''}`
|
|
12782
|
+
}, props), exitInterview && exitInterviewText && /*#__PURE__*/React.createElement(InterviewButton, {
|
|
12783
|
+
text: exitInterviewText,
|
|
12784
|
+
variant: "end-interview",
|
|
12785
|
+
disabled: disabledExitInterview,
|
|
12786
|
+
onClick: () => exitInterview(),
|
|
12787
|
+
icon: /*#__PURE__*/React.createElement(HangUpIcon, null)
|
|
12788
|
+
}));
|
|
12789
|
+
} else return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
12777
12790
|
className: `${styles$p.control_bar} ${className ?? ''}`
|
|
12778
12791
|
}, props), enableMicrophone && /*#__PURE__*/React.createElement(CircledIconButton, {
|
|
12779
12792
|
icon: isMicrophoneActive ? /*#__PURE__*/React.createElement(MicrophoneIcon, null) : /*#__PURE__*/React.createElement(NoMicrophoneIcon, null),
|
|
@@ -12791,7 +12804,7 @@ const ControlsBar = ({
|
|
|
12791
12804
|
}
|
|
12792
12805
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12793
12806
|
className: styles$p.separator
|
|
12794
|
-
}),
|
|
12807
|
+
}), identity === 'interviewer' && isRecordingBtnDisplay && isModerated && /*#__PURE__*/React.createElement("button", {
|
|
12795
12808
|
ref: setAnchorEl,
|
|
12796
12809
|
disabled: disabledRecording,
|
|
12797
12810
|
className: styles$p.record_btn,
|
|
@@ -12808,13 +12821,13 @@ const ControlsBar = ({
|
|
|
12808
12821
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
12809
12822
|
weight: "semi-bold",
|
|
12810
12823
|
text: isRecording ? stopRecText : startRecText
|
|
12811
|
-
})),
|
|
12824
|
+
})), identity === 'interviewer' && endInterview && /*#__PURE__*/React.createElement(InterviewButton, {
|
|
12812
12825
|
text: endInterviewText,
|
|
12813
12826
|
variant: "end-interview",
|
|
12814
12827
|
disabled: disabledEndInterview,
|
|
12815
12828
|
onClick: () => endInterview(),
|
|
12816
12829
|
icon: /*#__PURE__*/React.createElement(HangUpIcon, null)
|
|
12817
|
-
}), (
|
|
12830
|
+
}), (identity === 'interviewee' || !isModerated) && screenShareText && enableScreenSharing && /*#__PURE__*/React.createElement(InterviewButton, {
|
|
12818
12831
|
id: "odaptos_screen_share",
|
|
12819
12832
|
text: screenShareText,
|
|
12820
12833
|
variant: "screenshare",
|
|
@@ -12822,7 +12835,7 @@ const ControlsBar = ({
|
|
|
12822
12835
|
onClick: () => enableScreenSharing()
|
|
12823
12836
|
}), isModerated && /*#__PURE__*/React.createElement("div", {
|
|
12824
12837
|
className: styles$p.separator
|
|
12825
|
-
}), isModerated &&
|
|
12838
|
+
}), isModerated && identity === 'interviewer' ? /*#__PURE__*/React.createElement(InterviewButton, {
|
|
12826
12839
|
text: protocolText,
|
|
12827
12840
|
variant: "protocol",
|
|
12828
12841
|
icon: /*#__PURE__*/React.createElement(TaskIcon, {
|