@automattic/vip-design-system 0.10.2 → 0.11.1

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.
Files changed (134) hide show
  1. package/.eslines.json +8 -8
  2. package/.eslintrc.json +9 -4
  3. package/.github/PULL_REQUEST_TEMPLATE.md +1 -1
  4. package/.github/workflows/nodejs.yaml +14 -14
  5. package/.prettierrc +1 -2
  6. package/.storybook/main.js +1 -1
  7. package/.storybook/preview.js +4 -8
  8. package/README.md +1 -0
  9. package/babel.config.js +1 -1
  10. package/build/system/Avatar/Avatar.js +2 -1
  11. package/build/system/BlankState/BlankState.stories.js +3 -3
  12. package/build/system/BlankState/BlankState.test.js +2 -2
  13. package/build/system/Card/Card.test.js +0 -2
  14. package/build/system/Code/Code.js +7 -2
  15. package/build/system/Code/Code.test.js +22 -57
  16. package/build/system/Form/Select.stories.js +3 -4
  17. package/build/system/Form/Select.test.js +2 -2
  18. package/build/system/Notification/Notification.js +24 -15
  19. package/build/system/Notification/Notification.stories.js +14 -4
  20. package/build/system/OptionRow/OptionRow.js +23 -17
  21. package/build/system/OptionRow/OptionRow.stories.js +5 -5
  22. package/build/system/OptionRow/OptionRow.test.js +4 -4
  23. package/build/system/ResourceList/ResourceList.js +34 -25
  24. package/build/system/ResourceList/ResourceList.stories.js +2 -0
  25. package/build/system/ScreenReaderText/ScreenReader.test.js +37 -0
  26. package/build/system/ScreenReaderText/ScreenReaderText.js +49 -0
  27. package/build/system/ScreenReaderText/index.js +7 -0
  28. package/build/system/Table/Table.js +15 -15
  29. package/build/system/Table/Table.stories.js +46 -3
  30. package/build/system/Table/TableCell.js +57 -0
  31. package/build/system/Table/TableRow.js +12 -57
  32. package/build/system/Table/index.js +5 -1
  33. package/build/system/Time/index.js +1 -1
  34. package/build/system/Wizard/Wizard.stories.js +1 -1
  35. package/build/system/index.js +1 -0
  36. package/package.json +8 -4
  37. package/src/system/Avatar/Avatar.js +1 -0
  38. package/src/system/Avatar/index.js +0 -1
  39. package/src/system/Badge/index.js +0 -1
  40. package/src/system/BlankState/BlankState.js +8 -5
  41. package/src/system/BlankState/BlankState.stories.jsx +5 -4
  42. package/src/system/BlankState/BlankState.test.js +21 -21
  43. package/src/system/BlankState/index.js +0 -1
  44. package/src/system/Box/Box.js +7 -1
  45. package/src/system/Box/index.js +0 -1
  46. package/src/system/Button/Button.js +3 -3
  47. package/src/system/Button/Button.stories.jsx +2 -2
  48. package/src/system/Button/index.js +0 -1
  49. package/src/system/Card/Card.js +4 -4
  50. package/src/system/Card/Card.test.js +1 -2
  51. package/src/system/Card/index.js +0 -1
  52. package/src/system/Code/Code.js +6 -2
  53. package/src/system/Code/Code.stories.jsx +10 -5
  54. package/src/system/Code/Code.test.js +3 -16
  55. package/src/system/ConfirmationDialog/ConfirmationDialog.js +8 -1
  56. package/src/system/Dialog/Dialog.js +17 -8
  57. package/src/system/Dialog/Dialog.stories.jsx +9 -13
  58. package/src/system/Dialog/DialogButton.js +18 -14
  59. package/src/system/Dialog/DialogDivider.js +1 -1
  60. package/src/system/Dialog/DialogMenu.js +1 -5
  61. package/src/system/Dialog/DialogMenuItem.js +4 -8
  62. package/src/system/Dialog/DialogTrigger.js +1 -1
  63. package/src/system/Dialog/index.js +0 -1
  64. package/src/system/Flex/Flex.js +1 -1
  65. package/src/system/Flex/index.js +0 -1
  66. package/src/system/Form/AsyncSearchSelect.js +3 -7
  67. package/src/system/Form/Checkbox.js +32 -28
  68. package/src/system/Form/InlineSelect.js +21 -17
  69. package/src/system/Form/Input.js +43 -45
  70. package/src/system/Form/Label.js +2 -2
  71. package/src/system/Form/RadioBoxGroup.js +34 -32
  72. package/src/system/Form/RadioBoxGroup.stories.jsx +8 -1
  73. package/src/system/Form/SearchSelect.js +7 -7
  74. package/src/system/Form/Select.js +21 -2
  75. package/src/system/Form/Select.stories.jsx +31 -34
  76. package/src/system/Form/Select.test.js +3 -8
  77. package/src/system/Form/Textarea.js +38 -40
  78. package/src/system/Form/Toggle.js +9 -11
  79. package/src/system/Form/ToggleGroup.js +29 -31
  80. package/src/system/Form/ToggleGroup.stories.jsx +8 -1
  81. package/src/system/Form/ToggleRow.js +6 -1
  82. package/src/system/Form/Validation.js +6 -1
  83. package/src/system/Form/index.js +13 -1
  84. package/src/system/Grid/Grid.js +1 -1
  85. package/src/system/Grid/index.js +0 -1
  86. package/src/system/Heading/Heading.js +4 -4
  87. package/src/system/Heading/index.js +0 -1
  88. package/src/system/Link/index.js +0 -1
  89. package/src/system/Notice/Notice.js +27 -13
  90. package/src/system/Notice/Notice.stories.jsx +6 -8
  91. package/src/system/Notice/index.js +0 -1
  92. package/src/system/Notification/Notification.js +25 -20
  93. package/src/system/Notification/Notification.stories.jsx +4 -4
  94. package/src/system/Notification/index.js +0 -1
  95. package/src/system/OptionRow/OptionRow.js +46 -44
  96. package/src/system/OptionRow/OptionRow.stories.jsx +10 -8
  97. package/src/system/OptionRow/OptionRow.test.js +12 -11
  98. package/src/system/OptionRow/index.js +0 -1
  99. package/src/system/Progress/Progress.js +3 -1
  100. package/src/system/Progress/Progress.stories.jsx +4 -4
  101. package/src/system/Progress/index.js +0 -1
  102. package/src/system/ResourceList/ResourceItem.js +15 -15
  103. package/src/system/ResourceList/ResourceList.js +28 -16
  104. package/src/system/ResourceList/ResourceList.stories.jsx +77 -71
  105. package/src/system/ScreenReaderText/ScreenReader.test.js +22 -0
  106. package/src/system/ScreenReaderText/ScreenReaderText.js +40 -0
  107. package/src/system/ScreenReaderText/index.js +7 -0
  108. package/src/system/Spinner/Spinner.js +4 -4
  109. package/src/system/Spinner/index.js +0 -1
  110. package/src/system/Table/Table.js +10 -9
  111. package/src/system/Table/Table.stories.jsx +39 -9
  112. package/src/system/Table/TableCell.js +48 -0
  113. package/src/system/Table/TableRow.js +10 -47
  114. package/src/system/Table/index.js +2 -2
  115. package/src/system/Tabs/Tabs.js +3 -3
  116. package/src/system/Tabs/index.js +0 -1
  117. package/src/system/Text/Text.js +3 -3
  118. package/src/system/Text/Text.stories.jsx +4 -6
  119. package/src/system/Text/index.js +0 -1
  120. package/src/system/Time/Time.stories.jsx +2 -6
  121. package/src/system/Time/index.js +5 -5
  122. package/src/system/Timeline/Timeline.js +6 -12
  123. package/src/system/Timeline/Timeline.stories.jsx +3 -12
  124. package/src/system/Timeline/index.js +0 -1
  125. package/src/system/Tooltip/Tooltip.js +4 -8
  126. package/src/system/Wizard/Wizard.js +23 -21
  127. package/src/system/Wizard/Wizard.stories.jsx +7 -12
  128. package/src/system/Wizard/WizardStep.js +8 -8
  129. package/src/system/Wizard/WizardStepHorizontal.js +4 -4
  130. package/src/system/Wizard/index.js +0 -1
  131. package/src/system/index.js +2 -1
  132. package/src/system/theme/index.js +3 -4
  133. package/tokens/valet-color.json +1919 -0
  134. package/build/system/UsageChart/UsageChart.stories.js +0 -20
@@ -9,9 +9,9 @@ import PropTypes from 'prop-types';
9
9
  /**
10
10
  * Internal dependencies
11
11
  */
12
- import { Heading, Box } from '../';
12
+ import { TableCell } from './TableCell';
13
13
 
14
- const TableRow = ( { onClick, head = false, rowHead = false, cells } ) => {
14
+ const TableRow = ( { onClick, head = false, cells = [], children } ) => {
15
15
  const hoverStyles = onClick
16
16
  ? { cursor: 'pointer', '&:hover': { bg: 'hover', borderRadius: 2 } }
17
17
  : {};
@@ -30,58 +30,21 @@ const TableRow = ( { onClick, head = false, rowHead = false, cells } ) => {
30
30
  onKeyDown={ handleKeyPress }
31
31
  >
32
32
  { cells.map( ( cell, index ) => (
33
- <TableCell key={ index } cell={ cell } head={ head } isRowHead={ index === 0 && rowHead } />
33
+ <TableCell key={ index } head={ head }>
34
+ { cell }
35
+ </TableCell>
34
36
  ) ) }
35
- </tr>
36
- );
37
- };
38
37
 
39
- const TableCell = ( { head, isRowHead, cell } ) => {
40
- let scope = null;
41
- if ( head ) {
42
- scope = 'col';
43
- } else if ( isRowHead ) {
44
- scope = 'row';
45
- }
46
- return (
47
- <Box
48
- as={ isRowHead || head ? 'th' : 'td' }
49
- scope={ scope }
50
- sx={ {
51
- px: 3,
52
- py: 2,
53
- textAlign: 'left',
54
- borderBottom: '1px solid',
55
- fontWeight: 'body',
56
- borderTop: head ? '1px solid' : 'none',
57
- borderColor: 'border',
58
- '&:first-of-type': {
59
- pl: 5,
60
- },
61
- } }
62
- >
63
- { head ? (
64
- <Heading variant="caps" as="div" sx={ { mb: 0 } }>
65
- { cell }
66
- </Heading>
67
- ) : (
68
- cell
69
- ) }
70
- </Box>
38
+ { children }
39
+ </tr>
71
40
  );
72
41
  };
73
42
 
74
- TableCell.propTypes = {
75
- head: PropTypes.bool,
76
- isRowHead: PropTypes.bool,
77
- cell: PropTypes.node,
78
- };
79
-
80
43
  TableRow.propTypes = {
81
- onClick: PropTypes.func,
82
- head: PropTypes.bool,
83
44
  cells: PropTypes.array,
84
- rowHead: PropTypes.bool,
45
+ children: PropTypes.node,
46
+ head: PropTypes.bool,
47
+ onClick: PropTypes.func,
85
48
  };
86
49
 
87
50
  export { TableRow };
@@ -1,8 +1,8 @@
1
-
2
1
  /**
3
2
  * Internal dependencies
4
3
  */
5
4
  import { Table } from './Table';
6
5
  import { TableRow } from './TableRow';
6
+ import { TableCell } from './TableCell';
7
7
 
8
- export { Table, TableRow };
8
+ export { Table, TableRow, TableCell };
@@ -14,15 +14,15 @@ import { Flex } from '..';
14
14
  const Tabs = ( { className = null, sx, ...props } ) => (
15
15
  <Flex
16
16
  className={ classNames( 'vip-tabs-component', className ) }
17
- sx={{
17
+ sx={ {
18
18
  borderBottom: '1px solid',
19
19
  borderColor: 'border',
20
20
  listStyleType: 'none',
21
21
  margin: 0,
22
22
  padding: 0,
23
23
  ...sx,
24
- }}
25
- {...props}
24
+ } }
25
+ { ...props }
26
26
  />
27
27
  );
28
28
 
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Internal dependencies
4
3
  */
@@ -10,13 +10,13 @@ import classNames from 'classnames';
10
10
  const Text = ( { sx, className = null, ...props } ) => (
11
11
  <ThemeText
12
12
  as="p"
13
- sx={{
13
+ sx={ {
14
14
  lineHeight: 1.5,
15
15
  marginBottom: 2,
16
16
  ...sx,
17
- }}
17
+ } }
18
18
  className={ classNames( 'vip-text-component', className ) }
19
- {...props}
19
+ { ...props }
20
20
  />
21
21
  );
22
22
 
@@ -10,11 +10,9 @@ export default {
10
10
 
11
11
  export const Default = () => (
12
12
  <Text>
13
- Apparently we had reached a great height in the atmosphere, for the sky
14
- was a dead black, and the stars had ceased to twinkle. By the same
15
- illusion which lifts the horizon of the sea to the level of the
16
- spectator on a hillside, the sable cloud beneath was dished out, and the
17
- car seemed to float in the middle of an immense dark sphere, whose upper
18
- half was strewn with silver.{' '}
13
+ Apparently we had reached a great height in the atmosphere, for the sky was a dead black, and
14
+ the stars had ceased to twinkle. By the same illusion which lifts the horizon of the sea to the
15
+ level of the spectator on a hillside, the sable cloud beneath was dished out, and the car seemed
16
+ to float in the middle of an immense dark sphere, whose upper half was strewn with silver.{ ' ' }
19
17
  </Text>
20
18
  );
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Internal dependencies
4
3
  */
@@ -17,16 +17,12 @@ export const Default = () => (
17
17
  <React.Fragment>
18
18
  <Grid gap={ 2 } columns={ [ 2, '100px 300px' ] } sx={ { mb: '20px' } }>
19
19
  <Time time="7pm" />
20
- <Box>
21
- It looks like everything is recovered now. You can forget about the last event.
22
- </Box>
20
+ <Box>It looks like everything is recovered now. You can forget about the last event.</Box>
23
21
  </Grid>
24
22
 
25
23
  <Grid gap={ 2 } columns={ [ 2, '100px 200px' ] }>
26
24
  <Time time="6pm" />
27
- <Box>
28
- At this particular moment in the day, something happened with your environment.
29
- </Box>
25
+ <Box>At this particular moment in the day, something happened with your environment.</Box>
30
26
  </Grid>
31
27
  </React.Fragment>
32
28
  );
@@ -44,19 +44,19 @@ const Time = ( { time, relativeTime = false, timeOnly = false, className = null,
44
44
 
45
45
  return (
46
46
  <Text
47
- title={time.toLocaleString( 'sv', { timeZoneName: 'short' } )}
48
- datetime={time}
47
+ title={ time.toLocaleString( 'sv', { timeZoneName: 'short' } ) }
48
+ datetime={ time }
49
49
  as="time"
50
50
  className={ classNames( 'vip-time-component', className ) }
51
- {...props}
51
+ { ...props }
52
52
  >
53
- {formattedTime}
53
+ { formattedTime }
54
54
  </Text>
55
55
  );
56
56
  };
57
57
 
58
58
  Time.propTypes = {
59
- time: PropTypes.string,
59
+ time: PropTypes.oneOfType( [ PropTypes.string, PropTypes.instanceOf( Date ) ] ),
60
60
  timeOnly: PropTypes.bool,
61
61
  relativeTime: PropTypes.bool,
62
62
  className: PropTypes.any,
@@ -16,25 +16,19 @@ const VerticalLine = () => {
16
16
  borderColor: 'border',
17
17
  height: 'calc( 50% - 16px )',
18
18
  borderRadius: '2px',
19
- } }>
20
- </div>
19
+ } }
20
+ ></div>
21
21
  );
22
22
  };
23
23
 
24
24
  const Timeline = ( { time, first = false, last = false, className = null, ...props } ) => (
25
25
  <Flex className={ classNames( 'vip-timeline-component', className ) } { ...props }>
26
26
  <Flex sx={ { flexDirection: 'column', justifyContent: 'space-evenly', alignItems: 'center' } }>
27
- { ! first && (
28
- <VerticalLine />
29
- ) }
30
- <MdWatchLater aria-hidden sx={ { color: 'border' } } size={ 18 }/>
31
- { ! last && (
32
- <VerticalLine />
33
- ) }
34
- </Flex>
35
- <Flex sx={ { alignItems: 'center', ml: 2 } }>
36
- { time }
27
+ { ! first && <VerticalLine /> }
28
+ <MdWatchLater aria-hidden sx={ { color: 'border' } } size={ 18 } />
29
+ { ! last && <VerticalLine /> }
37
30
  </Flex>
31
+ <Flex sx={ { alignItems: 'center', ml: 2 } }>{ time }</Flex>
38
32
  </Flex>
39
33
  );
40
34
 
@@ -17,18 +17,9 @@ export default {
17
17
  export const Default = () => {
18
18
  return (
19
19
  <React.Fragment>
20
- <Timeline
21
- time="13:00"
22
- title="21:00 UTC"
23
- />
24
- <Timeline
25
- time={ <Link>14:00</Link> }
26
- title="22:00 UTC"
27
- />
28
- <Timeline
29
- time="15:00"
30
- title="23:00 UTC"
31
- />
20
+ <Timeline time="13:00" title="21:00 UTC" />
21
+ <Timeline time={ <Link>14:00</Link> } title="22:00 UTC" />
22
+ <Timeline time="15:00" title="23:00 UTC" />
32
23
  </React.Fragment>
33
24
  );
34
25
  };
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Internal dependencies
4
3
  */
@@ -8,11 +8,11 @@ import { MdHelp } from 'react-icons/md';
8
8
  import * as TTip from '@radix-ui/react-tooltip';
9
9
 
10
10
  /**
11
- * Internal dependencies
12
- */
11
+ * Internal dependencies
12
+ */
13
13
  import { Card, Text } from '..';
14
14
 
15
- const StyledArrow = props => <TTip.Arrow sx={{ fill: 'white' }} { ...props } />;
15
+ const StyledArrow = props => <TTip.Arrow sx={ { fill: 'white' } } { ...props } />;
16
16
 
17
17
  const Tooltip = ( {
18
18
  trigger = <MdHelp />,
@@ -55,11 +55,7 @@ const Tooltip = ( {
55
55
  { trigger }
56
56
 
57
57
  <TTip.Content>
58
- <Card
59
- className="tooltip-content"
60
- sx={ { width: width } }
61
- { ...props }
62
- >
58
+ <Card className="tooltip-content" sx={ { width: width } } { ...props }>
63
59
  { children ? children : <Text sx={ { fontSize: 1 } }>{ text }</Text> }
64
60
  </Card>
65
61
  <StyledArrow />
@@ -16,42 +16,44 @@ import { Box, WizardStep, Flex, WizardStepHorizontal } from '..';
16
16
  const Wizard = ( { steps, activeStep, variant, completed = [], className = null, ...props } ) => {
17
17
  return (
18
18
  <Box className={ classNames( 'vip-wizard-component', className ) }>
19
- {variant === 'horizontal' ? (
19
+ { variant === 'horizontal' ? (
20
20
  <Box>
21
21
  <Flex
22
- sx={{
22
+ sx={ {
23
23
  flex: '0 0 auto',
24
- }}
25
- {...props}
24
+ } }
25
+ { ...props }
26
26
  >
27
- {steps.map( ( { title, subTitle }, index ) => (
28
- <React.Fragment key={index}>
27
+ { steps.map( ( { title, subTitle }, index ) => (
28
+ <React.Fragment key={ index }>
29
29
  <WizardStepHorizontal
30
- order={index + 1}
31
- active={index === activeStep}
32
- title={title}
33
- subTitle={subTitle}
30
+ order={ index + 1 }
31
+ active={ index === activeStep }
32
+ title={ title }
33
+ subTitle={ subTitle }
34
34
  />
35
- {index < steps.length - 1 && <MdArrowForward sx={{ mx: 2, color: 'grey.80' }} />}
35
+ { index < steps.length - 1 && (
36
+ <MdArrowForward sx={ { mx: 2, color: 'grey.80' } } />
37
+ ) }
36
38
  </React.Fragment>
37
- ) )}
39
+ ) ) }
38
40
  </Flex>
39
- {steps[ activeStep ].children}
41
+ { steps[ activeStep ].children }
40
42
  </Box>
41
43
  ) : (
42
44
  steps.map( ( { title, subTitle, children }, index ) => (
43
45
  <WizardStep
44
- active={index === activeStep}
45
- title={title}
46
- subTitle={subTitle}
47
- complete={completed.includes( index )}
48
- key={index}
49
- order={index + 1}
46
+ active={ index === activeStep }
47
+ title={ title }
48
+ subTitle={ subTitle }
49
+ complete={ completed.includes( index ) }
50
+ key={ index }
51
+ order={ index + 1 }
50
52
  >
51
- {children}
53
+ { children }
52
54
  </WizardStep>
53
55
  ) )
54
- )}
56
+ ) }
55
57
  </Box>
56
58
  );
57
59
  };
@@ -17,8 +17,7 @@ export const Default = () => {
17
17
  const steps = [
18
18
  {
19
19
  title: 'Choose Domain',
20
- subTitle:
21
- 'You can bring a domain name you already own, or buy a new one.',
20
+ subTitle: 'You can bring a domain name you already own, or buy a new one.',
22
21
  children: (
23
22
  <Box>
24
23
  <Label>Domain</Label>
@@ -39,19 +38,15 @@ export const Default = () => {
39
38
  ];
40
39
  return (
41
40
  <React.Fragment>
42
- <Flex sx={{ alignItems: 'center' }}>
43
- <Box sx={{ flex: '1 1 auto' }}>
44
- <Heading
45
- variant="h1"
46
- sx={{ display: 'flex', alignItems: 'center', mb: 1 }}
47
- >
48
- Add Domain:{' '}
49
- <span sx={{ color: 'muted', ml: 2 }}>Production</span>
41
+ <Flex sx={ { alignItems: 'center' } }>
42
+ <Box sx={ { flex: '1 1 auto' } }>
43
+ <Heading variant="h1" sx={ { display: 'flex', alignItems: 'center', mb: 1 } }>
44
+ Add Domain: <span sx={ { color: 'muted', ml: 2 } }>Production</span>
50
45
  </Heading>
51
46
  </Box>
52
47
  </Flex>
53
- <Box mt={4}>
54
- <Wizard activeStep={0} steps={steps} className="vip-wizard-xyz" />
48
+ <Box mt={ 4 }>
49
+ <Wizard activeStep={ 0 } steps={ steps } className="vip-wizard-xyz" />
55
50
  </Box>
56
51
  </React.Fragment>
57
52
  );
@@ -30,7 +30,7 @@ const WizardStep = ( { title, subTitle, complete = false, children, active, orde
30
30
 
31
31
  return (
32
32
  <Card
33
- sx={{
33
+ sx={ {
34
34
  boxShadow: active ? 'low' : 'none',
35
35
  borderLeft: '2px solid',
36
36
  p: 4,
@@ -43,25 +43,25 @@ const WizardStep = ( { title, subTitle, complete = false, children, active, orde
43
43
  },
44
44
  borderColor: active ? 'primary' : 'border',
45
45
  borderLeftColor: borderLeftColor,
46
- }}
46
+ } }
47
47
  data-step={ order }
48
48
  data-active={ active || undefined }
49
49
  >
50
50
  <Heading
51
51
  variant="h4"
52
- sx={{
52
+ sx={ {
53
53
  mb: 0,
54
54
  display: 'flex',
55
55
  alignItems: 'center',
56
56
  color: color,
57
- }}
57
+ } }
58
58
  >
59
- <MdCheckCircle sx={{ mr: 2 }} />
60
- {title}
59
+ <MdCheckCircle sx={ { mr: 2 } } />
60
+ { title }
61
61
  </Heading>
62
- {subTitle && active && <Text sx={{ mb: 3 }}>{subTitle}</Text>}
62
+ { subTitle && active && <Text sx={ { mb: 3 } }>{ subTitle }</Text> }
63
63
 
64
- {active && children}
64
+ { active && children }
65
65
  </Card>
66
66
  );
67
67
  };
@@ -15,17 +15,17 @@ const WizardStepHorizontal = ( { title, active, order } ) => {
15
15
  return (
16
16
  <Heading
17
17
  variant="h4"
18
- sx={{
18
+ sx={ {
19
19
  mb: 0,
20
20
  display: 'flex',
21
21
  alignItems: 'center',
22
22
  color: active ? 'heading' : 'muted',
23
- }}
23
+ } }
24
24
  data-step={ order }
25
25
  data-active={ active || undefined }
26
26
  >
27
- <MdCheckCircle sx={{ mr: 2 }} />
28
- {title}
27
+ <MdCheckCircle sx={ { mr: 2 } } />
28
+ { title }
29
29
  </Heading>
30
30
  );
31
31
  };
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Internal dependencies
4
3
  */
@@ -44,7 +44,7 @@ import { Time } from './Time';
44
44
  import { Timeline } from './Timeline';
45
45
  import { Notification } from './Notification';
46
46
  import { OptionRow } from './OptionRow';
47
- import { Table, TableRow } from './Table';
47
+ import { Table, TableRow, TableCell } from './Table';
48
48
  import { TabItem, Tabs } from './Tabs';
49
49
  import { Text } from './Text';
50
50
  import theme from './theme';
@@ -77,6 +77,7 @@ export {
77
77
  Spinner,
78
78
  Table,
79
79
  TableRow,
80
+ TableCell,
80
81
  Tooltip,
81
82
  Notification,
82
83
  Link,
@@ -54,8 +54,7 @@ const textStyles = {
54
54
  export default {
55
55
  space: [ 0, 4, 8, 16, 32, 64, 128, 256, 512 ],
56
56
  fonts: {
57
- body:
58
- 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
57
+ body: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
59
58
  heading: 'inherit',
60
59
  monospace: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',
61
60
  serif: 'recoletaregular, Georgia, serif',
@@ -131,10 +130,10 @@ export default {
131
130
  shadows: {
132
131
  low: '0px 1px 5px rgba(0, 0, 0, 0.05), 0px 1px 1px rgba(0, 0, 0, 0.15)',
133
132
  medium:
134
- // eslint-disable-next-line max-len
133
+ // eslint-disable-next-line max-len
135
134
  '0px 15px 30px rgba(0, 0, 0, 0.07), 0px 1px 2px rgba(0, 0, 0, 0.03)',
136
135
  high:
137
- // eslint-disable-next-line max-len
136
+ // eslint-disable-next-line max-len
138
137
  '0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 100px 80px rgba(0, 0, 0, 0.07)',
139
138
  },
140
139
  cards: {