odaptos_design_system 1.2.4 → 1.2.6
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/index.js +8 -0
- package/package.json +1 -1
- package/src/Accordion/Accordion.tsx +2 -6
- package/src/Badge/Badge.tsx +1 -1
- package/src/Buttons/Button.tsx +1 -1
- package/src/Buttons/IconButton.tsx +1 -1
- package/src/Checkbox/Checkbox.tsx +1 -0
- package/src/Icons/Arrows/ArrowDoubleLineDownIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowDoubleLineLeftIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowDoubleLineRightIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowDoubleLineUpIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowFilledDownIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowFilledLeftIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowFilledRightIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowFilledUpIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowLineDownIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowLineLeftIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowLineRightIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowLineUpIcon.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerDown.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerDownLeft.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerDownRight.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerLeft.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerRight.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerUp.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerUpLeft.tsx +1 -0
- package/src/Icons/Arrows/ArrowPointerUpRight.tsx +1 -0
- package/src/Icons/Circled/AddCircledIcon.tsx +1 -0
- package/src/Icons/Circled/AlertCircledIcon.tsx +1 -0
- package/src/Icons/Circled/CheckedCircled.tsx +1 -0
- package/src/Icons/Circled/InfoCircledIcon.tsx +1 -0
- package/src/Icons/Circled/MinusCircledIcon.tsx +1 -0
- package/src/Icons/Circled/NavigationCircledIcon.tsx +1 -0
- package/src/Icons/Circled/QuestionCircledIcon.tsx +1 -0
- package/src/Icons/Circled/RemoveCircledIcon.tsx +1 -0
- package/src/Icons/Circled/SearchCircledIcon.tsx +1 -0
- package/src/Icons/Circled/SettingsCircledIcon.tsx +1 -0
- package/src/Icons/Equipment/CameraIcon.tsx +1 -0
- package/src/Icons/Equipment/LaptopIcon.tsx +1 -0
- package/src/Icons/Equipment/MicrophonePodcastIcon.tsx +1 -0
- package/src/Icons/Equipment/MobileIcon.tsx +1 -0
- package/src/Icons/Equipment/TvFlatScreenIcon.tsx +1 -0
- package/src/Icons/Equipment/TvIcon.tsx +1 -0
- package/src/Icons/Interaction/AccountIcon.tsx +1 -0
- package/src/Icons/Interaction/AddIcon.tsx +1 -0
- package/src/Icons/Interaction/AgendaIcon.tsx +1 -0
- package/src/Icons/Interaction/BillingIcon.tsx +1 -0
- package/src/Icons/Interaction/BinIcon.tsx +1 -0
- package/src/Icons/Interaction/CheckedIcon.tsx +1 -0
- package/src/Icons/Interaction/ClockIcon.tsx +1 -0
- package/src/Icons/Interaction/CopyPasteIcon.tsx +1 -0
- package/src/Icons/Interaction/DragDropIcon.tsx +1 -0
- package/src/Icons/Interaction/EditIcon.tsx +1 -0
- package/src/Icons/Interaction/EditTextIcon.tsx +1 -0
- package/src/Icons/Interaction/LogoutIcon.tsx +1 -0
- package/src/Icons/Interaction/MenuHorizontalIcon.tsx +1 -0
- package/src/Icons/Interaction/MenuVerticalIcon.tsx +1 -0
- package/src/Icons/Interaction/MinusIcon.tsx +1 -0
- package/src/Icons/Interaction/SearchIcon.tsx +1 -0
- package/src/Icons/Interaction/SearchRemoveIcon.tsx +1 -0
- package/src/Icons/Interaction/ShareIcon.tsx +1 -0
- package/src/Icons/Interaction/TeamIcon.tsx +1 -0
- package/src/Icons/Logos/LogoBeta.tsx +1 -0
- package/src/Icons/Logos/LogoNormal.tsx +1 -0
- package/src/Icons/Logos/LogoSmall.tsx +1 -0
- package/src/Icons/Logos/LogoSquare.tsx +1 -0
- package/src/Icons/Logos/LogoText.tsx +1 -0
- package/src/Icons/MediaControl/HangUpIcon.tsx +1 -0
- package/src/Icons/MediaControl/MeetingIcon.tsx +1 -0
- package/src/Icons/MediaControl/MicrophoneIcon.tsx +1 -0
- package/src/Icons/MediaControl/MoveInIcon.tsx +1 -0
- package/src/Icons/MediaControl/MuteIcon.tsx +1 -0
- package/src/Icons/MediaControl/PauseIcon.tsx +1 -0
- package/src/Icons/MediaControl/PlayIcon.tsx +1 -0
- package/src/Icons/MediaControl/PreviousIcon.tsx +1 -0
- package/src/Icons/MediaControl/RecordingIcon.tsx +1 -0
- package/src/Icons/MediaControl/VolumeIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/AddSeatIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/AddUsersIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/BillPdfIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/BinocularIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/BrainIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/ChatBubbleIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/ChatIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/CheckoutIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/ClipIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/CreditCardIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/DownloadIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/EarthIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/FaceCenterIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/FaceRecognitionIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/FilesIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/FillRecordIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/FolderIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/GoogleIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/HardDriveIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/HelpIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/LanguageIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/LinkIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/MetaAnalyseIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/ModeratedIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/NbOfUsersIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/NeutralBackgroudIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/ReportIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/SeatIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/SendEmailIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/SendIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/SmartBrainIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/TasksIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/TestDetailsIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/TestIcon.tsx +1 -0
- package/src/Icons/Miscellaneous/UnmoderatedIcon.tsx +1 -0
- package/src/Icons/Notifications/AlamBellIdleIcon.tsx +1 -0
- package/src/Icons/Notifications/AlarmBellStatusIcon.tsx +1 -0
- package/src/Icons/Notifications/NotifAlertIcon.tsx +1 -0
- package/src/Interviews/Chat.tsx +1 -1
- package/src/Interviews/ChatInput.tsx +2 -0
- package/src/Interviews/CircledIconButton.tsx +1 -1
- package/src/Interviews/ControlsBar.tsx +31 -20
- package/src/Interviews/GoBack.tsx +1 -1
- package/src/Interviews/InterviewButton.tsx +1 -1
- package/src/Interviews/MarkUpBar.tsx +3 -4
- package/src/Interviews/StartInterview.tsx +1 -1
- package/src/Interviews/Task.tsx +1 -2
- package/src/Interviews/WelcomeMessage.tsx +1 -1
- package/src/LateralMenu/LateralMenu.tsx +2 -0
- package/src/Modal/Modal.tsx +1 -1
- package/src/Notifications/Banner.tsx +1 -1
- package/src/Notifications/NotificationIcon.tsx +1 -1
- package/src/Notifications/Toast.tsx +1 -1
- package/src/Radio/Radio.tsx +1 -0
- package/src/Search/Search.tsx +1 -0
- package/src/Step/Step.tsx +1 -1
- package/src/Switch/Switch.tsx +1 -1
- package/src/Table/header.tsx +1 -0
- package/src/Table/index.tsx +1 -0
- package/src/Table/rows.tsx +1 -0
- package/src/Table/table-cell.tsx +1 -0
- package/src/Tabs/Tabs.tsx +1 -1
- package/src/Tabs/TabsUnderLine.tsx +1 -1
- package/src/Tag/Tag.tsx +1 -1
- package/src/TextInput/TextInput.tsx +1 -0
- package/src/Textarea/Textarea.tsx +1 -1
- package/src/Tooltip/Layout/TooltipCustomLayout.tsx +1 -0
- package/src/Tooltip/Tooltip.tsx +1 -1
- package/src/Typography/Caption.tsx +1 -1
- package/src/Typography/Link.tsx +1 -1
- package/src/Typography/Text.tsx +1 -1
- package/src/Typography/TextForButton.tsx +1 -1
- package/src/Typography/TextForDropDownItem.tsx +1 -1
- package/src/Typography/TextWithLink.tsx +1 -1
- package/src/Typography/Title.tsx +1 -1
package/src/Interviews/Chat.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import styles from './ControlsBar.modules.scss';
|
|
3
3
|
import {
|
|
4
4
|
CircledIconButton,
|
|
@@ -36,6 +36,7 @@ export const ControlsBar = ({
|
|
|
36
36
|
enableMicrophone,
|
|
37
37
|
enableCamera,
|
|
38
38
|
displayTasks,
|
|
39
|
+
displayChat,
|
|
39
40
|
isChatOpen,
|
|
40
41
|
areTasksOpen,
|
|
41
42
|
isNewTask,
|
|
@@ -44,16 +45,20 @@ export const ControlsBar = ({
|
|
|
44
45
|
}: ControlsBarProps) => {
|
|
45
46
|
return (
|
|
46
47
|
<div className={`${styles.control_bar} ${className ?? ''}`} {...props}>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
{enableMicrophone && (
|
|
49
|
+
<CircledIconButton
|
|
50
|
+
icon={<MicrophoneIcon />}
|
|
51
|
+
onClick={() => enableMicrophone()}
|
|
52
|
+
/>
|
|
53
|
+
)}
|
|
54
|
+
{enableCamera && (
|
|
55
|
+
<CircledIconButton
|
|
56
|
+
icon={<MeetingIcon />}
|
|
57
|
+
onClick={() => enableCamera()}
|
|
58
|
+
/>
|
|
59
|
+
)}
|
|
55
60
|
<div className={styles.separator} />
|
|
56
|
-
{isInterviewer && (
|
|
61
|
+
{isInterviewer && endInterview && (
|
|
57
62
|
<InterviewButton
|
|
58
63
|
text="End Interview"
|
|
59
64
|
variant="end-interview"
|
|
@@ -61,7 +66,7 @@ export const ControlsBar = ({
|
|
|
61
66
|
icon={<HangUpIcon />}
|
|
62
67
|
/>
|
|
63
68
|
)}
|
|
64
|
-
{!isInterviewer && !isScreenShare && (
|
|
69
|
+
{!isInterviewer && !isScreenShare && enableScreenSharing && (
|
|
65
70
|
<InterviewButton
|
|
66
71
|
text="ScreenShare"
|
|
67
72
|
variant="screenshare"
|
|
@@ -75,7 +80,9 @@ export const ControlsBar = ({
|
|
|
75
80
|
text="Protocol"
|
|
76
81
|
variant="protocol"
|
|
77
82
|
icon={<TasksIcon />}
|
|
78
|
-
onClick={() =>
|
|
83
|
+
onClick={() => {
|
|
84
|
+
if (displayTasks) return displayTasks();
|
|
85
|
+
}}
|
|
79
86
|
isActive={areTasksOpen}
|
|
80
87
|
isNotif={isNewTask}
|
|
81
88
|
/>
|
|
@@ -84,18 +91,22 @@ export const ControlsBar = ({
|
|
|
84
91
|
text="My Tasks"
|
|
85
92
|
variant="protocol"
|
|
86
93
|
icon={<TasksIcon />}
|
|
87
|
-
onClick={() =>
|
|
94
|
+
onClick={() => {
|
|
95
|
+
if (displayTasks) return displayTasks();
|
|
96
|
+
}}
|
|
88
97
|
isActive={areTasksOpen}
|
|
89
98
|
isNotif={isNewTask}
|
|
90
99
|
/>
|
|
91
100
|
)}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
{displayChat && (
|
|
102
|
+
<CircledIconButton
|
|
103
|
+
icon={<ChatBubbleIcon />}
|
|
104
|
+
className={styles.chatBubbleIcon}
|
|
105
|
+
onClick={() => displayChat()}
|
|
106
|
+
isActive={isChatOpen}
|
|
107
|
+
isNotif={isNewMessage}
|
|
108
|
+
/>
|
|
109
|
+
)}
|
|
99
110
|
</div>
|
|
100
111
|
);
|
|
101
112
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import styles from './MarkUpBar.modules.scss';
|
|
3
|
-
import { MeetingIcon } from '../';
|
|
4
3
|
|
|
5
|
-
export interface MarkUpBarProps
|
|
4
|
+
export interface MarkUpBarProps {
|
|
6
5
|
className?: string;
|
|
7
6
|
onClick: (code: string) => void;
|
|
8
7
|
}
|
|
@@ -10,7 +9,7 @@ export interface MarkUpBarProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
10
9
|
/**
|
|
11
10
|
* TODO : Be sure that we want to keep the 'QWERTY' selection system
|
|
12
11
|
*/
|
|
13
|
-
export const MarkUpBar = ({ className, onClick
|
|
12
|
+
export const MarkUpBar = ({ className, onClick }: MarkUpBarProps) => {
|
|
14
13
|
return (
|
|
15
14
|
<div className={`${styles.markup_bar} ${className ?? ''}`}>
|
|
16
15
|
<div className={styles.smiley_list}>
|
package/src/Interviews/Task.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import styles from './Task.modules.scss';
|
|
3
3
|
import { Button, CheckedIcon, IconButton, Text, SendIcon } from '../';
|
|
4
4
|
import Popover from '@mui/material/Popover';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { styled } from '@mui/material/styles';
|
|
7
6
|
|
|
8
7
|
const CustomPopover = styled(Popover)({
|
package/src/Modal/Modal.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { Title } from '../Typography/Title';
|
|
|
5
5
|
import { Button } from '../Buttons/Button';
|
|
6
6
|
import { IconButton } from '../Buttons/IconButton';
|
|
7
7
|
import styles from './Modal.modules.scss';
|
|
8
|
-
import { useEffect } from 'react';
|
|
8
|
+
import React, { useEffect } from 'react';
|
|
9
9
|
|
|
10
10
|
interface ModalProps {
|
|
11
11
|
className?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import { AlertCircledIcon, CheckedCircled, InfoCircledIcon } from '../Icons';
|
|
3
3
|
import { TextWithLink } from '../Typography/TextWithLink';
|
|
4
4
|
import { Text } from '../Typography/Text';
|
package/src/Radio/Radio.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import { styled } from '@mui/material/styles';
|
|
|
2
2
|
import { Radio as MuiRadio } from '@mui/material';
|
|
3
3
|
import { Text } from '../Typography/Text';
|
|
4
4
|
import styles from './Radio.module.scss';
|
|
5
|
+
import React from 'react';
|
|
5
6
|
|
|
6
7
|
const BpIcon = styled('span')(() => ({
|
|
7
8
|
borderRadius: '50%',
|
package/src/Search/Search.tsx
CHANGED
package/src/Step/Step.tsx
CHANGED
package/src/Switch/Switch.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { Switch as MuiSwitch } from '@mui/material';
|
|
|
2
2
|
import { Title } from '../Typography/Title';
|
|
3
3
|
import styles from './Switch.module.scss';
|
|
4
4
|
import { alpha, styled } from '@mui/system';
|
|
5
|
-
|
|
5
|
+
import React from 'react';
|
|
6
6
|
interface SwitchProps {
|
|
7
7
|
label?: string;
|
|
8
8
|
checked: boolean;
|
package/src/Table/header.tsx
CHANGED
package/src/Table/index.tsx
CHANGED
package/src/Table/rows.tsx
CHANGED
package/src/Table/table-cell.tsx
CHANGED
package/src/Tabs/Tabs.tsx
CHANGED
package/src/Tag/Tag.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import { InputAdornment, TextField } from '@mui/material';
|
|
|
2
2
|
import { Text } from '../Typography/Text';
|
|
3
3
|
import './TextInput.scss';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
|
+
import React from 'react';
|
|
5
6
|
|
|
6
7
|
const CssTextField = styled(TextField)({
|
|
7
8
|
'& .MuiInputBase-input': {
|
|
@@ -2,6 +2,7 @@ import { Button } from '../../Buttons/Button';
|
|
|
2
2
|
import { IconButton } from '../../Buttons/IconButton';
|
|
3
3
|
import { Text } from '../../Typography/Text';
|
|
4
4
|
import { Title } from '../../Typography/Title';
|
|
5
|
+
import React from 'react';
|
|
5
6
|
|
|
6
7
|
import styles from './TooltipCustomLayout.module.scss';
|
|
7
8
|
|
package/src/Tooltip/Tooltip.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { styled } from '@mui/material/styles';
|
|
|
4
4
|
|
|
5
5
|
import { TooltipLayout } from './Layout/TooltipCustomLayout';
|
|
6
6
|
|
|
7
|
-
import { useState } from 'react';
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
8
|
|
|
9
9
|
const StyledTooltip = styled(MTooltip)({
|
|
10
10
|
[`& .${tooltipClasses.tooltip}`]: {
|
package/src/Typography/Link.tsx
CHANGED
package/src/Typography/Text.tsx
CHANGED
package/src/Typography/Title.tsx
CHANGED