@instructure/ui-text-area 10.3.0 → 10.3.1-snapshot-2
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/CHANGELOG.md +8 -0
- package/package.json +16 -16
- package/src/TextArea/README.md +27 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.3.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.3.1-snapshot-2) (2024-10-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-text-area
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.3.0](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.3.0) (2024-10-03)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-text-area
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-text-area",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.1-snapshot-2",
|
|
4
4
|
"description": "A styled HTML text area component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.25.6",
|
|
27
|
-
"@instructure/debounce": "10.3.
|
|
28
|
-
"@instructure/emotion": "10.3.
|
|
29
|
-
"@instructure/shared-types": "10.3.
|
|
30
|
-
"@instructure/ui-dom-utils": "10.3.
|
|
31
|
-
"@instructure/ui-form-field": "10.3.
|
|
32
|
-
"@instructure/ui-prop-types": "10.3.
|
|
33
|
-
"@instructure/ui-react-utils": "10.3.
|
|
34
|
-
"@instructure/ui-testable": "10.3.
|
|
35
|
-
"@instructure/ui-utils": "10.3.
|
|
36
|
-
"@instructure/uid": "10.3.
|
|
27
|
+
"@instructure/debounce": "10.3.1-snapshot-2",
|
|
28
|
+
"@instructure/emotion": "10.3.1-snapshot-2",
|
|
29
|
+
"@instructure/shared-types": "10.3.1-snapshot-2",
|
|
30
|
+
"@instructure/ui-dom-utils": "10.3.1-snapshot-2",
|
|
31
|
+
"@instructure/ui-form-field": "10.3.1-snapshot-2",
|
|
32
|
+
"@instructure/ui-prop-types": "10.3.1-snapshot-2",
|
|
33
|
+
"@instructure/ui-react-utils": "10.3.1-snapshot-2",
|
|
34
|
+
"@instructure/ui-testable": "10.3.1-snapshot-2",
|
|
35
|
+
"@instructure/ui-utils": "10.3.1-snapshot-2",
|
|
36
|
+
"@instructure/uid": "10.3.1-snapshot-2",
|
|
37
37
|
"prop-types": "^15.8.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@instructure/ui-axe-check": "10.3.
|
|
41
|
-
"@instructure/ui-babel-preset": "10.3.
|
|
42
|
-
"@instructure/ui-color-utils": "10.3.
|
|
43
|
-
"@instructure/ui-test-utils": "10.3.
|
|
44
|
-
"@instructure/ui-themes": "10.3.
|
|
40
|
+
"@instructure/ui-axe-check": "10.3.1-snapshot-2",
|
|
41
|
+
"@instructure/ui-babel-preset": "10.3.1-snapshot-2",
|
|
42
|
+
"@instructure/ui-color-utils": "10.3.1-snapshot-2",
|
|
43
|
+
"@instructure/ui-test-utils": "10.3.1-snapshot-2",
|
|
44
|
+
"@instructure/ui-themes": "10.3.1-snapshot-2",
|
|
45
45
|
"@testing-library/jest-dom": "^6.4.6",
|
|
46
46
|
"@testing-library/react": "^16.0.1",
|
|
47
47
|
"@testing-library/user-event": "^14.5.2",
|
package/src/TextArea/README.md
CHANGED
|
@@ -81,29 +81,43 @@ type: example
|
|
|
81
81
|
|
|
82
82
|
A 'controlled' TextArea:
|
|
83
83
|
|
|
84
|
-
```js
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
- ```js
|
|
85
|
+
class Example extends React.Component {
|
|
86
|
+
state = { description: 'Hello World' }
|
|
87
|
+
|
|
88
|
+
handleChange = (e) => this.setState({ description: e.target.value })
|
|
89
|
+
|
|
90
|
+
render() {
|
|
91
|
+
return (
|
|
92
|
+
<TextArea
|
|
93
|
+
label="Description"
|
|
94
|
+
value={this.state.description}
|
|
95
|
+
onChange={this.handleChange}
|
|
96
|
+
/>
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
render(<Example />)
|
|
102
|
+
```
|
|
88
103
|
|
|
89
|
-
|
|
90
|
-
|
|
104
|
+
- ```js
|
|
105
|
+
const Example = () => {
|
|
106
|
+
const [description, setDescription] = useState('Hello World')
|
|
91
107
|
|
|
92
|
-
|
|
108
|
+
const handleChange = (e) => setDescription(e.target.value)
|
|
93
109
|
|
|
94
|
-
render () {
|
|
95
110
|
return (
|
|
96
111
|
<TextArea
|
|
97
112
|
label="Description"
|
|
98
|
-
value={
|
|
99
|
-
onChange={
|
|
113
|
+
value={description}
|
|
114
|
+
onChange={handleChange}
|
|
100
115
|
/>
|
|
101
116
|
)
|
|
102
117
|
}
|
|
103
|
-
}
|
|
104
118
|
|
|
105
|
-
render(<Example/>)
|
|
106
|
-
```
|
|
119
|
+
render(<Example />)
|
|
120
|
+
```
|
|
107
121
|
|
|
108
122
|
### Guidelines
|
|
109
123
|
|