@instructure/ui-form-field 11.7.3-snapshot-4 → 11.7.3-snapshot-7
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 +1 -1
- package/es/FormFieldGroup/v2/styles.js +1 -2
- package/es/FormFieldMessage/v2/styles.js +4 -4
- package/es/FormFieldMessages/v2/styles.js +1 -1
- package/lib/FormFieldGroup/v2/styles.js +1 -2
- package/lib/FormFieldMessage/v2/styles.js +4 -4
- package/lib/FormFieldMessages/v2/styles.js +1 -1
- package/package.json +14 -14
- package/src/FormFieldGroup/v2/props.ts +1 -2
- package/src/FormFieldGroup/v2/styles.ts +2 -4
- package/src/FormFieldLayout/v2/props.ts +6 -5
- package/src/FormFieldMessage/v2/props.ts +4 -4
- package/src/FormFieldMessage/v2/styles.ts +4 -4
- package/src/FormFieldMessages/v2/props.ts +2 -5
- package/src/FormFieldMessages/v2/styles.ts +2 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/FormFieldGroup/v2/props.d.ts +2 -2
- package/types/FormFieldGroup/v2/props.d.ts.map +1 -1
- package/types/FormFieldGroup/v2/styles.d.ts +2 -3
- package/types/FormFieldGroup/v2/styles.d.ts.map +1 -1
- package/types/FormFieldLayout/v2/index.d.ts +1 -3
- package/types/FormFieldLayout/v2/index.d.ts.map +1 -1
- package/types/FormFieldLayout/v2/props.d.ts +3 -4
- package/types/FormFieldLayout/v2/props.d.ts.map +1 -1
- package/types/FormFieldMessage/v2/index.d.ts +1 -3
- package/types/FormFieldMessage/v2/index.d.ts.map +1 -1
- package/types/FormFieldMessage/v2/props.d.ts +3 -4
- package/types/FormFieldMessage/v2/props.d.ts.map +1 -1
- package/types/FormFieldMessage/v2/styles.d.ts +4 -4
- package/types/FormFieldMessages/v2/props.d.ts +2 -2
- package/types/FormFieldMessages/v2/props.d.ts.map +1 -1
- package/types/FormFieldMessages/v2/styles.d.ts +2 -3
- package/types/FormFieldMessages/v2/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.3-snapshot-
|
|
6
|
+
## [11.7.3-snapshot-7](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-7) (2026-04-29)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-form-field
|
|
9
9
|
|
|
@@ -27,9 +27,8 @@
|
|
|
27
27
|
* private: true
|
|
28
28
|
* ---
|
|
29
29
|
* Generates the style object from the theme and provided additional information
|
|
30
|
-
* @param {Object}
|
|
30
|
+
* @param {Object} _componentTheme The theme variable object.
|
|
31
31
|
* @param {Object} props the props of the component, the style is applied to
|
|
32
|
-
* @param {Object} state the state of the component, the style is applied to
|
|
33
32
|
* @return {Object} The final style object, which will be used in the component
|
|
34
33
|
*/
|
|
35
34
|
const generateStyle = (_componentTheme, props) => {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
* private: true
|
|
28
28
|
* ---
|
|
29
29
|
* Generates the style object from the theme and provided additional information
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @param
|
|
33
|
-
* @return
|
|
30
|
+
* @param componentTheme The theme variable object.
|
|
31
|
+
* @param params Additional parameters to customize the style.
|
|
32
|
+
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
33
|
+
* @return The final style object, which will be used in the component
|
|
34
34
|
*/
|
|
35
35
|
const generateStyle = (componentTheme, params, sharedTokens) => {
|
|
36
36
|
const variant = params.variant;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* private: true
|
|
28
28
|
* ---
|
|
29
29
|
* Generates the style object from the theme and provided additional information
|
|
30
|
-
* @param {Object}
|
|
30
|
+
* @param {Object} _componentTheme The theme variable object.
|
|
31
31
|
* @param {Object} props the props of the component, the style is applied to
|
|
32
32
|
* @return {Object} The final style object, which will be used in the component
|
|
33
33
|
*/
|
|
@@ -33,9 +33,8 @@ exports.default = void 0;
|
|
|
33
33
|
* private: true
|
|
34
34
|
* ---
|
|
35
35
|
* Generates the style object from the theme and provided additional information
|
|
36
|
-
* @param {Object}
|
|
36
|
+
* @param {Object} _componentTheme The theme variable object.
|
|
37
37
|
* @param {Object} props the props of the component, the style is applied to
|
|
38
|
-
* @param {Object} state the state of the component, the style is applied to
|
|
39
38
|
* @return {Object} The final style object, which will be used in the component
|
|
40
39
|
*/
|
|
41
40
|
const generateStyle = (_componentTheme, props) => {
|
|
@@ -33,10 +33,10 @@ exports.default = void 0;
|
|
|
33
33
|
* private: true
|
|
34
34
|
* ---
|
|
35
35
|
* Generates the style object from the theme and provided additional information
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @return
|
|
36
|
+
* @param componentTheme The theme variable object.
|
|
37
|
+
* @param params Additional parameters to customize the style.
|
|
38
|
+
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
39
|
+
* @return The final style object, which will be used in the component
|
|
40
40
|
*/
|
|
41
41
|
const generateStyle = (componentTheme, params, sharedTokens) => {
|
|
42
42
|
const variant = params.variant;
|
|
@@ -33,7 +33,7 @@ exports.default = void 0;
|
|
|
33
33
|
* private: true
|
|
34
34
|
* ---
|
|
35
35
|
* Generates the style object from the theme and provided additional information
|
|
36
|
-
* @param {Object}
|
|
36
|
+
* @param {Object} _componentTheme The theme variable object.
|
|
37
37
|
* @param {Object} props the props of the component, the style is applied to
|
|
38
38
|
* @return {Object} The final style object, which will be used in the component
|
|
39
39
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-form-field",
|
|
3
|
-
"version": "11.7.3-snapshot-
|
|
3
|
+
"version": "11.7.3-snapshot-7",
|
|
4
4
|
"description": "Form layout components.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
|
-
"@instructure/
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-a11y-utils": "11.7.3-snapshot-
|
|
23
|
-
"@instructure/ui-grid": "11.7.3-snapshot-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/
|
|
27
|
-
"@instructure/
|
|
18
|
+
"@instructure/console": "11.7.3-snapshot-7",
|
|
19
|
+
"@instructure/emotion": "11.7.3-snapshot-7",
|
|
20
|
+
"@instructure/ui-a11y-content": "11.7.3-snapshot-7",
|
|
21
|
+
"@instructure/shared-types": "11.7.3-snapshot-7",
|
|
22
|
+
"@instructure/ui-a11y-utils": "11.7.3-snapshot-7",
|
|
23
|
+
"@instructure/ui-grid": "11.7.3-snapshot-7",
|
|
24
|
+
"@instructure/ui-icons": "11.7.3-snapshot-7",
|
|
25
|
+
"@instructure/ui-themes": "11.7.3-snapshot-7",
|
|
26
|
+
"@instructure/uid": "11.7.3-snapshot-7",
|
|
27
|
+
"@instructure/ui-react-utils": "11.7.3-snapshot-7",
|
|
28
|
+
"@instructure/ui-utils": "11.7.3-snapshot-7"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@testing-library/jest-dom": "^6.6.3",
|
|
31
32
|
"@testing-library/react": "15.0.7",
|
|
32
33
|
"vitest": "^3.2.2",
|
|
33
|
-
"@instructure/ui-axe-check": "11.7.3-snapshot-
|
|
34
|
-
"@instructure/ui-babel-preset": "11.7.3-snapshot-
|
|
35
|
-
"@instructure/ui-themes": "11.7.3-snapshot-4"
|
|
34
|
+
"@instructure/ui-axe-check": "11.7.3-snapshot-7",
|
|
35
|
+
"@instructure/ui-babel-preset": "11.7.3-snapshot-7"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=18 <=19"
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
|
|
25
25
|
import type {
|
|
26
26
|
AsElementType,
|
|
27
|
-
FormFieldGroupTheme,
|
|
28
27
|
OtherHTMLAttributes
|
|
29
28
|
} from '@instructure/shared-types'
|
|
30
29
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
@@ -73,7 +72,7 @@ type PropKeys = keyof FormFieldGroupOwnProps
|
|
|
73
72
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
74
73
|
|
|
75
74
|
type FormFieldGroupProps = FormFieldGroupOwnProps &
|
|
76
|
-
WithStyleProps<
|
|
75
|
+
WithStyleProps<null, FormFieldGroupStyle> &
|
|
77
76
|
OtherHTMLAttributes<FormFieldGroupOwnProps> &
|
|
78
77
|
// Adding other props that can be passed to FormFieldLayout,
|
|
79
78
|
// excluding the ones we set manually
|
|
@@ -29,14 +29,12 @@ import type { FormFieldGroupProps, FormFieldGroupStyle } from './props'
|
|
|
29
29
|
* private: true
|
|
30
30
|
* ---
|
|
31
31
|
* Generates the style object from the theme and provided additional information
|
|
32
|
-
* @param {Object}
|
|
32
|
+
* @param {Object} _componentTheme The theme variable object.
|
|
33
33
|
* @param {Object} props the props of the component, the style is applied to
|
|
34
|
-
* @param {Object} state the state of the component, the style is applied to
|
|
35
34
|
* @return {Object} The final style object, which will be used in the component
|
|
36
35
|
*/
|
|
37
36
|
const generateStyle = (
|
|
38
|
-
|
|
39
|
-
_componentTheme: {},
|
|
37
|
+
_componentTheme: never,
|
|
40
38
|
props: FormFieldGroupProps
|
|
41
39
|
): FormFieldGroupStyle => {
|
|
42
40
|
const { disabled } = props
|
|
@@ -28,11 +28,12 @@ import type {
|
|
|
28
28
|
} from '@instructure/shared-types'
|
|
29
29
|
import type {
|
|
30
30
|
ComponentStyle,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
NewThemeOverrideProp,
|
|
32
|
+
Spacing
|
|
33
33
|
} from '@instructure/emotion'
|
|
34
34
|
import type { FormMessage } from '../../utils/v1/FormPropTypes'
|
|
35
35
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
36
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
36
37
|
|
|
37
38
|
type FormFieldLayoutOwnProps = {
|
|
38
39
|
label: React.ReactNode
|
|
@@ -111,9 +112,9 @@ type PropKeys = keyof FormFieldLayoutOwnProps
|
|
|
111
112
|
|
|
112
113
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
113
114
|
|
|
114
|
-
type FormFieldLayoutProps = FormFieldLayoutOwnProps &
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
type FormFieldLayoutProps = FormFieldLayoutOwnProps &
|
|
116
|
+
NewThemeOverrideProp<ReturnType<NewComponentTypes['FormFieldLayout']>> &
|
|
117
|
+
OtherHTMLAttributes<FormFieldLayoutOwnProps> &
|
|
117
118
|
WithDeterministicIdProps
|
|
118
119
|
|
|
119
120
|
type FormFieldLayoutStyle = ComponentStyle<
|
|
@@ -22,11 +22,12 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { ComponentStyle,
|
|
25
|
+
import type { ComponentStyle, NewThemeOverrideProp } from '@instructure/emotion'
|
|
26
26
|
import type {
|
|
27
27
|
FormMessageType,
|
|
28
28
|
FormMessageChild
|
|
29
29
|
} from '../../utils/v1/FormPropTypes'
|
|
30
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
30
31
|
|
|
31
32
|
type FormFieldMessageOwnProps = {
|
|
32
33
|
variant?: FormMessageType
|
|
@@ -37,9 +38,8 @@ type PropKeys = keyof FormFieldMessageOwnProps
|
|
|
37
38
|
|
|
38
39
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
39
40
|
|
|
40
|
-
type FormFieldMessageProps = FormFieldMessageOwnProps &
|
|
41
|
-
|
|
42
|
-
}
|
|
41
|
+
type FormFieldMessageProps = FormFieldMessageOwnProps &
|
|
42
|
+
NewThemeOverrideProp<ReturnType<NewComponentTypes['FormFieldMessage']>>
|
|
43
43
|
|
|
44
44
|
type FormFieldMessageStyle = ComponentStyle<'formFieldMessage' | 'icon'>
|
|
45
45
|
const allowedProps: AllowedPropKeys = ['variant', 'children']
|
|
@@ -35,10 +35,10 @@ type StyleParams = {
|
|
|
35
35
|
* private: true
|
|
36
36
|
* ---
|
|
37
37
|
* Generates the style object from the theme and provided additional information
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @return
|
|
38
|
+
* @param componentTheme The theme variable object.
|
|
39
|
+
* @param params Additional parameters to customize the style.
|
|
40
|
+
* @param sharedTokens Shared token object that stores common values for the theme.
|
|
41
|
+
* @return The final style object, which will be used in the component
|
|
42
42
|
*/
|
|
43
43
|
const generateStyle = (
|
|
44
44
|
componentTheme: ReturnType<NewComponentTypes['FormFieldMessage']>,
|
|
@@ -22,10 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type {
|
|
26
|
-
FormFieldMessagesTheme,
|
|
27
|
-
OtherHTMLAttributes
|
|
28
|
-
} from '@instructure/shared-types'
|
|
25
|
+
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
29
26
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
30
27
|
import type { FormMessage } from '../../utils/v1/FormPropTypes'
|
|
31
28
|
|
|
@@ -49,7 +46,7 @@ type PropKeys = keyof FormFieldMessagesOwnProps
|
|
|
49
46
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
50
47
|
|
|
51
48
|
type FormFieldMessagesProps = FormFieldMessagesOwnProps &
|
|
52
|
-
WithStyleProps<
|
|
49
|
+
WithStyleProps<null, FormFieldMessagesStyle> &
|
|
53
50
|
OtherHTMLAttributes<FormFieldMessagesOwnProps>
|
|
54
51
|
|
|
55
52
|
type FormFieldMessagesStyle = ComponentStyle<'formFieldMessages' | 'message'>
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { FormFieldMessagesTheme } from '@instructure/shared-types'
|
|
26
25
|
import type { FormFieldMessagesProps, FormFieldMessagesStyle } from './props'
|
|
27
26
|
|
|
28
27
|
/**
|
|
@@ -30,12 +29,12 @@ import type { FormFieldMessagesProps, FormFieldMessagesStyle } from './props'
|
|
|
30
29
|
* private: true
|
|
31
30
|
* ---
|
|
32
31
|
* Generates the style object from the theme and provided additional information
|
|
33
|
-
* @param {Object}
|
|
32
|
+
* @param {Object} _componentTheme The theme variable object.
|
|
34
33
|
* @param {Object} props the props of the component, the style is applied to
|
|
35
34
|
* @return {Object} The final style object, which will be used in the component
|
|
36
35
|
*/
|
|
37
36
|
const generateStyle = (
|
|
38
|
-
_componentTheme:
|
|
37
|
+
_componentTheme: never,
|
|
39
38
|
props: FormFieldMessagesProps
|
|
40
39
|
): FormFieldMessagesStyle => {
|
|
41
40
|
return {
|