@instructure/ui-form-field 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.
Files changed (119) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/LICENSE.md +1 -0
  3. package/README.md +0 -1
  4. package/{lib/FormFieldLabel/v2/props.js → babel.config.cjs} +12 -7
  5. package/es/FormField/v1/index.js +3 -3
  6. package/es/FormField/v2/index.js +4 -4
  7. package/es/FormFieldGroup/v1/index.js +6 -7
  8. package/es/FormFieldGroup/v2/index.js +19 -12
  9. package/es/FormFieldLabel/v1/index.js +4 -4
  10. package/es/FormFieldLayout/v1/index.js +6 -5
  11. package/es/FormFieldLayout/v2/index.js +3 -3
  12. package/es/FormFieldMessage/v1/index.js +4 -4
  13. package/es/FormFieldMessage/v2/index.js +1 -1
  14. package/es/FormFieldMessages/v1/index.js +5 -5
  15. package/es/FormFieldMessages/v2/index.js +4 -4
  16. package/es/exports/a.js +7 -6
  17. package/es/exports/b.js +6 -6
  18. package/package.json +16 -21
  19. package/src/FormField/v1/index.tsx +3 -2
  20. package/src/FormField/v2/index.tsx +4 -3
  21. package/src/FormFieldGroup/v1/index.tsx +6 -5
  22. package/src/FormFieldGroup/v2/index.tsx +28 -15
  23. package/src/FormFieldGroup/v2/props.ts +2 -1
  24. package/src/FormFieldLabel/v1/index.tsx +4 -3
  25. package/src/FormFieldLayout/v1/index.tsx +5 -4
  26. package/src/FormFieldLayout/v2/index.tsx +3 -3
  27. package/src/FormFieldMessage/v1/index.tsx +4 -3
  28. package/src/FormFieldMessage/v2/index.tsx +1 -1
  29. package/src/FormFieldMessages/v1/index.tsx +5 -4
  30. package/src/FormFieldMessages/v2/index.tsx +4 -3
  31. package/src/exports/a.ts +6 -6
  32. package/src/exports/b.ts +5 -7
  33. package/tsconfig.build.tsbuildinfo +1 -1
  34. package/types/FormField/v1/index.d.ts +2 -1
  35. package/types/FormField/v1/index.d.ts.map +1 -1
  36. package/types/FormField/v2/index.d.ts +2 -1
  37. package/types/FormField/v2/index.d.ts.map +1 -1
  38. package/types/FormFieldGroup/v1/index.d.ts +2 -1
  39. package/types/FormFieldGroup/v1/index.d.ts.map +1 -1
  40. package/types/FormFieldGroup/v2/index.d.ts +2 -1
  41. package/types/FormFieldGroup/v2/index.d.ts.map +1 -1
  42. package/types/FormFieldGroup/v2/props.d.ts +2 -1
  43. package/types/FormFieldGroup/v2/props.d.ts.map +1 -1
  44. package/types/FormFieldLabel/v1/index.d.ts +1 -0
  45. package/types/FormFieldLabel/v1/index.d.ts.map +1 -1
  46. package/types/FormFieldLayout/v1/index.d.ts +4 -3
  47. package/types/FormFieldLayout/v1/index.d.ts.map +1 -1
  48. package/types/FormFieldLayout/v2/index.d.ts +2 -2
  49. package/types/FormFieldLayout/v2/index.d.ts.map +1 -1
  50. package/types/FormFieldMessage/v1/index.d.ts +3 -2
  51. package/types/FormFieldMessage/v1/index.d.ts.map +1 -1
  52. package/types/FormFieldMessage/v2/index.d.ts +2 -2
  53. package/types/FormFieldMessages/v1/index.d.ts +2 -1
  54. package/types/FormFieldMessages/v1/index.d.ts.map +1 -1
  55. package/types/FormFieldMessages/v2/index.d.ts +2 -1
  56. package/types/FormFieldMessages/v2/index.d.ts.map +1 -1
  57. package/types/exports/a.d.ts +6 -6
  58. package/types/exports/a.d.ts.map +1 -1
  59. package/types/exports/b.d.ts +5 -7
  60. package/types/exports/b.d.ts.map +1 -1
  61. package/es/FormFieldLabel/v2/index.js +0 -83
  62. package/es/FormFieldLabel/v2/props.js +0 -26
  63. package/es/FormFieldLabel/v2/styles.js +0 -64
  64. package/es/FormFieldLabel/v2/theme.js +0 -53
  65. package/lib/FormField/v1/index.js +0 -80
  66. package/lib/FormField/v1/props.js +0 -31
  67. package/lib/FormField/v2/index.js +0 -84
  68. package/lib/FormField/v2/props.js +0 -31
  69. package/lib/FormFieldGroup/v1/index.js +0 -149
  70. package/lib/FormFieldGroup/v1/props.js +0 -31
  71. package/lib/FormFieldGroup/v1/styles.js +0 -66
  72. package/lib/FormFieldGroup/v1/theme.js +0 -54
  73. package/lib/FormFieldGroup/v2/index.js +0 -139
  74. package/lib/FormFieldGroup/v2/props.js +0 -31
  75. package/lib/FormFieldGroup/v2/styles.js +0 -56
  76. package/lib/FormFieldLabel/v1/index.js +0 -89
  77. package/lib/FormFieldLabel/v1/props.js +0 -31
  78. package/lib/FormFieldLabel/v1/styles.js +0 -70
  79. package/lib/FormFieldLabel/v1/theme.js +0 -59
  80. package/lib/FormFieldLabel/v2/index.js +0 -89
  81. package/lib/FormFieldLabel/v2/styles.js +0 -70
  82. package/lib/FormFieldLabel/v2/theme.js +0 -59
  83. package/lib/FormFieldLayout/v1/index.js +0 -195
  84. package/lib/FormFieldLayout/v1/props.js +0 -31
  85. package/lib/FormFieldLayout/v1/styles.js +0 -174
  86. package/lib/FormFieldLayout/v1/theme.js +0 -64
  87. package/lib/FormFieldLayout/v2/index.js +0 -209
  88. package/lib/FormFieldLayout/v2/props.js +0 -31
  89. package/lib/FormFieldLayout/v2/styles.js +0 -181
  90. package/lib/FormFieldMessage/v1/index.js +0 -97
  91. package/lib/FormFieldMessage/v1/props.js +0 -31
  92. package/lib/FormFieldMessage/v1/styles.js +0 -77
  93. package/lib/FormFieldMessage/v1/theme.js +0 -63
  94. package/lib/FormFieldMessage/v2/index.js +0 -101
  95. package/lib/FormFieldMessage/v2/props.js +0 -31
  96. package/lib/FormFieldMessage/v2/styles.js +0 -77
  97. package/lib/FormFieldMessages/v1/index.js +0 -94
  98. package/lib/FormFieldMessages/v1/props.js +0 -31
  99. package/lib/FormFieldMessages/v1/styles.js +0 -57
  100. package/lib/FormFieldMessages/v1/theme.js +0 -47
  101. package/lib/FormFieldMessages/v2/index.js +0 -93
  102. package/lib/FormFieldMessages/v2/props.js +0 -31
  103. package/lib/FormFieldMessages/v2/styles.js +0 -56
  104. package/lib/exports/a.js +0 -47
  105. package/lib/exports/b.js +0 -47
  106. package/lib/package.json +0 -1
  107. package/lib/utils/v1/FormPropTypes.js +0 -5
  108. package/src/FormFieldLabel/v2/index.tsx +0 -95
  109. package/src/FormFieldLabel/v2/props.ts +0 -49
  110. package/src/FormFieldLabel/v2/styles.ts +0 -74
  111. package/src/FormFieldLabel/v2/theme.ts +0 -56
  112. package/types/FormFieldLabel/v2/index.d.ts +0 -38
  113. package/types/FormFieldLabel/v2/index.d.ts.map +0 -1
  114. package/types/FormFieldLabel/v2/props.d.ts +0 -14
  115. package/types/FormFieldLabel/v2/props.d.ts.map +0 -1
  116. package/types/FormFieldLabel/v2/styles.d.ts +0 -15
  117. package/types/FormFieldLabel/v2/styles.d.ts.map +0 -1
  118. package/types/FormFieldLabel/v2/theme.d.ts +0 -10
  119. package/types/FormFieldLabel/v2/theme.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,55 @@
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-form-field:** disable child inputs when FormFieldGroup is disabled ([d30fc64](https://github.com/instructure/instructure-ui/commit/d30fc642a3586f708d86ab570ae73086107e2695))
12
+
13
+
14
+ ### Features
15
+
16
+ * **many:** remove deprecated v2 items ([eaf8876](https://github.com/instructure/instructure-ui/commit/eaf88767c9beb95c4e09ee5705c387dfd79e4cb7))
17
+
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ * **many:** Removed FormFieldLabel component
22
+
23
+ Removed _content prop from DrawerLayout.Tray and DrawerLayout.Content
24
+
25
+ Removed _link prop from Link
26
+
27
+ Removed _node prop from Menu.Item
28
+
29
+ Removed _root prop from Pagination, TreeBrowser
30
+
31
+ Removed _select prop from SimpleSelect and TimeSelect
32
+
33
+ Removed _ref prop from TruncateText
34
+
35
+ Removed _element prop from View
36
+
37
+ Removed color="ai" from Heading
38
+
39
+ Removed variant="inline-small" and variant="standalone-small" from Link
40
+
41
+ Removed title prop from Tag
42
+
43
+ Removed focusRingBorderRadius prop from View
44
+
45
+ Removed hideActionsUserSeparator prop from TopNavBar.Layout
46
+
47
+ Removed handleFocusOutlineColor, handleFocusOutlineWidth, handleShadowColor from RangeInput
48
+
49
+ INSTUI-5025
50
+
51
+
52
+
53
+
54
+
6
55
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
56
 
8
57
 
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)
package/README.md CHANGED
@@ -12,7 +12,6 @@ The `ui-form-field` package contains the following:
12
12
 
13
13
  - [FormField](FormField)
14
14
  - [FormFieldGroup](FormFieldGroup)
15
- - [FormFieldLabel](FormFieldLabel)
16
15
  - [FormFieldLayout](FormFieldLayout)
17
16
  - [FormFieldMessage](FormFieldMessage)
18
17
  - [FormFieldMessages](FormFieldMessages)
@@ -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 = ['as', 'children'];
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
+ }
@@ -24,8 +24,8 @@
24
24
 
25
25
  import { Component } from 'react';
26
26
  import { omitProps, pickProps } from '@instructure/ui-react-utils';
27
- import { FormFieldLayout } from "../../FormFieldLayout/v1/index.js";
28
- import { allowedProps } from "./props.js";
27
+ import { FormFieldLayout } from '../../FormFieldLayout/v1/index.js';
28
+ import { allowedProps } from './props.js';
29
29
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
30
30
  /**
31
31
  ---
@@ -33,7 +33,7 @@ category: components
33
33
  ---
34
34
  **/
35
35
  class FormField extends Component {
36
- static displayName = "FormField";
36
+ static displayName = 'FormField';
37
37
  static componentId = 'FormField';
38
38
  static allowedProps = allowedProps;
39
39
  static defaultProps = {
@@ -24,9 +24,9 @@
24
24
 
25
25
  import { Component } from 'react';
26
26
  import { omitProps, pickProps } from '@instructure/ui-react-utils';
27
- import { allowedProps as formFieldLayoutAllowedProps } from "../../FormFieldLayout/v2/props.js";
28
- import { FormFieldLayout } from "../../FormFieldLayout/v2/index.js";
29
- import { allowedProps } from "./props.js";
27
+ import { allowedProps as formFieldLayoutAllowedProps } from '../../FormFieldLayout/v2/props.js';
28
+ import { FormFieldLayout } from '../../FormFieldLayout/v2/index.js';
29
+ import { allowedProps } from './props.js';
30
30
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
31
31
  /**
32
32
  ---
@@ -34,7 +34,7 @@ category: components
34
34
  ---
35
35
  **/
36
36
  class FormField extends Component {
37
- static displayName = "FormField";
37
+ static displayName = 'FormField';
38
38
  static componentId = 'FormField';
39
39
  static allowedProps = allowedProps;
40
40
  static defaultProps = {
@@ -1,5 +1,4 @@
1
1
  var _dec, _class;
2
- import "core-js/modules/es.array.includes.js";
3
2
  /*
4
3
  * The MIT License (MIT)
5
4
  *
@@ -28,11 +27,11 @@ import { Component, Children } from 'react';
28
27
  import { Grid } from '@instructure/ui-grid/v11_6';
29
28
  import { pickProps, omitProps } from '@instructure/ui-react-utils';
30
29
  import { withStyle } from '@instructure/emotion';
31
- import { allowedProps as FormFieldLayoutAllowedProps } from "../../FormFieldLayout/v1/props.js";
32
- import { FormFieldLayout } from "../../FormFieldLayout/v1/index.js";
33
- import generateStyle from "./styles.js";
34
- import generateComponentTheme from "./theme.js";
35
- import { allowedProps } from "./props.js";
30
+ import { allowedProps as FormFieldLayoutAllowedProps } from '../../FormFieldLayout/v1/props.js';
31
+ import { FormFieldLayout } from '../../FormFieldLayout/v1/index.js';
32
+ import generateStyle from './styles.js';
33
+ import generateComponentTheme from './theme.js';
34
+ import { allowedProps } from './props.js';
36
35
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
37
36
  /**
38
37
  ---
@@ -40,7 +39,7 @@ category: components
40
39
  ---
41
40
  **/
42
41
  let FormFieldGroup = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldGroup extends Component {
43
- static displayName = "FormFieldGroup";
42
+ static displayName = 'FormFieldGroup';
44
43
  static componentId = 'FormFieldGroup';
45
44
  static allowedProps = allowedProps;
46
45
  static defaultProps = {
@@ -1,5 +1,4 @@
1
1
  var _dec, _class;
2
- import "core-js/modules/es.array.includes.js";
3
2
  /*
4
3
  * The MIT License (MIT)
5
4
  *
@@ -24,14 +23,14 @@ import "core-js/modules/es.array.includes.js";
24
23
  * SOFTWARE.
25
24
  */
26
25
 
27
- import { Component, Children } from 'react';
26
+ import { Component, Children, isValidElement } from 'react';
28
27
  import { Grid } from '@instructure/ui-grid/latest';
29
- import { pickProps, omitProps } from '@instructure/ui-react-utils';
28
+ import { pickProps, omitProps, safeCloneElement } from '@instructure/ui-react-utils';
30
29
  import { withStyleNew } from '@instructure/emotion';
31
- import { allowedProps as formFieldLayoutAllowedProps } from "../../FormFieldLayout/v2/props.js";
32
- import { FormFieldLayout } from "../../FormFieldLayout/v2/index.js";
33
- import generateStyle from "./styles.js";
34
- import { allowedProps } from "./props.js";
30
+ import { allowedProps as formFieldLayoutAllowedProps } from '../../FormFieldLayout/v2/props.js';
31
+ import { FormFieldLayout } from '../../FormFieldLayout/v2/index.js';
32
+ import generateStyle from './styles.js';
33
+ import { allowedProps } from './props.js';
35
34
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
36
35
  /**
37
36
  ---
@@ -39,7 +38,7 @@ category: components
39
38
  ---
40
39
  **/
41
40
  let FormFieldGroup = (_dec = withStyleNew(generateStyle), _dec(_class = class FormFieldGroup extends Component {
42
- static displayName = "FormFieldGroup";
41
+ static displayName = 'FormFieldGroup';
43
42
  static componentId = 'FormFieldGroup';
44
43
  static allowedProps = allowedProps;
45
44
  static defaultProps = {
@@ -72,11 +71,19 @@ let FormFieldGroup = (_dec = withStyleNew(generateStyle), _dec(_class = class Fo
72
71
  }) >= 0;
73
72
  }
74
73
  renderColumns() {
74
+ const {
75
+ disabled
76
+ } = this.props;
75
77
  return Children.map(this.props.children, (child, index) => {
76
- return child ? _jsx(Grid.Col, {
77
- width: child.props && child.props.width ? 'auto' : undefined,
78
- children: child
79
- }, index) : null;
78
+ if (!child) return null;
79
+ const el = child;
80
+ const renderedChild = disabled && /*#__PURE__*/isValidElement(el) ? safeCloneElement(el, {
81
+ disabled: true
82
+ }) : child;
83
+ return _jsx(Grid.Col, {
84
+ width: el.props && el.props.width ? 'auto' : undefined,
85
+ children: renderedChild
86
+ }, index);
80
87
  });
81
88
  }
82
89
  renderChildren() {
@@ -26,9 +26,9 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { omitProps, getElementType } from '@instructure/ui-react-utils';
28
28
  import { withStyle } from '@instructure/emotion';
29
- import generateStyle from "./styles.js";
30
- import generateComponentTheme from "./theme.js";
31
- import { allowedProps } from "./props.js";
29
+ import generateStyle from './styles.js';
30
+ import generateComponentTheme from './theme.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -49,7 +49,7 @@ type: example
49
49
  removed in the future
50
50
  **/
51
51
  let FormFieldLabel = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldLabel extends Component {
52
- static displayName = "FormFieldLabel";
52
+ static displayName = 'FormFieldLabel';
53
53
  static componentId = 'FormFieldLabel';
54
54
  static allowedProps = allowedProps;
55
55
  static defaultProps = {
@@ -27,10 +27,11 @@ import { Component } from 'react';
27
27
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
28
28
  import { omitProps, getElementType, withDeterministicId } from '@instructure/ui-react-utils';
29
29
  import { withStyle } from '@instructure/emotion';
30
- import { FormFieldMessages } from "../../FormFieldMessages/v1/index.js";
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
33
- import generateComponentTheme from "./theme.js";
30
+ import { FormFieldMessages } from '../../FormFieldMessages/v1/index.js';
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
+ import generateComponentTheme from './theme.js';
34
+
34
35
  /**
35
36
  ---
36
37
  parent: FormField
@@ -38,7 +39,7 @@ parent: FormField
38
39
  **/
39
40
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
40
41
  let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class FormFieldLayout extends Component {
41
- static displayName = "FormFieldLayout";
42
+ static displayName = 'FormFieldLayout';
42
43
  static componentId = 'FormFieldLayout';
43
44
  static allowedProps = allowedProps;
44
45
  static defaultProps = {
@@ -26,9 +26,9 @@ import { forwardRef, useEffect, useState, useCallback } from 'react';
26
26
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
27
27
  import { omitProps, useDeterministicId } from '@instructure/ui-react-utils';
28
28
  import { useStyleNew } from '@instructure/emotion';
29
- import { FormFieldMessages } from "../../FormFieldMessages/v2/index.js";
30
- import generateStyle from "./styles.js";
31
- import { allowedProps } from "./props.js";
29
+ import { FormFieldMessages } from '../../FormFieldMessages/v2/index.js';
30
+ import generateStyle from './styles.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -27,9 +27,9 @@ import { Component } from 'react';
27
27
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
28
28
  import { IconWarningSolid } from '@instructure/ui-icons';
29
29
  import { withStyle } from '@instructure/emotion';
30
- import generateStyle from "./styles.js";
31
- import generateComponentTheme from "./theme.js";
32
- import { allowedProps } from "./props.js";
30
+ import generateStyle from './styles.js';
31
+ import generateComponentTheme from './theme.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
  ---
@@ -47,7 +47,7 @@ type: example
47
47
  ```
48
48
  **/
49
49
  let FormFieldMessage = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldMessage extends Component {
50
- static displayName = "FormFieldMessage";
50
+ static displayName = 'FormFieldMessage';
51
51
  static componentId = 'FormFieldMessage';
52
52
  static allowedProps = allowedProps;
53
53
  static defaultProps = {
@@ -26,7 +26,7 @@ import { forwardRef } from 'react';
26
26
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
27
27
  import { AlertCircleInstUIIcon, CheckCircle2InstUIIcon } from '@instructure/ui-icons';
28
28
  import { useStyleNew } from '@instructure/emotion';
29
- import generateStyle from "./styles.js";
29
+ import generateStyle from './styles.js';
30
30
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
31
31
  /**
32
32
  ---
@@ -26,10 +26,10 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { omitProps } from '@instructure/ui-react-utils';
28
28
  import { withStyle } from '@instructure/emotion';
29
- import { FormFieldMessage } from "../../FormFieldMessage/v1/index.js";
30
- import generateStyle from "./styles.js";
31
- import generateComponentTheme from "./theme.js";
32
- import { allowedProps } from "./props.js";
29
+ import { FormFieldMessage } from '../../FormFieldMessage/v1/index.js';
30
+ import generateStyle from './styles.js';
31
+ import generateComponentTheme from './theme.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
34
34
  /**
35
35
  ---
@@ -50,7 +50,7 @@ type: example
50
50
  ```
51
51
  **/
52
52
  let FormFieldMessages = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldMessages extends Component {
53
- static displayName = "FormFieldMessages";
53
+ static displayName = 'FormFieldMessages';
54
54
  static componentId = 'FormFieldMessages';
55
55
  static allowedProps = allowedProps;
56
56
  static defaultProps = {};
@@ -26,9 +26,9 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { omitProps } from '@instructure/ui-react-utils';
28
28
  import { withStyleNew } from '@instructure/emotion';
29
- import { FormFieldMessage } from "../../FormFieldMessage/v2/index.js";
30
- import generateStyle from "./styles.js";
31
- import { allowedProps } from "./props.js";
29
+ import { FormFieldMessage } from '../../FormFieldMessage/v2/index.js';
30
+ import generateStyle from './styles.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -49,7 +49,7 @@ type: example
49
49
  ```
50
50
  **/
51
51
  let FormFieldMessages = (_dec = withStyleNew(generateStyle), _dec(_class = class FormFieldMessages extends Component {
52
- static displayName = "FormFieldMessages";
52
+ static displayName = 'FormFieldMessages';
53
53
  static componentId = 'FormFieldMessages';
54
54
  static allowedProps = allowedProps;
55
55
  static defaultProps = {};
package/es/exports/a.js CHANGED
@@ -21,9 +21,10 @@
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 { FormField } from "../FormField/v1/index.js";
25
- export { FormFieldLabel } from "../FormFieldLabel/v1/index.js";
26
- export { FormFieldMessage } from "../FormFieldMessage/v1/index.js";
27
- export { FormFieldMessages } from "../FormFieldMessages/v1/index.js";
28
- export { FormFieldLayout } from "../FormFieldLayout/v1/index.js";
29
- export { FormFieldGroup } from "../FormFieldGroup/v1/index.js";
24
+
25
+ export { FormField } from '../FormField/v1/index.js';
26
+ export { FormFieldLabel } from '../FormFieldLabel/v1/index.js';
27
+ export { FormFieldMessage } from '../FormFieldMessage/v1/index.js';
28
+ export { FormFieldMessages } from '../FormFieldMessages/v1/index.js';
29
+ export { FormFieldLayout } from '../FormFieldLayout/v1/index.js';
30
+ export { FormFieldGroup } from '../FormFieldGroup/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,9 +21,9 @@
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 { FormField } from "../FormField/v2/index.js";
25
- export { FormFieldLabel } from "../FormFieldLabel/v2/index.js";
26
- export { FormFieldMessage } from "../FormFieldMessage/v2/index.js";
27
- export { FormFieldMessages } from "../FormFieldMessages/v2/index.js";
28
- export { FormFieldLayout } from "../FormFieldLayout/v2/index.js";
29
- export { FormFieldGroup } from "../FormFieldGroup/v2/index.js";
24
+
25
+ export { FormField } from '../FormField/v2/index.js';
26
+ export { FormFieldMessage } from '../FormFieldMessage/v2/index.js';
27
+ export { FormFieldMessages } from '../FormFieldMessages/v2/index.js';
28
+ export { FormFieldLayout } from '../FormFieldLayout/v2/index.js';
29
+ export { FormFieldGroup } from '../FormFieldGroup/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-form-field",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "Form layout components.",
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",
@@ -15,24 +15,24 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.3",
19
- "@instructure/shared-types": "11.7.3",
20
- "@instructure/ui-a11y-utils": "11.7.3",
21
- "@instructure/console": "11.7.3",
22
- "@instructure/ui-a11y-content": "11.7.3",
23
- "@instructure/ui-grid": "11.7.3",
24
- "@instructure/ui-icons": "11.7.3",
25
- "@instructure/ui-react-utils": "11.7.3",
26
- "@instructure/ui-themes": "11.7.3",
27
- "@instructure/ui-utils": "11.7.3",
28
- "@instructure/uid": "11.7.3"
18
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-a11y-utils": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-grid": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/uid": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@testing-library/jest-dom": "^6.6.3",
32
32
  "@testing-library/react": "15.0.7",
33
33
  "vitest": "^3.2.2",
34
- "@instructure/ui-axe-check": "11.7.3",
35
- "@instructure/ui-babel-preset": "11.7.3"
34
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
35
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=18 <=19"
@@ -41,7 +41,6 @@
41
41
  "access": "public"
42
42
  },
43
43
  "exports": {
44
- "./lib/*": "./lib/*",
45
44
  "./es/*": "./es/*",
46
45
  "./types/*": "./types/*",
47
46
  "./package.json": "./package.json",
@@ -50,28 +49,24 @@
50
49
  "src": "./src/exports/a.ts",
51
50
  "types": "./types/exports/a.d.ts",
52
51
  "import": "./es/exports/a.js",
53
- "require": "./lib/exports/a.js",
54
52
  "default": "./es/exports/a.js"
55
53
  },
56
54
  "./v11_6": {
57
55
  "src": "./src/exports/a.ts",
58
56
  "types": "./types/exports/a.d.ts",
59
57
  "import": "./es/exports/a.js",
60
- "require": "./lib/exports/a.js",
61
58
  "default": "./es/exports/a.js"
62
59
  },
63
60
  "./v11_7": {
64
61
  "src": "./src/exports/b.ts",
65
62
  "types": "./types/exports/b.d.ts",
66
63
  "import": "./es/exports/b.js",
67
- "require": "./lib/exports/b.js",
68
64
  "default": "./es/exports/b.js"
69
65
  },
70
66
  "./latest": {
71
67
  "src": "./src/exports/b.ts",
72
68
  "types": "./types/exports/b.d.ts",
73
69
  "import": "./es/exports/b.js",
74
- "require": "./lib/exports/b.js",
75
70
  "default": "./es/exports/b.js"
76
71
  }
77
72
  },
@@ -79,7 +74,7 @@
79
74
  "lint": "ui-scripts lint",
80
75
  "lint:fix": "ui-scripts lint --fix",
81
76
  "clean": "ui-scripts clean",
82
- "build": "ui-scripts build --modules es,cjs",
77
+ "build": "ui-scripts build",
83
78
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
84
79
  "build:types": "tsc -p tsconfig.build.json",
85
80
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -26,9 +26,9 @@ import { Component } from 'react'
26
26
 
27
27
  import { omitProps, pickProps } from '@instructure/ui-react-utils'
28
28
 
29
- import { FormFieldLayout } from '../../FormFieldLayout/v1'
29
+ import { FormFieldLayout } from '../../FormFieldLayout/v1/index.js'
30
30
 
31
- import { allowedProps } from './props'
31
+ import { allowedProps } from './props.js'
32
32
  import type { FormFieldProps } from './props'
33
33
 
34
34
  /**
@@ -37,6 +37,7 @@ category: components
37
37
  ---
38
38
  **/
39
39
  class FormField extends Component<FormFieldProps> {
40
+ static displayName = 'FormField'
40
41
  static readonly componentId = 'FormField'
41
42
 
42
43
  static allowedProps = allowedProps
@@ -26,11 +26,11 @@ import { Component } from 'react'
26
26
 
27
27
  import { omitProps, pickProps } from '@instructure/ui-react-utils'
28
28
 
29
- import { allowedProps as formFieldLayoutAllowedProps } from '../../FormFieldLayout/v2/props'
29
+ import { allowedProps as formFieldLayoutAllowedProps } from '../../FormFieldLayout/v2/props.js'
30
30
 
31
- import { FormFieldLayout } from '../../FormFieldLayout/v2'
31
+ import { FormFieldLayout } from '../../FormFieldLayout/v2/index.js'
32
32
 
33
- import { allowedProps } from './props'
33
+ import { allowedProps } from './props.js'
34
34
  import type { FormFieldProps } from './props'
35
35
 
36
36
  /**
@@ -39,6 +39,7 @@ category: components
39
39
  ---
40
40
  **/
41
41
  class FormField extends Component<FormFieldProps> {
42
+ static displayName = 'FormField'
42
43
  static readonly componentId = 'FormField'
43
44
 
44
45
  static allowedProps = allowedProps
@@ -28,14 +28,14 @@ import { Grid } from '@instructure/ui-grid/v11_6'
28
28
  import { pickProps, omitProps } from '@instructure/ui-react-utils'
29
29
  import { withStyle } from '@instructure/emotion'
30
30
 
31
- import { allowedProps as FormFieldLayoutAllowedProps } from '../../FormFieldLayout/v1/props'
31
+ import { allowedProps as FormFieldLayoutAllowedProps } from '../../FormFieldLayout/v1/props.js'
32
32
 
33
- import { FormFieldLayout } from '../../FormFieldLayout/v1'
33
+ import { FormFieldLayout } from '../../FormFieldLayout/v1/index.js'
34
34
 
35
- import generateStyle from './styles'
36
- import generateComponentTheme from './theme'
35
+ import generateStyle from './styles.js'
36
+ import generateComponentTheme from './theme.js'
37
37
 
38
- import { allowedProps } from './props'
38
+ import { allowedProps } from './props.js'
39
39
  import type { FormFieldGroupProps, FormFieldGroupStyleProps } from './props'
40
40
 
41
41
  /**
@@ -45,6 +45,7 @@ category: components
45
45
  **/
46
46
  @withStyle(generateStyle, generateComponentTheme)
47
47
  class FormFieldGroup extends Component<FormFieldGroupProps> {
48
+ static displayName = 'FormFieldGroup'
48
49
  static readonly componentId = 'FormFieldGroup'
49
50
 
50
51
  static allowedProps = allowedProps