@automattic/vip-design-system 0.9.4 → 0.9.5

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 (42) hide show
  1. package/build/system/Avatar/Avatar.stories.js +23 -8
  2. package/build/system/Badge/Badge.stories.js +25 -8
  3. package/build/system/BlankState/BlankState.stories.js +27 -11
  4. package/build/system/Box/Box.stories.js +25 -8
  5. package/build/system/Button/Button.stories.js +36 -23
  6. package/build/system/Card/Card.stories.js +25 -8
  7. package/build/system/Code/Code.stories.js +25 -8
  8. package/build/system/ConfirmationDialog/ConfirmationDialog.stories.js +45 -22
  9. package/build/system/Dialog/Dialog.stories.js +71 -31
  10. package/build/system/Flex/Flex.stories.js +25 -8
  11. package/build/system/Form/AsyncSearchSelect.js +38 -0
  12. package/build/system/Form/Input.stories.js +23 -8
  13. package/build/system/Form/SearchSelect.js +47 -11
  14. package/build/system/Form/Select.js +21 -2
  15. package/build/system/Form/Select.stories.js +108 -78
  16. package/build/system/Form/Select.test.js +52 -0
  17. package/build/system/Grid/Grid.stories.js +25 -8
  18. package/build/system/Heading/Heading.stories.js +43 -20
  19. package/build/system/Link/Link.stories.js +26 -10
  20. package/build/system/Notice/Notice.stories.js +47 -81
  21. package/build/system/Notification/Notification.stories.js +23 -8
  22. package/build/system/OptionRow/OptionRow.stories.js +36 -20
  23. package/build/system/Progress/Progress.stories.js +23 -8
  24. package/build/system/Spinner/Spinner.stories.js +23 -8
  25. package/build/system/Table/Table.stories.js +64 -42
  26. package/build/system/Tabs/Tabs.stories.js +32 -10
  27. package/build/system/Text/Text.stories.js +25 -8
  28. package/build/system/Timeline/Timeline.js +69 -0
  29. package/build/system/Timeline/Timeline.stories.js +44 -21
  30. package/build/system/Timeline/index.js +2 -66
  31. package/build/system/Tooltip/Tooltip.stories.js +41 -19
  32. package/build/system/Wizard/Wizard.stories.js +65 -37
  33. package/package.json +3 -2
  34. package/src/system/Form/AsyncSearchSelect.js +29 -0
  35. package/src/system/Form/SearchSelect.js +43 -3
  36. package/src/system/Form/Select.js +15 -2
  37. package/src/system/Form/Select.stories.js +30 -0
  38. package/src/system/Form/Select.test.js +37 -0
  39. package/src/system/Timeline/Timeline.js +46 -0
  40. package/src/system/Timeline/Timeline.stories.js +34 -0
  41. package/src/system/Timeline/index.js +2 -41
  42. package/build/system/UsageChart/UsageChart.stories.js +0 -20
@@ -1,46 +1,7 @@
1
- /** @jsxImportSource theme-ui */
2
1
 
3
2
  /**
4
- * External dependencies
3
+ * Internal dependencies
5
4
  */
6
- import { Flex } from 'theme-ui';
7
- import { MdWatchLater } from 'react-icons/md';
8
- import PropTypes from 'prop-types';
9
-
10
- const VerticalLine = () => {
11
- return (
12
- <div
13
- sx={ {
14
- borderLeft: '2px solid',
15
- borderColor: 'border',
16
- height: 'calc( 50% - 16px )',
17
- borderRadius: '2px',
18
- } }>
19
- </div>
20
- );
21
- };
22
-
23
- const Timeline = ( { time, first = false, last = false, ...props } ) => (
24
- <Flex { ...props }>
25
- <Flex sx={ { flexDirection: 'column', justifyContent: 'space-evenly', alignItems: 'center' } }>
26
- { ! first && (
27
- <VerticalLine />
28
- ) }
29
- <MdWatchLater sx={ { color: 'border' } } size={ 18 }/>
30
- { ! last && (
31
- <VerticalLine />
32
- ) }
33
- </Flex>
34
- <Flex sx={ { alignItems: 'center', ml: 2 } }>
35
- <span>{ time }</span>
36
- </Flex>
37
- </Flex>
38
- );
39
-
40
- Timeline.propTypes = {
41
- first: PropTypes.bool,
42
- time: PropTypes.string,
43
- last: PropTypes.bool,
44
- };
5
+ import { Timeline } from './Timeline';
45
6
 
46
7
  export { Timeline };
@@ -1,20 +0,0 @@
1
- /**
2
- * External dependencies
3
- */
4
- import React from 'react';
5
- /**
6
- * Internal dependencies
7
- */
8
-
9
- import { UsageChart } from '..';
10
- export default {
11
- title: 'UsageChart',
12
- component: UsageChart
13
- };
14
- export var Default = function Default() {
15
- return /*#__PURE__*/React.createElement(UsageChart, {
16
- total: 50,
17
- max: 75,
18
- variant: "primary"
19
- });
20
- };