odaptos_design_system 2.0.253 → 2.0.255

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.
Files changed (31) hide show
  1. package/dist/Atoms/TimeInterval/TimeInterval.d.ts +1 -1
  2. package/dist/DesignTokens/Icons/Interaction/SortingIconZA.d.ts +7 -0
  3. package/dist/DesignTokens/Icons/index.d.ts +1 -0
  4. package/dist/Molecules/ChatMessage/ChatMessage.d.ts +1 -1
  5. package/dist/Molecules/Interviews/Scenario.d.ts +11 -13
  6. package/dist/Molecules/Interviews/Task.d.ts +9 -37
  7. package/dist/index.d.ts +0 -1
  8. package/dist/odaptos_design_system.cjs.development.js +980 -840
  9. package/dist/odaptos_design_system.cjs.development.js.map +1 -1
  10. package/dist/odaptos_design_system.cjs.production.min.js +1 -1
  11. package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
  12. package/dist/odaptos_design_system.esm.js +956 -816
  13. package/dist/odaptos_design_system.esm.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/Atoms/TimeInterval/TimeInterval.tsx +5 -1
  16. package/src/DesignTokens/Icons/Interaction/SortingIconZA.tsx +28 -0
  17. package/src/DesignTokens/Icons/index.ts +1 -0
  18. package/src/Molecules/ChatMessage/ChatMessage.module.scss +6 -0
  19. package/src/Molecules/ChatMessage/ChatMessage.tsx +20 -17
  20. package/src/Molecules/Interviews/CircleIconButton.modules.scss +2 -2
  21. package/src/Molecules/Interviews/InterviewButton.modules.scss +6 -3
  22. package/src/Molecules/Interviews/Scenario.modules.scss +108 -11
  23. package/src/Molecules/Interviews/Scenario.tsx +242 -55
  24. package/src/Molecules/Interviews/Task.modules.scss +171 -220
  25. package/src/Molecules/Interviews/Task.tsx +503 -243
  26. package/src/Molecules/Interviews/WelcomeMessage.modules.scss +22 -0
  27. package/src/Molecules/PricingCard/PricingCard.tsx +1 -0
  28. package/src/index.ts +0 -1
  29. package/dist/Molecules/Interviews/Chat.d.ts +0 -53
  30. package/src/Molecules/Interviews/Chat.modules.scss +0 -236
  31. package/src/Molecules/Interviews/Chat.tsx +0 -472
@@ -6,4 +6,4 @@ export interface TimeIntervalProps {
6
6
  onClick: (nb: number) => void;
7
7
  className?: string;
8
8
  }
9
- export declare const TimeInterval: ({ id, startTime, endTime, onClick, className, }: TimeIntervalProps) => React.JSX.Element;
9
+ export declare const TimeInterval: ({ id, startTime, endTime, onClick, className, }: TimeIntervalProps) => React.JSX.Element | null;
@@ -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 SortingIconZA({ stroke, strokeWidth, fill, size, ...rest }: SvgIconProps & CustomSvgProps): React.JSX.Element;
7
+ export {};
@@ -100,6 +100,7 @@ export { default as SearchRemoveIcon } from './Interaction/SearchRemoveIcon';
100
100
  export { default as SettingsSliderIcon } from './Interaction/SettingsSliderIcon';
101
101
  export { default as ShareIcon } from './Interaction/ShareIcon';
102
102
  export { default as SortingIcon } from './Interaction/SortingIcon';
103
+ export { default as SortingIconZA } from './Interaction/SortingIconZA';
103
104
  export { default as TagAddIcon } from './Interaction/TagAddIcon';
104
105
  export { default as TagEditIcon } from './Interaction/TagEditIcon';
105
106
  export { default as TagRemoveIcon } from './Interaction/TagRemoveIcon';
@@ -4,7 +4,7 @@ export interface ChatMessageProps extends HTMLAttributes<HTMLDivElement> {
4
4
  isMe?: boolean;
5
5
  onClickTime: (nb: number) => void;
6
6
  classNameTime?: string;
7
- startTime: number;
7
+ startTime?: number;
8
8
  endTime?: number;
9
9
  id?: string;
10
10
  }
@@ -1,17 +1,15 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import type { Message, Task } from './PipModerated';
3
2
  export interface ScenarioProps extends HTMLAttributes<HTMLDivElement> {
4
- title: string;
5
- scenarioName?: string;
6
- description?: string;
7
- buttonText?: string;
8
- buttonIcon?: JSX.Element;
9
- url: string;
10
- className?: string;
11
- disabled?: boolean;
12
- isObserver?: boolean;
13
- tasks: Task[];
14
- messages: Message[];
3
+ scenario: any;
4
+ isInterviewer: boolean;
15
5
  contentFunc: (key: string) => string;
6
+ isObserver: boolean;
7
+ sendScenario: (scenarioId: string) => void;
8
+ isAlreadySent: boolean;
9
+ isThereTaskSent?: boolean;
10
+ isDisabled: boolean;
11
+ isNonModerated: boolean;
12
+ isInHistory: boolean;
13
+ isInTooltip: boolean;
16
14
  }
17
- export declare const Scenario: ({ title, scenarioName, description, buttonText, buttonIcon, url, className, disabled, isObserver, tasks, messages, contentFunc, ...props }: ScenarioProps) => React.JSX.Element;
15
+ export declare const Scenario: ({ scenario, contentFunc, isInterviewer, isObserver, sendScenario, isAlreadySent, isThereTaskSent, isDisabled, isNonModerated, isInHistory, }: ScenarioProps) => React.JSX.Element;
@@ -1,40 +1,12 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- interface TaskItem {
3
- _id: string;
4
- description: string;
5
- url: string;
6
- name: string;
7
- notes: string;
8
- type: 'task' | 'question';
9
- timedTask: boolean;
10
- totalSeconds: number;
11
- successSeconds: number;
12
- failureSeconds: number;
13
- }
14
2
  export interface TaskProps extends HTMLAttributes<HTMLDivElement> {
15
- className?: string;
16
- taskNumber: string;
17
- taskTitle: string;
18
- taskDescription?: string;
19
- taskTitleTooltip: string;
20
- noteText?: string;
21
- actionText?: string;
22
- url?: string;
23
- notes?: string;
24
- state: 'idle' | 'active' | 'disabled' | 'done';
25
- isDone: boolean;
26
- task: TaskItem;
27
- sendTask: (task: TaskItem) => void;
28
- iconAction1?: JSX.Element;
29
- iconAction2?: JSX.Element;
30
- iconAction3?: JSX.Element;
31
- action1?: () => void;
32
- action2?: () => void;
33
- action3?: () => void;
34
- mainActionText?: string;
35
- mainAction?: () => void;
36
- isInterviewer?: boolean;
37
- isObserver?: boolean;
3
+ task: any;
4
+ state: 'active' | 'done' | 'not_started';
5
+ isInterviewer: boolean;
6
+ contentFunc: (key: string) => string;
7
+ isObserver: boolean;
8
+ sendTask: (taskId: string) => void;
9
+ isNonModerated: boolean;
10
+ isDisabled: boolean;
38
11
  }
39
- export declare const Task: ({ taskNumber, taskTitle, taskDescription, taskTitleTooltip, notes, noteText, actionText, url, className, task, sendTask, state, isDone, iconAction1, iconAction2, iconAction3, action1, action2, action3, mainActionText, mainAction, isInterviewer, isObserver, ...props }: TaskProps) => React.JSX.Element;
40
- export {};
12
+ export declare const Task: ({ task, state, contentFunc, isInterviewer, isObserver, sendTask, isNonModerated, isDisabled, }: TaskProps) => React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -33,7 +33,6 @@ export * from './Molecules/Accordion/Accordion';
33
33
  export * from './Molecules/ChatMessage/ChatMessage';
34
34
  export * from './Molecules/FeaturesTable/FeaturesTable';
35
35
  export * from './Molecules/FileUpload';
36
- export * from './Molecules/Interviews/Chat';
37
36
  export * from './Molecules/Interviews/ChatInput';
38
37
  export * from './Molecules/Interviews/CircledIconButton';
39
38
  export * from './Molecules/Interviews/ControlsBar';