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,5 +1,3 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
- import _extends from "@babel/runtime/helpers/extends";
3
1
  import React from "react";
4
2
  import PropTypes from "prop-types";
5
3
  import styled, { ThemeProvider } from "styled-components";
@@ -7,126 +5,130 @@ import { space, layout, typography, color, compose } from "styled-system";
7
5
  import { css } from "@styled-system/css";
8
6
  import shouldForwardProp from "@styled-system/should-forward-prop";
9
7
  import { themeGet } from "@styled-system/theme-get";
10
- var WrapperStyles = compose(space, layout);
11
- var LabelStyles = compose(space, layout, typography, color);
12
- var InputStyles = compose(space, layout, typography, color);
13
- var Wrapper = styled("div").withConfig({
14
- shouldForwardProp: shouldForwardProp,
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ const WrapperStyles = compose(space, layout);
10
+ const LabelStyles = compose(space, layout, typography, color);
11
+ const InputStyles = compose(space, layout, typography, color);
12
+ const Wrapper = styled("div").withConfig({
13
+ shouldForwardProp,
15
14
  displayName: "TextArea__Wrapper",
16
15
  componentId: "sc-1oyenoa-0"
17
- })(function (props) {
18
- return css({
19
- position: "relative",
20
- width: props.fullWidth ? "100%" : "auto"
21
- });
22
- }, WrapperStyles);
23
- var Input = styled("textarea").withConfig({
24
- shouldForwardProp: shouldForwardProp,
16
+ })(props => css({
17
+ position: "relative",
18
+ width: props.fullWidth ? "100%" : "auto"
19
+ }), WrapperStyles);
20
+ const Input = styled("textarea").withConfig({
21
+ shouldForwardProp,
25
22
  displayName: "TextArea__Input",
26
23
  componentId: "sc-1oyenoa-1"
27
- }).attrs(function (props) {
28
- return {
29
- "data-testid": props["data-testid"] ? props["data-testid"] : null
30
- };
31
- })(function (props) {
32
- return css({
33
- display: "block",
34
- cursor: "text",
35
- appearance: "none",
36
- boxShadow: "none",
37
- fontFamily: themeGet("fonts.main")(props),
38
- fontSize: themeGet("fontSizes.2")(props),
39
- zIndex: "1",
40
- borderRadius: themeGet("radii.2")(props),
41
- transition: themeGet("transition.transitionDefault")(props),
42
- background: props.disabled ? themeGet("colors.greyLightest")(props) : themeGet("colors.white")(props),
43
- color: props.disabled ? themeGet("colors.grey")(props) : themeGet("colors.greyDarkest")(props),
44
- width: props.fullWidth ? "100%" : "auto",
45
- padding: "between",
46
- borderWidth: themeGet("borderWidths.1")(props),
47
- borderStyle: "solid",
48
- borderColor: props.invalid ? themeGet("colors.dangerLight")(props) : props.valid ? themeGet("colors.successLight")(props) : themeGet("colors.black30")(props),
49
- "&:hover": {
50
- borderColor: props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.primary")(props)
51
- },
52
- "&:focus": {
53
- outline: "0",
54
- boxShadow: props.invalid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.danger30")(props) : props.valid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.success30")(props) : themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.primary30")(props),
55
- borderColor: props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.primary")(props)
56
- }
57
- });
58
- }, InputStyles);
59
- var Label = styled("label").withConfig({
60
- shouldForwardProp: shouldForwardProp,
24
+ }).attrs(props => ({
25
+ "data-testid": props["data-testid"] ? props["data-testid"] : null
26
+ }))(props => css({
27
+ display: "block",
28
+ cursor: "text",
29
+ appearance: "none",
30
+ boxShadow: "none",
31
+ fontFamily: themeGet("fonts.main")(props),
32
+ fontSize: themeGet("fontSizes.2")(props),
33
+ zIndex: "1",
34
+ borderRadius: themeGet("radii.2")(props),
35
+ transition: themeGet("transition.transitionDefault")(props),
36
+ background: props.disabled ? themeGet("colors.greyLightest")(props) : themeGet("colors.white")(props),
37
+ color: props.disabled ? themeGet("colors.grey")(props) : themeGet("colors.greyDarkest")(props),
38
+ width: props.fullWidth ? "100%" : "auto",
39
+ padding: "between",
40
+ borderWidth: themeGet("borderWidths.1")(props),
41
+ borderStyle: "solid",
42
+ borderColor: props.invalid ? themeGet("colors.dangerLight")(props) : props.valid ? themeGet("colors.successLight")(props) : themeGet("colors.black30")(props),
43
+ "&:hover": {
44
+ borderColor: props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.primary")(props)
45
+ },
46
+ "&:focus": {
47
+ outline: "0",
48
+ boxShadow: props.invalid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.danger30")(props) : props.valid ? themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.success30")(props) : themeGet("shadows.thickOutline")(props) + " " + themeGet("colors.primary30")(props),
49
+ borderColor: props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.primary")(props)
50
+ }
51
+ }), InputStyles);
52
+ const Label = styled("label").withConfig({
53
+ shouldForwardProp,
61
54
  displayName: "TextArea__Label",
62
55
  componentId: "sc-1oyenoa-2"
63
- })(function (props) {
64
- return css({
65
- display: "block",
66
- zIndex: "2",
67
- textAlign: "left",
68
- fontSize: themeGet("fontSizes.1")(props),
69
- fontWeight: props.bold ? themeGet("fontWeights.2")(props) : themeGet("fontWeights.1")(props),
70
- transition: themeGet("transition.transitionDefault")(props),
71
- mb: props.floating ? 0 : "xs",
72
- span: {
73
- color: themeGet("colors.danger")(props),
74
- fontWeight: themeGet("fontWeights.2")(props)
75
- },
76
- color: props.inverted ? props.valid ? themeGet("colors.successLightest")(props) : props.invalid ? themeGet("colors.dangerLightest")(props) : themeGet("colors.white")(props) : props.valid ? themeGet("colors.successDark")(props) : props.invalid ? themeGet("colors.dangerDark")(props) : themeGet("colors.greyDarkest")(props)
56
+ })(props => css({
57
+ display: "block",
58
+ zIndex: "2",
59
+ textAlign: "left",
60
+ fontSize: themeGet("fontSizes.1")(props),
61
+ fontWeight: props.bold ? themeGet("fontWeights.2")(props) : themeGet("fontWeights.1")(props),
62
+ transition: themeGet("transition.transitionDefault")(props),
63
+ mb: props.floating ? 0 : "xs",
64
+ span: {
65
+ color: themeGet("colors.danger")(props),
66
+ fontWeight: themeGet("fontWeights.2")(props)
67
+ },
68
+ color: props.inverted ? props.valid ? themeGet("colors.successLightest")(props) : props.invalid ? themeGet("colors.dangerLightest")(props) : themeGet("colors.white")(props) : props.valid ? themeGet("colors.successDark")(props) : props.invalid ? themeGet("colors.dangerDark")(props) : themeGet("colors.greyDarkest")(props)
69
+ }), LabelStyles);
70
+ const Asterisk = () => {
71
+ return /*#__PURE__*/_jsx("span", {
72
+ children: " *"
77
73
  });
78
- }, LabelStyles);
79
- var Asterisk = function Asterisk() {
80
- return /*#__PURE__*/React.createElement("span", null, " *");
81
74
  };
82
- var TextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
83
- var inverted = props.inverted,
84
- id = props.id,
85
- value = props.value,
86
- disabled = props.disabled,
87
- label = props.label,
88
- invalid = props.invalid,
89
- valid = props.valid,
90
- fullWidth = props.fullWidth,
91
- mandatory = props.mandatory,
92
- bold = props.bold,
93
- cols = props.cols,
94
- rows = props.rows,
95
- onChange = props.onChange,
96
- defaultValue = props.defaultValue,
97
- autoFocus = props.autoFocus,
98
- theme = props.theme,
99
- WrapperStyles = props.WrapperStyles,
100
- LabelStyles = props.LabelStyles,
101
- ariaLabel = props.ariaLabel,
102
- InputStyles = props.InputStyles;
103
- var component = /*#__PURE__*/React.createElement(Wrapper, _extends({
104
- fullWidth: fullWidth
105
- }, WrapperStyles), label && /*#__PURE__*/React.createElement(Label, _extends({
106
- inverted: inverted,
107
- invalid: invalid,
108
- valid: valid,
109
- htmlFor: id,
110
- mandatory: mandatory,
111
- bold: bold
112
- }, LabelStyles), label, " ", mandatory && /*#__PURE__*/React.createElement(Asterisk, null)), /*#__PURE__*/React.createElement(Input, _extends({
113
- ref: ref,
114
- id: id,
75
+ const TextArea = /*#__PURE__*/React.forwardRef((props, ref) => {
76
+ const {
77
+ inverted,
78
+ id,
79
+ value,
80
+ disabled,
81
+ label,
82
+ invalid,
83
+ valid,
84
+ fullWidth,
85
+ mandatory,
86
+ bold,
87
+ cols,
88
+ rows,
89
+ onChange,
90
+ defaultValue,
91
+ autoFocus,
92
+ theme,
93
+ WrapperStyles,
94
+ LabelStyles,
95
+ ariaLabel,
96
+ InputStyles
97
+ } = props;
98
+ const component = /*#__PURE__*/_jsxs(Wrapper, {
115
99
  fullWidth: fullWidth,
116
- cols: cols,
117
- disabled: disabled,
118
- rows: rows,
119
- autoFocus: autoFocus,
120
- valid: valid,
121
- invalid: invalid,
122
- onChange: onChange,
123
- "data-testid": props["data-testid"],
124
- defaultValue: defaultValue,
125
- "aria-label": ariaLabel
126
- }, InputStyles), value));
127
- return theme ? /*#__PURE__*/React.createElement(ThemeProvider, {
128
- theme: theme
129
- }, component) : component;
100
+ ...WrapperStyles,
101
+ children: [label && /*#__PURE__*/_jsxs(Label, {
102
+ inverted: inverted,
103
+ invalid: invalid,
104
+ valid: valid,
105
+ htmlFor: id,
106
+ mandatory: mandatory,
107
+ bold: bold,
108
+ ...LabelStyles,
109
+ children: [label, " ", mandatory && /*#__PURE__*/_jsx(Asterisk, {})]
110
+ }), /*#__PURE__*/_jsx(Input, {
111
+ ref: ref,
112
+ id: id,
113
+ fullWidth: fullWidth,
114
+ cols: cols,
115
+ disabled: disabled,
116
+ rows: rows,
117
+ autoFocus: autoFocus,
118
+ valid: valid,
119
+ invalid: invalid,
120
+ onChange: onChange,
121
+ "data-testid": props["data-testid"],
122
+ defaultValue: defaultValue,
123
+ "aria-label": ariaLabel,
124
+ ...InputStyles,
125
+ children: value
126
+ })]
127
+ });
128
+ return theme ? /*#__PURE__*/_jsx(ThemeProvider, {
129
+ theme: theme,
130
+ children: component
131
+ }) : component;
130
132
  });
131
133
  TextArea.propTypes = {
132
134
  /** Must be used to specify a unique ID. */
@@ -136,12 +138,12 @@ TextArea.propTypes = {
136
138
  /** Specifies the text for the TextArea label. */
137
139
  label: PropTypes.string,
138
140
  /** Specifies aria-label for TextArea. This is only required if not using the label prop.*/
139
- ariaLabel: function ariaLabel(props, propName) {
141
+ ariaLabel: (props, propName) => {
140
142
  if (!props.label && (props[propName] == null || props[propName] === "")) {
141
143
  return new Error("Missing prop `".concat(propName, "` not specified for TextArea component. When `label` is not provided, `").concat(propName, "` is required."));
142
144
  }
143
145
  if (props[propName] && typeof props[propName] !== "string") {
144
- return new Error("Invalid propType `".concat(propName, "` supplied to TextArea component. Expected `string`, received `").concat(_typeof(props[propName]), "`."));
146
+ return new Error("Invalid propType `".concat(propName, "` supplied to TextArea component. Expected `string`, received `").concat(typeof props[propName], "`."));
145
147
  }
146
148
  return null;
147
149
  },
@@ -1,145 +1,125 @@
1
1
  import React from "react";
2
2
  import TextInput from ".";
3
3
  import Spacer from "../Spacer";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
5
  export default {
5
6
  title: "Components/TextInput",
6
7
  component: TextInput
7
8
  };
8
- export var defaultTextInput = function defaultTextInput() {
9
- return /*#__PURE__*/React.createElement(Spacer, {
10
- m: "r"
11
- }, /*#__PURE__*/React.createElement(TextInput, {
9
+ export const defaultTextInput = () => /*#__PURE__*/_jsxs(Spacer, {
10
+ m: "r",
11
+ children: [/*#__PURE__*/_jsx(TextInput, {
12
12
  id: "textInput1",
13
- key: "textInput1",
14
13
  type: "text",
15
14
  label: "Full name",
16
15
  placeholder: "E.g. John Smith",
17
16
  my: "20px"
18
- }), /*#__PURE__*/React.createElement(TextInput, {
17
+ }, "textInput1"), /*#__PURE__*/_jsx(TextInput, {
19
18
  id: "textInput2",
20
- key: "textInput2",
21
19
  type: "text",
22
20
  label: "Full name - invalid message",
23
21
  placeholder: "E.g. John Smith",
24
22
  invalid: true
25
- }), /*#__PURE__*/React.createElement(TextInput, {
23
+ }, "textInput2"), /*#__PURE__*/_jsx(TextInput, {
26
24
  id: "textInput3",
27
- key: "textInput3",
28
25
  type: "text",
29
26
  label: "Full name",
30
27
  placeholder: "E.g. John Smith",
31
28
  valid: true
32
- }), /*#__PURE__*/React.createElement(TextInput, {
29
+ }, "textInput3"), /*#__PURE__*/_jsx(TextInput, {
33
30
  id: "textInput4",
34
- key: "textInput4",
35
31
  type: "text",
36
32
  label: "Full name",
37
33
  placeholder: "E.g. John Smith",
38
34
  mandatory: true
39
- }));
40
- };
35
+ }, "textInput4")]
36
+ });
41
37
  defaultTextInput.story = {
42
38
  name: "Default"
43
39
  };
44
- var numberProps = {
40
+ const numberProps = {
45
41
  decimalScale: 2,
46
42
  prefix: "$"
47
43
  };
48
- export var number = function number() {
49
- return [/*#__PURE__*/React.createElement(TextInput, {
50
- id: "numInput1",
51
- key: "numInput1",
52
- numberProps: numberProps,
53
- label: "Currency",
54
- value: "345345.55"
55
- })];
56
- };
57
- export var floatingLabel = function floatingLabel() {
58
- return /*#__PURE__*/React.createElement(Spacer, {
59
- m: "r"
60
- }, /*#__PURE__*/React.createElement(TextInput, {
44
+ export const number = () => [/*#__PURE__*/_jsx(TextInput, {
45
+ id: "numInput1",
46
+ numberProps: numberProps,
47
+ label: "Currency",
48
+ value: "345345.55"
49
+ }, "numInput1")];
50
+ export const floatingLabel = () => /*#__PURE__*/_jsxs(Spacer, {
51
+ m: "r",
52
+ children: [/*#__PURE__*/_jsx(TextInput, {
61
53
  id: "textInput5",
62
- key: "textInput5",
63
54
  type: "text",
64
55
  label: "Full name",
65
56
  placeholder: "E.g. John Smith",
66
57
  floating: true
67
- }), /*#__PURE__*/React.createElement(TextInput, {
58
+ }, "textInput5"), /*#__PURE__*/_jsx(TextInput, {
68
59
  id: "textInput6",
69
- key: "textInput6",
70
60
  type: "text",
71
61
  label: "Full name - invalid message",
72
62
  placeholder: "E.g. John Smith",
73
63
  floating: true,
74
64
  invalid: true
75
- }), /*#__PURE__*/React.createElement(TextInput, {
65
+ }, "textInput6"), /*#__PURE__*/_jsx(TextInput, {
76
66
  id: "textInput7",
77
- key: "textInput7",
78
67
  type: "text",
79
68
  label: "Full name",
80
69
  placeholder: "E.g. John Smith",
81
70
  floating: true,
82
71
  valid: true
83
- }), /*#__PURE__*/React.createElement(TextInput, {
72
+ }, "textInput7"), /*#__PURE__*/_jsx(TextInput, {
84
73
  id: "textInput8",
85
- key: "textInput8",
86
74
  type: "text",
87
75
  label: "Full name",
88
76
  placeholder: "E.g. John Smith",
89
77
  floating: true,
90
78
  mandatory: true
91
- }));
92
- };
93
- export var withIcons = function withIcons() {
94
- return /*#__PURE__*/React.createElement(Spacer, {
95
- m: "r"
96
- }, /*#__PURE__*/React.createElement(TextInput, {
79
+ }, "textInput8")]
80
+ });
81
+ export const withIcons = () => /*#__PURE__*/_jsxs(Spacer, {
82
+ m: "r",
83
+ children: [/*#__PURE__*/_jsx(TextInput, {
97
84
  id: "textInput9",
98
- key: "textInput9",
99
85
  type: "text",
100
86
  label: "Phone number",
101
87
  placeholder: "E.g. (03) 9451 1786",
102
88
  iconLeft: ["fas", "phone"],
103
89
  "data-testid": "test-id"
104
- }), /*#__PURE__*/React.createElement(TextInput, {
90
+ }, "textInput9"), /*#__PURE__*/_jsx(TextInput, {
105
91
  id: "textInput10",
106
- key: "textInput10",
107
92
  type: "text",
108
93
  label: "Phone number",
109
94
  placeholder: "E.g. (03) 9451 1786",
110
95
  floating: true,
111
96
  iconLeft: ["fas", "phone"]
112
- }), /*#__PURE__*/React.createElement(TextInput, {
97
+ }, "textInput10"), /*#__PURE__*/_jsx(TextInput, {
113
98
  fullWidth: true,
114
99
  id: "textInput11",
115
- key: "textInput11",
116
100
  type: "text",
117
101
  label: "What are you looking for?",
118
102
  placeholder: "E.g. agile teams",
119
103
  iconRight: ["fas", "search"]
120
- }), /*#__PURE__*/React.createElement(TextInput, {
104
+ }, "textInput11"), /*#__PURE__*/_jsx(TextInput, {
121
105
  fullWidth: true,
122
106
  id: "textInput12",
123
- key: "textInput12",
124
107
  type: "text",
125
108
  label: "What are you looking for?",
126
109
  placeholder: "E.g. agile teams",
127
110
  floating: true,
128
111
  iconRight: ["fas", "search"]
129
- }));
130
- };
131
- export var disabled = function disabled() {
132
- return /*#__PURE__*/React.createElement(TextInput, {
133
- id: "textInput13",
134
- key: "textInput13",
135
- type: "text",
136
- label: "Full name",
137
- placeholder: "E.g. John Smith",
138
- my: "20px",
139
- value: "This is uneditable",
140
- disabled: true
141
- });
142
- };
112
+ }, "textInput12")]
113
+ });
114
+ export const disabled = () => /*#__PURE__*/_jsx(TextInput, {
115
+ id: "textInput13",
116
+ type: "text",
117
+ label: "Full name",
118
+ placeholder: "E.g. John Smith",
119
+ my: "20px",
120
+ value: "This is uneditable",
121
+ disabled: true
122
+ }, "textInput13");
143
123
  defaultTextInput.__docgenInfo = {
144
124
  "description": "",
145
125
  "methods": [],