odaptos_design_system 2.0.169 → 2.0.172
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 +2 -1
- package/dist/odaptos_design_system.cjs.development.js +95 -51
- 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 +95 -51
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Molecules/Interviews/ControlsBar.tsx +24 -2
- package/src/Molecules/Interviews/InterviewButton.modules.scss +3 -3
- package/src/Organisms/MultiSelect/MultiSelect.tsx +37 -19
- package/src/Organisms/MultiSelect/MultiSelectWithCategories.tsx +37 -17
- package/src/Organisms/MultiSelect/MultiSelectWithoutFilter.tsx +38 -18
|
@@ -37,5 +37,6 @@ export interface ControlsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
37
37
|
exitInterview?: () => void;
|
|
38
38
|
exitInterviewText?: string;
|
|
39
39
|
disabledExitInterview?: boolean;
|
|
40
|
+
disabledEndInterviewText?: string;
|
|
40
41
|
}
|
|
41
|
-
export declare const ControlsBar: ({ className, identity, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, startRecording, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, screenShareText, disabledRecording, disabledEndInterview, myTasksText, protocolText, isModerated, endInterviewText, stopRecPopoverTitle, stopRecPopoverDescription, stopRecPopoverBtnOneText, stopRecPopoverBtnTwoText, isRecordingBtnDisplay, stopRecPopoverBtnOneOnClick, stopRecPopoverBtnTwoOnClick, stopRecText, startRecText, exitInterview, exitInterviewText, disabledExitInterview, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
42
|
+
export declare const ControlsBar: ({ className, identity, endInterview, enableScreenSharing, enableMicrophone, muteMicrophone, enableCamera, muteCamera, displayChat, displayTasks, startRecording, isChatOpen, areTasksOpen, isNewTask, isNewMessage, isMicrophoneActive, isCameraActive, isRecording, screenShareText, disabledRecording, disabledEndInterview, myTasksText, protocolText, isModerated, endInterviewText, stopRecPopoverTitle, stopRecPopoverDescription, stopRecPopoverBtnOneText, stopRecPopoverBtnTwoText, isRecordingBtnDisplay, stopRecPopoverBtnOneOnClick, stopRecPopoverBtnTwoOnClick, stopRecText, startRecText, exitInterview, exitInterviewText, disabledExitInterview, disabledEndInterviewText, ...props }: ControlsBarProps) => React.JSX.Element;
|
|
@@ -13127,6 +13127,7 @@ const ControlsBar = ({
|
|
|
13127
13127
|
exitInterview,
|
|
13128
13128
|
exitInterviewText,
|
|
13129
13129
|
disabledExitInterview,
|
|
13130
|
+
disabledEndInterviewText,
|
|
13130
13131
|
...props
|
|
13131
13132
|
}) => {
|
|
13132
13133
|
const [isStopRecPopoverOpen, setIsStopRecPopoverOpen] = React.useState(false);
|
|
@@ -13176,13 +13177,25 @@ const ControlsBar = ({
|
|
|
13176
13177
|
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
13177
13178
|
weight: "semi-bold",
|
|
13178
13179
|
text: isRecording ? stopRecText : startRecText
|
|
13179
|
-
})), identity === 'interviewer' && endInterview && /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
13180
|
+
})), identity === 'interviewer' && endInterview && !disabledEndInterview ? /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
13180
13181
|
text: endInterviewText,
|
|
13181
13182
|
variant: "end-interview",
|
|
13182
13183
|
disabled: disabledEndInterview,
|
|
13183
13184
|
onClick: () => endInterview(),
|
|
13184
13185
|
icon: /*#__PURE__*/React__default.createElement(HangUpIcon, null)
|
|
13185
|
-
})
|
|
13186
|
+
}) : identity === 'interviewer' && endInterview && disabledEndInterview && disabledEndInterviewText ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
13187
|
+
tooltipDescription: disabledEndInterviewText,
|
|
13188
|
+
placement: "top",
|
|
13189
|
+
arrow: true
|
|
13190
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
13191
|
+
text: endInterviewText,
|
|
13192
|
+
variant: "end-interview",
|
|
13193
|
+
disabled: disabledEndInterview,
|
|
13194
|
+
onClick: () => endInterview(),
|
|
13195
|
+
icon: /*#__PURE__*/React__default.createElement(HangUpIcon, {
|
|
13196
|
+
fill: "white"
|
|
13197
|
+
})
|
|
13198
|
+
}))) : null, (identity === 'interviewee' || !isModerated) && screenShareText && enableScreenSharing && /*#__PURE__*/React__default.createElement(InterviewButton, {
|
|
13186
13199
|
id: "odaptos_screen_share",
|
|
13187
13200
|
text: screenShareText,
|
|
13188
13201
|
variant: "screenshare",
|
|
@@ -13303,7 +13316,7 @@ const EndRecording = ({
|
|
|
13303
13316
|
}));
|
|
13304
13317
|
};
|
|
13305
13318
|
|
|
13306
|
-
var css_248z$z = ".InterviewButton-modules_interview_button__nQuJi{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__nQuJi svg{height:1.5rem;width:1.5rem}.InterviewButton-modules_interview_button_screenshare__kTb7u{background:var(--color-primary-500,#07f)}.InterviewButton-modules_interview_button_screenshare__kTb7u:hover{background:var(--color-primary-400,#3392ff)}.InterviewButton-modules_interview_button_screenshare__kTb7u:active{background:var(--color-primary-600,#005fcc)}.InterviewButton-modules_interview_button_screenshare__kTb7u p{color:#fff!important}.InterviewButton-modules_interview_button_screenshare__kTb7u svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__NuNs8 p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8 svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8:hover{background:var(--color-neutral-dark-shades-550,#8a8b8e)}.InterviewButton-modules_interview_button_protocol__NuNs8:hover p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8:hover svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8:active{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__NuNs8:active p{color:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_interview_button_protocol__NuNs8:active svg{stroke:var(--color-neutral-basics-black,#00040a)!important;fill:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_active__pmGNN{background:var(--color-primary-300,#66adff)}.InterviewButton-modules_active__pmGNN p{color:#00040a!important}.InterviewButton-modules_active__pmGNN svg{stroke:#00040a!important;fill:#00040a!important;height:1.5rem;width:1.5rem}.InterviewButton-modules_disabled__bzmGz{cursor:not-allowed;opacity:.2}.InterviewButton-modules_interview_button_end_interview__J5C2I{background:var(--color-extended-red-500,#f54c4c)}.InterviewButton-modules_interview_button_end_interview__J5C2I:hover{background:var(--color-extended-red-400,#f77070)}.InterviewButton-modules_interview_button_end_interview__J5C2I:active{background:var(--color-extended-red-600,#c73f3d)}.InterviewButton-modules_interview_button_end_interview__J5C2I p{color:var(--
|
|
13319
|
+
var css_248z$z = ".InterviewButton-modules_interview_button__nQuJi{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__nQuJi svg{height:1.5rem;width:1.5rem}.InterviewButton-modules_interview_button_screenshare__kTb7u{background:var(--color-primary-500,#07f)}.InterviewButton-modules_interview_button_screenshare__kTb7u:hover{background:var(--color-primary-400,#3392ff)}.InterviewButton-modules_interview_button_screenshare__kTb7u:active{background:var(--color-primary-600,#005fcc)}.InterviewButton-modules_interview_button_screenshare__kTb7u p{color:#fff!important}.InterviewButton-modules_interview_button_screenshare__kTb7u svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__NuNs8 p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8 svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8:hover{background:var(--color-neutral-dark-shades-550,#8a8b8e)}.InterviewButton-modules_interview_button_protocol__NuNs8:hover p{color:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8:hover svg{stroke:#fff!important;fill:#fff!important}.InterviewButton-modules_interview_button_protocol__NuNs8:active{background:var(--color-neutral-dark-shades-700,#64666a)}.InterviewButton-modules_interview_button_protocol__NuNs8:active p{color:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_interview_button_protocol__NuNs8:active svg{stroke:var(--color-neutral-basics-black,#00040a)!important;fill:var(--color-neutral-basics-black,#00040a)!important}.InterviewButton-modules_active__pmGNN{background:var(--color-primary-300,#66adff)}.InterviewButton-modules_active__pmGNN p{color:#00040a!important}.InterviewButton-modules_active__pmGNN svg{stroke:#00040a!important;fill:#00040a!important;height:1.5rem;width:1.5rem}.InterviewButton-modules_disabled__bzmGz{cursor:not-allowed;opacity:.2}.InterviewButton-modules_interview_button_end_interview__J5C2I{background:var(--color-extended-red-500,#f54c4c)}.InterviewButton-modules_interview_button_end_interview__J5C2I:hover{background:var(--color-extended-red-400,#f77070)}.InterviewButton-modules_interview_button_end_interview__J5C2I:active{background:var(--color-extended-red-600,#c73f3d)}.InterviewButton-modules_interview_button_end_interview__J5C2I p{color:var(--Color-Neutral-Basics-White,#fff)!important}.InterviewButton-modules_interview_button_end_interview__J5C2I svg{stroke:var(--Color-Neutral-Basics-White,#fff)!important;fill:var(--Color-Neutral-Basics-White,#fff)!important}.InterviewButton-modules_notif_icon__sDbuB{height:.75rem!important;position:absolute;right:0;top:0;width:.75rem!important}";
|
|
13307
13320
|
var styles$z = {"interview_button":"InterviewButton-modules_interview_button__nQuJi","interview_button_screenshare":"InterviewButton-modules_interview_button_screenshare__kTb7u","interview_button_protocol":"InterviewButton-modules_interview_button_protocol__NuNs8","active":"InterviewButton-modules_active__pmGNN","disabled":"InterviewButton-modules_disabled__bzmGz","interview_button_end_interview":"InterviewButton-modules_interview_button_end_interview__J5C2I","notif_icon":"InterviewButton-modules_notif_icon__sDbuB"};
|
|
13308
13321
|
styleInject(css_248z$z);
|
|
13309
13322
|
|
|
@@ -15589,23 +15602,32 @@ const MultiSelect = ({
|
|
|
15589
15602
|
renderTags: value => {
|
|
15590
15603
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15591
15604
|
className: `${styles$T.tags_container} ${styles$T.no_scrollbar}`
|
|
15592
|
-
}, value.map((option, index) =>
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15600
|
-
|
|
15601
|
-
|
|
15602
|
-
|
|
15603
|
-
|
|
15604
|
-
|
|
15605
|
-
|
|
15606
|
-
|
|
15607
|
-
|
|
15608
|
-
|
|
15605
|
+
}, value.map((option, index) => {
|
|
15606
|
+
const isTextTruncated = option.label.length > 20;
|
|
15607
|
+
const TagContent = /*#__PURE__*/React__default.createElement(Badge, {
|
|
15608
|
+
text: option.label,
|
|
15609
|
+
status: "idle",
|
|
15610
|
+
size: "base",
|
|
15611
|
+
key: `chipt-option-${index}`,
|
|
15612
|
+
className: styles$T.customBadge,
|
|
15613
|
+
canBeRemoved: true,
|
|
15614
|
+
iconRight: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
15615
|
+
fill: colors.neutral_700,
|
|
15616
|
+
style: {
|
|
15617
|
+
cursor: 'pointer !important'
|
|
15618
|
+
},
|
|
15619
|
+
onClick: () => {
|
|
15620
|
+
if (!disabled) deleteOption(option);
|
|
15621
|
+
}
|
|
15622
|
+
})
|
|
15623
|
+
});
|
|
15624
|
+
return isTextTruncated ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
15625
|
+
key: index,
|
|
15626
|
+
arrow: true,
|
|
15627
|
+
placement: "top",
|
|
15628
|
+
tooltipDescription: option.label
|
|
15629
|
+
}, /*#__PURE__*/React__default.createElement("div", null, TagContent)) : TagContent;
|
|
15630
|
+
}));
|
|
15609
15631
|
},
|
|
15610
15632
|
renderOption: (props, option, {
|
|
15611
15633
|
selected
|
|
@@ -15865,21 +15887,32 @@ const MultiSelectWithCategories = ({
|
|
|
15865
15887
|
renderTags: value => {
|
|
15866
15888
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15867
15889
|
className: `${styles$U.tags_container} ${styles$U.no_scrollbar}`
|
|
15868
|
-
}, value.map((option, index) =>
|
|
15869
|
-
|
|
15870
|
-
|
|
15871
|
-
|
|
15872
|
-
|
|
15873
|
-
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
|
|
15890
|
+
}, value.map((option, index) => {
|
|
15891
|
+
const isTextTruncated = option.label.length > 20;
|
|
15892
|
+
const TagContent = /*#__PURE__*/React__default.createElement(Badge, {
|
|
15893
|
+
text: option.label,
|
|
15894
|
+
status: "idle",
|
|
15895
|
+
size: "base",
|
|
15896
|
+
key: `chipt-option-${index}`,
|
|
15897
|
+
className: styles$U.customBadge,
|
|
15898
|
+
canBeRemoved: true,
|
|
15899
|
+
iconRight: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
15900
|
+
fill: colors.neutral_700,
|
|
15901
|
+
style: {
|
|
15902
|
+
cursor: 'pointer !important'
|
|
15903
|
+
},
|
|
15904
|
+
onClick: () => {
|
|
15905
|
+
if (!disabled) deleteOption(option);
|
|
15906
|
+
}
|
|
15907
|
+
})
|
|
15908
|
+
});
|
|
15909
|
+
return isTextTruncated ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
15910
|
+
key: index,
|
|
15911
|
+
arrow: true,
|
|
15912
|
+
placement: "top",
|
|
15913
|
+
tooltipDescription: option.label
|
|
15914
|
+
}, /*#__PURE__*/React__default.createElement("div", null, TagContent)) : TagContent;
|
|
15915
|
+
}));
|
|
15883
15916
|
},
|
|
15884
15917
|
renderOption: (props, option, {
|
|
15885
15918
|
selected
|
|
@@ -16067,7 +16100,7 @@ const MultiSelectWithoutFilter = ({
|
|
|
16067
16100
|
}, [defaultValue]);
|
|
16068
16101
|
React.useEffect(() => {
|
|
16069
16102
|
// Call API only if searchTerm and fetchOptions are defined
|
|
16070
|
-
if (searchTerm.length >= 3 && fetchOptions) {
|
|
16103
|
+
if (searchTerm && searchTerm.length >= 3 && fetchOptions) {
|
|
16071
16104
|
fetchOptions(searchTerm);
|
|
16072
16105
|
}
|
|
16073
16106
|
}, [searchTerm]);
|
|
@@ -16131,21 +16164,32 @@ const MultiSelectWithoutFilter = ({
|
|
|
16131
16164
|
renderTags: value => {
|
|
16132
16165
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
16133
16166
|
className: `${styles$V.tags_container} ${styles$V.no_scrollbar}`
|
|
16134
|
-
}, value.map((option, index) =>
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
|
|
16167
|
+
}, value.map((option, index) => {
|
|
16168
|
+
const isTextTruncated = option.label.length > 20;
|
|
16169
|
+
const TagContent = /*#__PURE__*/React__default.createElement(Badge, {
|
|
16170
|
+
text: option.label,
|
|
16171
|
+
status: "idle",
|
|
16172
|
+
size: "base",
|
|
16173
|
+
key: `chipt-option-${index}`,
|
|
16174
|
+
className: styles$V.customBadge,
|
|
16175
|
+
canBeRemoved: true,
|
|
16176
|
+
iconRight: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
16177
|
+
fill: colors.neutral_700,
|
|
16178
|
+
style: {
|
|
16179
|
+
cursor: 'pointer !important'
|
|
16180
|
+
},
|
|
16181
|
+
onClick: () => {
|
|
16182
|
+
if (!disabled) deleteOption(option);
|
|
16183
|
+
}
|
|
16184
|
+
})
|
|
16185
|
+
});
|
|
16186
|
+
return isTextTruncated ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
16187
|
+
key: index,
|
|
16188
|
+
arrow: true,
|
|
16189
|
+
placement: "top",
|
|
16190
|
+
tooltipDescription: option.label
|
|
16191
|
+
}, /*#__PURE__*/React__default.createElement("div", null, TagContent)) : TagContent;
|
|
16192
|
+
}));
|
|
16149
16193
|
},
|
|
16150
16194
|
renderOption: (props, option, {
|
|
16151
16195
|
selected
|