@fluentui/react-tree 9.75.1-experimental.css-modules.20261103-d6c85ee2a9.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 +28 -19
- package/README.md +1 -1
- package/lib/components/FlatTree/FlatTree.module.css +5 -6
- package/lib/components/Tree/Tree.module.css +8 -9
- package/lib/components/TreeItem/TreeItem.module.css +52 -53
- package/lib/components/TreeItemLayout/TreeItemLayout.module.css +114 -113
- package/lib/components/TreeItemPersonaLayout/TreeItemPersonaLayout.module.css +129 -128
- package/lib-commonjs/components/FlatTree/FlatTree.module.css +5 -6
- package/lib-commonjs/components/Tree/Tree.module.css +8 -9
- package/lib-commonjs/components/TreeItem/TreeItem.module.css +52 -53
- package/lib-commonjs/components/TreeItemLayout/TreeItemLayout.module.css +114 -113
- package/lib-commonjs/components/TreeItemPersonaLayout/TreeItemPersonaLayout.module.css +129 -128
- package/package.json +15 -15
|
@@ -1,149 +1,150 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
1
|
+
/* @griffel-buckets reset: .root, .media, .main, .description, .actions, .aside, .expandIcon */
|
|
2
|
+
.root {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-rows: 1fr auto;
|
|
5
|
+
grid-template-columns: auto auto 1fr auto;
|
|
6
|
+
grid-template-areas:
|
|
7
|
+
'expandIcon media main aside'
|
|
8
|
+
'expandIcon media description aside';
|
|
9
|
+
align-items: center;
|
|
10
|
+
font-family: var(--fontFamilyBase);
|
|
11
|
+
font-size: var(--fontSizeBase300);
|
|
12
|
+
font-weight: var(--fontWeightRegular);
|
|
13
|
+
line-height: var(--lineHeightBase300);
|
|
14
|
+
|
|
15
|
+
/* Preserve the original reset: hover takes precedence while active. */
|
|
16
|
+
&:active {
|
|
17
|
+
color: var(--colorNeutralForeground2Pressed);
|
|
18
|
+
background-color: var(--colorSubtleBackgroundPressed);
|
|
19
|
+
& :global(.fui-TreeItemPersonaLayout__expandIcon) {
|
|
20
|
+
color: var(--colorNeutralForeground3Pressed);
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
}
|
|
23
|
+
&:hover {
|
|
24
|
+
color: var(--colorNeutralForeground2Hover);
|
|
25
|
+
background-color: var(--colorSubtleBackgroundHover);
|
|
26
|
+
& :global(.fui-TreeItemPersonaLayout__expandIcon) {
|
|
27
|
+
color: var(--colorNeutralForeground3Hover);
|
|
29
28
|
}
|
|
30
29
|
}
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
.leaf {
|
|
33
|
+
padding-inline-start: calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));
|
|
34
|
+
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
.branch {
|
|
37
|
+
padding-inline-start: calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));
|
|
38
|
+
}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
.medium {
|
|
41
|
+
font-family: var(--fontFamilyBase);
|
|
42
|
+
font-size: var(--fontSizeBase300);
|
|
43
|
+
font-weight: var(--fontWeightRegular);
|
|
44
|
+
line-height: var(--lineHeightBase300);
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
.small {
|
|
48
|
+
min-height: var(--spacingHorizontalXXL);
|
|
49
|
+
font-family: var(--fontFamilyBase);
|
|
50
|
+
font-size: var(--fontSizeBase200);
|
|
51
|
+
font-weight: var(--fontWeightRegular);
|
|
52
|
+
line-height: var(--lineHeightBase200);
|
|
53
|
+
}
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
/* stylelint-disable-next-line block-no-empty -- Class must exist in the CSS Module map; it is used as a state qualifier. */
|
|
56
|
+
.subtle {
|
|
57
|
+
}
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
&:active {
|
|
63
|
-
background-color: var(--colorSubtleBackgroundLightAlphaPressed);
|
|
64
|
-
}
|
|
59
|
+
.subtle-alpha {
|
|
60
|
+
&:hover {
|
|
61
|
+
background-color: var(--colorSubtleBackgroundLightAlphaHover);
|
|
65
62
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
background-color: var(--colorTransparentBackground);
|
|
69
|
-
&:hover {
|
|
70
|
-
background-color: var(--colorTransparentBackgroundHover);
|
|
71
|
-
}
|
|
72
|
-
&:active {
|
|
73
|
-
background-color: var(--colorTransparentBackgroundPressed);
|
|
74
|
-
}
|
|
63
|
+
&:active {
|
|
64
|
+
background-color: var(--colorSubtleBackgroundLightAlphaPressed);
|
|
75
65
|
}
|
|
66
|
+
}
|
|
76
67
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
height: var(--spacingHorizontalXXXL);
|
|
82
|
-
grid-area: media;
|
|
83
|
-
padding-top: 0;
|
|
84
|
-
padding-inline-end: var(--spacingHorizontalXS);
|
|
85
|
-
padding-bottom: 0;
|
|
86
|
-
padding-inline-start: var(--spacingHorizontalXXS);
|
|
68
|
+
.transparent {
|
|
69
|
+
background-color: var(--colorTransparentBackground);
|
|
70
|
+
&:hover {
|
|
71
|
+
background-color: var(--colorTransparentBackgroundHover);
|
|
87
72
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
grid-area: main;
|
|
91
|
-
padding-top: var(--spacingVerticalMNudge);
|
|
92
|
-
padding-inline-end: var(--spacingHorizontalXS);
|
|
93
|
-
padding-bottom: var(--spacingVerticalMNudge);
|
|
94
|
-
padding-inline-start: var(--spacingHorizontalS);
|
|
73
|
+
&:active {
|
|
74
|
+
background-color: var(--colorTransparentBackgroundPressed);
|
|
95
75
|
}
|
|
76
|
+
}
|
|
96
77
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
78
|
+
.media {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
width: var(--spacingHorizontalXXXL);
|
|
82
|
+
height: var(--spacingHorizontalXXXL);
|
|
83
|
+
grid-area: media;
|
|
84
|
+
padding-top: 0;
|
|
85
|
+
padding-inline-end: var(--spacingHorizontalXS);
|
|
86
|
+
padding-bottom: 0;
|
|
87
|
+
padding-inline-start: var(--spacingHorizontalXXS);
|
|
88
|
+
}
|
|
108
89
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
90
|
+
.main {
|
|
91
|
+
grid-area: main;
|
|
92
|
+
padding-top: var(--spacingVerticalMNudge);
|
|
93
|
+
padding-inline-end: var(--spacingHorizontalXS);
|
|
94
|
+
padding-bottom: var(--spacingVerticalMNudge);
|
|
95
|
+
padding-inline-start: var(--spacingHorizontalS);
|
|
96
|
+
}
|
|
117
97
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
98
|
+
.description {
|
|
99
|
+
grid-area: description;
|
|
100
|
+
font-family: var(--fontFamilyBase);
|
|
101
|
+
font-size: var(--fontSizeBase200);
|
|
102
|
+
font-weight: var(--fontWeightRegular);
|
|
103
|
+
line-height: var(--lineHeightBase200);
|
|
104
|
+
padding-top: 0;
|
|
105
|
+
padding-inline-end: var(--spacingHorizontalXS);
|
|
106
|
+
padding-bottom: var(--spacingVerticalMNudge);
|
|
107
|
+
padding-inline-start: var(--spacingHorizontalS);
|
|
108
|
+
}
|
|
127
109
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
flex: 0 0 auto;
|
|
137
|
-
padding: var(--spacingVerticalXS) 0;
|
|
138
|
-
}
|
|
110
|
+
.actions {
|
|
111
|
+
display: flex;
|
|
112
|
+
margin-inline-start: auto;
|
|
113
|
+
position: relative;
|
|
114
|
+
z-index: 1;
|
|
115
|
+
grid-area: aside;
|
|
116
|
+
padding: 0 var(--spacingHorizontalS);
|
|
117
|
+
}
|
|
139
118
|
|
|
140
|
-
|
|
141
|
-
|
|
119
|
+
.aside {
|
|
120
|
+
display: flex;
|
|
121
|
+
margin-inline-start: auto;
|
|
122
|
+
align-items: center;
|
|
123
|
+
z-index: 0;
|
|
124
|
+
grid-area: aside;
|
|
125
|
+
padding: 0 var(--spacingHorizontalM);
|
|
126
|
+
gap: var(--spacingHorizontalXS);
|
|
127
|
+
}
|
|
142
128
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
129
|
+
.expandIcon {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
min-width: var(--spacingHorizontalXXL);
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
color: var(--colorNeutralForeground3);
|
|
136
|
+
grid-area: expandIcon;
|
|
137
|
+
flex: 0 0 auto;
|
|
138
|
+
padding: var(--spacingVerticalXS) 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* stylelint-disable-next-line block-no-empty -- Class must exist in the CSS Module map; it is used as a state qualifier. */
|
|
142
|
+
.selector {
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:where(.withDescription) > .main {
|
|
146
|
+
padding-top: var(--spacingVerticalMNudge);
|
|
147
|
+
padding-inline-end: var(--spacingHorizontalXS);
|
|
148
|
+
padding-bottom: 0;
|
|
149
|
+
padding-inline-start: var(--spacingHorizontalS);
|
|
149
150
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
row-gap: var(--spacingVerticalXXS);
|
|
6
|
+
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
8
|
+
.subtree {
|
|
9
|
+
padding-top: var(--spacingVerticalXXS);
|
|
11
10
|
}
|
|
@@ -1,65 +1,64 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
&:focus-visible {
|
|
15
|
-
outline-style: none;
|
|
16
|
-
}
|
|
17
|
-
&[data-fui-focus-visible] > :global(.fui-TreeItemLayout),
|
|
18
|
-
&[data-fui-focus-visible] > :global(.fui-TreeItemPersonaLayout) {
|
|
19
|
-
border-radius: var(--borderRadiusMedium);
|
|
20
|
-
outline-color: var(--colorStrokeFocus2);
|
|
21
|
-
outline-width: 2px;
|
|
22
|
-
outline-style: solid;
|
|
23
|
-
}
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
position: relative;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
background-color: var(--colorSubtleBackground);
|
|
9
|
+
color: var(--colorNeutralForeground2);
|
|
10
|
+
padding-inline-end: var(--spacingHorizontalNone);
|
|
11
|
+
&:focus {
|
|
12
|
+
outline-style: none;
|
|
24
13
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--fluent-TreeItem--level: 1;
|
|
14
|
+
&:focus-visible {
|
|
15
|
+
outline-style: none;
|
|
28
16
|
}
|
|
29
|
-
|
|
30
|
-
.
|
|
31
|
-
|
|
17
|
+
&[data-fui-focus-visible] > :global(.fui-TreeItemLayout),
|
|
18
|
+
&[data-fui-focus-visible] > :global(.fui-TreeItemPersonaLayout) {
|
|
19
|
+
border-radius: var(--borderRadiusMedium);
|
|
20
|
+
outline-color: var(--colorStrokeFocus2);
|
|
21
|
+
outline-width: 2px;
|
|
22
|
+
outline-style: solid;
|
|
32
23
|
}
|
|
24
|
+
}
|
|
33
25
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
.level1 {
|
|
27
|
+
--fluent-TreeItem--level: 1;
|
|
28
|
+
}
|
|
37
29
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
.level2 {
|
|
31
|
+
--fluent-TreeItem--level: 2;
|
|
32
|
+
}
|
|
41
33
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
.level3 {
|
|
35
|
+
--fluent-TreeItem--level: 3;
|
|
36
|
+
}
|
|
45
37
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
.level4 {
|
|
39
|
+
--fluent-TreeItem--level: 4;
|
|
40
|
+
}
|
|
49
41
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
.level5 {
|
|
43
|
+
--fluent-TreeItem--level: 5;
|
|
44
|
+
}
|
|
53
45
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
.level6 {
|
|
47
|
+
--fluent-TreeItem--level: 6;
|
|
48
|
+
}
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
.level7 {
|
|
51
|
+
--fluent-TreeItem--level: 7;
|
|
52
|
+
}
|
|
61
53
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
.level8 {
|
|
55
|
+
--fluent-TreeItem--level: 8;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.level9 {
|
|
59
|
+
--fluent-TreeItem--level: 9;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.level10 {
|
|
63
|
+
--fluent-TreeItem--level: 10;
|
|
65
64
|
}
|