odaptos_design_system 2.0.49 → 2.0.51
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/Box/Box.d.ts +2 -1
- package/dist/DesignTokens/Icons/Miscellaneous/OtherTab.d.ts +7 -0
- package/dist/DesignTokens/Icons/index.d.ts +1 -0
- package/dist/odaptos_design_system.cjs.development.js +567 -533
- 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 +567 -534
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Atoms/Box/Box.tsx +4 -0
- package/src/DesignTokens/Icons/Miscellaneous/OtherTab.tsx +39 -0
- package/src/DesignTokens/Icons/index.ts +1 -0
- package/src/Molecules/Tabs/tabsUnderline.modules.scss +0 -2
package/package.json
CHANGED
package/src/Atoms/Box/Box.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import React, { HTMLAttributes } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import styles from './Box.module.scss';
|
|
4
4
|
import { Title } from '../Typography/Title';
|
|
5
|
+
import { Text } from '../Typography/Text';
|
|
5
6
|
import { IconButton } from '../Buttons/IconButton';
|
|
6
7
|
import { Tooltip } from '../Tooltip/Tooltip';
|
|
7
8
|
import { QuestionCircledIcon } from '../../DesignTokens/Icons';
|
|
@@ -9,6 +10,7 @@ import { QuestionCircledIcon } from '../../DesignTokens/Icons';
|
|
|
9
10
|
interface BoxProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
11
|
children: any;
|
|
11
12
|
title?: string;
|
|
13
|
+
optionalText?: string;
|
|
12
14
|
tooltipDescription?: string;
|
|
13
15
|
className?: string;
|
|
14
16
|
id?: string;
|
|
@@ -19,6 +21,7 @@ interface BoxProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
19
21
|
export const Box = ({
|
|
20
22
|
children,
|
|
21
23
|
title,
|
|
24
|
+
optionalText,
|
|
22
25
|
tooltipDescription,
|
|
23
26
|
className,
|
|
24
27
|
id,
|
|
@@ -30,6 +33,7 @@ export const Box = ({
|
|
|
30
33
|
{title && (
|
|
31
34
|
<div className={styles.box_header}>
|
|
32
35
|
<Title text={title} size="lg" weight="bold" required={required} />
|
|
36
|
+
{!required && optionalText && <Text text={optionalText} italic />}
|
|
33
37
|
{tooltipDescription && (
|
|
34
38
|
<Tooltip
|
|
35
39
|
tooltipDescription={tooltipDescription}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgIcon, SvgIconProps } from '@mui/material';
|
|
3
|
+
import { getIconSize } from '../../../utils/getIconSize';
|
|
4
|
+
|
|
5
|
+
interface CustomSvgProps {
|
|
6
|
+
size?: 'sm' | 'base' | 'lg' | 'xl';
|
|
7
|
+
}
|
|
8
|
+
export default function OtherTab({
|
|
9
|
+
stroke,
|
|
10
|
+
strokeWidth,
|
|
11
|
+
fill,
|
|
12
|
+
size = 'base',
|
|
13
|
+
...rest
|
|
14
|
+
}: SvgIconProps & CustomSvgProps) {
|
|
15
|
+
return (
|
|
16
|
+
<SvgIcon
|
|
17
|
+
strokeWidth={strokeWidth ?? 0.1}
|
|
18
|
+
stroke={stroke ? stroke : 'currentColor'}
|
|
19
|
+
sx={{ height: getIconSize(size), width: getIconSize(size) }}
|
|
20
|
+
fill={fill}
|
|
21
|
+
{...rest}
|
|
22
|
+
>
|
|
23
|
+
<svg
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
width="17"
|
|
26
|
+
height="16"
|
|
27
|
+
viewBox="0 0 17 16"
|
|
28
|
+
fill="none"
|
|
29
|
+
>
|
|
30
|
+
<path
|
|
31
|
+
fill-rule="evenodd"
|
|
32
|
+
clip-rule="evenodd"
|
|
33
|
+
d="M11.2384 0.666748H15.3463C15.4128 0.666748 15.4761 0.680064 15.5338 0.704174C15.5865 0.726103 15.636 0.757669 15.6798 0.798872C15.6871 0.805743 15.6942 0.812838 15.701 0.820145C15.7411 0.86273 15.7721 0.910767 15.7939 0.961776C15.8192 1.02064 15.8332 1.08549 15.8332 1.15361V5.26149C15.8332 5.53038 15.6152 5.74835 15.3463 5.74835C15.0774 5.74835 14.8595 5.53038 14.8595 5.26149V2.32899L6.56194 10.6265C6.37181 10.8166 6.06355 10.8166 5.87342 10.6265C5.68329 10.4364 5.68329 10.1281 5.87342 9.93798L14.1709 1.64047H11.2384C10.9695 1.64047 10.7516 1.42249 10.7516 1.15361C10.7516 0.884723 10.9695 0.666748 11.2384 0.666748ZM2.56623 3.40537C2.195 3.40537 1.83897 3.55284 1.57647 3.81534C1.31397 4.07784 1.1665 4.43387 1.1665 4.80509V13.9337C1.1665 14.305 1.31397 14.661 1.57647 14.9235C1.83897 15.186 2.195 15.3334 2.56623 15.3334H11.6949C12.0661 15.3334 12.4221 15.186 12.6846 14.9235C12.9471 14.661 13.0946 14.305 13.0946 13.9337V8.45655C13.0946 8.18766 12.8766 7.96969 12.6077 7.96969C12.3388 7.96969 12.1209 8.18766 12.1209 8.45655V13.9337C12.1209 14.0467 12.076 14.1551 11.9961 14.235C11.9162 14.3148 11.8078 14.3597 11.6949 14.3597H2.56623C2.45325 14.3597 2.34489 14.3148 2.265 14.235C2.18511 14.1551 2.14022 14.0467 2.14022 13.9337V4.80509C2.14022 4.69211 2.18511 4.58376 2.265 4.50387C2.34489 4.42397 2.45324 4.37909 2.56623 4.37909H8.0434C8.31229 4.37909 8.53026 4.16112 8.53026 3.89223C8.53026 3.62335 8.31229 3.40537 8.0434 3.40537H2.56623Z"
|
|
34
|
+
fill={fill}
|
|
35
|
+
/>
|
|
36
|
+
</svg>
|
|
37
|
+
</SvgIcon>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -164,6 +164,7 @@ export { default as NbOfUsersIcon } from './Miscellaneous/NbOfUsersIcon';
|
|
|
164
164
|
export { default as NeutralBackgroudIcon } from './Miscellaneous/NeutralBackgroudIcon';
|
|
165
165
|
export { default as OfficeDrawerIcon } from './Miscellaneous/OfficeDrawerIcon';
|
|
166
166
|
export { default as OneColumnIcon } from './Miscellaneous/OneColumnIcon';
|
|
167
|
+
export { default as OtherTab } from './Miscellaneous/OtherTab';
|
|
167
168
|
export { default as RefreshIcon } from './Miscellaneous/RefreshIcon';
|
|
168
169
|
export { default as ReportIcon } from './Miscellaneous/ReportIcon';
|
|
169
170
|
export { default as SeatIcon } from './Miscellaneous/SeatIcon';
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
.tab_label {
|
|
10
10
|
min-width: unset;
|
|
11
11
|
padding: unset;
|
|
12
|
-
margin-right: var(--spacing-xxl);
|
|
13
12
|
padding-left: 0.3125rem;
|
|
14
13
|
opacity: 1;
|
|
15
14
|
}
|
|
@@ -64,7 +63,6 @@
|
|
|
64
63
|
|
|
65
64
|
.tab_label_replacement {
|
|
66
65
|
padding-left: 0.3125rem;
|
|
67
|
-
margin-right: var(--spacing-xxl);
|
|
68
66
|
text-transform: capitalize;
|
|
69
67
|
align-self: center;
|
|
70
68
|
|