odaptos_design_system 2.0.49 → 2.0.50

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": "2.0.49",
2
+ "version": "2.0.50",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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}