odaptos_design_system 1.4.13 → 1.4.14

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.13",
2
+ "version": "1.4.14",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -33,7 +33,7 @@
33
33
 
34
34
  .button_secondary {
35
35
  background: transparent;
36
- border: 1px solid transparent;
36
+ border: 1px solid var(--color-neutral-basics-black, #00040a);
37
37
  &:hover {
38
38
  border: 1px solid var(--color-neutral-basics-black, #00040a);
39
39
  background: var(--color-neutral-clear-shades-200, #e1e1e2);
@@ -0,0 +1,55 @@
1
+ .input {
2
+ min-width: 12.5rem;
3
+ width: 100%;
4
+ font-family: var(--sdFontFamilyOpenSans);
5
+ font-style: normal;
6
+ font-weight: var(--sdFontWeightRegular);
7
+ font-size: var(--sdTypoTextNoDecorationRegularBase);
8
+ line-height: var(--sdLineHeight130);
9
+ letter-spacing: var(--sdLetterSpacingButtons);
10
+ text-align: left;
11
+ margin: unset;
12
+
13
+ svg {
14
+ height: 0.75rem;
15
+ width: 0.75rem;
16
+ }
17
+ }
18
+
19
+ input {
20
+ font-style: normal;
21
+ font-weight: var(--sdFontWeightRegular);
22
+ font-size: var(--sdTypoTextNoDecorationRegularBase);
23
+ line-height: var(--sdLineHeight130);
24
+ letter-spacing: var(--sdLetterSpacingButtons);
25
+ text-align: left;
26
+ margin: unset;
27
+ }
28
+
29
+ input.input {
30
+ height: 1rem;
31
+ }
32
+ .MuiInputBase-root-MuiOutlinedInput-root {
33
+ font-family: var(--sdFontFamilyOpenSans);
34
+ font-style: normal;
35
+ font-weight: var(--sdFontWeightRegular);
36
+ font-size: var(--sdTypoTextNoDecorationRegularBase);
37
+ line-height: var(--sdLineHeight130);
38
+ letter-spacing: var(--sdLetterSpacingButtons);
39
+ text-align: left;
40
+ margin: unset;
41
+ }
42
+
43
+ .input_top_label {
44
+ margin-bottom: 0.625rem;
45
+ }
46
+ .input .MuiInputBase-input {
47
+ color: var(--gray-black);
48
+ font-family: 'OpenSans';
49
+ font-size: 1rem;
50
+ padding: 0.375rem 0.75rem;
51
+ }
52
+
53
+ .text_below {
54
+ margin: 0.25rem 0.5rem 0.25rem 0.75rem;
55
+ }
@@ -0,0 +1,81 @@
1
+ import React from 'react';
2
+ import { Text } from '../Typography/Text';
3
+ import styles from './DatePicker.modules.scss';
4
+ import { DatePicker as MuiDatePicker } from '@mui/x-date-pickers/DatePicker';
5
+
6
+ interface InputProps {
7
+ className?: string;
8
+ rightIcon?: JSX.Element;
9
+ leftIcon?: JSX.Element;
10
+ variant?: 'filled' | 'standard' | 'outlined';
11
+ topLabel?: string | undefined;
12
+ placeholder?: string;
13
+ label?: string;
14
+ required?: boolean | undefined;
15
+ name?: string;
16
+ value: string | number;
17
+ onChange: (event: any) => void;
18
+ onBlur?: (event: any) => void;
19
+ onKeyDown?: () => void;
20
+ disabled?: boolean;
21
+ type?: 'number' | 'text' | 'password';
22
+ id?: string;
23
+ helperText?: string;
24
+ errorText?: string;
25
+ error?: boolean;
26
+ multiline?: boolean;
27
+ rows?: number;
28
+ inputProps?: any;
29
+ }
30
+
31
+ /** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=738-5899&mode=dev */
32
+ export const DatePicker = (props: InputProps) => {
33
+ const {
34
+ className,
35
+ topLabel,
36
+ required = false,
37
+ value,
38
+ onChange,
39
+ error,
40
+ id,
41
+ helperText,
42
+ errorText,
43
+ } = props;
44
+
45
+ return (
46
+ <div className={`${className} ${styles.input}`} id={id}>
47
+ {topLabel && (
48
+ <Text
49
+ text={`${topLabel ? topLabel : ''}`}
50
+ weight="bold"
51
+ size="base"
52
+ className={styles.input_top_label}
53
+ required={required}
54
+ />
55
+ )}
56
+ <MuiDatePicker
57
+ label="Controlled picker"
58
+ value={value}
59
+ onChange={onChange}
60
+ />
61
+
62
+ {errorText && error && (
63
+ <Text
64
+ size="xs"
65
+ color="#F54C4C"
66
+ italic
67
+ text={errorText}
68
+ className={styles.text_below}
69
+ />
70
+ )}
71
+ {helperText && (
72
+ <Text
73
+ size="xs"
74
+ italic
75
+ text={helperText}
76
+ className={styles.text_below}
77
+ />
78
+ )}
79
+ </div>
80
+ );
81
+ };
@@ -20,31 +20,36 @@ export default function BinIcon({
20
20
  viewBox="0 0 24 24"
21
21
  fill="none"
22
22
  >
23
- <g clipPath="url(#clip0_122_177)">
24
- <path
25
- fillRule="evenodd"
26
- clipRule="evenodd"
27
- d="M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM0.75 12C0.75 5.7868 5.7868 0.75 12 0.75C18.2132 0.75 23.25 5.7868 23.25 12C23.25 18.2132 18.2132 23.25 12 23.25C5.7868 23.25 0.75 18.2132 0.75 12Z"
28
- fill={fill}
29
- />
30
- <path
31
- fillRule="evenodd"
32
- clipRule="evenodd"
33
- d="M12 7.5C12.4142 7.5 12.75 7.83579 12.75 8.25V12C12.75 12.4142 12.4142 12.75 12 12.75C11.5858 12.75 11.25 12.4142 11.25 12V8.25C11.25 7.83579 11.5858 7.5 12 7.5Z"
34
- fill={fill}
35
- />
36
- <path
37
- fillRule="evenodd"
38
- clipRule="evenodd"
39
- d="M11.4697 11.4696C11.7627 11.1768 12.2375 11.1768 12.5304 11.4697L17.2174 16.1577C17.5102 16.4507 17.5102 16.9255 17.2173 17.2184C16.9243 17.5112 16.4495 17.5112 16.1566 17.2183L11.4696 12.5303C11.1768 12.2373 11.1768 11.7625 11.4697 11.4696Z"
40
- fill={fill}
41
- />
42
- </g>
43
- <defs>
44
- <clipPath id="clip0_122_177">
45
- <rect width="24" height="24" fill="white" />
46
- </clipPath>
47
- </defs>
23
+ <path
24
+ fill-rule="evenodd"
25
+ clip-rule="evenodd"
26
+ d="M3.46143 5.07692C3.46143 4.6627 3.79722 4.32692 4.21143 4.32692H19.7883C20.2025 4.32692 20.5383 4.6627 20.5383 5.07692V20.6538C20.5383 21.3118 20.277 21.9427 19.8117 22.408C19.3465 22.8733 18.7155 23.1346 18.0576 23.1346H5.94219C5.28431 23.1346 4.65329 22.8733 4.18801 22.408C3.72278 21.9428 3.46143 21.3118 3.46143 20.6538V5.07692ZM4.96143 5.82692V20.6538C4.96143 20.914 5.06476 21.1634 5.2487 21.3474C5.43258 21.5313 5.68203 21.6346 5.94219 21.6346H18.0576C18.3177 21.6346 18.5671 21.5313 18.7511 21.3474C18.935 21.1635 19.0383 20.914 19.0383 20.6538V5.82692H4.96143Z"
27
+ fill={fill}
28
+ />
29
+ <path
30
+ fill-rule="evenodd"
31
+ clip-rule="evenodd"
32
+ d="M9.40381 9.5192C9.81802 9.5192 10.1538 9.85498 10.1538 10.2692V17.1923C10.1538 17.6065 9.81802 17.9423 9.40381 17.9423C8.9896 17.9423 8.65381 17.6065 8.65381 17.1923V10.2692C8.65381 9.85498 8.9896 9.5192 9.40381 9.5192Z"
33
+ fill={fill}
34
+ />
35
+ <path
36
+ fill-rule="evenodd"
37
+ clip-rule="evenodd"
38
+ d="M14.5962 9.5192C15.0104 9.5192 15.3462 9.85498 15.3462 10.2692V17.1923C15.3462 17.6065 15.0104 17.9423 14.5962 17.9423C14.182 17.9423 13.8462 17.6065 13.8462 17.1923V10.2692C13.8462 9.85498 14.182 9.5192 14.5962 9.5192Z"
39
+ fill={fill}
40
+ />
41
+ <path
42
+ fill-rule="evenodd"
43
+ clip-rule="evenodd"
44
+ d="M0 5.07692C0 4.6627 0.335786 4.32692 0.75 4.32692H23.25C23.6642 4.32692 24 4.6627 24 5.07692C24 5.49113 23.6642 5.82692 23.25 5.82692H0.75C0.335786 5.82692 0 5.49113 0 5.07692Z"
45
+ fill={fill}
46
+ />
47
+ <path
48
+ fill-rule="evenodd"
49
+ clip-rule="evenodd"
50
+ d="M7.64971 1.59198C8.11494 1.12675 8.74593 0.865387 9.40386 0.865387H14.5962C15.2541 0.865387 15.8851 1.12677 16.3503 1.59197C16.8156 2.05725 17.0769 2.68827 17.0769 3.34616V5.07693C17.0769 5.49114 16.7411 5.82693 16.3269 5.82693H7.6731C7.25889 5.82693 6.9231 5.49114 6.9231 5.07693V3.34616C6.9231 2.68823 7.18446 2.05722 7.64971 1.59198ZM9.40386 2.36539C9.14375 2.36539 8.89429 2.46872 8.71036 2.65265C8.52644 2.83656 8.4231 3.08603 8.4231 3.34616V4.32693H15.5769V3.34616C15.5769 3.08599 15.4736 2.83655 15.2897 2.65266C15.1057 2.4687 14.8563 2.36539 14.5962 2.36539H9.40386Z"
51
+ fill={fill}
52
+ />
48
53
  </svg>
49
54
  </SvgIcon>
50
55
  );
@@ -5,6 +5,13 @@
5
5
  flex-direction: column;
6
6
  align-items: flex-start;
7
7
  gap: 1rem;
8
+
9
+ h2 {
10
+ white-space: break-spaces;
11
+ }
12
+ p {
13
+ white-space: break-spaces;
14
+ }
8
15
  }
9
16
 
10
17
  .notification_banner_header {
@@ -139,10 +139,10 @@ export const SingleSelect = ({
139
139
  }, [defaultValue]);
140
140
 
141
141
  return (
142
- <div className={`${className}`}>
142
+ <div className={`${className && className}`} style={{ width: '100%' }}>
143
143
  {topLabel && (
144
144
  <Text
145
- text={`${topLabel ? topLabel : ''} ${required ? '*' : ''}`}
145
+ text={`${topLabel ? topLabel : ''}`}
146
146
  weight="bold"
147
147
  size="base"
148
148
  className={styles.input_top_label}