@fluentui/react-checkbox 9.75.1-experimental.css-modules.20261103-d6c85ee2a9.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,23 +1,23 @@
1
1
  # Change Log - @fluentui/react-checkbox
2
2
 
3
- <!-- This log was last generated on Tue, 03 Nov 2026 14:03:11 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 03 Nov 2026 14:18:22 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-checkbox_v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0)
7
+ ## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-checkbox_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
8
8
 
9
- Tue, 03 Nov 2026 14:03:11 GMT
9
+ Tue, 03 Nov 2026 14:18:22 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Release 9.75.1-experimental.css-modules.20261103-d6c85ee2a9 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
- - Bump @fluentui/react-field to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
- - Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
- - Bump @fluentui/react-label to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
- - Bump @fluentui/react-tabster to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
- - Bump @fluentui/react-theme to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
- - Bump @fluentui/react-utilities to v9.75.1-experimental.css-modules.20261103-d6c85ee2a9.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-field 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-tabster to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+ - Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
+ - Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
21
21
 
22
22
  ## [9.6.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-checkbox_v9.6.6)
23
23
 
package/README.md CHANGED
@@ -35,16 +35,3 @@ See [Spec.md](./Spec.md).
35
35
  ### Migration Guide
36
36
 
37
37
  If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Checkbox implementation.
38
-
39
- ## Opt-in CSS Modules styles
40
-
41
- The `use*Styles.styles.css` modules beside the existing Griffel hooks provide opt-in,
42
- layered CSS alternatives with the same exports. Configure the bundler to replace
43
- `.styles` with `.styles.css.ts` for source imports and `.styles.js` with
44
- `.styles.css.js` for built imports. Load CSS Modules as default class-name maps and
45
- retain the package CSS assets. Default component imports still use Griffel.
46
- Composed components require their own style alternatives; this does not remove
47
- all reachable Griffel dependencies. Browser, forced-colors, RTL, and visual-regression
48
- parity must be validated before switching defaults.
49
-
50
- 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,30 +1,27 @@
1
1
  {
2
2
  "name": "@fluentui/react-checkbox",
3
- "version": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0",
3
+ "version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
4
4
  "description": "Fluent UI checkbox component",
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-field": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0",
15
+ "@fluentui/react-field": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
18
16
  "@fluentui/react-icons": "^2.0.245",
19
- "@fluentui/react-jsx-runtime": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0",
20
- "@fluentui/react-label": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0",
21
- "@fluentui/react-shared-contexts": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0",
22
- "@fluentui/react-tabster": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0",
23
- "@fluentui/react-theme": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.0",
24
- "@fluentui/react-utilities": "9.75.1-experimental.css-modules.20261103-d6c85ee2a9.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-tabster": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
21
+ "@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
22
+ "@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
25
23
  "@griffel/react": "^1.5.32",
26
- "@swc/helpers": "^0.5.1",
27
- "clsx": "^2.1.1"
24
+ "@swc/helpers": "^0.5.1"
28
25
  },
29
26
  "peerDependencies": {
30
27
  "@types/react": ">=16.14.0 <20.0.0",
@@ -1,179 +0,0 @@
1
- @layer fluent {
2
- .root {
3
- position: relative;
4
- display: inline-flex;
5
- cursor: pointer;
6
- max-width: fit-content;
7
- vertical-align: middle;
8
- color: var(--colorNeutralForeground3);
9
- &:focus {
10
- outline-style: none;
11
- }
12
-
13
- &:focus-visible {
14
- outline-style: none;
15
- }
16
-
17
- &[data-fui-focus-within]:focus-within {
18
- border-top-color: transparent;
19
- border-right-color: transparent;
20
- border-bottom-color: transparent;
21
- border-left-color: transparent;
22
- &::after {
23
- content: '';
24
- position: absolute;
25
- pointer-events: none;
26
- z-index: 1;
27
- border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
28
- border-radius: var(--borderRadiusMedium);
29
- top: calc(var(--strokeWidthThick) * -1);
30
- inset-inline-end: calc(var(--strokeWidthThick) * -1);
31
- bottom: calc(var(--strokeWidthThick) * -1);
32
- inset-inline-start: calc(var(--strokeWidthThick) * -1);
33
- }
34
-
35
- @media (forced-colors: active) {
36
- &::after {
37
- border-top-color: Highlight;
38
- border-right-color: Highlight;
39
- border-bottom-color: Highlight;
40
- border-left-color: Highlight;
41
- }
42
- }
43
- }
44
- }
45
-
46
- .root:where(.unchecked:not(.disabled)) {
47
- &:hover {
48
- color: var(--colorNeutralForeground2);
49
- --fui-Checkbox__indicator--borderColor: var(--colorNeutralStrokeAccessibleHover);
50
- }
51
-
52
- &:active {
53
- color: var(--colorNeutralForeground1);
54
- --fui-Checkbox__indicator--borderColor: var(--colorNeutralStrokeAccessiblePressed);
55
- }
56
- }
57
-
58
- .root:where(.checked:not(.disabled)) {
59
- color: var(--colorNeutralForeground1);
60
- --fui-Checkbox__indicator--backgroundColor: var(--colorCompoundBrandBackground);
61
- --fui-Checkbox__indicator--color: var(--colorNeutralForegroundInverted);
62
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandBackground);
63
- &:hover {
64
- --fui-Checkbox__indicator--backgroundColor: var(--colorCompoundBrandBackgroundHover);
65
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandBackgroundHover);
66
- }
67
-
68
- &:active {
69
- --fui-Checkbox__indicator--backgroundColor: var(--colorCompoundBrandBackgroundPressed);
70
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandBackgroundPressed);
71
- }
72
- }
73
-
74
- .root:where(.mixed:not(.disabled)) {
75
- color: var(--colorNeutralForeground1);
76
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandStroke);
77
- --fui-Checkbox__indicator--color: var(--colorCompoundBrandForeground1);
78
- &:hover {
79
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandStrokeHover);
80
- --fui-Checkbox__indicator--color: var(--colorCompoundBrandForeground1Hover);
81
- }
82
-
83
- &:active {
84
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandStrokePressed);
85
- --fui-Checkbox__indicator--color: var(--colorCompoundBrandForeground1Pressed);
86
- }
87
- }
88
-
89
- .root:where(.disabled) {
90
- cursor: default;
91
- color: var(--colorNeutralForegroundDisabled);
92
- --fui-Checkbox__indicator--borderColor: var(--colorNeutralStrokeDisabled);
93
- --fui-Checkbox__indicator--color: var(--colorNeutralForegroundDisabled);
94
- @media (forced-colors: active) {
95
- color: GrayText;
96
- --fui-Checkbox__indicator--color: GrayText;
97
- }
98
- }
99
-
100
- .input {
101
- box-sizing: border-box;
102
- cursor: inherit;
103
- height: 100%;
104
- margin: 0;
105
- opacity: 0;
106
- position: absolute;
107
- top: 0;
108
- width: calc(var(--spacingHorizontalL) + 2 * var(--spacingHorizontalS));
109
- }
110
-
111
- :where(.before) > .input {
112
- inset-inline-end: 0;
113
- }
114
-
115
- :where(.after) > .input {
116
- inset-inline-start: 0;
117
- }
118
-
119
- :where(.large) > .input {
120
- width: calc(var(--spacingHorizontalXL) + 2 * var(--spacingHorizontalS));
121
- }
122
-
123
- .indicator {
124
- align-self: flex-start;
125
- box-sizing: border-box;
126
- flex-shrink: 0;
127
- display: flex;
128
- align-items: center;
129
- justify-content: center;
130
- overflow: hidden;
131
- color: var(--fui-Checkbox__indicator--color);
132
- background-color: var(--fui-Checkbox__indicator--backgroundColor);
133
- border-color: var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));
134
- border-style: solid;
135
- border-width: var(--strokeWidthThin);
136
- border-radius: var(--borderRadiusSmall);
137
- margin: var(--spacingVerticalS) var(--spacingHorizontalS);
138
- fill: currentColor;
139
- pointer-events: none;
140
- font-size: var(--fontSizeBase200);
141
- height: var(--spacingHorizontalL);
142
- width: var(--spacingHorizontalL);
143
- }
144
-
145
- :where(.large) > .indicator {
146
- font-size: var(--fontSizeBase400);
147
- height: var(--spacingHorizontalXL);
148
- width: var(--spacingHorizontalXL);
149
- }
150
-
151
- :where(.circular) > .indicator {
152
- border-radius: var(--borderRadiusCircular);
153
- }
154
-
155
- .label {
156
- align-self: center;
157
- color: inherit;
158
- cursor: inherit;
159
- padding: var(--spacingVerticalS) var(--spacingHorizontalS);
160
- }
161
-
162
- :where(.before) > .label {
163
- padding-inline-end: var(--spacingHorizontalXS);
164
- }
165
-
166
- :where(.after) > .label {
167
- padding-inline-start: var(--spacingHorizontalXS);
168
- }
169
-
170
- :where(.medium) > .label {
171
- margin-top: calc((var(--spacingHorizontalL) - var(--lineHeightBase300)) / 2);
172
- margin-bottom: calc((var(--spacingHorizontalL) - var(--lineHeightBase300)) / 2);
173
- }
174
-
175
- :where(.large) > .label {
176
- margin-top: calc((var(--spacingHorizontalXL) - var(--lineHeightBase300)) / 2);
177
- margin-bottom: calc((var(--spacingHorizontalXL) - var(--lineHeightBase300)) / 2);
178
- }
179
- }
@@ -1,19 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./Checkbox.module.css";
3
- export const checkboxClassNames = {
4
- root: 'fui-Checkbox',
5
- label: 'fui-Checkbox__label',
6
- input: 'fui-Checkbox__input',
7
- indicator: 'fui-Checkbox__indicator'
8
- };
9
- export const useCheckboxStyles_unstable = (state)=>{
10
- state.root.className = clsx(checkboxClassNames.root, styles.root, styles[state.size], styles[state.shape], styles[state.labelPosition], styles[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'], state.disabled && styles.disabled, state.root.className);
11
- state.input.className = clsx(checkboxClassNames.input, styles.input, state.input.className);
12
- if (state.indicator) {
13
- state.indicator.className = clsx(checkboxClassNames.indicator, styles.indicator, state.indicator.className);
14
- }
15
- if (state.label) {
16
- state.label.className = clsx(checkboxClassNames.label, styles.label, state.label.className);
17
- }
18
- return state;
19
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Checkbox/useCheckboxStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CheckboxSlots, CheckboxState } from './Checkbox.types';\nimport styles from './Checkbox.module.css';\n\nexport const checkboxClassNames: SlotClassNames<CheckboxSlots> = {\n root: 'fui-Checkbox',\n label: 'fui-Checkbox__label',\n input: 'fui-Checkbox__input',\n indicator: 'fui-Checkbox__indicator',\n};\n\nexport const useCheckboxStyles_unstable = (state: CheckboxState): CheckboxState => {\n state.root.className = clsx(\n checkboxClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.shape],\n styles[state.labelPosition],\n styles[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'],\n state.disabled && styles.disabled,\n state.root.className,\n );\n state.input.className = clsx(checkboxClassNames.input, styles.input, state.input.className);\n if (state.indicator) {\n state.indicator.className = clsx(checkboxClassNames.indicator, styles.indicator, state.indicator.className);\n }\n if (state.label) {\n state.label.className = clsx(checkboxClassNames.label, styles.label, state.label.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","checkboxClassNames","root","label","input","indicator","useCheckboxStyles_unstable","state","className","size","shape","labelPosition","checked","disabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,OAAO;IACPC,OAAO;IACPC,WAAW;AACb,EAAE;AAEF,OAAO,MAAMC,6BAA6B,CAACC;IACzCA,MAAML,IAAI,CAACM,SAAS,GAAGT,KACrBE,mBAAmBC,IAAI,EACvBF,OAAOE,IAAI,EACXF,MAAM,CAACO,MAAME,IAAI,CAAC,EAClBT,MAAM,CAACO,MAAMG,KAAK,CAAC,EACnBV,MAAM,CAACO,MAAMI,aAAa,CAAC,EAC3BX,MAAM,CAACO,MAAMK,OAAO,KAAK,UAAU,UAAUL,MAAMK,OAAO,GAAG,YAAY,YAAY,EACrFL,MAAMM,QAAQ,IAAIb,OAAOa,QAAQ,EACjCN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMH,KAAK,CAACI,SAAS,GAAGT,KAAKE,mBAAmBG,KAAK,EAAEJ,OAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IAC1F,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,GAAGT,KAAKE,mBAAmBI,SAAS,EAAEL,OAAOK,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,IAAID,MAAMJ,KAAK,EAAE;QACfI,MAAMJ,KAAK,CAACK,SAAS,GAAGT,KAAKE,mBAAmBE,KAAK,EAAEH,OAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACK,SAAS;IAC5F;IAEA,OAAOD;AACT,EAAE"}
@@ -1,19 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./Checkbox.module.css";
3
- export const checkboxClassNames = {
4
- root: 'fui-Checkbox',
5
- label: 'fui-Checkbox__label',
6
- input: 'fui-Checkbox__input',
7
- indicator: 'fui-Checkbox__indicator'
8
- };
9
- export const useCheckboxStyles_unstable = (state)=>{
10
- state.root.className = clsx(checkboxClassNames.root, styles.root, styles[state.size], styles[state.shape], styles[state.labelPosition], styles[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'], state.disabled && styles.disabled, state.root.className);
11
- state.input.className = clsx(checkboxClassNames.input, styles.input, state.input.className);
12
- if (state.indicator) {
13
- state.indicator.className = clsx(checkboxClassNames.indicator, styles.indicator, state.indicator.className);
14
- }
15
- if (state.label) {
16
- state.label.className = clsx(checkboxClassNames.label, styles.label, state.label.className);
17
- }
18
- return state;
19
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Checkbox/useCheckboxStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CheckboxSlots, CheckboxState } from './Checkbox.types';\nimport styles from './Checkbox.module.css';\n\nexport const checkboxClassNames: SlotClassNames<CheckboxSlots> = {\n root: 'fui-Checkbox',\n label: 'fui-Checkbox__label',\n input: 'fui-Checkbox__input',\n indicator: 'fui-Checkbox__indicator',\n};\n\nexport const useCheckboxStyles_unstable = (state: CheckboxState): CheckboxState => {\n state.root.className = clsx(\n checkboxClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.shape],\n styles[state.labelPosition],\n styles[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'],\n state.disabled && styles.disabled,\n state.root.className,\n );\n state.input.className = clsx(checkboxClassNames.input, styles.input, state.input.className);\n if (state.indicator) {\n state.indicator.className = clsx(checkboxClassNames.indicator, styles.indicator, state.indicator.className);\n }\n if (state.label) {\n state.label.className = clsx(checkboxClassNames.label, styles.label, state.label.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","checkboxClassNames","root","label","input","indicator","useCheckboxStyles_unstable","state","className","size","shape","labelPosition","checked","disabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,OAAO;IACPC,OAAO;IACPC,WAAW;AACb,EAAE;AAEF,OAAO,MAAMC,6BAA6B,CAACC;IACzCA,MAAML,IAAI,CAACM,SAAS,GAAGT,KACrBE,mBAAmBC,IAAI,EACvBF,OAAOE,IAAI,EACXF,MAAM,CAACO,MAAME,IAAI,CAAC,EAClBT,MAAM,CAACO,MAAMG,KAAK,CAAC,EACnBV,MAAM,CAACO,MAAMI,aAAa,CAAC,EAC3BX,MAAM,CAACO,MAAMK,OAAO,KAAK,UAAU,UAAUL,MAAMK,OAAO,GAAG,YAAY,YAAY,EACrFL,MAAMM,QAAQ,IAAIb,OAAOa,QAAQ,EACjCN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMH,KAAK,CAACI,SAAS,GAAGT,KAAKE,mBAAmBG,KAAK,EAAEJ,OAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IAC1F,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,GAAGT,KAAKE,mBAAmBI,SAAS,EAAEL,OAAOK,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,IAAID,MAAMJ,KAAK,EAAE;QACfI,MAAMJ,KAAK,CAACK,SAAS,GAAGT,KAAKE,mBAAmBE,KAAK,EAAEH,OAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACK,SAAS;IAC5F;IAEA,OAAOD;AACT,EAAE"}
@@ -1,179 +0,0 @@
1
- @layer fluent {
2
- .root {
3
- position: relative;
4
- display: inline-flex;
5
- cursor: pointer;
6
- max-width: fit-content;
7
- vertical-align: middle;
8
- color: var(--colorNeutralForeground3);
9
- &:focus {
10
- outline-style: none;
11
- }
12
-
13
- &:focus-visible {
14
- outline-style: none;
15
- }
16
-
17
- &[data-fui-focus-within]:focus-within {
18
- border-top-color: transparent;
19
- border-right-color: transparent;
20
- border-bottom-color: transparent;
21
- border-left-color: transparent;
22
- &::after {
23
- content: '';
24
- position: absolute;
25
- pointer-events: none;
26
- z-index: 1;
27
- border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
28
- border-radius: var(--borderRadiusMedium);
29
- top: calc(var(--strokeWidthThick) * -1);
30
- inset-inline-end: calc(var(--strokeWidthThick) * -1);
31
- bottom: calc(var(--strokeWidthThick) * -1);
32
- inset-inline-start: calc(var(--strokeWidthThick) * -1);
33
- }
34
-
35
- @media (forced-colors: active) {
36
- &::after {
37
- border-top-color: Highlight;
38
- border-right-color: Highlight;
39
- border-bottom-color: Highlight;
40
- border-left-color: Highlight;
41
- }
42
- }
43
- }
44
- }
45
-
46
- .root:where(.unchecked:not(.disabled)) {
47
- &:hover {
48
- color: var(--colorNeutralForeground2);
49
- --fui-Checkbox__indicator--borderColor: var(--colorNeutralStrokeAccessibleHover);
50
- }
51
-
52
- &:active {
53
- color: var(--colorNeutralForeground1);
54
- --fui-Checkbox__indicator--borderColor: var(--colorNeutralStrokeAccessiblePressed);
55
- }
56
- }
57
-
58
- .root:where(.checked:not(.disabled)) {
59
- color: var(--colorNeutralForeground1);
60
- --fui-Checkbox__indicator--backgroundColor: var(--colorCompoundBrandBackground);
61
- --fui-Checkbox__indicator--color: var(--colorNeutralForegroundInverted);
62
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandBackground);
63
- &:hover {
64
- --fui-Checkbox__indicator--backgroundColor: var(--colorCompoundBrandBackgroundHover);
65
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandBackgroundHover);
66
- }
67
-
68
- &:active {
69
- --fui-Checkbox__indicator--backgroundColor: var(--colorCompoundBrandBackgroundPressed);
70
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandBackgroundPressed);
71
- }
72
- }
73
-
74
- .root:where(.mixed:not(.disabled)) {
75
- color: var(--colorNeutralForeground1);
76
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandStroke);
77
- --fui-Checkbox__indicator--color: var(--colorCompoundBrandForeground1);
78
- &:hover {
79
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandStrokeHover);
80
- --fui-Checkbox__indicator--color: var(--colorCompoundBrandForeground1Hover);
81
- }
82
-
83
- &:active {
84
- --fui-Checkbox__indicator--borderColor: var(--colorCompoundBrandStrokePressed);
85
- --fui-Checkbox__indicator--color: var(--colorCompoundBrandForeground1Pressed);
86
- }
87
- }
88
-
89
- .root:where(.disabled) {
90
- cursor: default;
91
- color: var(--colorNeutralForegroundDisabled);
92
- --fui-Checkbox__indicator--borderColor: var(--colorNeutralStrokeDisabled);
93
- --fui-Checkbox__indicator--color: var(--colorNeutralForegroundDisabled);
94
- @media (forced-colors: active) {
95
- color: GrayText;
96
- --fui-Checkbox__indicator--color: GrayText;
97
- }
98
- }
99
-
100
- .input {
101
- box-sizing: border-box;
102
- cursor: inherit;
103
- height: 100%;
104
- margin: 0;
105
- opacity: 0;
106
- position: absolute;
107
- top: 0;
108
- width: calc(var(--spacingHorizontalL) + 2 * var(--spacingHorizontalS));
109
- }
110
-
111
- :where(.before) > .input {
112
- inset-inline-end: 0;
113
- }
114
-
115
- :where(.after) > .input {
116
- inset-inline-start: 0;
117
- }
118
-
119
- :where(.large) > .input {
120
- width: calc(var(--spacingHorizontalXL) + 2 * var(--spacingHorizontalS));
121
- }
122
-
123
- .indicator {
124
- align-self: flex-start;
125
- box-sizing: border-box;
126
- flex-shrink: 0;
127
- display: flex;
128
- align-items: center;
129
- justify-content: center;
130
- overflow: hidden;
131
- color: var(--fui-Checkbox__indicator--color);
132
- background-color: var(--fui-Checkbox__indicator--backgroundColor);
133
- border-color: var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));
134
- border-style: solid;
135
- border-width: var(--strokeWidthThin);
136
- border-radius: var(--borderRadiusSmall);
137
- margin: var(--spacingVerticalS) var(--spacingHorizontalS);
138
- fill: currentColor;
139
- pointer-events: none;
140
- font-size: var(--fontSizeBase200);
141
- height: var(--spacingHorizontalL);
142
- width: var(--spacingHorizontalL);
143
- }
144
-
145
- :where(.large) > .indicator {
146
- font-size: var(--fontSizeBase400);
147
- height: var(--spacingHorizontalXL);
148
- width: var(--spacingHorizontalXL);
149
- }
150
-
151
- :where(.circular) > .indicator {
152
- border-radius: var(--borderRadiusCircular);
153
- }
154
-
155
- .label {
156
- align-self: center;
157
- color: inherit;
158
- cursor: inherit;
159
- padding: var(--spacingVerticalS) var(--spacingHorizontalS);
160
- }
161
-
162
- :where(.before) > .label {
163
- padding-inline-end: var(--spacingHorizontalXS);
164
- }
165
-
166
- :where(.after) > .label {
167
- padding-inline-start: var(--spacingHorizontalXS);
168
- }
169
-
170
- :where(.medium) > .label {
171
- margin-top: calc((var(--spacingHorizontalL) - var(--lineHeightBase300)) / 2);
172
- margin-bottom: calc((var(--spacingHorizontalL) - var(--lineHeightBase300)) / 2);
173
- }
174
-
175
- :where(.large) > .label {
176
- margin-top: calc((var(--spacingHorizontalXL) - var(--lineHeightBase300)) / 2);
177
- margin-bottom: calc((var(--spacingHorizontalXL) - var(--lineHeightBase300)) / 2);
178
- }
179
- }
@@ -1,38 +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 checkboxClassNames () {
13
- return checkboxClassNames;
14
- },
15
- get useCheckboxStyles_unstable () {
16
- return useCheckboxStyles_unstable;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _clsx = require("clsx");
21
- const _Checkboxmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Checkbox.module.css"));
22
- const checkboxClassNames = {
23
- root: 'fui-Checkbox',
24
- label: 'fui-Checkbox__label',
25
- input: 'fui-Checkbox__input',
26
- indicator: 'fui-Checkbox__indicator'
27
- };
28
- const useCheckboxStyles_unstable = (state)=>{
29
- state.root.className = (0, _clsx.clsx)(checkboxClassNames.root, _Checkboxmodulecss.default.root, _Checkboxmodulecss.default[state.size], _Checkboxmodulecss.default[state.shape], _Checkboxmodulecss.default[state.labelPosition], _Checkboxmodulecss.default[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'], state.disabled && _Checkboxmodulecss.default.disabled, state.root.className);
30
- state.input.className = (0, _clsx.clsx)(checkboxClassNames.input, _Checkboxmodulecss.default.input, state.input.className);
31
- if (state.indicator) {
32
- state.indicator.className = (0, _clsx.clsx)(checkboxClassNames.indicator, _Checkboxmodulecss.default.indicator, state.indicator.className);
33
- }
34
- if (state.label) {
35
- state.label.className = (0, _clsx.clsx)(checkboxClassNames.label, _Checkboxmodulecss.default.label, state.label.className);
36
- }
37
- return state;
38
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Checkbox/useCheckboxStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CheckboxSlots, CheckboxState } from './Checkbox.types';\nimport styles from './Checkbox.module.css';\n\nexport const checkboxClassNames: SlotClassNames<CheckboxSlots> = {\n root: 'fui-Checkbox',\n label: 'fui-Checkbox__label',\n input: 'fui-Checkbox__input',\n indicator: 'fui-Checkbox__indicator',\n};\n\nexport const useCheckboxStyles_unstable = (state: CheckboxState): CheckboxState => {\n state.root.className = clsx(\n checkboxClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.shape],\n styles[state.labelPosition],\n styles[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'],\n state.disabled && styles.disabled,\n state.root.className,\n );\n state.input.className = clsx(checkboxClassNames.input, styles.input, state.input.className);\n if (state.indicator) {\n state.indicator.className = clsx(checkboxClassNames.indicator, styles.indicator, state.indicator.className);\n }\n if (state.label) {\n state.label.className = clsx(checkboxClassNames.label, styles.label, state.label.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","checkboxClassNames","root","label","input","indicator","useCheckboxStyles_unstable","state","className","size","shape","labelPosition","checked","disabled"],"mappings":";;;;;;;;;;;QAKaE;;;QAOAK;;;;;sBAZQ,OAAO;4EAGT,wBAAwB;AAEpC,2BAA0D;IAC/DJ,MAAM;IACNC,OAAO;IACPC,OAAO;IACPC,WAAW;AACb,EAAE;AAEK,mCAAmC,CAACE;IACzCA,MAAML,IAAI,CAACM,SAAS,OAAGT,UAAAA,EACrBE,mBAAmBC,IAAI,EACvBF,0BAAAA,CAAOE,IAAI,EACXF,0BAAM,CAACO,MAAME,IAAI,CAAC,EAClBT,0BAAM,CAACO,MAAMG,KAAK,CAAC,EACnBV,0BAAM,CAACO,MAAMI,aAAa,CAAC,EAC3BX,0BAAM,CAACO,MAAMK,OAAO,KAAK,UAAU,UAAUL,MAAMK,OAAO,GAAG,YAAY,YAAY,EACrFL,MAAMM,QAAQ,IAAIb,0BAAAA,CAAOa,QAAQ,EACjCN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMH,KAAK,CAACI,SAAS,GAAGT,cAAAA,EAAKE,mBAAmBG,KAAK,EAAEJ,0BAAAA,CAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IAC1F,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,OAAGT,UAAAA,EAAKE,mBAAmBI,SAAS,EAAEL,0BAAAA,CAAOK,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,IAAID,MAAMJ,KAAK,EAAE;QACfI,MAAMJ,KAAK,CAACK,SAAS,OAAGT,UAAAA,EAAKE,mBAAmBE,KAAK,EAAEH,0BAAAA,CAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACK,SAAS;IAC5F;IAEA,OAAOD;AACT,EAAE"}
@@ -1,38 +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 checkboxClassNames () {
13
- return checkboxClassNames;
14
- },
15
- get useCheckboxStyles_unstable () {
16
- return useCheckboxStyles_unstable;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _clsx = require("clsx");
21
- const _Checkboxmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Checkbox.module.css"));
22
- const checkboxClassNames = {
23
- root: 'fui-Checkbox',
24
- label: 'fui-Checkbox__label',
25
- input: 'fui-Checkbox__input',
26
- indicator: 'fui-Checkbox__indicator'
27
- };
28
- const useCheckboxStyles_unstable = (state)=>{
29
- state.root.className = (0, _clsx.clsx)(checkboxClassNames.root, _Checkboxmodulecss.default.root, _Checkboxmodulecss.default[state.size], _Checkboxmodulecss.default[state.shape], _Checkboxmodulecss.default[state.labelPosition], _Checkboxmodulecss.default[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'], state.disabled && _Checkboxmodulecss.default.disabled, state.root.className);
30
- state.input.className = (0, _clsx.clsx)(checkboxClassNames.input, _Checkboxmodulecss.default.input, state.input.className);
31
- if (state.indicator) {
32
- state.indicator.className = (0, _clsx.clsx)(checkboxClassNames.indicator, _Checkboxmodulecss.default.indicator, state.indicator.className);
33
- }
34
- if (state.label) {
35
- state.label.className = (0, _clsx.clsx)(checkboxClassNames.label, _Checkboxmodulecss.default.label, state.label.className);
36
- }
37
- return state;
38
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Checkbox/useCheckboxStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CheckboxSlots, CheckboxState } from './Checkbox.types';\nimport styles from './Checkbox.module.css';\n\nexport const checkboxClassNames: SlotClassNames<CheckboxSlots> = {\n root: 'fui-Checkbox',\n label: 'fui-Checkbox__label',\n input: 'fui-Checkbox__input',\n indicator: 'fui-Checkbox__indicator',\n};\n\nexport const useCheckboxStyles_unstable = (state: CheckboxState): CheckboxState => {\n state.root.className = clsx(\n checkboxClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.shape],\n styles[state.labelPosition],\n styles[state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked'],\n state.disabled && styles.disabled,\n state.root.className,\n );\n state.input.className = clsx(checkboxClassNames.input, styles.input, state.input.className);\n if (state.indicator) {\n state.indicator.className = clsx(checkboxClassNames.indicator, styles.indicator, state.indicator.className);\n }\n if (state.label) {\n state.label.className = clsx(checkboxClassNames.label, styles.label, state.label.className);\n }\n\n return state;\n};\n"],"names":["clsx","styles","checkboxClassNames","root","label","input","indicator","useCheckboxStyles_unstable","state","className","size","shape","labelPosition","checked","disabled"],"mappings":";;;;;;;;;;;QAKaE;;;QAOAK;;;;;sBAZQ,OAAO;4EAGT,wBAAwB;AAEpC,2BAA0D;IAC/DJ,MAAM;IACNC,OAAO;IACPC,OAAO;IACPC,WAAW;AACb,EAAE;AAEK,mCAAmC,CAACE;IACzCA,MAAML,IAAI,CAACM,SAAS,OAAGT,UAAAA,EACrBE,mBAAmBC,IAAI,EACvBF,0BAAAA,CAAOE,IAAI,EACXF,0BAAM,CAACO,MAAME,IAAI,CAAC,EAClBT,0BAAM,CAACO,MAAMG,KAAK,CAAC,EACnBV,0BAAM,CAACO,MAAMI,aAAa,CAAC,EAC3BX,0BAAM,CAACO,MAAMK,OAAO,KAAK,UAAU,UAAUL,MAAMK,OAAO,GAAG,YAAY,YAAY,EACrFL,MAAMM,QAAQ,IAAIb,0BAAAA,CAAOa,QAAQ,EACjCN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMH,KAAK,CAACI,SAAS,GAAGT,cAAAA,EAAKE,mBAAmBG,KAAK,EAAEJ,0BAAAA,CAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IAC1F,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,OAAGT,UAAAA,EAAKE,mBAAmBI,SAAS,EAAEL,0BAAAA,CAAOK,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,IAAID,MAAMJ,KAAK,EAAE;QACfI,MAAMJ,KAAK,CAACK,SAAS,OAAGT,UAAAA,EAAKE,mBAAmBE,KAAK,EAAEH,0BAAAA,CAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACK,SAAS;IAC5F;IAEA,OAAOD;AACT,EAAE"}