@fluentui/react-field 9.75.0-experimental.css-modules.20261031-810ab07afb.0 → 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,22 +1,22 @@
1
1
  # Change Log - @fluentui/react-field
2
2
 
3
- <!-- This log was last generated on Sat, 31 Oct 2026 11:08:44 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 03 Nov 2026 14:18:25 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.75.0-experimental.css-modules.20261031-810ab07afb.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.75.0-experimental.css-modules.20261031-810ab07afb.0)
7
+ ## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
8
8
 
9
- Sat, 31 Oct 2026 11:08:44 GMT
9
+ Tue, 03 Nov 2026 14:18:25 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Release 9.75.0-experimental.css-modules.20261031-810ab07afb ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
- - Bump @fluentui/react-context-selector to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
- - Bump @fluentui/react-jsx-runtime to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
- - Bump @fluentui/react-label to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
- - Bump @fluentui/react-theme to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
- - Bump @fluentui/react-utilities to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
13
+ - Release 9.75.1-experimental.positioning-engine.20261103-19efe125d1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
+ - Bump @fluentui/react-context-selector to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
+ - Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-label to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
20
 
21
21
  ## [9.5.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.5.6)
22
22
 
package/README.md CHANGED
@@ -66,16 +66,3 @@ See [SPEC.md](./SPEC.md).
66
66
  ### Migration Guide
67
67
 
68
68
  If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating the Field component.
69
-
70
- ## Opt-in CSS Modules styles
71
-
72
- The `use*Styles.styles.css` modules beside the existing Griffel hooks provide opt-in,
73
- layered CSS alternatives with the same exports. Configure the bundler to replace
74
- `.styles` with `.styles.css.ts` for source imports and `.styles.js` with
75
- `.styles.css.js` for built imports. Load CSS Modules as default class-name maps and
76
- retain the package CSS assets. Default component imports still use Griffel.
77
- Composed components require their own style alternatives; this does not remove
78
- all reachable Griffel dependencies. Browser, forced-colors, RTL, and visual-regression
79
- parity must be validated before switching defaults.
80
-
81
- Select the CSS Modules alternative for the composed `Label` as well; mixing a layered parent with an unlayered Griffel child can change the label cascade.
package/package.json CHANGED
@@ -1,29 +1,26 @@
1
1
  {
2
2
  "name": "@fluentui/react-field",
3
- "version": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
3
+ "version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
4
4
  "description": "Fluent UI Field components",
5
5
  "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
- "sideEffects": [
9
- "**/*.css"
10
- ],
8
+ "sideEffects": false,
11
9
  "repository": {
12
10
  "type": "git",
13
11
  "url": "https://github.com/microsoft/fluentui"
14
12
  },
15
13
  "license": "MIT",
16
14
  "dependencies": {
17
- "@fluentui/react-context-selector": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
15
+ "@fluentui/react-context-selector": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
18
16
  "@fluentui/react-icons": "^2.0.245",
19
- "@fluentui/react-jsx-runtime": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
20
- "@fluentui/react-label": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
21
- "@fluentui/react-shared-contexts": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
22
- "@fluentui/react-theme": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
23
- "@fluentui/react-utilities": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
17
+ "@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
18
+ "@fluentui/react-label": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
19
+ "@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
20
+ "@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
21
+ "@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
24
22
  "@griffel/react": "^1.5.32",
25
- "@swc/helpers": "^0.5.1",
26
- "clsx": "^2.1.1"
23
+ "@swc/helpers": "^0.5.1"
27
24
  },
28
25
  "peerDependencies": {
29
26
  "@types/react": ">=16.14.0 <20.0.0",
@@ -1,89 +0,0 @@
1
- @layer fluentui {
2
- .root {
3
- display: grid;
4
- }
5
-
6
- .root:where(.horizontal) {
7
- grid-template-columns: 33% 1fr;
8
- grid-template-rows: auto auto auto 1fr;
9
- }
10
-
11
- .root:where(.horizontal:not(.withLabel)) {
12
- padding-inline-start: 33%;
13
- grid-template-columns: 1fr;
14
- }
15
-
16
- .label {
17
- max-width: max-content;
18
- max-height: max-content;
19
- }
20
-
21
- :where(.vertical) > .label {
22
- padding-top: var(--spacingVerticalXXS);
23
- padding-bottom: var(--spacingVerticalXXS);
24
- margin-bottom: var(--spacingVerticalXXS);
25
- }
26
-
27
- :where(.vertical.large) > .label {
28
- padding-top: calc(var(--spacingVerticalXXS) / 2);
29
- padding-bottom: calc(var(--spacingVerticalXXS) / 2);
30
- margin-bottom: var(--spacingVerticalXS);
31
- }
32
-
33
- :where(.horizontal) > .label {
34
- padding-top: var(--spacingVerticalSNudge);
35
- padding-bottom: var(--spacingVerticalSNudge);
36
- margin-inline-end: var(--spacingHorizontalM);
37
- grid-row-start: 1;
38
- grid-row-end: -1;
39
- }
40
-
41
- :where(.horizontal.small) > .label {
42
- padding-top: var(--spacingVerticalXS);
43
- padding-bottom: var(--spacingVerticalXS);
44
- }
45
-
46
- :where(.horizontal.large) > .label {
47
- padding-top: calc(var(--spacingVerticalS) + var(--spacingVerticalXXS) / 2);
48
- padding-bottom: calc(var(--spacingVerticalS) + var(--spacingVerticalXXS) / 2);
49
- }
50
-
51
- .validationMessage,
52
- .hint {
53
- margin-top: var(--spacingVerticalXXS);
54
- color: var(--colorNeutralForeground3);
55
- font-family: var(--fontFamilyBase);
56
- font-size: var(--fontSizeBase200);
57
- font-weight: var(--fontWeightRegular);
58
- line-height: var(--lineHeightBase200);
59
- }
60
-
61
- :where(.error) > .validationMessage {
62
- color: var(--colorPaletteRedForeground1);
63
- }
64
-
65
- :where(.withIcon) > .validationMessage {
66
- padding-inline-start: calc(var(--spacingHorizontalM) + var(--spacingHorizontalXS));
67
- }
68
-
69
- .validationMessageIcon {
70
- display: inline-block;
71
- font-size: var(--fontSizeBase200);
72
- margin-inline-start: calc(calc(0px - var(--spacingHorizontalM)) - var(--spacingHorizontalXS));
73
- margin-inline-end: var(--spacingHorizontalXS);
74
- line-height: 0;
75
- vertical-align: calc(var(--spacingVerticalXXS) / -2);
76
- }
77
-
78
- :where(.error) > :where(.validationMessage) > .validationMessageIcon {
79
- color: var(--colorPaletteRedForeground1);
80
- }
81
-
82
- :where(.warning) > :where(.validationMessage) > .validationMessageIcon {
83
- color: var(--colorPaletteDarkOrangeForeground1);
84
- }
85
-
86
- :where(.success) > :where(.validationMessage) > .validationMessageIcon {
87
- color: var(--colorPaletteGreenForeground1);
88
- }
89
- }
@@ -1,25 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./Field.module.css";
3
- export const fieldClassNames = {
4
- root: `fui-Field`,
5
- label: `fui-Field__label`,
6
- validationMessage: `fui-Field__validationMessage`,
7
- validationMessageIcon: `fui-Field__validationMessageIcon`,
8
- hint: `fui-Field__hint`
9
- };
10
- export const useFieldStyles_unstable = (state)=>{
11
- state.root.className = clsx(fieldClassNames.root, styles.root, styles[state.orientation], styles[state.size], styles[state.validationState], state.label && styles.withLabel, state.validationMessageIcon && styles.withIcon, state.root.className);
12
- if (state.label) {
13
- state.label.className = clsx(fieldClassNames.label, styles.label, state.label.className);
14
- }
15
- if (state.validationMessage) {
16
- state.validationMessage.className = clsx(fieldClassNames.validationMessage, styles.validationMessage, state.validationMessage.className);
17
- }
18
- if (state.validationMessageIcon) {
19
- state.validationMessageIcon.className = clsx(fieldClassNames.validationMessageIcon, styles.validationMessageIcon, state.validationMessageIcon.className);
20
- }
21
- if (state.hint) {
22
- state.hint.className = clsx(fieldClassNames.hint, styles.hint, state.hint.className);
23
- }
24
- return state;
25
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Field/useFieldStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { FieldSlots, FieldState } from './Field.types';\nimport styles from './Field.module.css';\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\nexport const useFieldStyles_unstable = (state: FieldState): FieldState => {\n state.root.className = clsx(\n fieldClassNames.root,\n styles.root,\n styles[state.orientation],\n styles[state.size],\n styles[state.validationState],\n state.label && styles.withLabel,\n state.validationMessageIcon && styles.withIcon,\n state.root.className,\n );\n if (state.label) {\n state.label.className = clsx(fieldClassNames.label, styles.label, state.label.className);\n }\n if (state.validationMessage) {\n state.validationMessage.className = clsx(\n fieldClassNames.validationMessage,\n styles.validationMessage,\n state.validationMessage.className,\n );\n }\n if (state.validationMessageIcon) {\n state.validationMessageIcon.className = clsx(\n fieldClassNames.validationMessageIcon,\n styles.validationMessageIcon,\n state.validationMessageIcon.className,\n );\n }\n if (state.hint) {\n state.hint.className = clsx(fieldClassNames.hint, styles.hint, state.hint.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","fieldClassNames","root","label","validationMessage","validationMessageIcon","hint","useFieldStyles_unstable","state","className","orientation","size","validationState","withLabel","withIcon"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,qBAAqB;AAExC,OAAO,MAAMC,kBAA8C;IACzDC,MAAM,CAAC,SAAS,CAAC;IACjBC,OAAO,CAAC,gBAAgB,CAAC;IACzBC,mBAAmB,CAAC,4BAA4B,CAAC;IACjDC,uBAAuB,CAAC,gCAAgC,CAAC;IACzDC,MAAM,CAAC,eAAe,CAAC;AACzB,EAAE;AAEF,OAAO,MAAMC,0BAA0B,CAACC;IACtCA,MAAMN,IAAI,CAACO,SAAS,GAAGV,KACrBE,gBAAgBC,IAAI,EACpBF,OAAOE,IAAI,EACXF,MAAM,CAACQ,MAAME,WAAW,CAAC,EACzBV,MAAM,CAACQ,MAAMG,IAAI,CAAC,EAClBX,MAAM,CAACQ,MAAMI,eAAe,CAAC,EAC7BJ,MAAML,KAAK,IAAIH,OAAOa,SAAS,EAC/BL,MAAMH,qBAAqB,IAAIL,OAAOc,QAAQ,EAC9CN,MAAMN,IAAI,CAACO,SAAS;IAEtB,IAAID,MAAML,KAAK,EAAE;QACfK,MAAML,KAAK,CAACM,SAAS,GAAGV,KAAKE,gBAAgBE,KAAK,EAAEH,OAAOG,KAAK,EAAEK,MAAML,KAAK,CAACM,SAAS;IACzF;IACA,IAAID,MAAMJ,iBAAiB,EAAE;QAC3BI,MAAMJ,iBAAiB,CAACK,SAAS,GAAGV,KAClCE,gBAAgBG,iBAAiB,EACjCJ,OAAOI,iBAAiB,EACxBI,MAAMJ,iBAAiB,CAACK,SAAS;IAErC;IACA,IAAID,MAAMH,qBAAqB,EAAE;QAC/BG,MAAMH,qBAAqB,CAACI,SAAS,GAAGV,KACtCE,gBAAgBI,qBAAqB,EACrCL,OAAOK,qBAAqB,EAC5BG,MAAMH,qBAAqB,CAACI,SAAS;IAEzC;IACA,IAAID,MAAMF,IAAI,EAAE;QACdE,MAAMF,IAAI,CAACG,SAAS,GAAGV,KAAKE,gBAAgBK,IAAI,EAAEN,OAAOM,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACrF;IAEA,OAAOD;AACT,EAAE"}
@@ -1,25 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./Field.module.css";
3
- export const fieldClassNames = {
4
- root: `fui-Field`,
5
- label: `fui-Field__label`,
6
- validationMessage: `fui-Field__validationMessage`,
7
- validationMessageIcon: `fui-Field__validationMessageIcon`,
8
- hint: `fui-Field__hint`
9
- };
10
- export const useFieldStyles_unstable = (state)=>{
11
- state.root.className = clsx(fieldClassNames.root, styles.root, styles[state.orientation], styles[state.size], styles[state.validationState], state.label && styles.withLabel, state.validationMessageIcon && styles.withIcon, state.root.className);
12
- if (state.label) {
13
- state.label.className = clsx(fieldClassNames.label, styles.label, state.label.className);
14
- }
15
- if (state.validationMessage) {
16
- state.validationMessage.className = clsx(fieldClassNames.validationMessage, styles.validationMessage, state.validationMessage.className);
17
- }
18
- if (state.validationMessageIcon) {
19
- state.validationMessageIcon.className = clsx(fieldClassNames.validationMessageIcon, styles.validationMessageIcon, state.validationMessageIcon.className);
20
- }
21
- if (state.hint) {
22
- state.hint.className = clsx(fieldClassNames.hint, styles.hint, state.hint.className);
23
- }
24
- return state;
25
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Field/useFieldStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { FieldSlots, FieldState } from './Field.types';\nimport styles from './Field.module.css';\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\nexport const useFieldStyles_unstable = (state: FieldState): FieldState => {\n state.root.className = clsx(\n fieldClassNames.root,\n styles.root,\n styles[state.orientation],\n styles[state.size],\n styles[state.validationState],\n state.label && styles.withLabel,\n state.validationMessageIcon && styles.withIcon,\n state.root.className,\n );\n if (state.label) {\n state.label.className = clsx(fieldClassNames.label, styles.label, state.label.className);\n }\n if (state.validationMessage) {\n state.validationMessage.className = clsx(\n fieldClassNames.validationMessage,\n styles.validationMessage,\n state.validationMessage.className,\n );\n }\n if (state.validationMessageIcon) {\n state.validationMessageIcon.className = clsx(\n fieldClassNames.validationMessageIcon,\n styles.validationMessageIcon,\n state.validationMessageIcon.className,\n );\n }\n if (state.hint) {\n state.hint.className = clsx(fieldClassNames.hint, styles.hint, state.hint.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","fieldClassNames","root","label","validationMessage","validationMessageIcon","hint","useFieldStyles_unstable","state","className","orientation","size","validationState","withLabel","withIcon"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,qBAAqB;AAExC,OAAO,MAAMC,kBAA8C;IACzDC,MAAM,CAAC,SAAS,CAAC;IACjBC,OAAO,CAAC,gBAAgB,CAAC;IACzBC,mBAAmB,CAAC,4BAA4B,CAAC;IACjDC,uBAAuB,CAAC,gCAAgC,CAAC;IACzDC,MAAM,CAAC,eAAe,CAAC;AACzB,EAAE;AAEF,OAAO,MAAMC,0BAA0B,CAACC;IACtCA,MAAMN,IAAI,CAACO,SAAS,GAAGV,KACrBE,gBAAgBC,IAAI,EACpBF,OAAOE,IAAI,EACXF,MAAM,CAACQ,MAAME,WAAW,CAAC,EACzBV,MAAM,CAACQ,MAAMG,IAAI,CAAC,EAClBX,MAAM,CAACQ,MAAMI,eAAe,CAAC,EAC7BJ,MAAML,KAAK,IAAIH,OAAOa,SAAS,EAC/BL,MAAMH,qBAAqB,IAAIL,OAAOc,QAAQ,EAC9CN,MAAMN,IAAI,CAACO,SAAS;IAEtB,IAAID,MAAML,KAAK,EAAE;QACfK,MAAML,KAAK,CAACM,SAAS,GAAGV,KAAKE,gBAAgBE,KAAK,EAAEH,OAAOG,KAAK,EAAEK,MAAML,KAAK,CAACM,SAAS;IACzF;IACA,IAAID,MAAMJ,iBAAiB,EAAE;QAC3BI,MAAMJ,iBAAiB,CAACK,SAAS,GAAGV,KAClCE,gBAAgBG,iBAAiB,EACjCJ,OAAOI,iBAAiB,EACxBI,MAAMJ,iBAAiB,CAACK,SAAS;IAErC;IACA,IAAID,MAAMH,qBAAqB,EAAE;QAC/BG,MAAMH,qBAAqB,CAACI,SAAS,GAAGV,KACtCE,gBAAgBI,qBAAqB,EACrCL,OAAOK,qBAAqB,EAC5BG,MAAMH,qBAAqB,CAACI,SAAS;IAEzC;IACA,IAAID,MAAMF,IAAI,EAAE;QACdE,MAAMF,IAAI,CAACG,SAAS,GAAGV,KAAKE,gBAAgBK,IAAI,EAAEN,OAAOM,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACrF;IAEA,OAAOD;AACT,EAAE"}
@@ -1,89 +0,0 @@
1
- @layer fluentui {
2
- .root {
3
- display: grid;
4
- }
5
-
6
- .root:where(.horizontal) {
7
- grid-template-columns: 33% 1fr;
8
- grid-template-rows: auto auto auto 1fr;
9
- }
10
-
11
- .root:where(.horizontal:not(.withLabel)) {
12
- padding-inline-start: 33%;
13
- grid-template-columns: 1fr;
14
- }
15
-
16
- .label {
17
- max-width: max-content;
18
- max-height: max-content;
19
- }
20
-
21
- :where(.vertical) > .label {
22
- padding-top: var(--spacingVerticalXXS);
23
- padding-bottom: var(--spacingVerticalXXS);
24
- margin-bottom: var(--spacingVerticalXXS);
25
- }
26
-
27
- :where(.vertical.large) > .label {
28
- padding-top: calc(var(--spacingVerticalXXS) / 2);
29
- padding-bottom: calc(var(--spacingVerticalXXS) / 2);
30
- margin-bottom: var(--spacingVerticalXS);
31
- }
32
-
33
- :where(.horizontal) > .label {
34
- padding-top: var(--spacingVerticalSNudge);
35
- padding-bottom: var(--spacingVerticalSNudge);
36
- margin-inline-end: var(--spacingHorizontalM);
37
- grid-row-start: 1;
38
- grid-row-end: -1;
39
- }
40
-
41
- :where(.horizontal.small) > .label {
42
- padding-top: var(--spacingVerticalXS);
43
- padding-bottom: var(--spacingVerticalXS);
44
- }
45
-
46
- :where(.horizontal.large) > .label {
47
- padding-top: calc(var(--spacingVerticalS) + var(--spacingVerticalXXS) / 2);
48
- padding-bottom: calc(var(--spacingVerticalS) + var(--spacingVerticalXXS) / 2);
49
- }
50
-
51
- .validationMessage,
52
- .hint {
53
- margin-top: var(--spacingVerticalXXS);
54
- color: var(--colorNeutralForeground3);
55
- font-family: var(--fontFamilyBase);
56
- font-size: var(--fontSizeBase200);
57
- font-weight: var(--fontWeightRegular);
58
- line-height: var(--lineHeightBase200);
59
- }
60
-
61
- :where(.error) > .validationMessage {
62
- color: var(--colorPaletteRedForeground1);
63
- }
64
-
65
- :where(.withIcon) > .validationMessage {
66
- padding-inline-start: calc(var(--spacingHorizontalM) + var(--spacingHorizontalXS));
67
- }
68
-
69
- .validationMessageIcon {
70
- display: inline-block;
71
- font-size: var(--fontSizeBase200);
72
- margin-inline-start: calc(calc(0px - var(--spacingHorizontalM)) - var(--spacingHorizontalXS));
73
- margin-inline-end: var(--spacingHorizontalXS);
74
- line-height: 0;
75
- vertical-align: calc(var(--spacingVerticalXXS) / -2);
76
- }
77
-
78
- :where(.error) > :where(.validationMessage) > .validationMessageIcon {
79
- color: var(--colorPaletteRedForeground1);
80
- }
81
-
82
- :where(.warning) > :where(.validationMessage) > .validationMessageIcon {
83
- color: var(--colorPaletteDarkOrangeForeground1);
84
- }
85
-
86
- :where(.success) > :where(.validationMessage) > .validationMessageIcon {
87
- color: var(--colorPaletteGreenForeground1);
88
- }
89
- }
@@ -1,44 +0,0 @@
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: Object.getOwnPropertyDescriptor(all, name).get
9
- });
10
- }
11
- _export(exports, {
12
- get fieldClassNames () {
13
- return fieldClassNames;
14
- },
15
- get useFieldStyles_unstable () {
16
- return useFieldStyles_unstable;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _clsx = require("clsx");
21
- const _Fieldmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Field.module.css"));
22
- const fieldClassNames = {
23
- root: `fui-Field`,
24
- label: `fui-Field__label`,
25
- validationMessage: `fui-Field__validationMessage`,
26
- validationMessageIcon: `fui-Field__validationMessageIcon`,
27
- hint: `fui-Field__hint`
28
- };
29
- const useFieldStyles_unstable = (state)=>{
30
- state.root.className = (0, _clsx.clsx)(fieldClassNames.root, _Fieldmodulecss.default.root, _Fieldmodulecss.default[state.orientation], _Fieldmodulecss.default[state.size], _Fieldmodulecss.default[state.validationState], state.label && _Fieldmodulecss.default.withLabel, state.validationMessageIcon && _Fieldmodulecss.default.withIcon, state.root.className);
31
- if (state.label) {
32
- state.label.className = (0, _clsx.clsx)(fieldClassNames.label, _Fieldmodulecss.default.label, state.label.className);
33
- }
34
- if (state.validationMessage) {
35
- state.validationMessage.className = (0, _clsx.clsx)(fieldClassNames.validationMessage, _Fieldmodulecss.default.validationMessage, state.validationMessage.className);
36
- }
37
- if (state.validationMessageIcon) {
38
- state.validationMessageIcon.className = (0, _clsx.clsx)(fieldClassNames.validationMessageIcon, _Fieldmodulecss.default.validationMessageIcon, state.validationMessageIcon.className);
39
- }
40
- if (state.hint) {
41
- state.hint.className = (0, _clsx.clsx)(fieldClassNames.hint, _Fieldmodulecss.default.hint, state.hint.className);
42
- }
43
- return state;
44
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Field/useFieldStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { FieldSlots, FieldState } from './Field.types';\nimport styles from './Field.module.css';\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\nexport const useFieldStyles_unstable = (state: FieldState): FieldState => {\n state.root.className = clsx(\n fieldClassNames.root,\n styles.root,\n styles[state.orientation],\n styles[state.size],\n styles[state.validationState],\n state.label && styles.withLabel,\n state.validationMessageIcon && styles.withIcon,\n state.root.className,\n );\n if (state.label) {\n state.label.className = clsx(fieldClassNames.label, styles.label, state.label.className);\n }\n if (state.validationMessage) {\n state.validationMessage.className = clsx(\n fieldClassNames.validationMessage,\n styles.validationMessage,\n state.validationMessage.className,\n );\n }\n if (state.validationMessageIcon) {\n state.validationMessageIcon.className = clsx(\n fieldClassNames.validationMessageIcon,\n styles.validationMessageIcon,\n state.validationMessageIcon.className,\n );\n }\n if (state.hint) {\n state.hint.className = clsx(fieldClassNames.hint, styles.hint, state.hint.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","fieldClassNames","root","label","validationMessage","validationMessageIcon","hint","useFieldStyles_unstable","state","className","orientation","size","validationState","withLabel","withIcon"],"mappings":";;;;;;;;;;;;eAKaE;;;;;;;sBALQ,OAAO;yEAGT,qBAAqB;AAEjC,wBAAoD;IACzDC,MAAM,CAAC,SAAS,CAAC;IACjBC,OAAO,CAAC,gBAAgB,CAAC;IACzBC,mBAAmB,CAAC,4BAA4B,CAAC;IACjDC,uBAAuB,CAAC,gCAAgC,CAAC;IACzDC,MAAM,CAAC,eAAe,CAAC;AACzB,EAAE;AAEK,MAAMC,0BAA0B,CAACC;IACtCA,MAAMN,IAAI,CAACO,SAAS,OAAGV,UAAAA,EACrBE,gBAAgBC,IAAI,EACpBF,uBAAAA,CAAOE,IAAI,EACXF,uBAAM,CAACQ,MAAME,WAAW,CAAC,EACzBV,uBAAM,CAACQ,MAAMG,IAAI,CAAC,EAClBX,uBAAM,CAACQ,MAAMI,eAAe,CAAC,EAC7BJ,MAAML,KAAK,IAAIH,uBAAAA,CAAOa,SAAS,EAC/BL,MAAMH,qBAAqB,IAAIL,uBAAAA,CAAOc,QAAQ,EAC9CN,MAAMN,IAAI,CAACO,SAAS;IAEtB,IAAID,MAAML,KAAK,EAAE;QACfK,MAAML,KAAK,CAACM,SAAS,OAAGV,UAAAA,EAAKE,gBAAgBE,KAAK,EAAEH,uBAAAA,CAAOG,KAAK,EAAEK,MAAML,KAAK,CAACM,SAAS;IACzF;IACA,IAAID,MAAMJ,iBAAiB,EAAE;QAC3BI,MAAMJ,iBAAiB,CAACK,SAAS,OAAGV,UAAAA,EAClCE,gBAAgBG,iBAAiB,EACjCJ,uBAAAA,CAAOI,iBAAiB,EACxBI,MAAMJ,iBAAiB,CAACK,SAAS;IAErC;IACA,IAAID,MAAMH,qBAAqB,EAAE;QAC/BG,MAAMH,qBAAqB,CAACI,SAAS,OAAGV,UAAAA,EACtCE,gBAAgBI,qBAAqB,EACrCL,uBAAAA,CAAOK,qBAAqB,EAC5BG,MAAMH,qBAAqB,CAACI,SAAS;IAEzC;IACA,IAAID,MAAMF,IAAI,EAAE;QACdE,MAAMF,IAAI,CAACG,SAAS,OAAGV,UAAAA,EAAKE,gBAAgBK,IAAI,EAAEN,uBAAAA,CAAOM,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACrF;IAEA,OAAOD;AACT,EAAE"}
@@ -1,44 +0,0 @@
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: Object.getOwnPropertyDescriptor(all, name).get
9
- });
10
- }
11
- _export(exports, {
12
- get fieldClassNames () {
13
- return fieldClassNames;
14
- },
15
- get useFieldStyles_unstable () {
16
- return useFieldStyles_unstable;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _clsx = require("clsx");
21
- const _Fieldmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Field.module.css"));
22
- const fieldClassNames = {
23
- root: `fui-Field`,
24
- label: `fui-Field__label`,
25
- validationMessage: `fui-Field__validationMessage`,
26
- validationMessageIcon: `fui-Field__validationMessageIcon`,
27
- hint: `fui-Field__hint`
28
- };
29
- const useFieldStyles_unstable = (state)=>{
30
- state.root.className = (0, _clsx.clsx)(fieldClassNames.root, _Fieldmodulecss.default.root, _Fieldmodulecss.default[state.orientation], _Fieldmodulecss.default[state.size], _Fieldmodulecss.default[state.validationState], state.label && _Fieldmodulecss.default.withLabel, state.validationMessageIcon && _Fieldmodulecss.default.withIcon, state.root.className);
31
- if (state.label) {
32
- state.label.className = (0, _clsx.clsx)(fieldClassNames.label, _Fieldmodulecss.default.label, state.label.className);
33
- }
34
- if (state.validationMessage) {
35
- state.validationMessage.className = (0, _clsx.clsx)(fieldClassNames.validationMessage, _Fieldmodulecss.default.validationMessage, state.validationMessage.className);
36
- }
37
- if (state.validationMessageIcon) {
38
- state.validationMessageIcon.className = (0, _clsx.clsx)(fieldClassNames.validationMessageIcon, _Fieldmodulecss.default.validationMessageIcon, state.validationMessageIcon.className);
39
- }
40
- if (state.hint) {
41
- state.hint.className = (0, _clsx.clsx)(fieldClassNames.hint, _Fieldmodulecss.default.hint, state.hint.className);
42
- }
43
- return state;
44
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Field/useFieldStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { FieldSlots, FieldState } from './Field.types';\nimport styles from './Field.module.css';\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\nexport const useFieldStyles_unstable = (state: FieldState): FieldState => {\n state.root.className = clsx(\n fieldClassNames.root,\n styles.root,\n styles[state.orientation],\n styles[state.size],\n styles[state.validationState],\n state.label && styles.withLabel,\n state.validationMessageIcon && styles.withIcon,\n state.root.className,\n );\n if (state.label) {\n state.label.className = clsx(fieldClassNames.label, styles.label, state.label.className);\n }\n if (state.validationMessage) {\n state.validationMessage.className = clsx(\n fieldClassNames.validationMessage,\n styles.validationMessage,\n state.validationMessage.className,\n );\n }\n if (state.validationMessageIcon) {\n state.validationMessageIcon.className = clsx(\n fieldClassNames.validationMessageIcon,\n styles.validationMessageIcon,\n state.validationMessageIcon.className,\n );\n }\n if (state.hint) {\n state.hint.className = clsx(fieldClassNames.hint, styles.hint, state.hint.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","fieldClassNames","root","label","validationMessage","validationMessageIcon","hint","useFieldStyles_unstable","state","className","orientation","size","validationState","withLabel","withIcon"],"mappings":";;;;;;;;;;;;eAKaE;;;;;;;sBALQ,OAAO;yEAGT,qBAAqB;AAEjC,wBAAoD;IACzDC,MAAM,CAAC,SAAS,CAAC;IACjBC,OAAO,CAAC,gBAAgB,CAAC;IACzBC,mBAAmB,CAAC,4BAA4B,CAAC;IACjDC,uBAAuB,CAAC,gCAAgC,CAAC;IACzDC,MAAM,CAAC,eAAe,CAAC;AACzB,EAAE;AAEK,MAAMC,0BAA0B,CAACC;IACtCA,MAAMN,IAAI,CAACO,SAAS,OAAGV,UAAAA,EACrBE,gBAAgBC,IAAI,EACpBF,uBAAAA,CAAOE,IAAI,EACXF,uBAAM,CAACQ,MAAME,WAAW,CAAC,EACzBV,uBAAM,CAACQ,MAAMG,IAAI,CAAC,EAClBX,uBAAM,CAACQ,MAAMI,eAAe,CAAC,EAC7BJ,MAAML,KAAK,IAAIH,uBAAAA,CAAOa,SAAS,EAC/BL,MAAMH,qBAAqB,IAAIL,uBAAAA,CAAOc,QAAQ,EAC9CN,MAAMN,IAAI,CAACO,SAAS;IAEtB,IAAID,MAAML,KAAK,EAAE;QACfK,MAAML,KAAK,CAACM,SAAS,OAAGV,UAAAA,EAAKE,gBAAgBE,KAAK,EAAEH,uBAAAA,CAAOG,KAAK,EAAEK,MAAML,KAAK,CAACM,SAAS;IACzF;IACA,IAAID,MAAMJ,iBAAiB,EAAE;QAC3BI,MAAMJ,iBAAiB,CAACK,SAAS,OAAGV,UAAAA,EAClCE,gBAAgBG,iBAAiB,EACjCJ,uBAAAA,CAAOI,iBAAiB,EACxBI,MAAMJ,iBAAiB,CAACK,SAAS;IAErC;IACA,IAAID,MAAMH,qBAAqB,EAAE;QAC/BG,MAAMH,qBAAqB,CAACI,SAAS,OAAGV,UAAAA,EACtCE,gBAAgBI,qBAAqB,EACrCL,uBAAAA,CAAOK,qBAAqB,EAC5BG,MAAMH,qBAAqB,CAACI,SAAS;IAEzC;IACA,IAAID,MAAMF,IAAI,EAAE;QACdE,MAAMF,IAAI,CAACG,SAAS,OAAGV,UAAAA,EAAKE,gBAAgBK,IAAI,EAAEN,uBAAAA,CAAOM,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACrF;IAEA,OAAOD;AACT,EAAE"}