odaptos_design_system 1.4.305 → 1.4.307

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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ interface CustomSvgProps {
4
+ size?: 'sm' | 'base' | 'lg' | 'xl';
5
+ }
6
+ export default function CogIcon({ stroke, strokeWidth, fill, size, ...rest }: SvgIconProps & CustomSvgProps): React.JSX.Element;
7
+ export {};
@@ -66,6 +66,7 @@ export { default as BinIcon } from './Interaction/BinIcon';
66
66
  export { default as CheckedIcon } from './Interaction/CheckedIcon';
67
67
  export { default as ClockIcon } from './Interaction/ClockIcon';
68
68
  export { default as CloseIcon } from './Interaction/CloseIcon';
69
+ export { default as CogIcon } from './Interaction/CogIcon';
69
70
  export { default as CopyPasteIcon } from './Interaction/CopyPasteIcon';
70
71
  export { default as DragDropIcon } from './Interaction/DragDropIcon';
71
72
  export { default as EditIcon } from './Interaction/EditIcon';
@@ -31,6 +31,7 @@ export interface ChatProps extends HTMLAttributes<HTMLDivElement> {
31
31
  stopRecCTA: string;
32
32
  SusExplanationTitle: string;
33
33
  SusExplanationDescription: string;
34
+ isSus: boolean;
34
35
  stopRecording: () => void;
35
36
  }
36
- export declare const Chat: ({ chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, disabledScenario, areAllTasksSend, isRecordingFinished, stopRecTitle, stopRecDescription, stopRecCTA, SusExplanationTitle, SusExplanationDescription, stopRecording, ...props }: ChatProps) => React.JSX.Element;
37
+ export declare const Chat: ({ chatTitle, welcomeTitle, welcomeDescription, startInterviewTitle, startInterviewBtnTitle, startInterviewIcon, startInterview, tasks, sendTask, currentTask, chatInputPlaceholder, chatInputValue, chatInputonChange, sendMessage, className, isTaskMode, isInterviewer, messages, idsTasksAlreadySent, customScrollingClassname, customContentClassname, disabledTask, disabledScenario, areAllTasksSend, isRecordingFinished, stopRecTitle, stopRecDescription, stopRecCTA, SusExplanationTitle, SusExplanationDescription, isSus, stopRecording, ...props }: ChatProps) => React.JSX.Element;
@@ -4747,6 +4747,42 @@ function CloseIcon({
4747
4747
  })));
4748
4748
  }
4749
4749
 
4750
+ function CogIcon({
4751
+ stroke,
4752
+ strokeWidth,
4753
+ fill,
4754
+ size = 'base',
4755
+ ...rest
4756
+ }) {
4757
+ return /*#__PURE__*/React__default.createElement(material.SvgIcon, Object.assign({
4758
+ strokeWidth: strokeWidth ?? 0.1,
4759
+ stroke: stroke ? stroke : 'currentColor',
4760
+ sx: {
4761
+ height: getIconSize(size),
4762
+ width: getIconSize(size)
4763
+ }
4764
+ }, rest), /*#__PURE__*/React__default.createElement("svg", {
4765
+ xmlns: "http://www.w3.org/2000/svg",
4766
+ width: "24",
4767
+ height: "24",
4768
+ viewBox: "0 0 24 24",
4769
+ fill: "none"
4770
+ }, /*#__PURE__*/React__default.createElement("g", {
4771
+ "clip-path": "url(#clip0_7428_1459)"
4772
+ }, /*#__PURE__*/React__default.createElement("path", {
4773
+ "fill-rule": "evenodd",
4774
+ "clip-rule": "evenodd",
4775
+ d: "M22.4 13.7333C22.8 14.0666 23.0667 14.5333 23.2 15.0666L23.2667 15.1333C23.4 15.6 23.3333 16.2 23.1333 16.6666C22.9333 17.1333 22.6 17.6 22.1333 17.8666C21.6667 18.2 21.1333 18.2666 20.6 18.2H19.2667C19.1566 18.2 19.0667 18.2202 18.9858 18.2383C18.9199 18.2532 18.8599 18.2666 18.8 18.2666C18.6667 18.3333 18.5333 18.4 18.4 18.5333C18.2667 18.6666 18.1333 18.8 18.1333 18.9333C18.1333 18.9755 18.1266 19.0244 18.1196 19.0758C18.1045 19.1866 18.0878 19.3088 18.1333 19.4V20.7333C18.1333 21.2666 18 21.8 17.7333 22.2666C17.4667 22.7333 17 23.0666 16.5333 23.2666C16.0667 23.4666 15.5333 23.5333 15 23.4C14.4667 23.2666 14 23 13.6667 22.6L12.8 21.6C12.7333 21.4666 12.6 21.3333 12.4667 21.3333C12.2 21.2 11.8667 21.2 11.6 21.3333C11.4667 21.4 11.4 21.4666 11.2667 21.6L10.4 22.6C10.0667 23 9.6 23.2666 9.06667 23.4H8.46666C8.13333 23.4 7.8 23.3333 7.46666 23.2C7 23 6.53333 22.6666 6.26666 22.2C5.93333 21.7333 5.86666 21.2 5.93333 20.6666V19.3333C5.93333 19.2232 5.91313 19.1333 5.89496 19.0525C5.88013 18.9865 5.86666 18.9266 5.86666 18.8666C5.8 18.7333 5.73333 18.6 5.6 18.4666C5.46666 18.3333 5.33333 18.2 5.2 18.2C5.15778 18.2 5.10888 18.1933 5.05753 18.1863C4.9467 18.1711 4.82445 18.1544 4.73333 18.2H3.4C2.86666 18.2 2.33333 18.0666 1.86666 17.8C1.4 17.5333 1.06666 17.0666 0.866665 16.6C0.666665 16.1333 0.599998 15.6 0.733331 15.0666C0.866665 14.5333 1.13333 14.0666 1.53333 13.7333L2.53333 12.8666C2.66666 12.8 2.8 12.6666 2.8 12.5333C2.86666 12.4 2.86666 12.2666 2.86666 12.0666C2.86666 11.9565 2.84646 11.8666 2.8283 11.7858C2.81347 11.7198 2.8 11.6599 2.8 11.6C2.73333 11.4666 2.66666 11.4 2.53333 11.2666L1.53333 10.4C1.13333 10.0666 0.866665 9.59996 0.733331 9.06663C0.599998 8.53329 0.666665 7.99996 0.866665 7.53329C1.06666 7.06663 1.4 6.59996 1.86666 6.33329C2.33333 5.99996 2.86666 5.93329 3.4 5.99996H4.73333C4.84343 5.99996 4.93333 5.97975 5.01415 5.96159C5.08013 5.94676 5.14007 5.93329 5.2 5.93329C5.33333 5.86663 5.46666 5.79996 5.6 5.66663C5.73333 5.53329 5.86666 5.39996 5.86666 5.26663C5.86666 5.22441 5.87335 5.17551 5.88037 5.12416C5.89551 5.01333 5.91222 4.89108 5.86666 4.79996V3.46663C5.86666 2.93329 6 2.39996 6.26666 1.93329C6.53333 1.46663 7 1.13329 7.46666 0.933292C7.93333 0.733292 8.46666 0.666625 9 0.799959C9.53333 0.933292 10 1.19996 10.3333 1.59996L11.2 2.59996C11.2667 2.73329 11.2667 2.73329 11.5333 2.86663C11.8 2.99996 12.1333 2.99996 12.4 2.86663C12.5333 2.79996 12.6 2.73329 12.7333 2.59996L13.6 1.59996C13.9333 1.19996 14.4 0.933292 14.9333 0.799959C15.4 0.666625 16 0.733292 16.4667 0.933292C16.9333 1.13329 17.4 1.46663 17.6667 1.93329C18 2.39996 18.0667 2.93329 18 3.46663V4.79996C18 4.91006 18.0202 4.99996 18.0384 5.08077C18.0532 5.14676 18.0667 5.20669 18.0667 5.26663C18.1333 5.39996 18.2 5.53329 18.3333 5.66663C18.4667 5.79996 18.6 5.93329 18.7333 5.93329C18.7755 5.93329 18.8244 5.93998 18.8758 5.94699C18.9866 5.96214 19.1089 5.97885 19.2 5.93329H20.5333C21.0667 5.93329 21.6 6.06663 22.0667 6.33329C22.5333 6.59996 22.8667 7.06663 23.0667 7.53329C23.2667 7.99996 23.3333 8.53329 23.2 9.06663C23.0667 9.59996 22.8 10.0666 22.4 10.4L21.4 11.2666C21.2667 11.3333 21.1333 11.4666 21.1333 11.6C21.0667 11.7333 21.0667 11.8666 21.0667 12.0666C21.0667 12.1767 21.0869 12.2666 21.105 12.3474C21.1199 12.4134 21.1333 12.4734 21.1333 12.5333C21.2 12.6666 21.2667 12.7333 21.4 12.8666L22.4 13.7333ZM21.3333 16.5333C21.5333 16.4 21.6667 16.2 21.7333 16L21.6 15.9333C21.6 15.8689 21.6069 15.8046 21.614 15.738C21.6291 15.5977 21.6452 15.4475 21.6 15.2666C21.5333 15 21.4667 14.8 21.2667 14.6666L20.2667 13.8C20 13.5333 19.8 13.2666 19.6667 12.9333C19.5333 12.6 19.4667 12.2666 19.4667 11.8666C19.4667 11.4666 19.5333 11.1333 19.6667 10.8C19.8 10.4666 20 10.2 20.2667 9.93329L21.2667 9.06663C21.4667 8.93329 21.6 8.73329 21.6 8.53329C21.7333 8.26663 21.6667 8.06663 21.6 7.86663C21.5333 7.59996 21.4 7.46663 21.2 7.33329C21 7.19996 20.7333 7.13329 20.5333 7.19996H19.2C18.8 7.19996 18.4667 7.13329 18.1333 6.99996C17.8 6.86663 17.5333 6.66663 17.2667 6.39996C17 6.19996 16.8 5.86663 16.6667 5.53329C16.5333 5.19996 16.4667 4.79996 16.5333 4.46663V3.13329C16.6 2.86663 16.5333 2.66663 16.4 2.46663C16.2667 2.26663 16.0667 2.13329 15.8667 2.06663H15.2C14.9333 2.13329 14.7333 2.19996 14.6 2.39996L13.7333 3.39996C13.4667 3.66663 13.2 3.86663 12.8667 3.99996C12.2 4.26663 11.4 4.26663 10.7333 3.99996C10.4 3.86663 10.1333 3.66663 9.86666 3.39996L9 2.39996C8.86666 2.19996 8.66667 2.06663 8.46666 2.06663C8.2 1.93329 8 1.99996 7.8 2.06663C7.53333 2.13329 7.4 2.26663 7.26666 2.46663C7.13333 2.66663 7.06666 2.93329 7.13333 3.13329V4.46663C7.13333 4.86663 7.06666 5.19996 6.93333 5.53329C6.8 5.93329 6.6 6.19996 6.33333 6.46663C6.06666 6.73329 5.73333 6.93329 5.4 7.06663C5.06666 7.19996 4.66666 7.26663 4.33333 7.19996H3C2.8 7.19996 2.6 7.26663 2.4 7.39996C2.2 7.53329 2.06666 7.73329 2 7.93329V8.59996C2.06666 8.79996 2.2 8.99996 2.33333 9.13329L3.33333 9.99996C3.6 10.2666 3.8 10.5333 3.93333 10.8666C4.06666 11.2 4.13333 11.5333 4.13333 11.9333C4.13333 12.3333 4.06666 12.6666 3.93333 13C3.8 13.3333 3.6 13.6 3.33333 13.8666L2.33333 14.7333C2.13333 14.8666 2 15.0666 2 15.2666C1.86666 15.4666 1.93333 15.7333 2 15.9333C2.06666 16.2 2.2 16.3333 2.4 16.4666C2.6 16.5333 2.86666 16.6 3.06666 16.5333H4.4H4.53333C4.86666 16.5333 5.2 16.6 5.46666 16.7333C5.86666 16.8666 6.13333 17.0666 6.4 17.3333C6.66667 17.6 6.86666 17.9333 7 18.2666C7.13333 18.6 7.2 19 7.13333 19.3333V20.6666C7.13333 20.8666 7.2 21.0666 7.33333 21.2666C7.46666 21.4666 7.66667 21.6 7.86666 21.6666H8.53333C8.73333 21.6 8.93333 21.4666 9.06667 21.3333L9.93333 20.3333C10.2 20.0666 10.4667 19.8666 10.8 19.7333C11.4667 19.4666 12.2667 19.4666 12.9333 19.7333C13.2667 19.8666 13.5333 20.0666 13.8 20.3333L14.6667 21.3333C14.8 21.5333 15 21.6666 15.2 21.6666C15.4667 21.8 15.6667 21.7333 15.8667 21.6666C16.1333 21.6 16.2667 21.4666 16.4 21.2666C16.5333 21.1333 16.6 20.8666 16.5333 20.6666V19.3333C16.5333 18.9333 16.6 18.6 16.7333 18.2666C16.8667 17.9333 17.0667 17.6666 17.3333 17.4C17.6 17.1333 17.9333 16.9333 18.2667 16.8C18.6 16.6666 19 16.6 19.3333 16.6666H20.6667C20.9333 16.7333 21.1333 16.6666 21.3333 16.5333ZM13.9333 7.4C14.5333 7.66667 15.0667 8 15.5333 8.46667H15.6C16.0667 8.93333 16.4 9.46667 16.6667 10.0667C16.9333 10.7333 17.0667 11.3333 17.0667 12C17.0667 12.6667 16.9333 13.3333 16.6667 13.9333C16.4 14.5333 16.0667 15.0667 15.6 15.5333C15.1333 16 14.6 16.3333 14 16.6C13.3333 16.8667 12.7333 17 12.0667 17C11.4 17 10.7333 16.8667 10.1333 16.6C9.53333 16.3333 9 16 8.53333 15.5333C8.06667 15.0667 7.73333 14.5333 7.46667 13.9333C7.2 13.2667 7.06667 12.6667 7.06667 12C7.06667 11.3333 7.2 10.6667 7.46667 10.0667C7.73333 9.46667 8.06667 8.93333 8.53333 8.46667C9 8 9.53333 7.66667 10.1333 7.4C11.3333 6.86667 12.7333 6.86667 13.9333 7.4ZM15.2 13.3334L15.2 13.3333C15.4 12.9333 15.4667 12.4667 15.4667 12C15.4667 11.5333 15.4 11.0667 15.2 10.6667C15.0667 10.2667 14.8 9.86667 14.4667 9.53333C14.1333 9.2 13.7333 9 13.3333 8.8C12.9333 8.6 12.4667 8.53333 12 8.53333C11.5333 8.53333 11.0667 8.6 10.6667 8.8C10.2667 8.93333 9.86667 9.2 9.53333 9.53333C9.2 9.86667 9 10.2667 8.8 10.6667C8.6 11.0667 8.53333 11.5333 8.53333 12C8.53333 12.4667 8.6 12.9333 8.8 13.3333C8.93333 13.7333 9.2 14.1333 9.53333 14.4667C9.86667 14.8 10.2667 15 10.6667 15.2C11.5333 15.5333 12.4667 15.5333 13.3333 15.2C13.7333 15.0667 14.1333 14.8 14.4667 14.4667C14.8 14.1333 15 13.7333 15.2 13.3334Z",
4776
+ fill: fill
4777
+ })), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("clipPath", {
4778
+ id: "clip0_7428_1459"
4779
+ }, /*#__PURE__*/React__default.createElement("rect", {
4780
+ width: "24",
4781
+ height: "24",
4782
+ fill: "white"
4783
+ })))));
4784
+ }
4785
+
4750
4786
  function CopyPasteIcon({
4751
4787
  stroke,
4752
4788
  strokeWidth,
@@ -10477,6 +10513,7 @@ const Chat = ({
10477
10513
  stopRecCTA,
10478
10514
  SusExplanationTitle,
10479
10515
  SusExplanationDescription,
10516
+ isSus,
10480
10517
  stopRecording,
10481
10518
  ...props
10482
10519
  }) => {
@@ -10556,12 +10593,12 @@ const Chat = ({
10556
10593
  disabled: disabledScenario
10557
10594
  });
10558
10595
  } else return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
10559
- }), areAllTasksSend && /*#__PURE__*/React__default.createElement(EndRecording, {
10596
+ }), isInterviewer && areAllTasksSend && !isRecordingFinished && /*#__PURE__*/React__default.createElement(EndRecording, {
10560
10597
  stopRecTitle: stopRecTitle,
10561
10598
  stopRecDescription: stopRecDescription,
10562
10599
  stopRecCTA: stopRecCTA,
10563
10600
  stopRecording: stopRecording
10564
- }), isRecordingFinished && /*#__PURE__*/React__default.createElement(SusExplanation, {
10601
+ }), isInterviewer && isRecordingFinished && isSus && areAllTasksSend && /*#__PURE__*/React__default.createElement(SusExplanation, {
10565
10602
  title: SusExplanationTitle,
10566
10603
  description: SusExplanationDescription
10567
10604
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -15069,6 +15106,7 @@ exports.CircledIconButton = CircledIconButton;
15069
15106
  exports.ClipIcon = ClipIcon;
15070
15107
  exports.ClockIcon = ClockIcon;
15071
15108
  exports.CloseIcon = CloseIcon;
15109
+ exports.CogIcon = CogIcon;
15072
15110
  exports.ColorPicker = ColorPicker;
15073
15111
  exports.ContentPenWriteIcon = ContentPenWriteIcon;
15074
15112
  exports.ControlsBar = ControlsBar;