@fluentui/react-label 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 → 9.75.2-experimental.css-modules.20261113-ba13c87438.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,20 +1,20 @@
1
1
  # Change Log - @fluentui/react-label
2
2
 
3
- <!-- This log was last generated on Tue, 03 Nov 2026 14:18:27 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Fri, 13 Nov 2026 20:37:16 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
7
+ ## [9.75.2-experimental.css-modules.20261113-ba13c87438.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
8
8
 
9
- Tue, 03 Nov 2026 14:18:27 GMT
9
+ Fri, 13 Nov 2026 20:37:16 GMT
10
10
 
11
11
  ### Changes
12
12
 
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-jsx-runtime to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
- - 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)
16
- - Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
13
+ - Release 9.75.2-experimental.css-modules.20261113-ba13c87438 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
+ - Bump @fluentui/react-jsx-runtime to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
+ - Bump @fluentui/react-shared-contexts to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-theme to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-utilities to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
18
 
19
19
  ## [9.4.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.4.6)
20
20
 
package/README.md CHANGED
@@ -42,8 +42,8 @@ Alternatively, run Storybook locally with:
42
42
 
43
43
  ### Specification
44
44
 
45
- See [Spec.md](./Spec.md).
45
+ See [Spec.md](./docs/Spec.md).
46
46
 
47
47
  ### Migration Guide
48
48
 
49
- If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Label implementation.
49
+ If you're upgrading to Fluent UI v9 see [MIGRATION.md](./docs/MIGRATION.md) for guidance on updating to the latest Label implementation.
@@ -0,0 +1,37 @@
1
+ .root {
2
+ color: var(--colorNeutralForeground1);
3
+ font-family: var(--fontFamilyBase);
4
+ }
5
+
6
+ .required {
7
+ color: var(--colorPaletteRedForeground3);
8
+ padding-inline-start: var(--spacingHorizontalXS);
9
+ }
10
+
11
+ .disabled {
12
+ color: var(--colorNeutralForegroundDisabled);
13
+
14
+ @media (forced-colors: active) {
15
+ color: GrayText;
16
+ }
17
+ }
18
+
19
+ .small {
20
+ font-size: var(--fontSizeBase200);
21
+ line-height: var(--lineHeightBase200);
22
+ }
23
+
24
+ .medium {
25
+ font-size: var(--fontSizeBase300);
26
+ line-height: var(--lineHeightBase300);
27
+ }
28
+
29
+ .large {
30
+ font-size: var(--fontSizeBase400);
31
+ font-weight: var(--fontWeightSemibold);
32
+ line-height: var(--lineHeightBase400);
33
+ }
34
+
35
+ .semibold {
36
+ font-weight: var(--fontWeightSemibold);
37
+ }
@@ -0,0 +1,13 @@
1
+ import { clsx } from "clsx";
2
+ import styles from "./Label.module.css";
3
+ export const labelClassNames = {
4
+ root: 'fui-Label',
5
+ required: 'fui-Label__required'
6
+ };
7
+ export const useLabelStyles_unstable = (state)=>{
8
+ state.root.className = clsx(labelClassNames.root, styles.root, state.disabled && styles.disabled, styles[state.size], state.weight === 'semibold' && styles.semibold, state.root.className);
9
+ if (state.required) {
10
+ state.required.className = clsx(labelClassNames.required, styles.required, state.disabled && styles.disabled, state.required.className);
11
+ }
12
+ return state;
13
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Label/useLabelStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LabelSlots, LabelState } from './Label.types';\nimport styles from './Label.module.css';\n\nexport const labelClassNames: SlotClassNames<LabelSlots> = {\n root: 'fui-Label',\n required: 'fui-Label__required',\n};\n\nexport const useLabelStyles_unstable = (state: LabelState): LabelState => {\n state.root.className = clsx(\n labelClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n styles[state.size],\n state.weight === 'semibold' && styles.semibold,\n state.root.className,\n );\n\n if (state.required) {\n state.required.className = clsx(\n labelClassNames.required,\n styles.required,\n state.disabled && styles.disabled,\n state.required.className,\n );\n }\n\n return state;\n};\n"],"names":["clsx","styles","labelClassNames","root","required","useLabelStyles_unstable","state","className","disabled","size","weight","semibold"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,qBAAqB;AAExC,OAAO,MAAMC,kBAA8C;IACzDC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF,OAAO,MAAMC,0BAA0B,CAACC;IACtCA,MAAMH,IAAI,CAACI,SAAS,GAAGP,KACrBE,gBAAgBC,IAAI,EACpBF,OAAOE,IAAI,EACXG,MAAME,QAAQ,IAAIP,OAAOO,QAAQ,EACjCP,MAAM,CAACK,MAAMG,IAAI,CAAC,EAClBH,MAAMI,MAAM,KAAK,cAAcT,OAAOU,QAAQ,EAC9CL,MAAMH,IAAI,CAACI,SAAS;IAGtB,IAAID,MAAMF,QAAQ,EAAE;QAClBE,MAAMF,QAAQ,CAACG,SAAS,GAAGP,KACzBE,gBAAgBE,QAAQ,EACxBH,OAAOG,QAAQ,EACfE,MAAME,QAAQ,IAAIP,OAAOO,QAAQ,EACjCF,MAAMF,QAAQ,CAACG,SAAS;IAE5B;IAEA,OAAOD;AACT,EAAE"}
@@ -0,0 +1,13 @@
1
+ import { clsx } from "clsx";
2
+ import styles from "./Label.module.css";
3
+ export const labelClassNames = {
4
+ root: 'fui-Label',
5
+ required: 'fui-Label__required'
6
+ };
7
+ export const useLabelStyles_unstable = (state)=>{
8
+ state.root.className = clsx(labelClassNames.root, styles.root, state.disabled && styles.disabled, styles[state.size], state.weight === 'semibold' && styles.semibold, state.root.className);
9
+ if (state.required) {
10
+ state.required.className = clsx(labelClassNames.required, styles.required, state.disabled && styles.disabled, state.required.className);
11
+ }
12
+ return state;
13
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Label/useLabelStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LabelSlots, LabelState } from './Label.types';\nimport styles from './Label.module.css';\n\nexport const labelClassNames: SlotClassNames<LabelSlots> = {\n root: 'fui-Label',\n required: 'fui-Label__required',\n};\n\nexport const useLabelStyles_unstable = (state: LabelState): LabelState => {\n state.root.className = clsx(\n labelClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n styles[state.size],\n state.weight === 'semibold' && styles.semibold,\n state.root.className,\n );\n\n if (state.required) {\n state.required.className = clsx(\n labelClassNames.required,\n styles.required,\n state.disabled && styles.disabled,\n state.required.className,\n );\n }\n\n return state;\n};\n"],"names":["clsx","styles","labelClassNames","root","required","useLabelStyles_unstable","state","className","disabled","size","weight","semibold"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,qBAAqB;AAExC,OAAO,MAAMC,kBAA8C;IACzDC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF,OAAO,MAAMC,0BAA0B,CAACC;IACtCA,MAAMH,IAAI,CAACI,SAAS,GAAGP,KACrBE,gBAAgBC,IAAI,EACpBF,OAAOE,IAAI,EACXG,MAAME,QAAQ,IAAIP,OAAOO,QAAQ,EACjCP,MAAM,CAACK,MAAMG,IAAI,CAAC,EAClBH,MAAMI,MAAM,KAAK,cAAcT,OAAOU,QAAQ,EAC9CL,MAAMH,IAAI,CAACI,SAAS;IAGtB,IAAID,MAAMF,QAAQ,EAAE;QAClBE,MAAMF,QAAQ,CAACG,SAAS,GAAGP,KACzBE,gBAAgBE,QAAQ,EACxBH,OAAOG,QAAQ,EACfE,MAAME,QAAQ,IAAIP,OAAOO,QAAQ,EACjCF,MAAMF,QAAQ,CAACG,SAAS;IAE5B;IAEA,OAAOD;AACT,EAAE"}
@@ -0,0 +1,37 @@
1
+ .root {
2
+ color: var(--colorNeutralForeground1);
3
+ font-family: var(--fontFamilyBase);
4
+ }
5
+
6
+ .required {
7
+ color: var(--colorPaletteRedForeground3);
8
+ padding-inline-start: var(--spacingHorizontalXS);
9
+ }
10
+
11
+ .disabled {
12
+ color: var(--colorNeutralForegroundDisabled);
13
+
14
+ @media (forced-colors: active) {
15
+ color: GrayText;
16
+ }
17
+ }
18
+
19
+ .small {
20
+ font-size: var(--fontSizeBase200);
21
+ line-height: var(--lineHeightBase200);
22
+ }
23
+
24
+ .medium {
25
+ font-size: var(--fontSizeBase300);
26
+ line-height: var(--lineHeightBase300);
27
+ }
28
+
29
+ .large {
30
+ font-size: var(--fontSizeBase400);
31
+ font-weight: var(--fontWeightSemibold);
32
+ line-height: var(--lineHeightBase400);
33
+ }
34
+
35
+ .semibold {
36
+ font-weight: var(--fontWeightSemibold);
37
+ }
@@ -0,0 +1,32 @@
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 labelClassNames () {
13
+ return labelClassNames;
14
+ },
15
+ get useLabelStyles_unstable () {
16
+ return useLabelStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _Labelmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Label.module.css"));
22
+ const labelClassNames = {
23
+ root: 'fui-Label',
24
+ required: 'fui-Label__required'
25
+ };
26
+ const useLabelStyles_unstable = (state)=>{
27
+ state.root.className = (0, _clsx.clsx)(labelClassNames.root, _Labelmodulecss.default.root, state.disabled && _Labelmodulecss.default.disabled, _Labelmodulecss.default[state.size], state.weight === 'semibold' && _Labelmodulecss.default.semibold, state.root.className);
28
+ if (state.required) {
29
+ state.required.className = (0, _clsx.clsx)(labelClassNames.required, _Labelmodulecss.default.required, state.disabled && _Labelmodulecss.default.disabled, state.required.className);
30
+ }
31
+ return state;
32
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Label/useLabelStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LabelSlots, LabelState } from './Label.types';\nimport styles from './Label.module.css';\n\nexport const labelClassNames: SlotClassNames<LabelSlots> = {\n root: 'fui-Label',\n required: 'fui-Label__required',\n};\n\nexport const useLabelStyles_unstable = (state: LabelState): LabelState => {\n state.root.className = clsx(\n labelClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n styles[state.size],\n state.weight === 'semibold' && styles.semibold,\n state.root.className,\n );\n\n if (state.required) {\n state.required.className = clsx(\n labelClassNames.required,\n styles.required,\n state.disabled && styles.disabled,\n state.required.className,\n );\n }\n\n return state;\n};\n"],"names":["clsx","styles","labelClassNames","root","required","useLabelStyles_unstable","state","className","disabled","size","weight","semibold"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;yEAGT,qBAAqB;AAEjC,wBAAoD;IACzDC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEK,MAAMC,0BAA0B,CAACC;IACtCA,MAAMH,IAAI,CAACI,SAAS,OAAGP,UAAAA,EACrBE,gBAAgBC,IAAI,EACpBF,uBAAAA,CAAOE,IAAI,EACXG,MAAME,QAAQ,IAAIP,uBAAAA,CAAOO,QAAQ,EACjCP,uBAAM,CAACK,MAAMG,IAAI,CAAC,EAClBH,MAAMI,MAAM,KAAK,cAAcT,uBAAAA,CAAOU,QAAQ,EAC9CL,MAAMH,IAAI,CAACI,SAAS;IAGtB,IAAID,MAAMF,QAAQ,EAAE;QAClBE,MAAMF,QAAQ,CAACG,SAAS,OAAGP,UAAAA,EACzBE,gBAAgBE,QAAQ,EACxBH,uBAAAA,CAAOG,QAAQ,EACfE,MAAME,QAAQ,IAAIP,uBAAAA,CAAOO,QAAQ,EACjCF,MAAMF,QAAQ,CAACG,SAAS;IAE5B;IAEA,OAAOD;AACT,EAAE"}
@@ -0,0 +1,32 @@
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 labelClassNames () {
13
+ return labelClassNames;
14
+ },
15
+ get useLabelStyles_unstable () {
16
+ return useLabelStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _Labelmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Label.module.css"));
22
+ const labelClassNames = {
23
+ root: 'fui-Label',
24
+ required: 'fui-Label__required'
25
+ };
26
+ const useLabelStyles_unstable = (state)=>{
27
+ state.root.className = (0, _clsx.clsx)(labelClassNames.root, _Labelmodulecss.default.root, state.disabled && _Labelmodulecss.default.disabled, _Labelmodulecss.default[state.size], state.weight === 'semibold' && _Labelmodulecss.default.semibold, state.root.className);
28
+ if (state.required) {
29
+ state.required.className = (0, _clsx.clsx)(labelClassNames.required, _Labelmodulecss.default.required, state.disabled && _Labelmodulecss.default.disabled, state.required.className);
30
+ }
31
+ return state;
32
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Label/useLabelStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { LabelSlots, LabelState } from './Label.types';\nimport styles from './Label.module.css';\n\nexport const labelClassNames: SlotClassNames<LabelSlots> = {\n root: 'fui-Label',\n required: 'fui-Label__required',\n};\n\nexport const useLabelStyles_unstable = (state: LabelState): LabelState => {\n state.root.className = clsx(\n labelClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n styles[state.size],\n state.weight === 'semibold' && styles.semibold,\n state.root.className,\n );\n\n if (state.required) {\n state.required.className = clsx(\n labelClassNames.required,\n styles.required,\n state.disabled && styles.disabled,\n state.required.className,\n );\n }\n\n return state;\n};\n"],"names":["clsx","styles","labelClassNames","root","required","useLabelStyles_unstable","state","className","disabled","size","weight","semibold"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;yEAGT,qBAAqB;AAEjC,wBAAoD;IACzDC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEK,MAAMC,0BAA0B,CAACC;IACtCA,MAAMH,IAAI,CAACI,SAAS,OAAGP,UAAAA,EACrBE,gBAAgBC,IAAI,EACpBF,uBAAAA,CAAOE,IAAI,EACXG,MAAME,QAAQ,IAAIP,uBAAAA,CAAOO,QAAQ,EACjCP,uBAAM,CAACK,MAAMG,IAAI,CAAC,EAClBH,MAAMI,MAAM,KAAK,cAAcT,uBAAAA,CAAOU,QAAQ,EAC9CL,MAAMH,IAAI,CAACI,SAAS;IAGtB,IAAID,MAAMF,QAAQ,EAAE;QAClBE,MAAMF,QAAQ,CAACG,SAAS,OAAGP,UAAAA,EACzBE,gBAAgBE,QAAQ,EACxBH,uBAAAA,CAAOG,QAAQ,EACfE,MAAME,QAAQ,IAAIP,uBAAAA,CAAOO,QAAQ,EACjCF,MAAMF,QAAQ,CAACG,SAAS;IAE5B;IAEA,OAAOD;AACT,EAAE"}
package/package.json CHANGED
@@ -1,23 +1,26 @@
1
1
  {
2
2
  "name": "@fluentui/react-label",
3
- "version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
3
+ "version": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
4
4
  "description": "Fluent UI React Label component",
5
5
  "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
- "sideEffects": false,
8
+ "sideEffects": [
9
+ "**/*.css"
10
+ ],
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "https://github.com/microsoft/fluentui"
12
14
  },
13
15
  "license": "MIT",
14
16
  "dependencies": {
15
- "@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
16
- "@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
17
- "@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
18
- "@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
17
+ "@fluentui/react-jsx-runtime": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
18
+ "@fluentui/react-shared-contexts": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
19
+ "@fluentui/react-theme": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
20
+ "@fluentui/react-utilities": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
19
21
  "@griffel/react": "^1.5.32",
20
- "@swc/helpers": "^0.5.1"
22
+ "@swc/helpers": "^0.5.1",
23
+ "clsx": "^2.1.1"
21
24
  },
22
25
  "peerDependencies": {
23
26
  "@types/react": ">=16.14.0 <20.0.0",