@instructure/ui-form-field 10.7.0 → 10.7.1-snapshot-0

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
+ ## [10.7.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.7.1-snapshot-0) (2024-12-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-select,ui-text-input:** fix long before elements overflowing in TextInput, Select, SimpleSelect ([ee9cafd](https://github.com/instructure/instructure-ui/commit/ee9cafdd027b9a1caaa0791d1b6dc4f8401c87e7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-form-field
@@ -30,7 +30,6 @@ import { Component } from 'react';
30
30
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
31
31
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
32
32
  import { Grid } from '@instructure/ui-grid';
33
- import { logError as error } from '@instructure/console';
34
33
  import { omitProps, pickProps, getElementType, withDeterministicId } from '@instructure/ui-react-utils';
35
34
  import { withStyle, jsx } from '@instructure/emotion';
36
35
  import { FormFieldLabel } from '../FormFieldLabel';
@@ -60,8 +59,6 @@ let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateS
60
59
  }
61
60
  };
62
61
  this._messagesId = props.messagesId || props.deterministicId();
63
- error(typeof props.width !== 'undefined' || !props.inline || props.layout !== 'inline', `[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'.
64
- This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`);
65
62
  }
66
63
  componentDidMount() {
67
64
  var _this$props$makeStyle, _this$props;
@@ -10,7 +10,6 @@ var _react = require("react");
10
10
  var _hasVisibleChildren = require("@instructure/ui-a11y-utils/lib/hasVisibleChildren.js");
11
11
  var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
12
12
  var _Grid = require("@instructure/ui-grid/lib/Grid");
13
- var _console = require("@instructure/console");
14
13
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
15
14
  var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
16
15
  var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
@@ -69,8 +68,6 @@ let FormFieldLayout = exports.FormFieldLayout = (_dec = (0, _withDeterministicId
69
68
  }
70
69
  };
71
70
  this._messagesId = props.messagesId || props.deterministicId();
72
- (0, _console.logError)(typeof props.width !== 'undefined' || !props.inline || props.layout !== 'inline', `[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'.
73
- This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`);
74
71
  }
75
72
  componentDidMount() {
76
73
  var _this$props$makeStyle, _this$props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-form-field",
3
- "version": "10.7.0",
3
+ "version": "10.7.1-snapshot-0",
4
4
  "description": "Form layout components.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,26 +23,26 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "10.7.0",
27
- "@instructure/ui-babel-preset": "10.7.0",
28
- "@instructure/ui-test-utils": "10.7.0",
29
- "@instructure/ui-themes": "10.7.0",
26
+ "@instructure/ui-axe-check": "10.7.1-snapshot-0",
27
+ "@instructure/ui-babel-preset": "10.7.1-snapshot-0",
28
+ "@instructure/ui-test-utils": "10.7.1-snapshot-0",
29
+ "@instructure/ui-themes": "10.7.1-snapshot-0",
30
30
  "@testing-library/jest-dom": "^6.4.6",
31
31
  "@testing-library/react": "^16.0.1",
32
32
  "vitest": "^2.1.1"
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.25.6",
36
- "@instructure/console": "10.7.0",
37
- "@instructure/emotion": "10.7.0",
38
- "@instructure/shared-types": "10.7.0",
39
- "@instructure/ui-a11y-content": "10.7.0",
40
- "@instructure/ui-a11y-utils": "10.7.0",
41
- "@instructure/ui-grid": "10.7.0",
42
- "@instructure/ui-icons": "10.7.0",
43
- "@instructure/ui-react-utils": "10.7.0",
44
- "@instructure/ui-utils": "10.7.0",
45
- "@instructure/uid": "10.7.0",
36
+ "@instructure/console": "10.7.1-snapshot-0",
37
+ "@instructure/emotion": "10.7.1-snapshot-0",
38
+ "@instructure/shared-types": "10.7.1-snapshot-0",
39
+ "@instructure/ui-a11y-content": "10.7.1-snapshot-0",
40
+ "@instructure/ui-a11y-utils": "10.7.1-snapshot-0",
41
+ "@instructure/ui-grid": "10.7.1-snapshot-0",
42
+ "@instructure/ui-icons": "10.7.1-snapshot-0",
43
+ "@instructure/ui-react-utils": "10.7.1-snapshot-0",
44
+ "@instructure/ui-utils": "10.7.1-snapshot-0",
45
+ "@instructure/uid": "10.7.1-snapshot-0",
46
46
  "prop-types": "^15.8.1"
47
47
  },
48
48
  "peerDependencies": {
@@ -28,7 +28,6 @@ import { Component } from 'react'
28
28
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
29
29
  import { ScreenReaderContent } from '@instructure/ui-a11y-content'
30
30
  import { Grid } from '@instructure/ui-grid'
31
- import { logError as error } from '@instructure/console'
32
31
  import {
33
32
  omitProps,
34
33
  pickProps,
@@ -67,16 +66,7 @@ class FormFieldLayout extends Component<FormFieldLayoutProps> {
67
66
 
68
67
  constructor(props: FormFieldLayoutProps) {
69
68
  super(props)
70
-
71
69
  this._messagesId = props.messagesId || props.deterministicId!()
72
-
73
- error(
74
- typeof props.width !== 'undefined' ||
75
- !props.inline ||
76
- props.layout !== 'inline',
77
- `[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'.
78
- This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`
79
- )
80
70
  }
81
71
 
82
72
  private _messagesId: string
@@ -212,7 +202,9 @@ class FormFieldLayout extends Component<FormFieldLayoutProps> {
212
202
  elementRef={this.handleInputContainerRef}
213
203
  >
214
204
  {hasNewErrorMsg && (
215
- <div css={styles?.groupErrorMessage}>{this.renderVisibleMessages()}</div>
205
+ <div css={styles?.groupErrorMessage}>
206
+ {this.renderVisibleMessages()}
207
+ </div>
216
208
  )}
217
209
  {children}
218
210
  </Grid.Col>