orcs-design-system 3.2.4 → 3.2.6

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 (96) hide show
  1. package/es/GlobalStyles.js +1 -31
  2. package/es/SystemThemeProvider.js +11 -5
  3. package/es/assets/Colour/Colour.stories.js +211 -0
  4. package/es/assets/Colour/index.js +3 -3
  5. package/es/components/ActionsMenu/ActionsMenu.stories.js +260 -233
  6. package/es/components/ActionsMenu/index.js +144 -229
  7. package/es/components/Avatar/Avatar.stories.js +212 -196
  8. package/es/components/Avatar/index.js +280 -307
  9. package/es/components/Badge/Badge.stories.js +71 -46
  10. package/es/components/Badge/index.js +71 -74
  11. package/es/components/Box/Box.stories.js +51 -35
  12. package/es/components/Box/index.js +33 -34
  13. package/es/components/Button/Button.stories.js +161 -145
  14. package/es/components/Button/ButtonLink.stories.js +152 -139
  15. package/es/components/Button/index.js +79 -99
  16. package/es/components/ButtonGroup/ButtonGroup.stories.js +43 -42
  17. package/es/components/ButtonGroup/ButtonGroupItem.stories.js +11 -13
  18. package/es/components/ButtonGroup/index.js +103 -99
  19. package/es/components/Card/Card.stories.js +94 -62
  20. package/es/components/Card/index.js +50 -71
  21. package/es/components/Checkbox/Checkbox.stories.js +37 -43
  22. package/es/components/Checkbox/index.js +61 -76
  23. package/es/components/DatePicker/DatePicker.stories.js +86 -118
  24. package/es/components/DatePicker/index.js +71 -187
  25. package/es/components/Divider/Divider.stories.js +39 -42
  26. package/es/components/Divider/index.js +21 -27
  27. package/es/components/Expandable/Expandable.stories.js +46 -36
  28. package/es/components/Expandable/index.js +55 -82
  29. package/es/components/Flex/Flex.stories.js +19 -5
  30. package/es/components/Flex/FlexItem.stories.js +10 -9
  31. package/es/components/Flex/index.js +34 -27
  32. package/es/components/Grid/Grid.stories.js +129 -55
  33. package/es/components/Grid/index.js +25 -24
  34. package/es/components/Header/Header.stories.js +101 -92
  35. package/es/components/Header/index.js +433 -436
  36. package/es/components/HeaderSimple/HeaderSimple.stories.js +23 -27
  37. package/es/components/HeaderSimple/index.js +73 -68
  38. package/es/components/Icon/Icon.stories.js +58 -57
  39. package/es/components/Icon/index.js +48 -46
  40. package/es/components/Loading/Loading.stories.js +32 -39
  41. package/es/components/Loading/index.js +44 -51
  42. package/es/components/Modal/Modal.stories.js +172 -153
  43. package/es/components/Modal/index.js +126 -134
  44. package/es/components/Notification/Notification.stories.js +59 -58
  45. package/es/components/Notification/index.js +123 -133
  46. package/es/components/Popover/Popover.stories.js +134 -102
  47. package/es/components/Popover/index.js +65 -111
  48. package/es/components/ProgressBar/ProgressBar.stories.js +36 -39
  49. package/es/components/ProgressBar/index.js +29 -34
  50. package/es/components/RadioButton/RadioButton.stories.js +32 -37
  51. package/es/components/RadioButton/index.js +170 -184
  52. package/es/components/Range/Range.stories.js +19 -19
  53. package/es/components/Range/index.js +35 -45
  54. package/es/components/Select/Select.stories.js +107 -128
  55. package/es/components/Select/index.js +324 -336
  56. package/es/components/SideNav/NavItem.js +112 -122
  57. package/es/components/SideNav/SideNav.stories.js +84 -57
  58. package/es/components/SideNav/index.js +161 -185
  59. package/es/components/Sidebar/Sidebar.stories.js +50 -33
  60. package/es/components/Sidebar/index.js +152 -155
  61. package/es/components/Spacer/Spacer.stories.js +35 -32
  62. package/es/components/Spacer/index.js +20 -20
  63. package/es/components/StatusDot/StatusDot.stories.js +103 -90
  64. package/es/components/StatusDot/index.js +36 -38
  65. package/es/components/StyledLink/StyledLink.stories.js +68 -69
  66. package/es/components/StyledLink/index.js +47 -48
  67. package/es/components/Table/Table.stories.js +118 -112
  68. package/es/components/Table/getExpandColumnConfig.js +67 -62
  69. package/es/components/Table/index.js +24 -27
  70. package/es/components/Table/muiStyleOverrides.js +10 -8
  71. package/es/components/Tabs/Tab.stories.js +55 -38
  72. package/es/components/Tabs/TabsContainer.stories.js +30 -22
  73. package/es/components/Tabs/index.js +95 -92
  74. package/es/components/Tag/Tag.stories.js +250 -220
  75. package/es/components/Tag/index.js +118 -190
  76. package/es/components/TextArea/TextArea.stories.js +76 -89
  77. package/es/components/TextArea/index.js +117 -115
  78. package/es/components/TextInput/TextInput.stories.js +41 -61
  79. package/es/components/TextInput/index.js +127 -171
  80. package/es/components/Toggle/Toggle.stories.js +63 -62
  81. package/es/components/Toggle/index.js +43 -77
  82. package/es/components/TreeNav/TreeNav.stories.js +7 -8
  83. package/es/components/TreeNav/index.js +72 -69
  84. package/es/components/Typography/Typography.stories.js +174 -0
  85. package/es/components/Typography/index.js +252 -308
  86. package/es/components.test.js +1 -1
  87. package/es/hooks/isVisible.js +6 -10
  88. package/es/hooks/keepInView.js +27 -32
  89. package/es/hooks/keypress.js +14 -14
  90. package/es/hooks/useInputFocus.js +5 -5
  91. package/es/hooks/usePrevious.js +3 -3
  92. package/es/systemThemeCollapsed.js +53 -53
  93. package/es/systemtheme.js +53 -53
  94. package/es/utils/selectUtil.js +1 -1
  95. package/es/utils/selectUtil.test.js +6 -6
  96. package/package.json +29 -38
@@ -1,7 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["icon", "colour", "floating", "children", "top", "right", "bottom", "left", "centered", "closable", "onDismiss", "theme", "iconProps", "loading"];
5
1
  import React, { useState } from "react";
6
2
  import PropTypes from "prop-types";
7
3
  import styled, { ThemeProvider } from "styled-components";
@@ -11,57 +7,52 @@ import { css } from "@styled-system/css";
11
7
  import shouldForwardProp from "@styled-system/should-forward-prop";
12
8
  import { space, layout, position, variant, compose } from "styled-system";
13
9
  import { themeGet } from "@styled-system/theme-get";
14
- var NotificationStyles = compose(space, layout, position);
15
- var NotificationWrapper = styled("div").withConfig({
16
- shouldForwardProp: shouldForwardProp,
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const NotificationStyles = compose(space, layout, position);
12
+ const NotificationWrapper = styled("div").withConfig({
13
+ shouldForwardProp,
17
14
  displayName: "Notification__NotificationWrapper",
18
15
  componentId: "sc-1p26rkq-0"
19
- }).attrs(function (props) {
20
- return {
21
- className: props.notifClass
22
- };
23
- })(function (props) {
24
- return css({
25
- position: "relative",
26
- color: themeGet("colors.white")(props),
27
- fontSize: themeGet("fontSizes.1")(props),
28
- fontWeight: themeGet("fontWeights.2")(props),
29
- px: "s",
30
- py: "s",
31
- cursor: "default",
32
- display: "flex",
33
- alignItems: "center",
34
- justifyContent: "flex-start",
35
- borderRadius: themeGet("radii.1")(props),
36
- bg: themeGet("colors.primaryDark")(props),
37
- "&.floating": {
38
- zIndex: "13",
39
- position: "fixed"
16
+ }).attrs(props => ({
17
+ className: props.notifClass
18
+ }))(props => css({
19
+ position: "relative",
20
+ color: themeGet("colors.white")(props),
21
+ fontSize: themeGet("fontSizes.1")(props),
22
+ fontWeight: themeGet("fontWeights.2")(props),
23
+ px: "s",
24
+ py: "s",
25
+ cursor: "default",
26
+ display: "flex",
27
+ alignItems: "center",
28
+ justifyContent: "flex-start",
29
+ borderRadius: themeGet("radii.1")(props),
30
+ bg: themeGet("colors.primaryDark")(props),
31
+ "&.floating": {
32
+ zIndex: "13",
33
+ position: "fixed"
34
+ },
35
+ "&.centered": {
36
+ left: "50%",
37
+ transform: "translateX(-50%)",
38
+ right: "auto"
39
+ }
40
+ }), props => variant({
41
+ prop: "colour",
42
+ variants: {
43
+ success: {
44
+ bg: themeGet("colors.successDark")(props)
40
45
  },
41
- "&.centered": {
42
- left: "50%",
43
- transform: "translateX(-50%)",
44
- right: "auto"
45
- }
46
- });
47
- }, function (props) {
48
- return variant({
49
- prop: "colour",
50
- variants: {
51
- success: {
52
- bg: themeGet("colors.successDark")(props)
53
- },
54
- danger: {
55
- bg: themeGet("colors.dangerDark")(props)
56
- },
57
- warning: {
58
- bg: themeGet("colors.warningLight")(props),
59
- color: themeGet("colors.black80")(props)
60
- },
61
- "default": {}
62
- }
63
- });
64
- }, variant({
46
+ danger: {
47
+ bg: themeGet("colors.dangerDark")(props)
48
+ },
49
+ warning: {
50
+ bg: themeGet("colors.warningLight")(props),
51
+ color: themeGet("colors.black80")(props)
52
+ },
53
+ default: {}
54
+ }
55
+ }), variant({
65
56
  variants: {
66
57
  success: {
67
58
  bg: themeGet("colors.successDark")
@@ -73,73 +64,66 @@ var NotificationWrapper = styled("div").withConfig({
73
64
  bg: themeGet("colors.warningLight"),
74
65
  color: themeGet("colors.black80")
75
66
  },
76
- "default": {
67
+ default: {
77
68
  bg: themeGet("colors.primaryDark")
78
69
  }
79
70
  }
80
71
  }), NotificationStyles);
81
- var NotificationContent = styled("p").withConfig({
72
+ const NotificationContent = styled("p").withConfig({
82
73
  displayName: "Notification__NotificationContent",
83
74
  componentId: "sc-1p26rkq-1"
84
- })(function (props) {
85
- return css({
86
- lineHeight: themeGet("fontSizes.3")(props),
87
- pr: props.closable === false ? "0" : "s"
88
- });
89
- });
90
- var CloseButton = styled("button").withConfig({
75
+ })(props => css({
76
+ lineHeight: themeGet("fontSizes.3")(props),
77
+ pr: props.closable === false ? "0" : "s"
78
+ }));
79
+ const CloseButton = styled("button").withConfig({
91
80
  displayName: "Notification__CloseButton",
92
81
  componentId: "sc-1p26rkq-2"
93
- })(function (props) {
94
- return css({
95
- appearance: "none",
96
- bg: "transparent",
97
- p: "0",
98
- paddingLeft: "1",
99
- paddingRight: "1",
100
- border: "none",
101
- ml: "auto",
102
- cursor: "pointer",
103
- opacity: "0.7",
104
- transition: themeGet("transition.transitionDefault")(props),
105
- color: themeGet("colors.white")(props),
106
- "&:hover, &:focus": {
107
- outline: "0",
108
- opacity: "1"
109
- }
110
- });
111
- });
112
- var NotificationIcon = styled(Icon).withConfig({
82
+ })(props => css({
83
+ appearance: "none",
84
+ bg: "transparent",
85
+ p: "0",
86
+ paddingLeft: "1",
87
+ paddingRight: "1",
88
+ border: "none",
89
+ ml: "auto",
90
+ cursor: "pointer",
91
+ opacity: "0.7",
92
+ transition: themeGet("transition.transitionDefault")(props),
93
+ color: themeGet("colors.white")(props),
94
+ "&:hover, &:focus": {
95
+ outline: "0",
96
+ opacity: "1"
97
+ }
98
+ }));
99
+ const NotificationIcon = styled(Icon).withConfig({
113
100
  displayName: "Notification__NotificationIcon",
114
101
  componentId: "sc-1p26rkq-3"
115
- })(function (props) {
116
- return css({
117
- color: props.colour === "warning" ? themeGet("colors.black80")(props) : themeGet("colors.white")(props),
118
- fontSize: themeGet("fontSizes.2")(props),
119
- mr: "s"
120
- });
121
- });
102
+ })(props => css({
103
+ color: props.colour === "warning" ? themeGet("colors.black80")(props) : themeGet("colors.white")(props),
104
+ fontSize: themeGet("fontSizes.2")(props),
105
+ mr: "s"
106
+ }));
122
107
  export default function Notification(_ref) {
123
- var icon = _ref.icon,
124
- colour = _ref.colour,
125
- floating = _ref.floating,
126
- children = _ref.children,
127
- top = _ref.top,
128
- right = _ref.right,
129
- bottom = _ref.bottom,
130
- left = _ref.left,
131
- centered = _ref.centered,
132
- closable = _ref.closable,
133
- onDismiss = _ref.onDismiss,
134
- theme = _ref.theme,
135
- iconProps = _ref.iconProps,
136
- loading = _ref.loading,
137
- props = _objectWithoutProperties(_ref, _excluded);
138
- var _useState = useState(false),
139
- _useState2 = _slicedToArray(_useState, 2),
140
- dismissed = _useState2[0],
141
- handleDismiss = _useState2[1];
142
- var onToggle = function onToggle() {
108
+ let {
109
+ icon,
110
+ colour,
111
+ floating,
112
+ children,
113
+ top,
114
+ right,
115
+ bottom,
116
+ left,
117
+ centered,
118
+ closable,
119
+ onDismiss,
120
+ theme,
121
+ iconProps,
122
+ loading,
123
+ ...props
124
+ } = _ref;
125
+ const [dismissed, handleDismiss] = useState(false);
126
+ const onToggle = () => {
143
127
  if (!dismissed) {
144
128
  handleDismiss(true);
145
129
  if (onDismiss) {
@@ -149,7 +133,7 @@ export default function Notification(_ref) {
149
133
  handleDismiss(false);
150
134
  }
151
135
  };
152
- var notifClass;
136
+ let notifClass;
153
137
  if (floating) {
154
138
  if (centered) {
155
139
  notifClass = "floating centered";
@@ -162,7 +146,7 @@ export default function Notification(_ref) {
162
146
  if (dismissed) {
163
147
  return null;
164
148
  }
165
- var component = /*#__PURE__*/React.createElement(NotificationWrapper, _extends({
149
+ const component = /*#__PURE__*/_jsxs(NotificationWrapper, {
166
150
  colour: colour,
167
151
  floating: floating,
168
152
  top: top,
@@ -172,29 +156,35 @@ export default function Notification(_ref) {
172
156
  centered: centered,
173
157
  iconProps: iconProps,
174
158
  notifClass: notifClass,
175
- role: "alert"
176
- }, props), icon && /*#__PURE__*/React.createElement(NotificationIcon, _extends({
177
- colour: colour,
178
- icon: icon
179
- }, iconProps)), loading && /*#__PURE__*/React.createElement(Loading, {
180
- small: true,
181
- inverted: colour != "warning",
182
- mr: "s"
183
- }), /*#__PURE__*/React.createElement(NotificationContent, {
184
- closable: closable
185
- }, children), closable && /*#__PURE__*/React.createElement(CloseButton, {
186
- className: "close-button",
187
- tabIndex: "0",
188
- onClick: onToggle,
189
- "aria-label": "Close Notification"
190
- }, /*#__PURE__*/React.createElement(Icon, {
191
- icon: ["fas", "times"],
192
- size: "lg",
193
- color: colour === "warning" ? "black80" : "white"
194
- })));
195
- return theme ? /*#__PURE__*/React.createElement(ThemeProvider, {
196
- theme: theme
197
- }, component) : component;
159
+ role: "alert",
160
+ ...props,
161
+ children: [icon && /*#__PURE__*/_jsx(NotificationIcon, {
162
+ colour: colour,
163
+ icon: icon,
164
+ ...iconProps
165
+ }), loading && /*#__PURE__*/_jsx(Loading, {
166
+ small: true,
167
+ inverted: colour != "warning",
168
+ mr: "s"
169
+ }), /*#__PURE__*/_jsx(NotificationContent, {
170
+ closable: closable,
171
+ children: children
172
+ }), closable && /*#__PURE__*/_jsx(CloseButton, {
173
+ className: "close-button",
174
+ tabIndex: "0",
175
+ onClick: onToggle,
176
+ "aria-label": "Close Notification",
177
+ children: /*#__PURE__*/_jsx(Icon, {
178
+ icon: ["fas", "times"],
179
+ size: "lg",
180
+ color: colour === "warning" ? "black80" : "white"
181
+ })
182
+ })]
183
+ });
184
+ return theme ? /*#__PURE__*/_jsx(ThemeProvider, {
185
+ theme: theme,
186
+ children: component
187
+ }) : component;
198
188
  }
199
189
  Notification.propTypes = {
200
190
  children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
@@ -5,132 +5,164 @@ import Box from "../Box";
5
5
  import Grid from "../Grid";
6
6
  import Flex from "../Flex";
7
7
  import StyledLink from "../StyledLink";
8
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
9
  export default {
9
10
  title: "Components/Popover",
10
- decorators: [function (storyFn) {
11
- return /*#__PURE__*/React.createElement(Box, {
12
- p: "6"
13
- }, /*#__PURE__*/React.createElement(Flex, {
14
- justifyContent: "space-around"
15
- }, storyFn()));
16
- }],
11
+ decorators: [storyFn => /*#__PURE__*/_jsx(Box, {
12
+ p: "6",
13
+ children: /*#__PURE__*/_jsx(Flex, {
14
+ justifyContent: "space-around",
15
+ children: storyFn()
16
+ })
17
+ })],
17
18
  component: Popover
18
19
  };
19
- export var defaultPopover = function defaultPopover() {
20
- return /*#__PURE__*/React.createElement(Popover, {
21
- text: "Description that explains child element"
22
- }, /*#__PURE__*/React.createElement(Button, null, "Hover Me!"));
23
- };
20
+ export const defaultPopover = () => /*#__PURE__*/_jsx(Popover, {
21
+ text: "Description that explains child element",
22
+ children: /*#__PURE__*/_jsx(Button, {
23
+ children: "Hover Me!"
24
+ })
25
+ });
24
26
  defaultPopover.storyName = "Default";
25
- export var direction = function direction() {
26
- return /*#__PURE__*/React.createElement(Grid, {
27
- gridTemplateColumns: "1fr 1fr 1fr",
28
- gridAutoFlow: "row",
29
- gridGap: "r",
30
- alignItems: "center",
31
- justifyContent: "center"
32
- }, /*#__PURE__*/React.createElement(Popover, {
27
+ export const direction = () => /*#__PURE__*/_jsxs(Grid, {
28
+ gridTemplateColumns: "1fr 1fr 1fr",
29
+ gridAutoFlow: "row",
30
+ gridGap: "r",
31
+ alignItems: "center",
32
+ justifyContent: "center",
33
+ children: [/*#__PURE__*/_jsx(Popover, {
33
34
  direction: "topLeft",
34
- text: "Description that explains child element"
35
- }, /*#__PURE__*/React.createElement(Button, {
36
- width: "125px"
37
- }, "Top left")), /*#__PURE__*/React.createElement(Popover, {
35
+ text: "Description that explains child element",
36
+ children: /*#__PURE__*/_jsx(Button, {
37
+ width: "125px",
38
+ children: "Top left"
39
+ })
40
+ }), /*#__PURE__*/_jsx(Popover, {
38
41
  direction: "top",
39
- text: "Description that explains child element"
40
- }, /*#__PURE__*/React.createElement(Button, {
41
- width: "125px"
42
- }, "Top")), /*#__PURE__*/React.createElement(Popover, {
42
+ text: "Description that explains child element",
43
+ children: /*#__PURE__*/_jsx(Button, {
44
+ width: "125px",
45
+ children: "Top"
46
+ })
47
+ }), /*#__PURE__*/_jsx(Popover, {
43
48
  direction: "topRight",
44
- text: "Description that explains child element"
45
- }, /*#__PURE__*/React.createElement(Button, {
46
- width: "125px"
47
- }, "Top right")), /*#__PURE__*/React.createElement(Popover, {
49
+ text: "Description that explains child element",
50
+ children: /*#__PURE__*/_jsx(Button, {
51
+ width: "125px",
52
+ children: "Top right"
53
+ })
54
+ }), /*#__PURE__*/_jsx(Popover, {
48
55
  direction: "left",
49
- text: "Description that explains child element"
50
- }, /*#__PURE__*/React.createElement(Button, {
51
- width: "125px"
52
- }, "Left")), /*#__PURE__*/React.createElement(Box, {
56
+ text: "Description that explains child element",
57
+ children: /*#__PURE__*/_jsx(Button, {
58
+ width: "125px",
59
+ children: "Left"
60
+ })
61
+ }), /*#__PURE__*/_jsx(Box, {
53
62
  width: "125px",
54
63
  bg: "greyLighter",
55
64
  m: "auto"
56
- }), /*#__PURE__*/React.createElement(Popover, {
65
+ }), /*#__PURE__*/_jsx(Popover, {
57
66
  direction: "right",
58
- text: "Description that explains child element"
59
- }, /*#__PURE__*/React.createElement(Button, {
60
- width: "125px"
61
- }, "Right")), /*#__PURE__*/React.createElement(Popover, {
67
+ text: "Description that explains child element",
68
+ children: /*#__PURE__*/_jsx(Button, {
69
+ width: "125px",
70
+ children: "Right"
71
+ })
72
+ }), /*#__PURE__*/_jsx(Popover, {
62
73
  direction: "bottomLeft",
63
- text: "Description that explains child element"
64
- }, /*#__PURE__*/React.createElement(Button, {
65
- width: "125px"
66
- }, "Bottom left")), /*#__PURE__*/React.createElement(Popover, {
74
+ text: "Description that explains child element",
75
+ children: /*#__PURE__*/_jsx(Button, {
76
+ width: "125px",
77
+ children: "Bottom left"
78
+ })
79
+ }), /*#__PURE__*/_jsx(Popover, {
67
80
  direction: "bottom",
68
- text: "Description that explains child element"
69
- }, /*#__PURE__*/React.createElement(Button, {
70
- width: "125px"
71
- }, "Bottom")), /*#__PURE__*/React.createElement(Popover, {
81
+ text: "Description that explains child element",
82
+ children: /*#__PURE__*/_jsx(Button, {
83
+ width: "125px",
84
+ children: "Bottom"
85
+ })
86
+ }), /*#__PURE__*/_jsx(Popover, {
72
87
  direction: "bottomRight",
73
- text: "Description that explains child element"
74
- }, /*#__PURE__*/React.createElement(Button, {
75
- width: "125px"
76
- }, "Bottom right")));
77
- };
88
+ text: "Description that explains child element",
89
+ children: /*#__PURE__*/_jsx(Button, {
90
+ width: "125px",
91
+ children: "Bottom right"
92
+ })
93
+ })]
94
+ });
78
95
  direction.storyName = "Direction";
79
- export var specifiedWidth = function specifiedWidth() {
80
- return /*#__PURE__*/React.createElement(Popover, {
96
+ export const specifiedWidth = () => /*#__PURE__*/_jsx(Popover, {
97
+ text: "Description that explains child element",
98
+ width: "240px",
99
+ children: /*#__PURE__*/_jsx(Button, {
100
+ children: "Hover Me"
101
+ })
102
+ });
103
+ export const textAlignment = () => /*#__PURE__*/_jsx(Popover, {
104
+ textAlign: "center",
105
+ text: "Centered description that explains child element",
106
+ children: /*#__PURE__*/_jsx(Button, {
107
+ children: "Hover Me"
108
+ })
109
+ });
110
+ export const DisplayInlineBlock = () => /*#__PURE__*/_jsxs(_Fragment, {
111
+ children: [/*#__PURE__*/_jsx(Popover, {
81
112
  text: "Description that explains child element",
82
- width: "240px"
83
- }, /*#__PURE__*/React.createElement(Button, null, "Hover Me"));
84
- };
85
- export var textAlignment = function textAlignment() {
86
- return /*#__PURE__*/React.createElement(Popover, {
87
- textAlign: "center",
88
- text: "Centered description that explains child element"
89
- }, /*#__PURE__*/React.createElement(Button, null, "Hover Me"));
90
- };
91
- export var DisplayInlineBlock = function DisplayInlineBlock() {
92
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover, {
113
+ inlineBlock: true,
114
+ children: /*#__PURE__*/_jsx(Button, {
115
+ children: "Inline Block Set"
116
+ })
117
+ }), /*#__PURE__*/_jsx(Popover, {
93
118
  text: "Description that explains child element",
94
- inlineBlock: true
95
- }, /*#__PURE__*/React.createElement(Button, null, "Inline Block Set")), /*#__PURE__*/React.createElement(Popover, {
119
+ inlineBlock: true,
120
+ children: /*#__PURE__*/_jsx(Button, {
121
+ children: "Inline Block Set"
122
+ })
123
+ }), /*#__PURE__*/_jsx(Popover, {
96
124
  text: "Description that explains child element",
97
- inlineBlock: true
98
- }, /*#__PURE__*/React.createElement(Button, null, "Inline Block Set")), /*#__PURE__*/React.createElement(Popover, {
99
- text: "Description that explains child element"
100
- }, /*#__PURE__*/React.createElement(Button, null, "Not Inline")), /*#__PURE__*/React.createElement(Popover, {
125
+ children: /*#__PURE__*/_jsx(Button, {
126
+ children: "Not Inline"
127
+ })
128
+ }), /*#__PURE__*/_jsx(Popover, {
101
129
  direction: "top",
102
- text: "Description that explains child element"
103
- }, /*#__PURE__*/React.createElement(Button, null, "Not Inline")));
104
- };
105
- export var tooltipExample = function tooltipExample() {
106
- return /*#__PURE__*/React.createElement(Popover, {
107
- text: "This tooltip helps explain stuff",
108
- direction: "top",
109
- variant: "tooltip"
110
- });
111
- };
130
+ text: "Description that explains child element",
131
+ children: /*#__PURE__*/_jsx(Button, {
132
+ children: "Not Inline"
133
+ })
134
+ })]
135
+ });
136
+ export const tooltipExample = () => /*#__PURE__*/_jsx(Popover, {
137
+ text: "This tooltip helps explain stuff",
138
+ direction: "top",
139
+ variant: "tooltip"
140
+ });
112
141
  tooltipExample.storyName = "Tooltip Example";
113
- export var tooltipWithLinkExample = function tooltipWithLinkExample() {
114
- return /*#__PURE__*/React.createElement(Popover, {
115
- text: /*#__PURE__*/React.createElement("span", null, "Test tooltip with a", " ", /*#__PURE__*/React.createElement(StyledLink, {
142
+ export const tooltipWithLinkExample = () => /*#__PURE__*/_jsx(Popover, {
143
+ text: /*#__PURE__*/_jsxs("span", {
144
+ children: ["Test tooltip with a", " ", /*#__PURE__*/_jsx(StyledLink, {
116
145
  href: "https://www.teamform.co",
117
- target: "_blank"
118
- }, "link to TeamForm")),
119
- arialLabel: "Link to TeamForm",
120
- direction: "right",
121
- variant: "tooltip",
122
- enableSelectAll: false
123
- });
124
- };
146
+ target: "_blank",
147
+ children: "link to TeamForm"
148
+ })]
149
+ }),
150
+ arialLabel: "Link to TeamForm",
151
+ direction: "right",
152
+ variant: "tooltip",
153
+ enableSelectAll: false
154
+ });
125
155
  tooltipWithLinkExample.storyName = "Tooltip with link Example";
126
- export var keepInViewExample = function keepInViewExample() {
127
- return /*#__PURE__*/React.createElement(Flex, {
128
- justifyContent: "flex-end",
129
- width: "100%"
130
- }, /*#__PURE__*/React.createElement(Popover, {
131
- text: "Description that explains child element"
132
- }, /*#__PURE__*/React.createElement(Button, null, "Hover Me!")));
133
- };
156
+ export const keepInViewExample = () => /*#__PURE__*/_jsx(Flex, {
157
+ justifyContent: "flex-end",
158
+ width: "100%",
159
+ children: /*#__PURE__*/_jsx(Popover, {
160
+ text: "Description that explains child element",
161
+ children: /*#__PURE__*/_jsx(Button, {
162
+ children: "Hover Me!"
163
+ })
164
+ })
165
+ });
134
166
  keepInViewExample.storyName = "Keep In View Example";
135
167
  defaultPopover.__docgenInfo = {
136
168
  "description": "",