@instructure/ui-text-input 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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 CHANGED
@@ -3,6 +3,17 @@
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
+ ## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-text-input:** restore inline cursor flow next to selected tags ([3dd1736](https://github.com/instructure/instructure-ui/commit/3dd1736173ff089970bbbd175bda81faa02895f7))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
18
 
8
19
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['renderLabel', 'type', 'id', 'value', 'defaultValue', 'interaction', 'messages', 'size', 'textAlign', 'width', 'htmlSize', 'display', 'shouldNotWrap', 'placeholder', 'isRequired', 'elementRef', 'inputRef', 'inputContainerRef', 'renderBeforeInput', 'renderAfterInput', 'onChange', 'onBlur', 'onFocus', 'margin'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -29,9 +29,10 @@ import { isActiveElement, addEventListener, getCSSStyleDeclaration } from '@inst
29
29
  import { FormField } from '@instructure/ui-form-field/v11_6';
30
30
  import { withStyle } from '@instructure/emotion';
31
31
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
32
- import generateStyle from "./styles.js";
33
- import generateComponentTheme from "./theme.js";
34
- import { allowedProps } from "./props.js";
32
+ import generateStyle from './styles.js';
33
+ import generateComponentTheme from './theme.js';
34
+ import { allowedProps } from './props.js';
35
+
35
36
  /**
36
37
  ---
37
38
  category: components
@@ -40,7 +41,7 @@ tags: form, field
40
41
  **/
41
42
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
42
43
  let TextInput = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class TextInput extends Component {
43
- static displayName = "TextInput";
44
+ static displayName = 'TextInput';
44
45
  static componentId = 'TextInput';
45
46
  static allowedProps = allowedProps;
46
47
  static defaultProps = {
@@ -28,8 +28,8 @@ import { callRenderProp, getInteraction, passthroughProps, withDeterministicId,
28
28
  import { isActiveElement, addEventListener } from '@instructure/ui-dom-utils';
29
29
  import { FormField } from '@instructure/ui-form-field/latest';
30
30
  import { withStyleNew } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
34
34
  /**
35
35
  ---
@@ -38,7 +38,7 @@ tags: form, field, input
38
38
  ---
39
39
  **/
40
40
  let TextInput = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class TextInput extends Component {
41
- static displayName = "TextInput";
41
+ static displayName = 'TextInput';
42
42
  static componentId = 'TextInput';
43
43
  static allowedProps = allowedProps;
44
44
  static defaultProps = {
@@ -203,8 +203,10 @@ const generateStyle = (componentTheme, props, sharedTokens, state) => {
203
203
  flexDirection: 'row'
204
204
  },
205
205
  beforeElement: {
206
- ...(interaction === 'disabled' && {
206
+ ...(interaction === 'disabled' ? {
207
207
  opacity: 0.5
208
+ } : {
209
+ display: 'contents'
208
210
  }),
209
211
  label: 'textInput__beforeElement'
210
212
  },
package/es/exports/a.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { TextInput } from "../TextInput/v1/index.js";
24
+ export { TextInput } from '../TextInput/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { TextInput } from "../TextInput/v2/index.js";
24
+ export { TextInput } from '../TextInput/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-text-input",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A styled HTML text input component.",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -18,21 +18,21 @@
18
18
  "@testing-library/react": "15.0.7",
19
19
  "@testing-library/user-event": "^14.6.1",
20
20
  "vitest": "^3.2.2",
21
- "@instructure/ui-babel-preset": "11.7.3",
22
- "@instructure/ui-axe-check": "11.7.3",
23
- "@instructure/ui-color-utils": "11.7.3",
24
- "@instructure/ui-badge": "11.7.3"
21
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-badge": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229"
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.29.2",
28
- "@instructure/emotion": "11.7.3",
29
- "@instructure/shared-types": "11.7.3",
30
- "@instructure/ui-a11y-utils": "11.7.3",
31
- "@instructure/ui-dom-utils": "11.7.3",
32
- "@instructure/ui-form-field": "11.7.3",
33
- "@instructure/ui-react-utils": "11.7.3",
34
- "@instructure/ui-tag": "11.7.3",
35
- "@instructure/ui-themes": "11.7.3"
28
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
29
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
30
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
31
+ "@instructure/ui-a11y-utils": "11.7.4-pr-snapshot-1781695314229",
32
+ "@instructure/ui-form-field": "11.7.4-pr-snapshot-1781695314229",
33
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
34
+ "@instructure/ui-tag": "11.7.4-pr-snapshot-1781695314229",
35
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=18 <=19"
@@ -42,7 +42,6 @@
42
42
  },
43
43
  "sideEffects": false,
44
44
  "exports": {
45
- "./lib/*": "./lib/*",
46
45
  "./es/*": "./es/*",
47
46
  "./types/*": "./types/*",
48
47
  "./package.json": "./package.json",
@@ -51,28 +50,24 @@
51
50
  "src": "./src/exports/a.ts",
52
51
  "types": "./types/exports/a.d.ts",
53
52
  "import": "./es/exports/a.js",
54
- "require": "./lib/exports/a.js",
55
53
  "default": "./es/exports/a.js"
56
54
  },
57
55
  "./v11_6": {
58
56
  "src": "./src/exports/a.ts",
59
57
  "types": "./types/exports/a.d.ts",
60
58
  "import": "./es/exports/a.js",
61
- "require": "./lib/exports/a.js",
62
59
  "default": "./es/exports/a.js"
63
60
  },
64
61
  "./v11_7": {
65
62
  "src": "./src/exports/b.ts",
66
63
  "types": "./types/exports/b.d.ts",
67
64
  "import": "./es/exports/b.js",
68
- "require": "./lib/exports/b.js",
69
65
  "default": "./es/exports/b.js"
70
66
  },
71
67
  "./latest": {
72
68
  "src": "./src/exports/b.ts",
73
69
  "types": "./types/exports/b.d.ts",
74
70
  "import": "./es/exports/b.js",
75
- "require": "./lib/exports/b.js",
76
71
  "default": "./es/exports/b.js"
77
72
  }
78
73
  },
@@ -80,7 +75,7 @@
80
75
  "lint": "ui-scripts lint",
81
76
  "lint:fix": "ui-scripts lint --fix",
82
77
  "clean": "ui-scripts clean",
83
- "build": "ui-scripts build --modules es,cjs",
78
+ "build": "ui-scripts build",
84
79
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
85
80
  "build:types": "tsc -p tsconfig.build.json",
86
81
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -39,14 +39,14 @@ import { FormField } from '@instructure/ui-form-field/v11_6'
39
39
  import { withStyle } from '@instructure/emotion'
40
40
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
41
41
 
42
- import generateStyle from './styles'
43
- import generateComponentTheme from './theme'
42
+ import generateStyle from './styles.js'
43
+ import generateComponentTheme from './theme.js'
44
44
  import type {
45
45
  TextInputProps,
46
46
  TextInputState,
47
47
  TextInputStyleProps
48
48
  } from './props'
49
- import { allowedProps } from './props'
49
+ import { allowedProps } from './props.js'
50
50
 
51
51
  /**
52
52
  ---
@@ -57,6 +57,7 @@ tags: form, field
57
57
  @withDeterministicId()
58
58
  @withStyle(generateStyle, generateComponentTheme)
59
59
  class TextInput extends Component<TextInputProps, TextInputState> {
60
+ static displayName = 'TextInput'
60
61
  static readonly componentId = 'TextInput'
61
62
 
62
63
  static allowedProps = allowedProps
@@ -35,9 +35,9 @@ import { isActiveElement, addEventListener } from '@instructure/ui-dom-utils'
35
35
  import { FormField } from '@instructure/ui-form-field/latest'
36
36
  import { withStyleNew } from '@instructure/emotion'
37
37
 
38
- import generateStyle from './styles'
38
+ import generateStyle from './styles.js'
39
39
  import type { TextInputProps, TextInputStyleProps } from './props'
40
- import { allowedProps } from './props'
40
+ import { allowedProps } from './props.js'
41
41
  import type { Renderable } from '@instructure/shared-types'
42
42
 
43
43
  /**
@@ -49,6 +49,7 @@ tags: form, field, input
49
49
  @withDeterministicId()
50
50
  @withStyleNew(generateStyle)
51
51
  class TextInput extends Component<TextInputProps> {
52
+ static displayName = 'TextInput'
52
53
  static readonly componentId = 'TextInput'
53
54
 
54
55
  static allowedProps = allowedProps
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes'
26
- import { TextInputProps, TextInputStyle, TextInputStyleProps } from './props'
26
+ import { TextInputProps, TextInputStyle, TextInputStyleProps } from './props.js'
27
27
  import { calcFocusOutlineStyles } from '@instructure/emotion'
28
28
 
29
29
  /**
@@ -206,7 +206,9 @@ const generateStyle = (
206
206
  flexDirection: 'row'
207
207
  },
208
208
  beforeElement: {
209
- ...(interaction === 'disabled' && { opacity: 0.5 }),
209
+ ...(interaction === 'disabled'
210
+ ? { opacity: 0.5 }
211
+ : { display: 'contents' }),
210
212
  label: 'textInput__beforeElement'
211
213
  },
212
214
  afterElement: {
package/src/exports/a.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { TextInput } from '../TextInput/v1'
24
+ export { TextInput } from '../TextInput/v1/index.js'
25
25
  export type { TextInputProps } from '../TextInput/v1/props'
package/src/exports/b.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { TextInput } from '../TextInput/v2'
24
+ export { TextInput } from '../TextInput/v2/index.js'
25
25
  export type { TextInputProps } from '../TextInput/v2/props'