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.
- package/dist/Atoms/TimeInterval/TimeInterval.d.ts +1 -1
- package/dist/DesignTokens/Icons/Interaction/SortingIconZA.d.ts +7 -0
- package/dist/DesignTokens/Icons/index.d.ts +1 -0
- package/dist/Molecules/ChatMessage/ChatMessage.d.ts +1 -1
- package/dist/Molecules/Interviews/Scenario.d.ts +11 -13
- package/dist/Molecules/Interviews/Task.d.ts +9 -37
- package/dist/index.d.ts +0 -1
- package/dist/odaptos_design_system.cjs.development.js +980 -840
- 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 +956 -816
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Atoms/TimeInterval/TimeInterval.tsx +5 -1
- package/src/DesignTokens/Icons/Interaction/SortingIconZA.tsx +28 -0
- package/src/DesignTokens/Icons/index.ts +1 -0
- package/src/Molecules/ChatMessage/ChatMessage.module.scss +6 -0
- package/src/Molecules/ChatMessage/ChatMessage.tsx +20 -17
- package/src/Molecules/Interviews/CircleIconButton.modules.scss +2 -2
- package/src/Molecules/Interviews/InterviewButton.modules.scss +6 -3
- package/src/Molecules/Interviews/Scenario.modules.scss +108 -11
- package/src/Molecules/Interviews/Scenario.tsx +242 -55
- package/src/Molecules/Interviews/Task.modules.scss +171 -220
- package/src/Molecules/Interviews/Task.tsx +503 -243
- package/src/Molecules/Interviews/WelcomeMessage.modules.scss +22 -0
- package/src/Molecules/PricingCard/PricingCard.tsx +1 -0
- package/src/index.ts +0 -1
- package/dist/Molecules/Interviews/Chat.d.ts +0 -53
- package/src/Molecules/Interviews/Chat.modules.scss +0 -236
- 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';
|
|
@@ -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
|
-
|
|
5
|
-
|
|
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: ({
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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: ({
|
|
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';
|