@fluentui/react-list 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 +12 -12
- package/lib/components/List/List.module.css +7 -0
- package/lib/components/List/useListStyles.styles.css.js +9 -0
- package/lib/components/List/useListStyles.styles.css.js.map +1 -0
- package/lib/components/List/useListStyles.styles.raw.css.js +9 -0
- package/lib/components/List/useListStyles.styles.raw.css.js.map +1 -0
- package/lib/components/ListItem/ListItem.module.css +24 -0
- package/lib/components/ListItem/useListItemStyles.styles.css.js +13 -0
- package/lib/components/ListItem/useListItemStyles.styles.css.js.map +1 -0
- package/lib/components/ListItem/useListItemStyles.styles.raw.css.js +13 -0
- package/lib/components/ListItem/useListItemStyles.styles.raw.css.js.map +1 -0
- package/lib-commonjs/components/List/List.module.css +7 -0
- package/lib-commonjs/components/List/useListStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/List/useListStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/List/useListStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/List/useListStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/ListItem/ListItem.module.css +24 -0
- package/lib-commonjs/components/ListItem/useListItemStyles.styles.css.cjs +32 -0
- package/lib-commonjs/components/ListItem/useListItemStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/ListItem/useListItemStyles.styles.raw.css.cjs +32 -0
- package/lib-commonjs/components/ListItem/useListItemStyles.styles.raw.css.cjs.map +1 -0
- package/package.json +14 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-list
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 13 Nov 2026 20:37:17 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.
|
|
7
|
+
## [9.75.2-experimental.css-modules.20261113-ba13c87438.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-list_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Fri, 13 Nov 2026 20:37:17 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- Release 9.75.
|
|
14
|
-
- Bump @fluentui/keyboard-keys to v9.75.
|
|
15
|
-
- Bump @fluentui/react-checkbox to v9.75.
|
|
16
|
-
- Bump @fluentui/react-context-selector to v9.75.
|
|
17
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.
|
|
18
|
-
- Bump @fluentui/react-shared-contexts to v9.75.
|
|
19
|
-
- Bump @fluentui/react-tabster to v9.75.
|
|
20
|
-
- Bump @fluentui/react-theme to v9.75.
|
|
21
|
-
- Bump @fluentui/react-utilities to v9.75.
|
|
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/keyboard-keys to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
15
|
+
- Bump @fluentui/react-checkbox to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-context-selector to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- 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)
|
|
18
|
+
- 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)
|
|
19
|
+
- Bump @fluentui/react-tabster to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
|
+
- Bump @fluentui/react-theme to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
21
|
+
- Bump @fluentui/react-utilities to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
22
22
|
|
|
23
23
|
## [9.7.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-list_v9.7.0)
|
|
24
24
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./List.module.css";
|
|
3
|
+
export const listClassNames = {
|
|
4
|
+
root: 'fui-List'
|
|
5
|
+
};
|
|
6
|
+
export const useListStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(listClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/List/useListStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListSlots, ListState } from './List.types';\nimport styles from './List.module.css';\n\nexport const listClassNames: SlotClassNames<ListSlots> = {\n root: 'fui-List',\n};\n\nexport const useListStyles_unstable = (state: ListState): ListState => {\n state.root.className = clsx(listClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","listClassNames","root","useListStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,oBAAoB;AAEvC,OAAO,MAAMC,iBAA4C;IACvDC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,eAAeC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAClF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./List.module.css";
|
|
3
|
+
export const listClassNames = {
|
|
4
|
+
root: 'fui-List'
|
|
5
|
+
};
|
|
6
|
+
export const useListStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(listClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/List/useListStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListSlots, ListState } from './List.types';\nimport styles from './List.module.css';\n\nexport const listClassNames: SlotClassNames<ListSlots> = {\n root: 'fui-List',\n};\n\nexport const useListStyles_unstable = (state: ListState): ListState => {\n state.root.className = clsx(listClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","listClassNames","root","useListStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,oBAAoB;AAEvC,OAAO,MAAMC,iBAA4C;IACvDC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,eAAeC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAClF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
text-indent: 0;
|
|
6
|
+
list-style-type: none;
|
|
7
|
+
&[data-fui-focus-visible] {
|
|
8
|
+
outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
9
|
+
border-radius: var(--borderRadiusMedium);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.interactive {
|
|
13
|
+
display: flex;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
.disabled {
|
|
17
|
+
cursor: default;
|
|
18
|
+
}
|
|
19
|
+
.checkmark {
|
|
20
|
+
align-self: center;
|
|
21
|
+
& :global(.fui-Checkbox__indicator) {
|
|
22
|
+
margin: var(--spacingHorizontalXS);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./ListItem.module.css";
|
|
3
|
+
export const listItemClassNames = {
|
|
4
|
+
root: 'fui-ListItem',
|
|
5
|
+
checkmark: 'fui-ListItem__checkmark'
|
|
6
|
+
};
|
|
7
|
+
export const useListItemStyles_unstable = (state)=>{
|
|
8
|
+
state.root.className = clsx(listItemClassNames.root, styles.root, (state.selectable || state.navigable) && styles.interactive, state.disabled && styles.disabled, state.root.className);
|
|
9
|
+
if (state.checkmark) {
|
|
10
|
+
state.checkmark.className = clsx(listItemClassNames.checkmark, styles.checkmark, state.checkmark.className);
|
|
11
|
+
}
|
|
12
|
+
return state;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ListItem/useListItemStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport styles from './ListItem.module.css';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n checkmark: 'fui-ListItem__checkmark',\n};\n\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n state.root.className = clsx(\n listItemClassNames.root,\n styles.root,\n (state.selectable || state.navigable) && styles.interactive,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.checkmark) {\n state.checkmark.className = clsx(listItemClassNames.checkmark, styles.checkmark, state.checkmark.className);\n }\n return state;\n};\n"],"names":["clsx","styles","listItemClassNames","root","checkmark","useListItemStyles_unstable","state","className","selectable","navigable","interactive","disabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,WAAW;AACb,EAAE;AAEF,OAAO,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,GAAGP,KACrBE,mBAAmBC,IAAI,EACvBF,OAAOE,IAAI,EACX,AAACG,CAAAA,MAAME,UAAU,IAAIF,MAAMG,SAAS,AAAD,KAAMR,OAAOS,WAAW,EAC3DJ,MAAMK,QAAQ,IAAIV,OAAOU,QAAQ,EACjCL,MAAMH,IAAI,CAACI,SAAS;IAEtB,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,GAAGP,KAAKE,mBAAmBE,SAAS,EAAEH,OAAOG,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./ListItem.module.css";
|
|
3
|
+
export const listItemClassNames = {
|
|
4
|
+
root: 'fui-ListItem',
|
|
5
|
+
checkmark: 'fui-ListItem__checkmark'
|
|
6
|
+
};
|
|
7
|
+
export const useListItemStyles_unstable = (state)=>{
|
|
8
|
+
state.root.className = clsx(listItemClassNames.root, styles.root, (state.selectable || state.navigable) && styles.interactive, state.disabled && styles.disabled, state.root.className);
|
|
9
|
+
if (state.checkmark) {
|
|
10
|
+
state.checkmark.className = clsx(listItemClassNames.checkmark, styles.checkmark, state.checkmark.className);
|
|
11
|
+
}
|
|
12
|
+
return state;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ListItem/useListItemStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport styles from './ListItem.module.css';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n checkmark: 'fui-ListItem__checkmark',\n};\n\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n state.root.className = clsx(\n listItemClassNames.root,\n styles.root,\n (state.selectable || state.navigable) && styles.interactive,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.checkmark) {\n state.checkmark.className = clsx(listItemClassNames.checkmark, styles.checkmark, state.checkmark.className);\n }\n return state;\n};\n"],"names":["clsx","styles","listItemClassNames","root","checkmark","useListItemStyles_unstable","state","className","selectable","navigable","interactive","disabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,wBAAwB;AAE3C,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,WAAW;AACb,EAAE;AAEF,OAAO,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,GAAGP,KACrBE,mBAAmBC,IAAI,EACvBF,OAAOE,IAAI,EACX,AAACG,CAAAA,MAAME,UAAU,IAAIF,MAAMG,SAAS,AAAD,KAAMR,OAAOS,WAAW,EAC3DJ,MAAMK,QAAQ,IAAIV,OAAOU,QAAQ,EACjCL,MAAMH,IAAI,CAACI,SAAS;IAEtB,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,GAAGP,KAAKE,mBAAmBE,SAAS,EAAEH,OAAOG,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 listClassNames () {
|
|
13
|
+
return listClassNames;
|
|
14
|
+
},
|
|
15
|
+
get useListStyles_unstable () {
|
|
16
|
+
return useListStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
+
const _clsx = require("clsx");
|
|
21
|
+
const _Listmodulecss = /*#__PURE__*/ _interop_require_default._(require("./List.module.css"));
|
|
22
|
+
const listClassNames = {
|
|
23
|
+
root: 'fui-List'
|
|
24
|
+
};
|
|
25
|
+
const useListStyles_unstable = (state)=>{
|
|
26
|
+
state.root.className = (0, _clsx.clsx)(listClassNames.root, _Listmodulecss.default.root, state.root.className);
|
|
27
|
+
return state;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/List/useListStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListSlots, ListState } from './List.types';\nimport styles from './List.module.css';\n\nexport const listClassNames: SlotClassNames<ListSlots> = {\n root: 'fui-List',\n};\n\nexport const useListStyles_unstable = (state: ListState): ListState => {\n state.root.className = clsx(listClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","listClassNames","root","useListStyles_unstable","state","className"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;wEAGT,oBAAoB;AAEhC,uBAAkD;IACvDC,MAAM;AACR,EAAE;AAEK,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,OAAGN,UAAAA,EAAKE,eAAeC,IAAI,EAAEF,sBAAAA,CAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAClF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 listClassNames () {
|
|
13
|
+
return listClassNames;
|
|
14
|
+
},
|
|
15
|
+
get useListStyles_unstable () {
|
|
16
|
+
return useListStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
+
const _clsx = require("clsx");
|
|
21
|
+
const _Listmodulecss = /*#__PURE__*/ _interop_require_default._(require("./List.module.css"));
|
|
22
|
+
const listClassNames = {
|
|
23
|
+
root: 'fui-List'
|
|
24
|
+
};
|
|
25
|
+
const useListStyles_unstable = (state)=>{
|
|
26
|
+
state.root.className = (0, _clsx.clsx)(listClassNames.root, _Listmodulecss.default.root, state.root.className);
|
|
27
|
+
return state;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/List/useListStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListSlots, ListState } from './List.types';\nimport styles from './List.module.css';\n\nexport const listClassNames: SlotClassNames<ListSlots> = {\n root: 'fui-List',\n};\n\nexport const useListStyles_unstable = (state: ListState): ListState => {\n state.root.className = clsx(listClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","listClassNames","root","useListStyles_unstable","state","className"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;wEAGT,oBAAoB;AAEhC,uBAAkD;IACvDC,MAAM;AACR,EAAE;AAEK,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,OAAGN,UAAAA,EAAKE,eAAeC,IAAI,EAAEF,sBAAAA,CAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAClF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
text-indent: 0;
|
|
6
|
+
list-style-type: none;
|
|
7
|
+
&[data-fui-focus-visible] {
|
|
8
|
+
outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
9
|
+
border-radius: var(--borderRadiusMedium);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.interactive {
|
|
13
|
+
display: flex;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
.disabled {
|
|
17
|
+
cursor: default;
|
|
18
|
+
}
|
|
19
|
+
.checkmark {
|
|
20
|
+
align-self: center;
|
|
21
|
+
& :global(.fui-Checkbox__indicator) {
|
|
22
|
+
margin: var(--spacingHorizontalXS);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -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 listItemClassNames () {
|
|
13
|
+
return listItemClassNames;
|
|
14
|
+
},
|
|
15
|
+
get useListItemStyles_unstable () {
|
|
16
|
+
return useListItemStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
+
const _clsx = require("clsx");
|
|
21
|
+
const _ListItemmodulecss = /*#__PURE__*/ _interop_require_default._(require("./ListItem.module.css"));
|
|
22
|
+
const listItemClassNames = {
|
|
23
|
+
root: 'fui-ListItem',
|
|
24
|
+
checkmark: 'fui-ListItem__checkmark'
|
|
25
|
+
};
|
|
26
|
+
const useListItemStyles_unstable = (state)=>{
|
|
27
|
+
state.root.className = (0, _clsx.clsx)(listItemClassNames.root, _ListItemmodulecss.default.root, (state.selectable || state.navigable) && _ListItemmodulecss.default.interactive, state.disabled && _ListItemmodulecss.default.disabled, state.root.className);
|
|
28
|
+
if (state.checkmark) {
|
|
29
|
+
state.checkmark.className = (0, _clsx.clsx)(listItemClassNames.checkmark, _ListItemmodulecss.default.checkmark, state.checkmark.className);
|
|
30
|
+
}
|
|
31
|
+
return state;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ListItem/useListItemStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport styles from './ListItem.module.css';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n checkmark: 'fui-ListItem__checkmark',\n};\n\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n state.root.className = clsx(\n listItemClassNames.root,\n styles.root,\n (state.selectable || state.navigable) && styles.interactive,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.checkmark) {\n state.checkmark.className = clsx(listItemClassNames.checkmark, styles.checkmark, state.checkmark.className);\n }\n return state;\n};\n"],"names":["clsx","styles","listItemClassNames","root","checkmark","useListItemStyles_unstable","state","className","selectable","navigable","interactive","disabled"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;4EAGT,wBAAwB;AAEpC,2BAA0D;IAC/DC,MAAM;IACNC,WAAW;AACb,EAAE;AAEK,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,OAAGP,UAAAA,EACrBE,mBAAmBC,IAAI,EACvBF,0BAAAA,CAAOE,IAAI,EACVG,CAAAA,MAAME,UAAU,IAAIF,MAAMG,SAAAA,AAAQ,KAAMR,0BAAAA,CAAOS,WAAW,EAC3DJ,MAAMK,QAAQ,IAAIV,0BAAAA,CAAOU,QAAQ,EACjCL,MAAMH,IAAI,CAACI,SAAS;IAEtB,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,OAAGP,UAAAA,EAAKE,mBAAmBE,SAAS,EAAEH,0BAAAA,CAAOG,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,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 listItemClassNames () {
|
|
13
|
+
return listItemClassNames;
|
|
14
|
+
},
|
|
15
|
+
get useListItemStyles_unstable () {
|
|
16
|
+
return useListItemStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
+
const _clsx = require("clsx");
|
|
21
|
+
const _ListItemmodulecss = /*#__PURE__*/ _interop_require_default._(require("./ListItem.module.css"));
|
|
22
|
+
const listItemClassNames = {
|
|
23
|
+
root: 'fui-ListItem',
|
|
24
|
+
checkmark: 'fui-ListItem__checkmark'
|
|
25
|
+
};
|
|
26
|
+
const useListItemStyles_unstable = (state)=>{
|
|
27
|
+
state.root.className = (0, _clsx.clsx)(listItemClassNames.root, _ListItemmodulecss.default.root, (state.selectable || state.navigable) && _ListItemmodulecss.default.interactive, state.disabled && _ListItemmodulecss.default.disabled, state.root.className);
|
|
28
|
+
if (state.checkmark) {
|
|
29
|
+
state.checkmark.className = (0, _clsx.clsx)(listItemClassNames.checkmark, _ListItemmodulecss.default.checkmark, state.checkmark.className);
|
|
30
|
+
}
|
|
31
|
+
return state;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ListItem/useListItemStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport styles from './ListItem.module.css';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n checkmark: 'fui-ListItem__checkmark',\n};\n\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n state.root.className = clsx(\n listItemClassNames.root,\n styles.root,\n (state.selectable || state.navigable) && styles.interactive,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.checkmark) {\n state.checkmark.className = clsx(listItemClassNames.checkmark, styles.checkmark, state.checkmark.className);\n }\n return state;\n};\n"],"names":["clsx","styles","listItemClassNames","root","checkmark","useListItemStyles_unstable","state","className","selectable","navigable","interactive","disabled"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;4EAGT,wBAAwB;AAEpC,2BAA0D;IAC/DC,MAAM;IACNC,WAAW;AACb,EAAE;AAEK,MAAMC,6BAA6B,CAACC;IACzCA,MAAMH,IAAI,CAACI,SAAS,OAAGP,UAAAA,EACrBE,mBAAmBC,IAAI,EACvBF,0BAAAA,CAAOE,IAAI,EACVG,CAAAA,MAAME,UAAU,IAAIF,MAAMG,SAAAA,AAAQ,KAAMR,0BAAAA,CAAOS,WAAW,EAC3DJ,MAAMK,QAAQ,IAAIV,0BAAAA,CAAOU,QAAQ,EACjCL,MAAMH,IAAI,CAACI,SAAS;IAEtB,IAAID,MAAMF,SAAS,EAAE;QACnBE,MAAMF,SAAS,CAACG,SAAS,OAAGP,UAAAA,EAAKE,mBAAmBE,SAAS,EAAEH,0BAAAA,CAAOG,SAAS,EAAEE,MAAMF,SAAS,CAACG,SAAS;IAC5G;IACA,OAAOD;AACT,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-list",
|
|
3
|
-
"version": "9.75.
|
|
3
|
+
"version": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
4
4
|
"description": "React List v9",
|
|
5
5
|
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
|
-
"sideEffects":
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
9
11
|
"files": [
|
|
10
12
|
"*.md",
|
|
11
13
|
"dist/*.d.ts",
|
|
@@ -19,16 +21,17 @@
|
|
|
19
21
|
},
|
|
20
22
|
"license": "MIT",
|
|
21
23
|
"dependencies": {
|
|
22
|
-
"@fluentui/keyboard-keys": "9.75.
|
|
23
|
-
"@fluentui/react-checkbox": "9.75.
|
|
24
|
-
"@fluentui/react-context-selector": "9.75.
|
|
25
|
-
"@fluentui/react-jsx-runtime": "9.75.
|
|
26
|
-
"@fluentui/react-shared-contexts": "9.75.
|
|
27
|
-
"@fluentui/react-tabster": "9.75.
|
|
28
|
-
"@fluentui/react-theme": "9.75.
|
|
29
|
-
"@fluentui/react-utilities": "9.75.
|
|
24
|
+
"@fluentui/keyboard-keys": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
25
|
+
"@fluentui/react-checkbox": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
26
|
+
"@fluentui/react-context-selector": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
27
|
+
"@fluentui/react-jsx-runtime": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
28
|
+
"@fluentui/react-shared-contexts": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
29
|
+
"@fluentui/react-tabster": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
30
|
+
"@fluentui/react-theme": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
31
|
+
"@fluentui/react-utilities": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
30
32
|
"@griffel/react": "^1.5.32",
|
|
31
|
-
"@swc/helpers": "^0.5.1"
|
|
33
|
+
"@swc/helpers": "^0.5.1",
|
|
34
|
+
"clsx": "^2.1.1"
|
|
32
35
|
},
|
|
33
36
|
"peerDependencies": {
|
|
34
37
|
"@types/react": ">=16.14.0 <20.0.0",
|