odaptos_design_system 2.0.189 → 2.0.191
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/package.json +4 -5
- package/src/Atoms/Buttons/Button.modules.scss +0 -1
- package/src/Atoms/Switch/Switch.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowDoubleLineDownIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowDoubleLineLeftIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowDoubleLineRightIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowDoubleLineUpIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowLineDownIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowLineLeftIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowLineRightIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowLineUpIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowPointerDown.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowPointerDownLeft.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowPointerDownRight.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowPointerLeft.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowPointerUp.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowPointerUpLeft.tsx +1 -1
- package/src/DesignTokens/Icons/Arrows/ArrowPointerUpRight.tsx +1 -1
- package/src/DesignTokens/Icons/Interaction/AddIcon.tsx +1 -1
- package/src/DesignTokens/Icons/Miscellaneous/TaskIcon.tsx +0 -2
- package/src/Molecules/Interviews/StartInterview.modules.scss +14 -0
- package/src/Molecules/Interviews/StartInterview.tsx +27 -0
- package/src/Molecules/Interviews/Task.modules.scss +0 -3
- package/src/Molecules/PricingCard/PricingCard.tsx +4 -2
- package/src/Organisms/MultiSelect/MultiSelect.scss +76 -0
- package/src/Organisms/SingleSelect/SingleSelect.modules.scss +1 -1
- package/src/Organisms/SingleSelect/SingleSelect.tsx +3 -7
- package/src/Organisms/Table/rows.modules.scss +1 -1
- package/src/Organisms/Textarea/Textarea.tsx +5 -5
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.191",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"build": "tsdx build",
|
|
16
16
|
"test": "tsdx test --passWithNoTests",
|
|
17
17
|
"lint": "tsdx lint",
|
|
18
|
-
"prepare": "tsdx build",
|
|
19
18
|
"size": "size-limit",
|
|
20
19
|
"analyze": "size-limit --why",
|
|
21
20
|
"storybook": "storybook dev -p 8080",
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
"@babel/preset-react": "^7.18.6",
|
|
57
56
|
"@babel/preset-typescript": "^7.21.5",
|
|
58
57
|
"@size-limit/preset-small-lib": "^8.2.4",
|
|
59
|
-
"@storybook/addon-essentials": "^7.
|
|
58
|
+
"@storybook/addon-essentials": "^7.5.3",
|
|
60
59
|
"@storybook/addon-info": "^5.3.21",
|
|
61
60
|
"@storybook/addon-links": "^7.0.10",
|
|
62
61
|
"@storybook/addons": "^7.0.8",
|
|
@@ -73,7 +72,6 @@
|
|
|
73
72
|
"size-limit": "^8.2.4",
|
|
74
73
|
"storybook": "^7.0.8",
|
|
75
74
|
"storybook-design-token": "^3.0.0-beta.3",
|
|
76
|
-
"tsdx": "^0.14.1",
|
|
77
75
|
"tslib": "^2.5.0",
|
|
78
76
|
"typescript": "^3.9.10"
|
|
79
77
|
},
|
|
@@ -105,6 +103,7 @@
|
|
|
105
103
|
"sass-loader": "^13.2.2",
|
|
106
104
|
"storybook-addon-grid-overlay": "^0.0.9",
|
|
107
105
|
"storybook-css-modules-preset": "^1.1.1",
|
|
108
|
-
"style-loader": "^3.3.2"
|
|
106
|
+
"style-loader": "^3.3.2",
|
|
107
|
+
"tsdx": "^0.14.1"
|
|
109
108
|
}
|
|
110
109
|
}
|
|
@@ -15,7 +15,7 @@ export default function ArrowDoubleLineDownIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowDoubleLineLeftIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowDoubleLineRightIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowDoubleLineUpIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowLineDowIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowLineLeftIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowLineRightIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowLineUpIcon({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowPointerDown({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowPointerDownLeft({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowPointerDownRight({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowPointerLeft({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowPointerUp({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowPointerUpLeft({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -15,7 +15,7 @@ export default function ArrowPointerUpRight({
|
|
|
15
15
|
}: SvgIconProps & CustomSvgProps) {
|
|
16
16
|
return (
|
|
17
17
|
<SvgIcon
|
|
18
|
-
strokeWidth={strokeWidth ?? 0.
|
|
18
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
19
19
|
stroke={stroke ? stroke : 'currentColor'}
|
|
20
20
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
21
21
|
{...rest}
|
|
@@ -14,7 +14,7 @@ export default function AddIcon({
|
|
|
14
14
|
}: SvgIconProps & CustomSvgProps) {
|
|
15
15
|
return (
|
|
16
16
|
<SvgIcon
|
|
17
|
-
strokeWidth={strokeWidth ?? 0.
|
|
17
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
18
18
|
stroke={stroke ? stroke : 'currentColor'}
|
|
19
19
|
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
20
20
|
{...rest}
|
|
@@ -32,13 +32,11 @@ export default function TaskIcon({
|
|
|
32
32
|
fillRule="evenodd"
|
|
33
33
|
clipRule="evenodd"
|
|
34
34
|
d="M10 0C10.2761 0 10.5 0.223858 10.5 0.5V20.5C10.5 20.7761 10.2761 21 10 21C9.72386 21 9.5 20.7761 9.5 20.5V0.5C9.5 0.223858 9.72386 0 10 0Z"
|
|
35
|
-
fill={fill}
|
|
36
35
|
/>
|
|
37
36
|
<path
|
|
38
37
|
fillRule="evenodd"
|
|
39
38
|
clipRule="evenodd"
|
|
40
39
|
d="M3.87267 20.4089C3.57858 20.6572 3.5 20.8591 3.5 21C3.5 21.1409 3.57858 21.3428 3.87267 21.5911C4.16445 21.8375 4.6163 22.0819 5.21842 22.2969C6.4183 22.7254 8.1088 23 10 23C11.8912 23 13.5817 22.7254 14.7816 22.2969C15.3837 22.0819 15.8356 21.8375 16.1273 21.5911C16.4214 21.3428 16.5 21.1409 16.5 21C16.5 20.8591 16.4214 20.6572 16.1273 20.4089C15.8356 20.1625 15.3837 19.9181 14.7816 19.7031C13.5817 19.2746 11.8912 19 10 19C8.1088 19 6.4183 19.2746 5.21842 19.7031C4.6163 19.9181 4.16445 20.1625 3.87267 20.4089ZM4.88208 18.7614C6.2157 18.2851 8.02521 18 10 18C11.9748 18 13.7843 18.2851 15.1179 18.7614C15.7825 18.9987 16.3558 19.293 16.7725 19.6449C17.1868 19.9947 17.5 20.4506 17.5 21C17.5 21.5494 17.1868 22.0053 16.7725 22.3551C16.3558 22.707 15.7825 23.0013 15.1179 23.2386C13.7843 23.7149 11.9748 24 10 24C8.02521 24 6.2157 23.7149 4.88208 23.2386C4.21745 23.0013 3.64418 22.707 3.22752 22.3551C2.81318 22.0053 2.5 21.5494 2.5 21C2.5 20.4506 2.81318 19.9947 3.22752 19.6449C3.64418 19.293 4.21745 18.9987 4.88208 18.7614Z"
|
|
41
|
-
fill={fill}
|
|
42
40
|
/>
|
|
43
41
|
<path
|
|
44
42
|
fillRule="evenodd"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.start_interview_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 0.5rem 0.75rem;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
align-self: stretch;
|
|
7
|
+
border-radius: 0.5rem;
|
|
8
|
+
border: 1px solid #66adff;
|
|
9
|
+
background: #e5f1ff;
|
|
10
|
+
gap: 0.5rem;
|
|
11
|
+
button {
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import styles from './StartInterview.modules.scss';
|
|
3
|
+
import { Button, Text, SendIcon } from '../../index';
|
|
4
|
+
|
|
5
|
+
export interface StartInterviewProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
title: string;
|
|
7
|
+
buttonText: string;
|
|
8
|
+
buttonIcon?: JSX.Element;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const StartInterview = ({
|
|
14
|
+
title,
|
|
15
|
+
buttonText,
|
|
16
|
+
buttonIcon,
|
|
17
|
+
onClick,
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: StartInterviewProps) => {
|
|
21
|
+
return (
|
|
22
|
+
<div className={styles.start_interview_container} {...props}>
|
|
23
|
+
<Text text={title} weight="bold" />
|
|
24
|
+
<Button text={buttonText} iconRight={buttonIcon ?? <SendIcon />} />
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -46,11 +46,13 @@ export const PricingCard = ({
|
|
|
46
46
|
4: cmsContent.ContactUs,
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
+
const monthlyPriceWithDiscount = Math.floor(Number(yearlyPrice) / 12);
|
|
50
|
+
|
|
49
51
|
const euroPrice = isYearly
|
|
50
|
-
? `(${
|
|
52
|
+
? `(${monthlyPriceWithDiscount} ${currency})`
|
|
51
53
|
: `(${yearlyPrice} ${currency})`;
|
|
52
54
|
const dollarPrice = isYearly
|
|
53
|
-
? `(${currency}${
|
|
55
|
+
? `(${currency}${monthlyPriceWithDiscount} USD)`
|
|
54
56
|
: `(${currency}${yearlyPrice} USD)`;
|
|
55
57
|
|
|
56
58
|
return (
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.newAutocomplete {
|
|
2
|
+
width: 100%;
|
|
3
|
+
min-width: 16rem;
|
|
4
|
+
|
|
5
|
+
span {
|
|
6
|
+
font-family: OpenSans;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
font-size: 0.75rem;
|
|
10
|
+
line-height: 1.3;
|
|
11
|
+
letter-spacing: 0.03em;
|
|
12
|
+
text-align: left;
|
|
13
|
+
margin: unset;
|
|
14
|
+
}
|
|
15
|
+
label {
|
|
16
|
+
font-family: OpenSans;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-size: 0.75rem;
|
|
20
|
+
line-height: 1.3;
|
|
21
|
+
letter-spacing: 0.03em;
|
|
22
|
+
text-align: left;
|
|
23
|
+
margin: unset;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.MuiAutocomplete-endAdornment {
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: 0.5rem;
|
|
29
|
+
margin-top: -0.35rem !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tags-container {
|
|
33
|
+
display: flex;
|
|
34
|
+
max-width: 80%;
|
|
35
|
+
flex-wrap: nowrap;
|
|
36
|
+
overflow: scroll;
|
|
37
|
+
gap: 0.5rem;
|
|
38
|
+
padding: 0 0.25rem;
|
|
39
|
+
span {
|
|
40
|
+
font-size: 0.75rem;
|
|
41
|
+
}
|
|
42
|
+
p {
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.input_top_label {
|
|
50
|
+
margin-bottom: 0.625rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.MuiOutlinedInput-root.MuiInputBase-root.MuiInputBase-formControl {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.text_below {
|
|
60
|
+
margin: 0.25rem 0.5rem 0.25rem 0.75rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.icon {
|
|
64
|
+
width: 1rem !important;
|
|
65
|
+
height: 1rem !important;
|
|
66
|
+
margin-left: 0.25rem;
|
|
67
|
+
}
|
|
68
|
+
.no_scrollbar {
|
|
69
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
70
|
+
&::-webkit-scrollbar {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
75
|
+
scrollbar-width: none; /* Firefox */
|
|
76
|
+
}
|
|
@@ -182,16 +182,14 @@ export const SingleSelect = ({
|
|
|
182
182
|
<Autocomplete
|
|
183
183
|
id={inputId}
|
|
184
184
|
value={value}
|
|
185
|
+
defaultValue={defaultValue}
|
|
185
186
|
inputValue={inputValue}
|
|
186
187
|
onInputChange={(_event, newInputValue) => {
|
|
187
188
|
setInputValue(newInputValue);
|
|
188
189
|
}}
|
|
189
190
|
onChange={(_event, newValue) => {
|
|
190
|
-
const e = {
|
|
191
|
-
target: { name: name, value: newValue },
|
|
192
|
-
};
|
|
193
191
|
setValue(newValue);
|
|
194
|
-
onChange(
|
|
192
|
+
onChange(newValue);
|
|
195
193
|
}}
|
|
196
194
|
options={options ?? []}
|
|
197
195
|
multiple={false}
|
|
@@ -204,9 +202,7 @@ export const SingleSelect = ({
|
|
|
204
202
|
else return '';
|
|
205
203
|
}}
|
|
206
204
|
isOptionEqualToValue={(option, value) => {
|
|
207
|
-
|
|
208
|
-
else if (value && value !== '') return option.value === value.value;
|
|
209
|
-
else return false;
|
|
205
|
+
return option.value === value.value;
|
|
210
206
|
}}
|
|
211
207
|
renderInput={(params) => (
|
|
212
208
|
<CssTextField
|
|
@@ -56,11 +56,11 @@ export const Textarea = ({
|
|
|
56
56
|
const [charCount, setCharCount] = useState(0);
|
|
57
57
|
|
|
58
58
|
const handleChange = (e: any) => {
|
|
59
|
-
const newCharCount = e
|
|
60
|
-
if (newCharCount <= maxCharacters) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
59
|
+
// const newCharCount = e?.target?.value?.length;
|
|
60
|
+
// if (newCharCount <= maxCharacters) {
|
|
61
|
+
// setCharCount(newCharCount);
|
|
62
|
+
onChange(e);
|
|
63
|
+
// }
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
useEffect(() => {
|