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.
- package/es/GlobalStyles.js +1 -31
- package/es/SystemThemeProvider.js +11 -5
- package/es/assets/Colour/Colour.stories.js +211 -0
- package/es/assets/Colour/index.js +3 -3
- package/es/components/ActionsMenu/ActionsMenu.stories.js +260 -233
- package/es/components/ActionsMenu/index.js +144 -229
- package/es/components/Avatar/Avatar.stories.js +212 -196
- package/es/components/Avatar/index.js +280 -307
- package/es/components/Badge/Badge.stories.js +71 -46
- package/es/components/Badge/index.js +71 -74
- package/es/components/Box/Box.stories.js +51 -35
- package/es/components/Box/index.js +33 -34
- package/es/components/Button/Button.stories.js +161 -145
- package/es/components/Button/ButtonLink.stories.js +152 -139
- package/es/components/Button/index.js +79 -99
- package/es/components/ButtonGroup/ButtonGroup.stories.js +43 -42
- package/es/components/ButtonGroup/ButtonGroupItem.stories.js +11 -13
- package/es/components/ButtonGroup/index.js +103 -99
- package/es/components/Card/Card.stories.js +94 -62
- package/es/components/Card/index.js +50 -71
- package/es/components/Checkbox/Checkbox.stories.js +37 -43
- package/es/components/Checkbox/index.js +61 -76
- package/es/components/DatePicker/DatePicker.stories.js +86 -118
- package/es/components/DatePicker/index.js +71 -187
- package/es/components/Divider/Divider.stories.js +39 -42
- package/es/components/Divider/index.js +21 -27
- package/es/components/Expandable/Expandable.stories.js +46 -36
- package/es/components/Expandable/index.js +55 -82
- package/es/components/Flex/Flex.stories.js +19 -5
- package/es/components/Flex/FlexItem.stories.js +10 -9
- package/es/components/Flex/index.js +34 -27
- package/es/components/Grid/Grid.stories.js +129 -55
- package/es/components/Grid/index.js +25 -24
- package/es/components/Header/Header.stories.js +101 -92
- package/es/components/Header/index.js +433 -436
- package/es/components/HeaderSimple/HeaderSimple.stories.js +23 -27
- package/es/components/HeaderSimple/index.js +73 -68
- package/es/components/Icon/Icon.stories.js +58 -57
- package/es/components/Icon/index.js +48 -46
- package/es/components/Loading/Loading.stories.js +32 -39
- package/es/components/Loading/index.js +44 -51
- package/es/components/Modal/Modal.stories.js +172 -153
- package/es/components/Modal/index.js +126 -134
- package/es/components/Notification/Notification.stories.js +59 -58
- package/es/components/Notification/index.js +123 -133
- package/es/components/Popover/Popover.stories.js +134 -102
- package/es/components/Popover/index.js +65 -111
- package/es/components/ProgressBar/ProgressBar.stories.js +36 -39
- package/es/components/ProgressBar/index.js +29 -34
- package/es/components/RadioButton/RadioButton.stories.js +32 -37
- package/es/components/RadioButton/index.js +170 -184
- package/es/components/Range/Range.stories.js +19 -19
- package/es/components/Range/index.js +35 -45
- package/es/components/Select/Select.stories.js +107 -128
- package/es/components/Select/index.js +324 -336
- package/es/components/SideNav/NavItem.js +112 -122
- package/es/components/SideNav/SideNav.stories.js +84 -57
- package/es/components/SideNav/index.js +161 -185
- package/es/components/Sidebar/Sidebar.stories.js +50 -33
- package/es/components/Sidebar/index.js +152 -155
- package/es/components/Spacer/Spacer.stories.js +35 -32
- package/es/components/Spacer/index.js +20 -20
- package/es/components/StatusDot/StatusDot.stories.js +103 -90
- package/es/components/StatusDot/index.js +36 -38
- package/es/components/StyledLink/StyledLink.stories.js +68 -69
- package/es/components/StyledLink/index.js +47 -48
- package/es/components/Table/Table.stories.js +118 -112
- package/es/components/Table/getExpandColumnConfig.js +67 -62
- package/es/components/Table/index.js +24 -27
- package/es/components/Table/muiStyleOverrides.js +10 -8
- package/es/components/Tabs/Tab.stories.js +55 -38
- package/es/components/Tabs/TabsContainer.stories.js +30 -22
- package/es/components/Tabs/index.js +95 -92
- package/es/components/Tag/Tag.stories.js +250 -220
- package/es/components/Tag/index.js +118 -190
- package/es/components/TextArea/TextArea.stories.js +76 -89
- package/es/components/TextArea/index.js +117 -115
- package/es/components/TextInput/TextInput.stories.js +41 -61
- package/es/components/TextInput/index.js +127 -171
- package/es/components/Toggle/Toggle.stories.js +63 -62
- package/es/components/Toggle/index.js +43 -77
- package/es/components/TreeNav/TreeNav.stories.js +7 -8
- package/es/components/TreeNav/index.js +72 -69
- package/es/components/Typography/Typography.stories.js +174 -0
- package/es/components/Typography/index.js +252 -308
- package/es/components.test.js +1 -1
- package/es/hooks/isVisible.js +6 -10
- package/es/hooks/keepInView.js +27 -32
- package/es/hooks/keypress.js +14 -14
- package/es/hooks/useInputFocus.js +5 -5
- package/es/hooks/usePrevious.js +3 -3
- package/es/systemThemeCollapsed.js +53 -53
- package/es/systemtheme.js +53 -53
- package/es/utils/selectUtil.js +1 -1
- package/es/utils/selectUtil.test.js +6 -6
- 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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
})(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
})(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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:
|
|
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(
|
|
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
|
|
9
|
-
|
|
10
|
-
|
|
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__*/
|
|
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__*/
|
|
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__*/
|
|
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
|
-
|
|
40
|
+
const numberProps = {
|
|
45
41
|
decimalScale: 2,
|
|
46
42
|
prefix: "$"
|
|
47
43
|
};
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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__*/
|
|
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__*/
|
|
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__*/
|
|
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
|
|
94
|
-
|
|
95
|
-
|
|
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__*/
|
|
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__*/
|
|
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__*/
|
|
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
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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": [],
|