@fluentui/react-field 0.0.0-nightly-20221122-0421.1 → 0.0.0-nightly-20221123-0420.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.json +13 -13
- package/CHANGELOG.md +9 -9
- package/dist/index.d.ts +6 -2
- package/lib/components/Field/Field.types.js.map +1 -1
- package/lib/components/Field/useField.js +22 -25
- package/lib/components/Field/useField.js.map +1 -1
- package/lib-commonjs/components/Field/useField.js +22 -25
- package/lib-commonjs/components/Field/useField.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
"name": "@fluentui/react-field",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-field_v0.0.0-nightly-
|
7
|
-
"version": "0.0.0-nightly-
|
5
|
+
"date": "Wed, 23 Nov 2022 04:26:57 GMT",
|
6
|
+
"tag": "@fluentui/react-field_v0.0.0-nightly-20221123-0420.1",
|
7
|
+
"version": "0.0.0-nightly-20221123-0420.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
@@ -16,32 +16,32 @@
|
|
16
16
|
{
|
17
17
|
"author": "beachball",
|
18
18
|
"package": "@fluentui/react-field",
|
19
|
-
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-
|
20
|
-
"commit": "
|
19
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20221123-0420.1",
|
20
|
+
"commit": "f3b8131aa7d2f3337e614e3a6069e67a608b1ab6"
|
21
21
|
},
|
22
22
|
{
|
23
23
|
"author": "beachball",
|
24
24
|
"package": "@fluentui/react-field",
|
25
|
-
"comment": "Bump @fluentui/react-label to v0.0.0-nightly-
|
26
|
-
"commit": "
|
25
|
+
"comment": "Bump @fluentui/react-label to v0.0.0-nightly-20221123-0420.1",
|
26
|
+
"commit": "f3b8131aa7d2f3337e614e3a6069e67a608b1ab6"
|
27
27
|
},
|
28
28
|
{
|
29
29
|
"author": "beachball",
|
30
30
|
"package": "@fluentui/react-field",
|
31
|
-
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-
|
32
|
-
"commit": "
|
31
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20221123-0420.1",
|
32
|
+
"commit": "f3b8131aa7d2f3337e614e3a6069e67a608b1ab6"
|
33
33
|
},
|
34
34
|
{
|
35
35
|
"author": "beachball",
|
36
36
|
"package": "@fluentui/react-field",
|
37
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-
|
38
|
-
"commit": "
|
37
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20221123-0420.1",
|
38
|
+
"commit": "f3b8131aa7d2f3337e614e3a6069e67a608b1ab6"
|
39
39
|
},
|
40
40
|
{
|
41
41
|
"author": "beachball",
|
42
42
|
"package": "@fluentui/react-field",
|
43
|
-
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
44
|
-
"commit": "
|
43
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221123-0420.1",
|
44
|
+
"commit": "f3b8131aa7d2f3337e614e3a6069e67a608b1ab6"
|
45
45
|
}
|
46
46
|
]
|
47
47
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# Change Log - @fluentui/react-field
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 23 Nov 2022 04:26:57 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20221123-0420.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v0.0.0-nightly-20221123-0420.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.0.0-alpha.9..@fluentui/react-field_v0.0.0-nightly-
|
9
|
+
Wed, 23 Nov 2022 04:26:57 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.0.0-alpha.9..@fluentui/react-field_v0.0.0-nightly-20221123-0420.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
15
|
-
- Bump @fluentui/react-context-selector to v0.0.0-nightly-
|
16
|
-
- Bump @fluentui/react-label to v0.0.0-nightly-
|
17
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
18
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly-
|
19
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
15
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightly-20221123-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/f3b8131aa7d2f3337e614e3a6069e67a608b1ab6) by beachball)
|
16
|
+
- Bump @fluentui/react-label to v0.0.0-nightly-20221123-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/f3b8131aa7d2f3337e614e3a6069e67a608b1ab6) by beachball)
|
17
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20221123-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/f3b8131aa7d2f3337e614e3a6069e67a608b1ab6) by beachball)
|
18
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20221123-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/f3b8131aa7d2f3337e614e3a6069e67a608b1ab6) by beachball)
|
19
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221123-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/f3b8131aa7d2f3337e614e3a6069e67a608b1ab6) by beachball)
|
20
20
|
|
21
21
|
## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.0.0-alpha.9)
|
22
22
|
|
package/dist/index.d.ts
CHANGED
@@ -32,7 +32,7 @@ export declare type FieldConfig<T extends FieldControl> = {
|
|
32
32
|
*/
|
33
33
|
labelConnection?: 'htmlFor' | 'aria-labelledby';
|
34
34
|
/**
|
35
|
-
* Should the aria-invalid
|
35
|
+
* Should the aria-invalid attribute be set when validationState="error".
|
36
36
|
*
|
37
37
|
* @default true
|
38
38
|
*/
|
@@ -45,7 +45,7 @@ export declare type FieldConfig<T extends FieldControl> = {
|
|
45
45
|
* Note: the use of VoidFunctionComponent means that component is not *required* to have a children prop,
|
46
46
|
* but it is still allowed to have a children prop.
|
47
47
|
*/
|
48
|
-
export declare type FieldControl = React_2.VoidFunctionComponent<Pick<React_2.HTMLAttributes<HTMLElement>, 'id' | 'className' | 'style' | 'aria-labelledby' | 'aria-describedby' | 'aria-invalid'
|
48
|
+
export declare type FieldControl = React_2.VoidFunctionComponent<Pick<React_2.HTMLAttributes<HTMLElement>, 'id' | 'className' | 'style' | 'aria-labelledby' | 'aria-describedby' | 'aria-invalid'>>;
|
49
49
|
|
50
50
|
/**
|
51
51
|
* Field Props
|
@@ -75,6 +75,10 @@ export declare type FieldProps<T extends FieldControl> = ComponentProps<Partial<
|
|
75
75
|
* but doesn't add them to the public API of fields that don't support them.
|
76
76
|
*/
|
77
77
|
declare type FieldPropsWithOptionalComponentProps<T extends FieldControl> = FieldProps<T> & {
|
78
|
+
/**
|
79
|
+
* A ref to the underlying control.
|
80
|
+
*/
|
81
|
+
ref?: React_2.Ref<HTMLElement>;
|
78
82
|
/**
|
79
83
|
* Whether the field label should be marked as required.
|
80
84
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Field.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/Field.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { Label } from '@fluentui/react-label';\nimport type { ComponentProps, ComponentState, Slot, SlotClassNames } from '@fluentui/react-utilities';\nimport type { SlotComponent } from './SlotComponent.types';\n\n/**\n * The minimum requirement for a component used by Field.\n *\n * Note: the use of VoidFunctionComponent means that component is not *required* to have a children prop,\n * but it is still allowed to have a children prop.\n */\nexport type FieldControl = React.VoidFunctionComponent<\n Pick<\n React.HTMLAttributes<HTMLElement>,\n 'id' | 'className' | 'style' | 'aria-labelledby' | 'aria-describedby' | 'aria-invalid'
|
1
|
+
{"version":3,"file":"Field.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/Field.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { Label } from '@fluentui/react-label';\nimport type { ComponentProps, ComponentState, Slot, SlotClassNames } from '@fluentui/react-utilities';\nimport type { SlotComponent } from './SlotComponent.types';\n\n/**\n * The minimum requirement for a component used by Field.\n *\n * Note: the use of VoidFunctionComponent means that component is not *required* to have a children prop,\n * but it is still allowed to have a children prop.\n */\nexport type FieldControl = React.VoidFunctionComponent<\n Pick<\n React.HTMLAttributes<HTMLElement>,\n 'id' | 'className' | 'style' | 'aria-labelledby' | 'aria-describedby' | 'aria-invalid'\n >\n>;\n\n/**\n * Slots added by Field\n */\nexport type FieldSlots<T extends FieldControl> = {\n root: NonNullable<Slot<'div'>>;\n\n /**\n * The underlying component wrapped by this field.\n */\n control: SlotComponent<T>;\n\n /**\n * The label associated with the field.\n */\n label?: Slot<typeof Label>;\n\n /**\n * A message about the validation state. The appearance of the `validationMessage` depends on `validationState`.\n */\n validationMessage?: Slot<'div'>;\n\n /**\n * The icon associated with the `validationMessage`. If the `validationState` prop is set, this will default to an\n * icon corresponding to that state.\n *\n * This will only be displayed if `validationMessage` is set.\n */\n validationMessageIcon?: Slot<'span'>;\n\n /**\n * Additional hint text below the field.\n */\n hint?: Slot<'div'>;\n};\n\n/**\n * Field Props\n */\nexport type FieldProps<T extends FieldControl> = ComponentProps<Partial<FieldSlots<T>>, 'control'> & {\n /**\n * The orientation of the label relative to the field component.\n * This only affects the label, and not the validationMessage or hint (which always appear below the field component).\n *\n * @default vertical\n */\n orientation?: 'vertical' | 'horizontal';\n\n /**\n * The `validationState` affects the color of the `validationMessage`, the `validationMessageIcon`, and for some\n * field components, an `validationState=\"error\"` causes the border to become red.\n *\n * @default undefined\n */\n validationState?: 'error' | 'warning' | 'success';\n};\n\n/**\n * FieldProps plus extra optional props that are supported by useField_unstable, but not required to be part of the\n * API of every Field component.\n *\n * This allows Field to forward the required and size props to the label if the underlying component supports them,\n * but doesn't add them to the public API of fields that don't support them.\n */\nexport type FieldPropsWithOptionalComponentProps<T extends FieldControl> = FieldProps<T> & {\n /**\n * A ref to the underlying control.\n */\n ref?: React.Ref<HTMLElement>;\n\n /**\n * Whether the field label should be marked as required.\n */\n required?: boolean;\n\n /**\n * Size of the field label.\n *\n * Number sizes will be ignored, but are allowed because the HTML `<input>` element has a prop `size?: number`.\n */\n size?: 'small' | 'medium' | 'large' | number;\n};\n\n/**\n * Configuration parameters for a Field class, passed to useField_unstable\n */\nexport type FieldConfig<T extends FieldControl> = {\n /**\n * The underlying input component that this field is wrapping.\n */\n component: T;\n\n /**\n * Class names for this component, created by `getFieldClassNames`.\n */\n classNames: SlotClassNames<FieldSlots<T>>;\n\n /**\n * How the label be connected to the control.\n * * htmlFor - Set the Label's htmlFor prop to the component's ID (and generate an ID if not provided).\n * This is the preferred method for components that use the underlying <input> tag.\n * * aria-labelledby - Set the component's aria-labelledby prop to the Label's ID. Use this for components\n * that are not directly <input> elements (such as RadioGroup).\n *\n * @default htmlFor\n */\n labelConnection?: 'htmlFor' | 'aria-labelledby';\n\n /**\n * Should the aria-invalid attribute be set when validationState=\"error\".\n *\n * @default true\n */\n ariaInvalidOnError?: boolean;\n};\n\n/**\n * State used in rendering Field\n */\nexport type FieldState<T extends FieldControl> = ComponentState<Required<FieldSlots<T>>> &\n Pick<FieldProps<T>, 'orientation' | 'validationState'> & {\n classNames: SlotClassNames<FieldSlots<T>>;\n };\n"]}
|
@@ -51,7 +51,7 @@ export const getPartitionedFieldProps = props => {
|
|
51
51
|
*/
|
52
52
|
|
53
53
|
export const useField_unstable = (props, ref, params) => {
|
54
|
-
var _a, _b, _c
|
54
|
+
var _a, _b, _c;
|
55
55
|
|
56
56
|
const [fieldProps, controlProps] = getPartitionedFieldProps(props);
|
57
57
|
const {
|
@@ -67,20 +67,12 @@ export const useField_unstable = (props, ref, params) => {
|
|
67
67
|
required: true,
|
68
68
|
defaultProps: getNativeElementProps('div', fieldProps)
|
69
69
|
});
|
70
|
-
const control = resolveShorthand(fieldProps.control, {
|
71
|
-
required: true,
|
72
|
-
defaultProps: {
|
73
|
-
ref,
|
74
|
-
id: baseId + '__control',
|
75
|
-
...controlProps
|
76
|
-
}
|
77
|
-
});
|
78
70
|
const label = resolveShorthand(fieldProps.label, {
|
79
71
|
defaultProps: {
|
80
72
|
id: baseId + '__label',
|
81
73
|
required: controlProps.required,
|
82
|
-
size: typeof controlProps.size === 'string' ? controlProps.size : undefined
|
83
|
-
|
74
|
+
size: typeof controlProps.size === 'string' ? controlProps.size : undefined // htmlFor is handled below
|
75
|
+
|
84
76
|
}
|
85
77
|
});
|
86
78
|
const validationMessage = resolveShorthand(fieldProps.validationMessage, {
|
@@ -101,26 +93,31 @@ export const useField_unstable = (props, ref, params) => {
|
|
101
93
|
}); // Hook up aria props on the control
|
102
94
|
|
103
95
|
if (label && labelConnection === 'aria-labelledby') {
|
104
|
-
(_a =
|
96
|
+
(_a = controlProps['aria-labelledby']) !== null && _a !== void 0 ? _a : controlProps['aria-labelledby'] = label.id;
|
105
97
|
}
|
106
98
|
|
107
|
-
if (
|
108
|
-
|
99
|
+
if (validationMessage || hint) {
|
100
|
+
// The control is described by the validation message, or hint, or both
|
101
|
+
// We also preserve and append any aria-describedby supplied by the user
|
102
|
+
// For reference: https://github.com/microsoft/fluentui/pull/25580#discussion_r1017259933
|
103
|
+
controlProps['aria-describedby'] = [validationMessage === null || validationMessage === void 0 ? void 0 : validationMessage.id, hint === null || hint === void 0 ? void 0 : hint.id, controlProps['aria-describedby']].filter(Boolean).join(' ');
|
104
|
+
}
|
109
105
|
|
110
|
-
|
111
|
-
|
112
|
-
|
106
|
+
if (validationState === 'error' && ariaInvalidOnError) {
|
107
|
+
(_b = controlProps['aria-invalid']) !== null && _b !== void 0 ? _b : controlProps['aria-invalid'] = true;
|
108
|
+
}
|
113
109
|
|
114
|
-
|
115
|
-
|
110
|
+
const control = resolveShorthand(fieldProps.control, {
|
111
|
+
required: true,
|
112
|
+
defaultProps: {
|
113
|
+
ref,
|
114
|
+
id: baseId + '__control',
|
115
|
+
...controlProps
|
116
116
|
}
|
117
|
-
}
|
118
|
-
// If the state is not an error, then the control is described by the validation message, or hint, or both
|
119
|
-
const describedby = validationMessage || hint;
|
117
|
+
});
|
120
118
|
|
121
|
-
|
122
|
-
|
123
|
-
}
|
119
|
+
if (label && labelConnection === 'htmlFor') {
|
120
|
+
(_c = label.htmlFor) !== null && _c !== void 0 ? _c : label.htmlFor = control.id;
|
124
121
|
}
|
125
122
|
|
126
123
|
const state = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/useField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,EAAkC,mBAAlC,EAAuD,eAAvD,QAA8E,uBAA9E;AACA,SAAS,KAAT,QAAsB,uBAAtB;AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;
|
1
|
+
{"version":3,"sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/useField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,EAAkC,mBAAlC,EAAuD,eAAvD,QAA8E,uBAA9E;AACA,SAAS,KAAT,QAAsB,uBAAtB;AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;AAGA,MAAM,sBAAsB,GAAG;EAC7B,KAAK,eAAE,KAAA,CAAA,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led } from '@fluentui/react-icons';\nimport { Label } from '@fluentui/react-label';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport type { FieldConfig, FieldControl, FieldPropsWithOptionalComponentProps, FieldState } from './Field.types';\n\nconst validationMessageIcons = {\n error: <ErrorCircle12Filled />,\n warning: <Warning12Filled />,\n success: <CheckmarkCircle12Filled />,\n} as const;\n\n/**\n * Partition the props used by the Field itself, from the props that are passed to the underlying field component.\n */\nexport const getPartitionedFieldProps = (props: FieldPropsWithOptionalComponentProps<FieldControl>) => {\n const {\n className,\n control,\n hint,\n label,\n orientation,\n root,\n style,\n validationMessage,\n validationMessageIcon,\n validationState,\n ...restOfProps\n } = props;\n\n const fieldProps = {\n className,\n control,\n hint,\n label,\n orientation,\n root,\n style,\n validationMessage,\n validationMessageIcon,\n validationState,\n };\n\n return [fieldProps, restOfProps] as const;\n};\n\n/**\n * Create the state required to render Field.\n *\n * The returned state can be modified with hooks such as useFieldStyles_unstable,\n * before being passed to renderField_unstable.\n *\n * @param props - Props passed to this field\n * @param ref - Ref to the control slot (primary slot)\n * @param params - Configuration parameters for this Field\n */\nexport const useField_unstable = <T extends FieldControl>(\n props: FieldPropsWithOptionalComponentProps<T>,\n ref: React.Ref<HTMLElement>,\n params: FieldConfig<T>,\n): FieldState<T> => {\n const [fieldProps, controlProps] = getPartitionedFieldProps(props);\n const { orientation = 'vertical', validationState } = fieldProps;\n const { labelConnection = 'htmlFor', ariaInvalidOnError = true } = params;\n\n const baseId = useId('field-');\n\n const root = resolveShorthand(fieldProps.root, {\n required: true,\n defaultProps: getNativeElementProps('div', fieldProps),\n });\n\n const label = resolveShorthand(fieldProps.label, {\n defaultProps: {\n id: baseId + '__label',\n required: controlProps.required,\n size: typeof controlProps.size === 'string' ? controlProps.size : undefined,\n // htmlFor is handled below\n },\n });\n\n const validationMessage = resolveShorthand(fieldProps.validationMessage, {\n defaultProps: {\n id: baseId + '__validationMessage',\n },\n });\n\n const hint = resolveShorthand(fieldProps.hint, {\n defaultProps: {\n id: baseId + '__hint',\n },\n });\n\n const validationMessageIcon = resolveShorthand(fieldProps.validationMessageIcon, {\n required: !!validationState,\n defaultProps: {\n children: validationState ? validationMessageIcons[validationState] : undefined,\n },\n });\n\n // Hook up aria props on the control\n if (label && labelConnection === 'aria-labelledby') {\n controlProps['aria-labelledby'] ??= label.id;\n }\n\n if (validationMessage || hint) {\n // The control is described by the validation message, or hint, or both\n // We also preserve and append any aria-describedby supplied by the user\n // For reference: https://github.com/microsoft/fluentui/pull/25580#discussion_r1017259933\n controlProps['aria-describedby'] = [validationMessage?.id, hint?.id, controlProps['aria-describedby']]\n .filter(Boolean)\n .join(' ');\n }\n\n if (validationState === 'error' && ariaInvalidOnError) {\n controlProps['aria-invalid'] ??= true;\n }\n\n const control = resolveShorthand(fieldProps.control, {\n required: true,\n defaultProps: {\n ref,\n id: baseId + '__control',\n ...controlProps,\n },\n });\n\n if (label && labelConnection === 'htmlFor') {\n label.htmlFor ??= control.id;\n }\n\n const state: FieldState<FieldControl> = {\n orientation,\n validationState,\n classNames: params.classNames,\n components: {\n root: 'div',\n control: params.component,\n label: Label,\n validationMessage: 'div',\n validationMessageIcon: 'span',\n hint: 'div',\n },\n root,\n control,\n label,\n validationMessageIcon,\n validationMessage,\n hint,\n };\n\n return state as FieldState<T>;\n};\n"],"sourceRoot":""}
|
@@ -64,7 +64,7 @@ exports.getPartitionedFieldProps = getPartitionedFieldProps;
|
|
64
64
|
*/
|
65
65
|
|
66
66
|
const useField_unstable = (props, ref, params) => {
|
67
|
-
var _a, _b, _c
|
67
|
+
var _a, _b, _c;
|
68
68
|
|
69
69
|
const [fieldProps, controlProps] = exports.getPartitionedFieldProps(props);
|
70
70
|
const {
|
@@ -80,20 +80,12 @@ const useField_unstable = (props, ref, params) => {
|
|
80
80
|
required: true,
|
81
81
|
defaultProps: react_utilities_1.getNativeElementProps('div', fieldProps)
|
82
82
|
});
|
83
|
-
const control = react_utilities_1.resolveShorthand(fieldProps.control, {
|
84
|
-
required: true,
|
85
|
-
defaultProps: {
|
86
|
-
ref,
|
87
|
-
id: baseId + '__control',
|
88
|
-
...controlProps
|
89
|
-
}
|
90
|
-
});
|
91
83
|
const label = react_utilities_1.resolveShorthand(fieldProps.label, {
|
92
84
|
defaultProps: {
|
93
85
|
id: baseId + '__label',
|
94
86
|
required: controlProps.required,
|
95
|
-
size: typeof controlProps.size === 'string' ? controlProps.size : undefined
|
96
|
-
|
87
|
+
size: typeof controlProps.size === 'string' ? controlProps.size : undefined // htmlFor is handled below
|
88
|
+
|
97
89
|
}
|
98
90
|
});
|
99
91
|
const validationMessage = react_utilities_1.resolveShorthand(fieldProps.validationMessage, {
|
@@ -114,26 +106,31 @@ const useField_unstable = (props, ref, params) => {
|
|
114
106
|
}); // Hook up aria props on the control
|
115
107
|
|
116
108
|
if (label && labelConnection === 'aria-labelledby') {
|
117
|
-
(_a =
|
109
|
+
(_a = controlProps['aria-labelledby']) !== null && _a !== void 0 ? _a : controlProps['aria-labelledby'] = label.id;
|
118
110
|
}
|
119
111
|
|
120
|
-
if (
|
121
|
-
|
112
|
+
if (validationMessage || hint) {
|
113
|
+
// The control is described by the validation message, or hint, or both
|
114
|
+
// We also preserve and append any aria-describedby supplied by the user
|
115
|
+
// For reference: https://github.com/microsoft/fluentui/pull/25580#discussion_r1017259933
|
116
|
+
controlProps['aria-describedby'] = [validationMessage === null || validationMessage === void 0 ? void 0 : validationMessage.id, hint === null || hint === void 0 ? void 0 : hint.id, controlProps['aria-describedby']].filter(Boolean).join(' ');
|
117
|
+
}
|
122
118
|
|
123
|
-
|
124
|
-
|
125
|
-
|
119
|
+
if (validationState === 'error' && ariaInvalidOnError) {
|
120
|
+
(_b = controlProps['aria-invalid']) !== null && _b !== void 0 ? _b : controlProps['aria-invalid'] = true;
|
121
|
+
}
|
126
122
|
|
127
|
-
|
128
|
-
|
123
|
+
const control = react_utilities_1.resolveShorthand(fieldProps.control, {
|
124
|
+
required: true,
|
125
|
+
defaultProps: {
|
126
|
+
ref,
|
127
|
+
id: baseId + '__control',
|
128
|
+
...controlProps
|
129
129
|
}
|
130
|
-
}
|
131
|
-
// If the state is not an error, then the control is described by the validation message, or hint, or both
|
132
|
-
const describedby = validationMessage || hint;
|
130
|
+
});
|
133
131
|
|
134
|
-
|
135
|
-
|
136
|
-
}
|
132
|
+
if (label && labelConnection === 'htmlFor') {
|
133
|
+
(_c = label.htmlFor) !== null && _c !== void 0 ? _c : label.htmlFor = control.id;
|
137
134
|
}
|
138
135
|
|
139
136
|
const state = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/useField.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;
|
1
|
+
{"version":3,"sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/useField.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGA,MAAM,sBAAsB,GAAG;EAC7B,KAAK,eAAE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,mBAAD,EAAoB,IAApB,CADsB;EAE7B,OAAO,eAAE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,eAAD,EAAgB,IAAhB,CAFoB;EAG7B,OAAO,eAAE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,uBAAD,EAAwB,IAAxB;AAHoB,CAA/B;AAMA;;AAEG;;AAC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} from '@fluentui/react-icons';\nimport { Label } from '@fluentui/react-label';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport type { FieldConfig, FieldControl, FieldPropsWithOptionalComponentProps, FieldState } from './Field.types';\n\nconst validationMessageIcons = {\n error: <ErrorCircle12Filled />,\n warning: <Warning12Filled />,\n success: <CheckmarkCircle12Filled />,\n} as const;\n\n/**\n * Partition the props used by the Field itself, from the props that are passed to the underlying field component.\n */\nexport const getPartitionedFieldProps = (props: FieldPropsWithOptionalComponentProps<FieldControl>) => {\n const {\n className,\n control,\n hint,\n label,\n orientation,\n root,\n style,\n validationMessage,\n validationMessageIcon,\n validationState,\n ...restOfProps\n } = props;\n\n const fieldProps = {\n className,\n control,\n hint,\n label,\n orientation,\n root,\n style,\n validationMessage,\n validationMessageIcon,\n validationState,\n };\n\n return [fieldProps, restOfProps] as const;\n};\n\n/**\n * Create the state required to render Field.\n *\n * The returned state can be modified with hooks such as useFieldStyles_unstable,\n * before being passed to renderField_unstable.\n *\n * @param props - Props passed to this field\n * @param ref - Ref to the control slot (primary slot)\n * @param params - Configuration parameters for this Field\n */\nexport const useField_unstable = <T extends FieldControl>(\n props: FieldPropsWithOptionalComponentProps<T>,\n ref: React.Ref<HTMLElement>,\n params: FieldConfig<T>,\n): FieldState<T> => {\n const [fieldProps, controlProps] = getPartitionedFieldProps(props);\n const { orientation = 'vertical', validationState } = fieldProps;\n const { labelConnection = 'htmlFor', ariaInvalidOnError = true } = params;\n\n const baseId = useId('field-');\n\n const root = resolveShorthand(fieldProps.root, {\n required: true,\n defaultProps: getNativeElementProps('div', fieldProps),\n });\n\n const label = resolveShorthand(fieldProps.label, {\n defaultProps: {\n id: baseId + '__label',\n required: controlProps.required,\n size: typeof controlProps.size === 'string' ? controlProps.size : undefined,\n // htmlFor is handled below\n },\n });\n\n const validationMessage = resolveShorthand(fieldProps.validationMessage, {\n defaultProps: {\n id: baseId + '__validationMessage',\n },\n });\n\n const hint = resolveShorthand(fieldProps.hint, {\n defaultProps: {\n id: baseId + '__hint',\n },\n });\n\n const validationMessageIcon = resolveShorthand(fieldProps.validationMessageIcon, {\n required: !!validationState,\n defaultProps: {\n children: validationState ? validationMessageIcons[validationState] : undefined,\n },\n });\n\n // Hook up aria props on the control\n if (label && labelConnection === 'aria-labelledby') {\n controlProps['aria-labelledby'] ??= label.id;\n }\n\n if (validationMessage || hint) {\n // The control is described by the validation message, or hint, or both\n // We also preserve and append any aria-describedby supplied by the user\n // For reference: https://github.com/microsoft/fluentui/pull/25580#discussion_r1017259933\n controlProps['aria-describedby'] = [validationMessage?.id, hint?.id, controlProps['aria-describedby']]\n .filter(Boolean)\n .join(' ');\n }\n\n if (validationState === 'error' && ariaInvalidOnError) {\n controlProps['aria-invalid'] ??= true;\n }\n\n const control = resolveShorthand(fieldProps.control, {\n required: true,\n defaultProps: {\n ref,\n id: baseId + '__control',\n ...controlProps,\n },\n });\n\n if (label && labelConnection === 'htmlFor') {\n label.htmlFor ??= control.id;\n }\n\n const state: FieldState<FieldControl> = {\n orientation,\n validationState,\n classNames: params.classNames,\n components: {\n root: 'div',\n control: params.component,\n label: Label,\n validationMessage: 'div',\n validationMessageIcon: 'span',\n hint: 'div',\n },\n root,\n control,\n label,\n validationMessageIcon,\n validationMessage,\n hint,\n };\n\n return state as FieldState<T>;\n};\n"],"sourceRoot":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-field",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20221123-0420.1",
|
4
4
|
"description": "Fluent UI Field components",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -26,15 +26,15 @@
|
|
26
26
|
"devDependencies": {
|
27
27
|
"@fluentui/eslint-plugin": "*",
|
28
28
|
"@fluentui/react-conformance": "*",
|
29
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
29
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20221123-0420.1",
|
30
30
|
"@fluentui/scripts": "^1.0.0"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@fluentui/react-context-selector": "0.0.0-nightly-
|
33
|
+
"@fluentui/react-context-selector": "0.0.0-nightly-20221123-0420.1",
|
34
34
|
"@fluentui/react-icons": "^2.0.175",
|
35
|
-
"@fluentui/react-label": "0.0.0-nightly-
|
36
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
37
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
35
|
+
"@fluentui/react-label": "0.0.0-nightly-20221123-0420.1",
|
36
|
+
"@fluentui/react-theme": "0.0.0-nightly-20221123-0420.1",
|
37
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20221123-0420.1",
|
38
38
|
"@griffel/react": "^1.4.2",
|
39
39
|
"tslib": "^2.1.0"
|
40
40
|
},
|