@fluentui/react-field 0.0.0-nightly-20230223-2115.1 → 0.0.0-nightly-20230227-0424.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/lib/Field.js.map +1 -1
- package/lib/components/Field/Field.js.map +1 -1
- package/lib/components/Field/Field.types.js +1 -1
- package/lib/components/Field/Field.types.js.map +1 -1
- package/lib/components/Field/index.js.map +1 -1
- package/lib/components/Field/renderField.js +11 -2
- package/lib/components/Field/renderField.js.map +1 -1
- package/lib/components/Field/useField.js +9 -8
- package/lib/components/Field/useField.js.map +1 -1
- package/lib/components/Field/useFieldStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/util/makeDeprecatedField.js +7 -5
- package/lib/util/makeDeprecatedField.js.map +1 -1
- package/lib-commonjs/Field.js +4 -5
- package/lib-commonjs/Field.js.map +1 -1
- package/lib-commonjs/components/Field/Field.js +12 -16
- package/lib-commonjs/components/Field/Field.js.map +1 -1
- package/lib-commonjs/components/Field/Field.types.js +2 -5
- package/lib-commonjs/components/Field/Field.types.js.map +1 -1
- package/lib-commonjs/components/Field/index.js +8 -9
- package/lib-commonjs/components/Field/index.js.map +1 -1
- package/lib-commonjs/components/Field/renderField.js +26 -15
- package/lib-commonjs/components/Field/renderField.js.map +1 -1
- package/lib-commonjs/components/Field/useField.js +102 -94
- package/lib-commonjs/components/Field/useField.js.map +1 -1
- package/lib-commonjs/components/Field/useFieldStyles.js +96 -137
- package/lib-commonjs/components/Field/useFieldStyles.js.map +1 -1
- package/lib-commonjs/index.js +49 -21
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/util/makeDeprecatedField.js +72 -56
- package/lib-commonjs/util/makeDeprecatedField.js.map +1 -1
- package/package.json +8 -8
- package/.swcrc +0 -33
@@ -1,105 +1,113 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
Object.defineProperty(exports, "useField_unstable", {
|
6
|
-
enumerable: true,
|
7
|
-
get: ()=>useField_unstable
|
4
|
+
value: true
|
8
5
|
});
|
9
|
-
|
10
|
-
const
|
11
|
-
const
|
12
|
-
const
|
13
|
-
const
|
14
|
-
var _controlProps, _arialabelledby, // Assign the child a generated ID if doesn't already have an ID
|
15
|
-
_controlProps1, _controlProps2, _ariainvalid, _controlProps3, _ariarequired;
|
6
|
+
exports.useField_unstable = void 0;
|
7
|
+
const React = /*#__PURE__*/require("react");
|
8
|
+
const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
|
9
|
+
const react_label_1 = /*#__PURE__*/require("@fluentui/react-label");
|
10
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
16
11
|
const validationMessageIcons = {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
error: /*#__PURE__*/React.createElement(react_icons_1.ErrorCircle12Filled, null),
|
13
|
+
warning: /*#__PURE__*/React.createElement(react_icons_1.Warning12Filled, null),
|
14
|
+
success: /*#__PURE__*/React.createElement(react_icons_1.CheckmarkCircle12Filled, null),
|
15
|
+
none: undefined
|
21
16
|
};
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
required: !!defaultIcon,
|
52
|
-
defaultProps: {
|
53
|
-
children: defaultIcon
|
54
|
-
}
|
55
|
-
});
|
56
|
-
const controlProps = /*#__PURE__*/ /*#__PURE__*/ _react.isValidElement(children) ? {
|
57
|
-
...children.props
|
58
|
-
} : {};
|
59
|
-
if (label) {
|
60
|
-
(_controlProps = controlProps)[_arialabelledby = 'aria-labelledby'] ?? (_controlProps[_arialabelledby] = label.id);
|
61
|
-
if (!label.htmlFor) {
|
62
|
-
(_controlProps1 = controlProps).id ?? (_controlProps1.id = baseId + '__control');
|
63
|
-
label.htmlFor = controlProps.id;
|
64
|
-
}
|
17
|
+
/**
|
18
|
+
* Create the state required to render Field.
|
19
|
+
*
|
20
|
+
* The returned state can be modified with hooks such as useFieldStyles_unstable,
|
21
|
+
* before being passed to renderField_unstable.
|
22
|
+
*
|
23
|
+
* @param props - Props passed to this field
|
24
|
+
* @param ref - Ref to the root
|
25
|
+
*/
|
26
|
+
const useField_unstable = (props, ref) => {
|
27
|
+
var _a, _b, _c, _d;
|
28
|
+
const {
|
29
|
+
children,
|
30
|
+
orientation = 'vertical',
|
31
|
+
required,
|
32
|
+
validationState = props.validationMessage ? 'error' : 'none',
|
33
|
+
size
|
34
|
+
} = props;
|
35
|
+
const baseId = react_utilities_1.useId('field-');
|
36
|
+
const root = react_utilities_1.getNativeElementProps('div', {
|
37
|
+
...props,
|
38
|
+
ref
|
39
|
+
}, /*excludedPropNames:*/['children']);
|
40
|
+
const label = react_utilities_1.resolveShorthand(props.label, {
|
41
|
+
defaultProps: {
|
42
|
+
id: baseId + '__label',
|
43
|
+
required,
|
44
|
+
size
|
45
|
+
// htmlFor is handled below
|
65
46
|
}
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
hint === null || hint === void 0 ? void 0 : hint.id,
|
73
|
-
controlProps['aria-describedby']
|
74
|
-
].filter(Boolean).join(' ');
|
47
|
+
});
|
48
|
+
|
49
|
+
const validationMessage = react_utilities_1.resolveShorthand(props.validationMessage, {
|
50
|
+
defaultProps: {
|
51
|
+
id: baseId + '__validationMessage',
|
52
|
+
role: validationState === 'error' ? 'alert' : undefined
|
75
53
|
}
|
76
|
-
|
77
|
-
|
54
|
+
});
|
55
|
+
const hint = react_utilities_1.resolveShorthand(props.hint, {
|
56
|
+
defaultProps: {
|
57
|
+
id: baseId + '__hint'
|
78
58
|
}
|
79
|
-
|
80
|
-
|
59
|
+
});
|
60
|
+
const defaultIcon = validationMessageIcons[validationState];
|
61
|
+
const validationMessageIcon = react_utilities_1.resolveShorthand(props.validationMessageIcon, {
|
62
|
+
required: !!defaultIcon,
|
63
|
+
defaultProps: {
|
64
|
+
children: defaultIcon
|
81
65
|
}
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
66
|
+
});
|
67
|
+
const controlProps = React.isValidElement(children) ? {
|
68
|
+
...children.props
|
69
|
+
} : {};
|
70
|
+
if (label) {
|
71
|
+
(_a = controlProps['aria-labelledby']) !== null && _a !== void 0 ? _a : controlProps['aria-labelledby'] = label.id;
|
72
|
+
if (!label.htmlFor) {
|
73
|
+
// Assign the child a generated ID if doesn't already have an ID
|
74
|
+
(_b = controlProps.id) !== null && _b !== void 0 ? _b : controlProps.id = baseId + '__control';
|
75
|
+
label.htmlFor = controlProps.id;
|
86
76
|
}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
77
|
+
}
|
78
|
+
if (validationMessage || hint) {
|
79
|
+
// The control is described by the validation message, or hint, or both
|
80
|
+
// We also preserve and append any aria-describedby supplied by the user
|
81
|
+
// For reference: https://github.com/microsoft/fluentui/pull/25580#discussion_r1017259933
|
82
|
+
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(' ');
|
83
|
+
}
|
84
|
+
if (validationState === 'error') {
|
85
|
+
(_c = controlProps['aria-invalid']) !== null && _c !== void 0 ? _c : controlProps['aria-invalid'] = true;
|
86
|
+
}
|
87
|
+
if (required) {
|
88
|
+
(_d = controlProps['aria-required']) !== null && _d !== void 0 ? _d : controlProps['aria-required'] = true;
|
89
|
+
}
|
90
|
+
if (React.isValidElement(children)) {
|
91
|
+
root.children = React.cloneElement(children, controlProps);
|
92
|
+
} else if (typeof children === 'function') {
|
93
|
+
root.children = children(controlProps);
|
94
|
+
}
|
95
|
+
return {
|
96
|
+
orientation,
|
97
|
+
validationState,
|
98
|
+
components: {
|
99
|
+
root: 'div',
|
100
|
+
label: react_label_1.Label,
|
101
|
+
validationMessage: 'div',
|
102
|
+
validationMessageIcon: 'span',
|
103
|
+
hint: 'div'
|
104
|
+
},
|
105
|
+
root,
|
106
|
+
label,
|
107
|
+
validationMessageIcon,
|
108
|
+
validationMessage,
|
109
|
+
hint
|
110
|
+
};
|
111
|
+
};
|
112
|
+
exports.useField_unstable = useField_unstable;
|
105
113
|
//# sourceMappingURL=useField.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AAGA,MAAMA,sBAAsB,GAAG;EAC7BC,KAAK,eAAEC,oBAACC,iCAAmB,OAAG;EAC9BC,OAAO,eAAEF,oBAACC,6BAAe,OAAG;EAC5BE,OAAO,eAAEH,oBAACC,qCAAuB,OAAG;EACpCG,IAAI,EAAEC;CACE;AAEV;;;;;;;;;AASO,MAAMC,iBAAiB,GAAG,CAACC,KAAiB,EAAEC,GAA8B,KAAgB;;EACjG,MAAM;IACJC,QAAQ;IACRC,WAAW,GAAG,UAAU;IACxBC,QAAQ;IACRC,eAAe,GAAGL,KAAK,CAACM,iBAAiB,GAAG,OAAO,GAAG,MAAM;IAC5DC;EAAI,CACL,GAAGP,KAAK;EAET,MAAMQ,MAAM,GAAGC,uBAAK,CAAC,QAAQ,CAAC;EAE9B,MAAMC,IAAI,GAAGD,uCAAqB,CAAC,KAAK,EAAE;IAAE,GAAGT,KAAK;IAAEC;EAAG,CAA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G,YAAY,CAAC,kBAAkB,CAAC,GAAG,CAACZ,iBAAiB,aAAjBA,iBAAiB,uBAAjBA,iBAAiB,CAAEO,EAAE,EAAEE,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEF,EAAE,EAAEK,YAAY,CAAC,kBAAkB,CAAC,CAAC,CACnGG,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAC;;EAGd,IAAIlB,eAAe,KAAK,OAAO,EAAE;IAC/B,kBAAY,CAAC,cAAc,oCAA3Ba,YAAY,CAAC,cAAc,IAAM,IAAI;;EAGvC,IAAId,QAAQ,EAAE;IACZ,kBAAY,CAAC,eAAe,oCAA5Bc,YAAY,CAAC,eAAe,IAAM,IAAI;;EAGxC,IAAIzB,KAAK,CAAC0B,cAAc,CAACjB,QAAQ,CAAC,EAAE;IAClCQ,IAAI,CAACR,QAAQ,GAAGT,KAAK,CAAC+B,YAAY,CAACtB,QAAQ,EAAEgB,YAAY,CAAC;GAC3D,MAAM,IAAI,OAAOhB,QAAQ,KAAK,UAAU,EAAE;IACzCQ,IAAI,CAACR,QAAQ,GAAGA,QAAQ,CAACgB,YAAY,CAAC;;EAGxC,OAAO;IACLf,WAAW;IACXE,eAAe;IACfoB,UAAU,EAAE;MACVf,IAAI,EAAE,KAAK;MACXC,KAAK,EAAEe,mBAAK;MACZpB,iBAAiB,EAAE,KAAK;MACxBW,qBAAqB,EAAE,MAAM;MAC7BF,IAAI,EAAE;KACP;IACDL,IAAI;IACJC,KAAK;IACLM,qBAAqB;IACrBX,iBAAiB;IACjBS;GACD;AACH,CAAC;AA9FYY,yBAAiB","names":["validationMessageIcons","error","React","react_icons_1","warning","success","none","undefined","useField_unstable","props","ref","children","orientation","required","validationState","validationMessage","size","baseId","react_utilities_1","root","label","defaultProps","id","role","hint","defaultIcon","validationMessageIcon","controlProps","isValidElement","htmlFor","filter","Boolean","join","cloneElement","components","react_label_1","exports"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/useField.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { CheckmarkCircle12Filled, ErrorCircle12Filled, Warning12Filled } from '@fluentui/react-icons';\nimport { Label } from '@fluentui/react-label';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport type { FieldChildProps, FieldProps, FieldState } from './Field.types';\n\nconst validationMessageIcons = {\n error: <ErrorCircle12Filled />,\n warning: <Warning12Filled />,\n success: <CheckmarkCircle12Filled />,\n none: undefined,\n} as const;\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 root\n */\nexport const useField_unstable = (props: FieldProps, ref: React.Ref<HTMLDivElement>): FieldState => {\n const {\n children,\n orientation = 'vertical',\n required,\n validationState = props.validationMessage ? 'error' : 'none',\n size,\n } = props;\n\n const baseId = useId('field-');\n\n const root = getNativeElementProps('div', { ...props, ref }, /*excludedPropNames:*/ ['children']);\n\n const label = resolveShorthand(props.label, {\n defaultProps: {\n id: baseId + '__label',\n required,\n size,\n // htmlFor is handled below\n },\n });\n\n const validationMessage = resolveShorthand(props.validationMessage, {\n defaultProps: {\n id: baseId + '__validationMessage',\n role: validationState === 'error' ? 'alert' : undefined,\n },\n });\n\n const hint = resolveShorthand(props.hint, {\n defaultProps: {\n id: baseId + '__hint',\n },\n });\n\n const defaultIcon = validationMessageIcons[validationState];\n const validationMessageIcon = resolveShorthand(props.validationMessageIcon, {\n required: !!defaultIcon,\n defaultProps: {\n children: defaultIcon,\n },\n });\n\n const controlProps: FieldChildProps = React.isValidElement(children) ? { ...children.props } : {};\n\n if (label) {\n controlProps['aria-labelledby'] ??= label.id;\n\n if (!label.htmlFor) {\n // Assign the child a generated ID if doesn't already have an ID\n controlProps.id ??= baseId + '__control';\n label.htmlFor = controlProps.id;\n }\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') {\n controlProps['aria-invalid'] ??= true;\n }\n\n if (required) {\n controlProps['aria-required'] ??= true;\n }\n\n if (React.isValidElement(children)) {\n root.children = React.cloneElement(children, controlProps);\n } else if (typeof children === 'function') {\n root.children = children(controlProps);\n }\n\n return {\n orientation,\n validationState,\n components: {\n root: 'div',\n label: Label,\n validationMessage: 'div',\n validationMessageIcon: 'span',\n hint: 'div',\n },\n root,\n label,\n validationMessageIcon,\n validationMessage,\n hint,\n };\n};\n"]}
|
@@ -1,154 +1,113 @@
|
|
1
1
|
"use strict";
|
2
|
+
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
3
|
-
|
4
|
-
});
|
5
|
-
function _export(target, all) {
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
7
|
-
enumerable: true,
|
8
|
-
get: all[name]
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
fieldClassNames: ()=>fieldClassNames,
|
13
|
-
useFieldStyles_unstable: ()=>useFieldStyles_unstable
|
4
|
+
value: true
|
14
5
|
});
|
15
|
-
|
16
|
-
const
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
6
|
+
exports.useFieldStyles_unstable = exports.fieldClassNames = void 0;
|
7
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
8
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
+
exports.fieldClassNames = {
|
10
|
+
root: `fui-Field`,
|
11
|
+
label: `fui-Field__label`,
|
12
|
+
validationMessage: `fui-Field__validationMessage`,
|
13
|
+
validationMessageIcon: `fui-Field__validationMessageIcon`,
|
14
|
+
hint: `fui-Field__hint`
|
22
15
|
};
|
23
16
|
// Size of the icon in the validation message
|
24
17
|
const iconSize = '12px';
|
25
18
|
/**
|
26
19
|
* Styles for the root slot
|
27
|
-
*/
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
Budl1dq: "f1c2z91y"
|
41
|
-
}
|
20
|
+
*/
|
21
|
+
const useRootStyles = /*#__PURE__*/react_1.__styles({
|
22
|
+
base: {
|
23
|
+
mc9l5x: "f13qh94s"
|
24
|
+
},
|
25
|
+
horizontal: {
|
26
|
+
Budl1dq: "f2wwaib",
|
27
|
+
wkccdc: "f1645dqt"
|
28
|
+
},
|
29
|
+
horizontalNoLabel: {
|
30
|
+
uwmqm3: ["f15jqgz8", "fggqkej"],
|
31
|
+
Budl1dq: "f1c2z91y"
|
32
|
+
}
|
42
33
|
}, {
|
43
|
-
|
44
|
-
".f13qh94s{display:grid;}",
|
45
|
-
".f2wwaib{grid-template-columns:33% 1fr;}",
|
46
|
-
".f1645dqt{grid-template-rows:auto auto auto 1fr;}",
|
47
|
-
".f15jqgz8{padding-left:33%;}",
|
48
|
-
".fggqkej{padding-right:33%;}",
|
49
|
-
".f1c2z91y{grid-template-columns:1fr;}"
|
50
|
-
]
|
34
|
+
d: [".f13qh94s{display:grid;}", ".f2wwaib{grid-template-columns:33% 1fr;}", ".f1645dqt{grid-template-rows:auto auto auto 1fr;}", ".f15jqgz8{padding-left:33%;}", ".fggqkej{padding-right:33%;}", ".f1c2z91y{grid-template-columns:1fr;}"]
|
51
35
|
});
|
52
|
-
const useLabelStyles = /*#__PURE__*/
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
Ijaq50: "f16hsg94",
|
73
|
-
nk6f5a: "f1nzqi2z"
|
74
|
-
}
|
36
|
+
const useLabelStyles = /*#__PURE__*/react_1.__styles({
|
37
|
+
base: {
|
38
|
+
z8tnut: "fclwglc",
|
39
|
+
Byoj8tv: "fywfov9"
|
40
|
+
},
|
41
|
+
large: {
|
42
|
+
z8tnut: "f1sl3k7w",
|
43
|
+
Byoj8tv: "f1brlhvm"
|
44
|
+
},
|
45
|
+
vertical: {
|
46
|
+
jrapky: "fyacil5"
|
47
|
+
},
|
48
|
+
verticalLarge: {
|
49
|
+
jrapky: "f8l5zjj"
|
50
|
+
},
|
51
|
+
horizontal: {
|
52
|
+
t21cq0: ["fkujibs", "f199hnxi"],
|
53
|
+
Ijaq50: "f16hsg94",
|
54
|
+
nk6f5a: "f1nzqi2z"
|
55
|
+
}
|
75
56
|
}, {
|
76
|
-
|
77
|
-
".fclwglc{padding-top:var(--spacingVerticalXXS);}",
|
78
|
-
".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",
|
79
|
-
".f1sl3k7w{padding-top:1px;}",
|
80
|
-
".f1brlhvm{padding-bottom:1px;}",
|
81
|
-
".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",
|
82
|
-
".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",
|
83
|
-
".fkujibs{margin-right:var(--spacingHorizontalM);}",
|
84
|
-
".f199hnxi{margin-left:var(--spacingHorizontalM);}",
|
85
|
-
".f16hsg94{grid-row-start:1;}",
|
86
|
-
".f1nzqi2z{grid-row-end:-1;}"
|
87
|
-
]
|
57
|
+
d: [".fclwglc{padding-top:var(--spacingVerticalXXS);}", ".fywfov9{padding-bottom:var(--spacingVerticalXXS);}", ".f1sl3k7w{padding-top:1px;}", ".f1brlhvm{padding-bottom:1px;}", ".fyacil5{margin-bottom:var(--spacingVerticalXXS);}", ".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}", ".fkujibs{margin-right:var(--spacingHorizontalM);}", ".f199hnxi{margin-left:var(--spacingHorizontalM);}", ".f16hsg94{grid-row-start:1;}", ".f1nzqi2z{grid-row-end:-1;}"]
|
88
58
|
});
|
89
|
-
const useSecondaryTextBaseClassName = /*#__PURE__*/
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
uwmqm3: [
|
98
|
-
"frawy03",
|
99
|
-
"fg4c52"
|
100
|
-
]
|
101
|
-
}
|
59
|
+
const useSecondaryTextBaseClassName = /*#__PURE__*/react_1.__resetStyles("r5c4z9l", null, [".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]);
|
60
|
+
const useSecondaryTextStyles = /*#__PURE__*/react_1.__styles({
|
61
|
+
error: {
|
62
|
+
sj55zd: "f1hcrxcs"
|
63
|
+
},
|
64
|
+
withIcon: {
|
65
|
+
uwmqm3: ["frawy03", "fg4c52"]
|
66
|
+
}
|
102
67
|
}, {
|
103
|
-
|
104
|
-
".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",
|
105
|
-
".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",
|
106
|
-
".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"
|
107
|
-
]
|
68
|
+
d: [".f1hcrxcs{color:var(--colorPaletteRedForeground1);}", ".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}", ".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]
|
108
69
|
});
|
109
|
-
const useValidationMessageIconBaseClassName = /*#__PURE__*/
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
success: {
|
121
|
-
sj55zd: "ffmvakt"
|
122
|
-
}
|
70
|
+
const useValidationMessageIconBaseClassName = /*#__PURE__*/react_1.__resetStyles("ra7h1uk", "r1rh6bd7", [".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}", ".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]);
|
71
|
+
const useValidationMessageIconStyles = /*#__PURE__*/react_1.__styles({
|
72
|
+
error: {
|
73
|
+
sj55zd: "f1hcrxcs"
|
74
|
+
},
|
75
|
+
warning: {
|
76
|
+
sj55zd: "f1k5f75o"
|
77
|
+
},
|
78
|
+
success: {
|
79
|
+
sj55zd: "ffmvakt"
|
80
|
+
}
|
123
81
|
}, {
|
124
|
-
|
125
|
-
".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",
|
126
|
-
".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",
|
127
|
-
".ffmvakt{color:var(--colorPaletteGreenForeground1);}"
|
128
|
-
]
|
82
|
+
d: [".f1hcrxcs{color:var(--colorPaletteRedForeground1);}", ".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}", ".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]
|
129
83
|
});
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
84
|
+
/**
|
85
|
+
* Apply styling to the Field slots based on the state
|
86
|
+
*/
|
87
|
+
const useFieldStyles_unstable = state => {
|
88
|
+
const {
|
89
|
+
validationState
|
90
|
+
} = state;
|
91
|
+
const horizontal = state.orientation === 'horizontal';
|
92
|
+
const rootStyles = useRootStyles();
|
93
|
+
state.root.className = react_1.mergeClasses(exports.fieldClassNames.root, rootStyles.base, horizontal && rootStyles.horizontal, horizontal && !state.label && rootStyles.horizontalNoLabel, state.root.className);
|
94
|
+
const labelStyles = useLabelStyles();
|
95
|
+
if (state.label) {
|
96
|
+
state.label.className = react_1.mergeClasses(exports.fieldClassNames.label, labelStyles.base, horizontal && labelStyles.horizontal, !horizontal && labelStyles.vertical, state.label.size === 'large' && labelStyles.large, !horizontal && state.label.size === 'large' && labelStyles.verticalLarge, state.label.className);
|
97
|
+
}
|
98
|
+
const validationMessageIconBaseClassName = useValidationMessageIconBaseClassName();
|
99
|
+
const validationMessageIconStyles = useValidationMessageIconStyles();
|
100
|
+
if (state.validationMessageIcon) {
|
101
|
+
state.validationMessageIcon.className = react_1.mergeClasses(exports.fieldClassNames.validationMessageIcon, validationMessageIconBaseClassName, validationState !== 'none' && validationMessageIconStyles[validationState], state.validationMessageIcon.className);
|
102
|
+
}
|
103
|
+
const secondaryTextBaseClassName = useSecondaryTextBaseClassName();
|
104
|
+
const secondaryTextStyles = useSecondaryTextStyles();
|
105
|
+
if (state.validationMessage) {
|
106
|
+
state.validationMessage.className = react_1.mergeClasses(exports.fieldClassNames.validationMessage, secondaryTextBaseClassName, validationState === 'error' && secondaryTextStyles.error, !!state.validationMessageIcon && secondaryTextStyles.withIcon, state.validationMessage.className);
|
107
|
+
}
|
108
|
+
if (state.hint) {
|
109
|
+
state.hint.className = react_1.mergeClasses(exports.fieldClassNames.hint, secondaryTextBaseClassName, state.hint.className);
|
110
|
+
}
|
111
|
+
};
|
112
|
+
exports.useFieldStyles_unstable = useFieldStyles_unstable;
|
154
113
|
//# sourceMappingURL=useFieldStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"mappings":";;;;;;AAAA;AAEA;AAGaA,uBAAe,GAA+B;EACzDC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAE,kBAAkB;EACzBC,iBAAiB,EAAE,8BAA8B;EACjDC,qBAAqB,EAAE,kCAAkC;EACzDC,IAAI,EAAE;CACP;AAED;AAC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BAA0B,EAAEf,KAAK,CAACV,IAAI,CAACe,SAAS,CAAC;;AAE/G,CAAC;AApDYpB,+BAAuB","names":["exports","root","label","validationMessage","validationMessageIcon","hint","iconSize","useRootStyles","react_1","useLabelStyles","useSecondaryTextBaseClassName","useSecondaryTextStyles","useValidationMessageIconBaseClassName","useValidationMessageIconStyles","useFieldStyles_unstable","state","validationState","horizontal","orientation","rootStyles","className","base","horizontalNoLabel","labelStyles","vertical","size","large","verticalLarge","validationMessageIconBaseClassName","validationMessageIconStyles","secondaryTextBaseClassName","secondaryTextStyles","error","withIcon"],"sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-field/src/components/Field/useFieldStyles.ts"],"sourcesContent":["import { tokens, typographyStyles } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { FieldSlots, FieldState } from './Field.types';\n\nexport const fieldClassNames: SlotClassNames<FieldSlots> = {\n root: `fui-Field`,\n label: `fui-Field__label`,\n validationMessage: `fui-Field__validationMessage`,\n validationMessageIcon: `fui-Field__validationMessageIcon`,\n hint: `fui-Field__hint`,\n};\n\n// Size of the icon in the validation message\nconst iconSize = '12px';\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n base: {\n display: 'grid',\n },\n\n // In horizontal layout, the field is a grid with the label taking up the entire first column.\n // The last row is slack space in case the label is taller than the rest of the content.\n horizontal: {\n gridTemplateColumns: '33% 1fr',\n gridTemplateRows: 'auto auto auto 1fr',\n },\n\n // In horizontal layout without a label, replace the label's column with padding.\n // This lets grid auto-flow properly place the other children, and keeps fields with and without labels aligned.\n horizontalNoLabel: {\n paddingLeft: '33%',\n gridTemplateColumns: '1fr',\n },\n});\n\nconst useLabelStyles = makeStyles({\n base: {\n paddingTop: tokens.spacingVerticalXXS,\n paddingBottom: tokens.spacingVerticalXXS,\n },\n\n large: {\n paddingTop: '1px',\n paddingBottom: '1px',\n },\n\n vertical: {\n marginBottom: tokens.spacingVerticalXXS,\n },\n\n verticalLarge: {\n marginBottom: tokens.spacingVerticalXS,\n },\n\n horizontal: {\n marginRight: tokens.spacingHorizontalM,\n gridRowStart: '1',\n gridRowEnd: '-1',\n },\n});\n\nconst useSecondaryTextBaseClassName = makeResetStyles({\n marginTop: tokens.spacingVerticalXXS,\n color: tokens.colorNeutralForeground3,\n ...typographyStyles.caption1,\n});\n\nconst useSecondaryTextStyles = makeStyles({\n error: {\n color: tokens.colorPaletteRedForeground1,\n },\n\n withIcon: {\n // Add a gutter for the icon, to allow multiple lines of text to line up to the right of the icon.\n paddingLeft: `calc(${iconSize} + ${tokens.spacingHorizontalXS})`,\n },\n});\n\nconst useValidationMessageIconBaseClassName = makeResetStyles({\n display: 'inline-block',\n fontSize: iconSize,\n // Negative left margin puts the icon in the gutter of the validation message div's withIcon style.\n marginLeft: `calc(-${iconSize} - ${tokens.spacingHorizontalXS})`,\n marginRight: tokens.spacingHorizontalXS,\n // Line height of 0 prevents the verticalAlign from affecting the line height of the text.\n lineHeight: '0',\n // Negative verticalAlign shifts the inline icon down to align with the text (effectively top padding).\n verticalAlign: '-1px',\n});\n\nconst useValidationMessageIconStyles = makeStyles({\n error: {\n color: tokens.colorPaletteRedForeground1,\n },\n warning: {\n color: tokens.colorPaletteDarkOrangeForeground1,\n },\n success: {\n color: tokens.colorPaletteGreenForeground1,\n },\n});\n\n/**\n * Apply styling to the Field slots based on the state\n */\nexport const useFieldStyles_unstable = (state: FieldState) => {\n const { validationState } = state;\n const horizontal = state.orientation === 'horizontal';\n\n const rootStyles = useRootStyles();\n state.root.className = mergeClasses(\n fieldClassNames.root,\n rootStyles.base,\n horizontal && rootStyles.horizontal,\n horizontal && !state.label && rootStyles.horizontalNoLabel,\n state.root.className,\n );\n\n const labelStyles = useLabelStyles();\n if (state.label) {\n state.label.className = mergeClasses(\n fieldClassNames.label,\n labelStyles.base,\n horizontal && labelStyles.horizontal,\n !horizontal && labelStyles.vertical,\n state.label.size === 'large' && labelStyles.large,\n !horizontal && state.label.size === 'large' && labelStyles.verticalLarge,\n state.label.className,\n );\n }\n\n const validationMessageIconBaseClassName = useValidationMessageIconBaseClassName();\n const validationMessageIconStyles = useValidationMessageIconStyles();\n if (state.validationMessageIcon) {\n state.validationMessageIcon.className = mergeClasses(\n fieldClassNames.validationMessageIcon,\n validationMessageIconBaseClassName,\n validationState !== 'none' && validationMessageIconStyles[validationState],\n state.validationMessageIcon.className,\n );\n }\n\n const secondaryTextBaseClassName = useSecondaryTextBaseClassName();\n const secondaryTextStyles = useSecondaryTextStyles();\n if (state.validationMessage) {\n state.validationMessage.className = mergeClasses(\n fieldClassNames.validationMessage,\n secondaryTextBaseClassName,\n validationState === 'error' && secondaryTextStyles.error,\n !!state.validationMessageIcon && secondaryTextStyles.withIcon,\n state.validationMessage.className,\n );\n }\n\n if (state.hint) {\n state.hint.className = mergeClasses(fieldClassNames.hint, secondaryTextBaseClassName, state.hint.className);\n }\n};\n"]}
|
package/lib-commonjs/index.js
CHANGED
@@ -1,24 +1,52 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
3
|
-
value: true
|
4
|
-
});
|
5
|
-
function _export(target, all) {
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
7
|
-
enumerable: true,
|
8
|
-
get: all[name]
|
9
|
-
});
|
10
|
-
}
|
11
|
-
_export(exports, {
|
12
|
-
Field: ()=>_field.Field,
|
13
|
-
fieldClassNames: ()=>_field.fieldClassNames,
|
14
|
-
renderField_unstable: ()=>_field.renderField_unstable,
|
15
|
-
useFieldStyles_unstable: ()=>_field.useFieldStyles_unstable,
|
16
|
-
useField_unstable: ()=>_field.useField_unstable,
|
17
|
-
getDeprecatedFieldClassNames: ()=>_makeDeprecatedField.getDeprecatedFieldClassNames,
|
18
|
-
makeDeprecatedField: ()=>_makeDeprecatedField.makeDeprecatedField
|
19
|
-
});
|
20
|
-
const _field = require("./Field");
|
21
|
-
const _makeDeprecatedField = require("./util/makeDeprecatedField");
|
22
|
-
//# sourceMappingURL=index.js.map
|
23
2
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.makeDeprecatedField = exports.getDeprecatedFieldClassNames = exports.useField_unstable = exports.useFieldStyles_unstable = exports.renderField_unstable = exports.fieldClassNames = exports.Field = void 0;
|
7
|
+
var Field_1 = /*#__PURE__*/require("./Field");
|
8
|
+
Object.defineProperty(exports, "Field", {
|
9
|
+
enumerable: true,
|
10
|
+
get: function () {
|
11
|
+
return Field_1.Field;
|
12
|
+
}
|
13
|
+
});
|
14
|
+
Object.defineProperty(exports, "fieldClassNames", {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () {
|
17
|
+
return Field_1.fieldClassNames;
|
18
|
+
}
|
19
|
+
});
|
20
|
+
Object.defineProperty(exports, "renderField_unstable", {
|
21
|
+
enumerable: true,
|
22
|
+
get: function () {
|
23
|
+
return Field_1.renderField_unstable;
|
24
|
+
}
|
25
|
+
});
|
26
|
+
Object.defineProperty(exports, "useFieldStyles_unstable", {
|
27
|
+
enumerable: true,
|
28
|
+
get: function () {
|
29
|
+
return Field_1.useFieldStyles_unstable;
|
30
|
+
}
|
31
|
+
});
|
32
|
+
Object.defineProperty(exports, "useField_unstable", {
|
33
|
+
enumerable: true,
|
34
|
+
get: function () {
|
35
|
+
return Field_1.useField_unstable;
|
36
|
+
}
|
37
|
+
});
|
38
|
+
// eslint-disable-next-line deprecation/deprecation
|
39
|
+
var makeDeprecatedField_1 = /*#__PURE__*/require("./util/makeDeprecatedField");
|
40
|
+
Object.defineProperty(exports, "getDeprecatedFieldClassNames", {
|
41
|
+
enumerable: true,
|
42
|
+
get: function () {
|
43
|
+
return makeDeprecatedField_1.getDeprecatedFieldClassNames;
|
44
|
+
}
|
45
|
+
});
|
46
|
+
Object.defineProperty(exports, "makeDeprecatedField", {
|
47
|
+
enumerable: true,
|
48
|
+
get: function () {
|
49
|
+
return makeDeprecatedField_1.makeDeprecatedField;
|
50
|
+
}
|
51
|
+
});
|
24
52
|
//# sourceMappingURL=index.js.map
|