@instructure/ui-text-input 8.26.2 → 8.26.4-snapshot-3
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 +17 -0
- package/es/TextInput/styles.js +1 -0
- package/lib/TextInput/styles.js +1 -0
- package/package.json +16 -16
- package/src/TextInput/props.ts +8 -5
- package/src/TextInput/styles.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TextInput/index.d.ts +6 -6
- package/types/TextInput/props.d.ts +5 -5
- package/types/TextInput/props.d.ts.map +1 -1
- package/types/TextInput/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
## [8.26.4-snapshot-3](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-3) (2022-07-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **ui-color-picker,ui-date-input,ui-date-time-input,ui-select,ui-simple-select,ui-text-input,ui-time-select:** before/after elements should inherit input color ([7daf257](https://github.com/instructure/instructure-ui/commit/7daf257a8ee491f84de2f00a56becd22636891e3))
|
|
22
|
+
|
|
6
23
|
## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @instructure/ui-text-input
|
package/es/TextInput/styles.js
CHANGED
|
@@ -139,6 +139,7 @@ const generateStyle = (componentTheme, props, state) => {
|
|
|
139
139
|
border: `${componentTheme.borderWidth} ${componentTheme.borderStyle} ${componentTheme.borderColor}`,
|
|
140
140
|
borderRadius: componentTheme.borderRadius,
|
|
141
141
|
background: componentTheme.background,
|
|
142
|
+
color: componentTheme.color,
|
|
142
143
|
'&::before': {
|
|
143
144
|
content: '""',
|
|
144
145
|
pointerEvents: 'none',
|
package/lib/TextInput/styles.js
CHANGED
|
@@ -146,6 +146,7 @@ const generateStyle = (componentTheme, props, state) => {
|
|
|
146
146
|
border: `${componentTheme.borderWidth} ${componentTheme.borderStyle} ${componentTheme.borderColor}`,
|
|
147
147
|
borderRadius: componentTheme.borderRadius,
|
|
148
148
|
background: componentTheme.background,
|
|
149
|
+
color: componentTheme.color,
|
|
149
150
|
'&::before': {
|
|
150
151
|
content: '""',
|
|
151
152
|
pointerEvents: 'none',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-text-input",
|
|
3
|
-
"version": "8.26.
|
|
3
|
+
"version": "8.26.4-snapshot-3",
|
|
4
4
|
"description": "A styled HTML text input component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,27 +23,27 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.26.
|
|
27
|
-
"@instructure/ui-badge": "8.26.
|
|
28
|
-
"@instructure/ui-color-utils": "8.26.
|
|
29
|
-
"@instructure/ui-test-utils": "8.26.
|
|
30
|
-
"@instructure/ui-themes": "8.26.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.26.4-snapshot-3",
|
|
27
|
+
"@instructure/ui-badge": "8.26.4-snapshot-3",
|
|
28
|
+
"@instructure/ui-color-utils": "8.26.4-snapshot-3",
|
|
29
|
+
"@instructure/ui-test-utils": "8.26.4-snapshot-3",
|
|
30
|
+
"@instructure/ui-themes": "8.26.4-snapshot-3"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.26.
|
|
35
|
-
"@instructure/shared-types": "8.26.
|
|
36
|
-
"@instructure/ui-dom-utils": "8.26.
|
|
37
|
-
"@instructure/ui-form-field": "8.26.
|
|
38
|
-
"@instructure/ui-icons": "8.26.
|
|
39
|
-
"@instructure/ui-prop-types": "8.26.
|
|
40
|
-
"@instructure/ui-react-utils": "8.26.
|
|
41
|
-
"@instructure/ui-tag": "8.26.
|
|
42
|
-
"@instructure/ui-testable": "8.26.
|
|
34
|
+
"@instructure/emotion": "8.26.4-snapshot-3",
|
|
35
|
+
"@instructure/shared-types": "8.26.4-snapshot-3",
|
|
36
|
+
"@instructure/ui-dom-utils": "8.26.4-snapshot-3",
|
|
37
|
+
"@instructure/ui-form-field": "8.26.4-snapshot-3",
|
|
38
|
+
"@instructure/ui-icons": "8.26.4-snapshot-3",
|
|
39
|
+
"@instructure/ui-prop-types": "8.26.4-snapshot-3",
|
|
40
|
+
"@instructure/ui-react-utils": "8.26.4-snapshot-3",
|
|
41
|
+
"@instructure/ui-tag": "8.26.4-snapshot-3",
|
|
42
|
+
"@instructure/ui-testable": "8.26.4-snapshot-3",
|
|
43
43
|
"prop-types": "^15"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"react": ">=16.8 <=
|
|
46
|
+
"react": ">=16.8 <=18"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
package/src/TextInput/props.ts
CHANGED
|
@@ -28,7 +28,6 @@ import PropTypes from 'prop-types'
|
|
|
28
28
|
import { FormPropTypes } from '@instructure/ui-form-field'
|
|
29
29
|
import { controllable } from '@instructure/ui-prop-types'
|
|
30
30
|
|
|
31
|
-
import type { InteractionType } from '@instructure/ui-react-utils'
|
|
32
31
|
import type { FormFieldProps, FormMessage } from '@instructure/ui-form-field'
|
|
33
32
|
import type {
|
|
34
33
|
OtherHTMLAttributes,
|
|
@@ -36,13 +35,17 @@ import type {
|
|
|
36
35
|
TextInputTheme
|
|
37
36
|
} from '@instructure/shared-types'
|
|
38
37
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
39
|
-
import type {
|
|
38
|
+
import type {
|
|
39
|
+
InteractionType,
|
|
40
|
+
WithDeterministicIdProps
|
|
41
|
+
} from '@instructure/ui-react-utils'
|
|
42
|
+
import { Renderable } from '@instructure/shared-types'
|
|
40
43
|
|
|
41
44
|
type TextInputOwnProps = {
|
|
42
45
|
/**
|
|
43
46
|
* The form field label.
|
|
44
47
|
*/
|
|
45
|
-
renderLabel?:
|
|
48
|
+
renderLabel?: Renderable
|
|
46
49
|
|
|
47
50
|
/**
|
|
48
51
|
* Determines the underlying native HTML `<input>` element's `type`.
|
|
@@ -146,12 +149,12 @@ type TextInputOwnProps = {
|
|
|
146
149
|
/**
|
|
147
150
|
* Content to display before the input text, such as an icon
|
|
148
151
|
*/
|
|
149
|
-
renderBeforeInput?:
|
|
152
|
+
renderBeforeInput?: Renderable
|
|
150
153
|
|
|
151
154
|
/**
|
|
152
155
|
* Content to display after the input text, such as an icon
|
|
153
156
|
*/
|
|
154
|
-
renderAfterInput?:
|
|
157
|
+
renderAfterInput?: Renderable
|
|
155
158
|
|
|
156
159
|
/**
|
|
157
160
|
* Callback executed when the input fires a change event.
|
package/src/TextInput/styles.ts
CHANGED
|
@@ -171,6 +171,8 @@ const generateStyle = (
|
|
|
171
171
|
border: `${componentTheme.borderWidth} ${componentTheme.borderStyle} ${componentTheme.borderColor}`,
|
|
172
172
|
borderRadius: componentTheme.borderRadius,
|
|
173
173
|
background: componentTheme.background,
|
|
174
|
+
color: componentTheme.color,
|
|
175
|
+
|
|
174
176
|
'&::before': {
|
|
175
177
|
content: '""',
|
|
176
178
|
pointerEvents: 'none',
|