@instructure/ui-form-field 10.5.0 → 10.5.1-snapshot-1

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.5.1-snapshot-1](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.5.1-snapshot-1) (2024-11-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **many:** fix regression where form elements without label got misaligned ([139f7f1](https://github.com/instructure/instructure-ui/commit/139f7f130cd7e8372af869a13cfd50cd6a97fd85))
12
+
13
+
14
+
15
+
16
+
6
17
  # [10.5.0](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.5.0) (2024-11-07)
7
18
 
8
19
 
@@ -36,7 +36,7 @@ const generateStyle = (_componentTheme, props) => {
36
36
  const inline = props.inline;
37
37
  return {
38
38
  groupErrorMessage: {
39
- margin: '0.5rem'
39
+ margin: '0.5rem 0'
40
40
  },
41
41
  formFieldLayout: {
42
42
  label: 'formFieldLayout',
@@ -42,7 +42,7 @@ const generateStyle = (_componentTheme, props) => {
42
42
  const inline = props.inline;
43
43
  return {
44
44
  groupErrorMessage: {
45
- margin: '0.5rem'
45
+ margin: '0.5rem 0'
46
46
  },
47
47
  formFieldLayout: {
48
48
  label: 'formFieldLayout',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-form-field",
3
- "version": "10.5.0",
3
+ "version": "10.5.1-snapshot-1",
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.5.0",
27
- "@instructure/ui-babel-preset": "10.5.0",
28
- "@instructure/ui-test-utils": "10.5.0",
29
- "@instructure/ui-themes": "10.5.0",
26
+ "@instructure/ui-axe-check": "10.5.1-snapshot-1",
27
+ "@instructure/ui-babel-preset": "10.5.1-snapshot-1",
28
+ "@instructure/ui-test-utils": "10.5.1-snapshot-1",
29
+ "@instructure/ui-themes": "10.5.1-snapshot-1",
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.5.0",
37
- "@instructure/emotion": "10.5.0",
38
- "@instructure/shared-types": "10.5.0",
39
- "@instructure/ui-a11y-content": "10.5.0",
40
- "@instructure/ui-a11y-utils": "10.5.0",
41
- "@instructure/ui-grid": "10.5.0",
42
- "@instructure/ui-icons": "10.5.0",
43
- "@instructure/ui-react-utils": "10.5.0",
44
- "@instructure/ui-utils": "10.5.0",
45
- "@instructure/uid": "10.5.0",
36
+ "@instructure/console": "10.5.1-snapshot-1",
37
+ "@instructure/emotion": "10.5.1-snapshot-1",
38
+ "@instructure/shared-types": "10.5.1-snapshot-1",
39
+ "@instructure/ui-a11y-content": "10.5.1-snapshot-1",
40
+ "@instructure/ui-a11y-utils": "10.5.1-snapshot-1",
41
+ "@instructure/ui-grid": "10.5.1-snapshot-1",
42
+ "@instructure/ui-icons": "10.5.1-snapshot-1",
43
+ "@instructure/ui-react-utils": "10.5.1-snapshot-1",
44
+ "@instructure/ui-utils": "10.5.1-snapshot-1",
45
+ "@instructure/uid": "10.5.1-snapshot-1",
46
46
  "prop-types": "^15.8.1"
47
47
  },
48
48
  "peerDependencies": {
@@ -43,7 +43,7 @@ type FormFieldOwnProps = {
43
43
  /**
44
44
  * Array of objects with shape: `{
45
45
  * text: React.ReactNode,
46
- * type: One of: ['error', 'hint', 'success', 'screenreader-only']
46
+ * type: One of: ['newError', 'error', 'hint', 'success', 'screenreader-only']
47
47
  * }`
48
48
  */
49
49
  messages?: FormMessage[]
@@ -45,7 +45,7 @@ type FormFieldGroupOwnProps = {
45
45
  /**
46
46
  * Array of objects with shape: `{
47
47
  * text: React.ReactNode,
48
- * type: One of: ['error', 'hint', 'success', 'screenreader-only']
48
+ * type: One of: ['newError', 'error', 'hint', 'success', 'screenreader-only']
49
49
  * }`
50
50
  */
51
51
  messages?: FormMessage[]
@@ -48,7 +48,7 @@ type FormFieldLayoutOwnProps = {
48
48
  /**
49
49
  * Array of objects with shape: `{
50
50
  * text: React.ReactNode,
51
- * type: One of: ['error', 'hint', 'success', 'screenreader-only']
51
+ * type: One of: ['newError', 'error', 'hint', 'success', 'screenreader-only']
52
52
  * }`
53
53
  */
54
54
  messages?: FormMessage[]
@@ -79,7 +79,9 @@ type FormFieldLayoutProps = FormFieldLayoutOwnProps &
79
79
  OtherHTMLAttributes<FormFieldLayoutOwnProps> &
80
80
  WithDeterministicIdProps
81
81
 
82
- type FormFieldLayoutStyle = ComponentStyle<'formFieldLayout' | 'groupErrorMessage'>
82
+ type FormFieldLayoutStyle = ComponentStyle<
83
+ 'formFieldLayout' | 'groupErrorMessage'
84
+ >
83
85
 
84
86
  const propTypes: PropValidators<PropKeys> = {
85
87
  label: PropTypes.node.isRequired,
@@ -42,7 +42,7 @@ const generateStyle = (
42
42
 
43
43
  return {
44
44
  groupErrorMessage: {
45
- margin: '0.5rem',
45
+ margin: '0.5rem 0',
46
46
  },
47
47
  formFieldLayout: {
48
48
  label: 'formFieldLayout',
@@ -38,7 +38,7 @@ type FormFieldMessagesOwnProps = {
38
38
  /**
39
39
  * Array of objects with shape: `{
40
40
  * text: React.ReactNode,
41
- * type: One of: ['error', 'hint', 'success', 'screenreader-only']
41
+ * type: One of: ['newError', 'error', 'hint', 'success', 'screenreader-only']
42
42
  * }`
43
43
  */
44
44
  messages?: FormMessage[]