@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.
@@ -1,149 +1,150 @@
1
- @layer fluent {
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);
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
- &:hover {
24
- color: var(--colorNeutralForeground2Hover);
25
- background-color: var(--colorSubtleBackgroundHover);
26
- & :global(.fui-TreeItemPersonaLayout__expandIcon) {
27
- color: var(--colorNeutralForeground3Hover);
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
- .leaf {
33
- padding-inline-start: calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));
34
- }
32
+ .leaf {
33
+ padding-inline-start: calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));
34
+ }
35
35
 
36
- .branch {
37
- padding-inline-start: calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));
38
- }
36
+ .branch {
37
+ padding-inline-start: calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));
38
+ }
39
39
 
40
- .medium {
41
- font-family: var(--fontFamilyBase);
42
- font-size: var(--fontSizeBase300);
43
- font-weight: var(--fontWeightRegular);
44
- line-height: var(--lineHeightBase300);
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
- .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
- }
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
- .subtle {
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
- .subtle-alpha {
59
- &:hover {
60
- background-color: var(--colorSubtleBackgroundLightAlphaHover);
61
- }
62
- &:active {
63
- background-color: var(--colorSubtleBackgroundLightAlphaPressed);
64
- }
59
+ .subtle-alpha {
60
+ &:hover {
61
+ background-color: var(--colorSubtleBackgroundLightAlphaHover);
65
62
  }
66
-
67
- .transparent {
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
- .media {
78
- display: flex;
79
- align-items: center;
80
- width: var(--spacingHorizontalXXXL);
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
- .main {
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
- .description {
98
- grid-area: description;
99
- font-family: var(--fontFamilyBase);
100
- font-size: var(--fontSizeBase200);
101
- font-weight: var(--fontWeightRegular);
102
- line-height: var(--lineHeightBase200);
103
- padding-top: 0;
104
- padding-inline-end: var(--spacingHorizontalXS);
105
- padding-bottom: var(--spacingVerticalMNudge);
106
- padding-inline-start: var(--spacingHorizontalS);
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
- .actions {
110
- display: flex;
111
- margin-inline-start: auto;
112
- position: relative;
113
- z-index: 1;
114
- grid-area: aside;
115
- padding: 0 var(--spacingHorizontalS);
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
- .aside {
119
- display: flex;
120
- margin-inline-start: auto;
121
- align-items: center;
122
- z-index: 0;
123
- grid-area: aside;
124
- padding: 0 var(--spacingHorizontalM);
125
- gap: var(--spacingHorizontalXS);
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
- .expandIcon {
129
- display: flex;
130
- align-items: center;
131
- justify-content: center;
132
- min-width: var(--spacingHorizontalXXL);
133
- box-sizing: border-box;
134
- color: var(--colorNeutralForeground3);
135
- grid-area: expandIcon;
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
- .selector {
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
- :where(.withDescription) > .main {
144
- padding-top: var(--spacingVerticalMNudge);
145
- padding-inline-end: var(--spacingHorizontalXS);
146
- padding-bottom: 0;
147
- padding-inline-start: var(--spacingHorizontalS);
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,7 +1,6 @@
1
- @layer fluent {
2
- .root {
3
- display: flex;
4
- flex-direction: column;
5
- row-gap: var(--spacingVerticalXXS);
6
- }
1
+ /* @griffel-buckets reset: .root */
2
+ .root {
3
+ display: flex;
4
+ flex-direction: column;
5
+ row-gap: var(--spacingVerticalXXS);
7
6
  }
@@ -1,11 +1,10 @@
1
- @layer fluent {
2
- .root {
3
- display: flex;
4
- flex-direction: column;
5
- row-gap: var(--spacingVerticalXXS);
6
- }
1
+ /* @griffel-buckets reset: .root */
2
+ .root {
3
+ display: flex;
4
+ flex-direction: column;
5
+ row-gap: var(--spacingVerticalXXS);
6
+ }
7
7
 
8
- .subtree {
9
- padding-top: var(--spacingVerticalXXS);
10
- }
8
+ .subtree {
9
+ padding-top: var(--spacingVerticalXXS);
11
10
  }
@@ -1,65 +1,64 @@
1
- @layer fluent {
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;
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
- .level1 {
27
- --fluent-TreeItem--level: 1;
14
+ &:focus-visible {
15
+ outline-style: none;
28
16
  }
29
-
30
- .level2 {
31
- --fluent-TreeItem--level: 2;
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
- .level3 {
35
- --fluent-TreeItem--level: 3;
36
- }
26
+ .level1 {
27
+ --fluent-TreeItem--level: 1;
28
+ }
37
29
 
38
- .level4 {
39
- --fluent-TreeItem--level: 4;
40
- }
30
+ .level2 {
31
+ --fluent-TreeItem--level: 2;
32
+ }
41
33
 
42
- .level5 {
43
- --fluent-TreeItem--level: 5;
44
- }
34
+ .level3 {
35
+ --fluent-TreeItem--level: 3;
36
+ }
45
37
 
46
- .level6 {
47
- --fluent-TreeItem--level: 6;
48
- }
38
+ .level4 {
39
+ --fluent-TreeItem--level: 4;
40
+ }
49
41
 
50
- .level7 {
51
- --fluent-TreeItem--level: 7;
52
- }
42
+ .level5 {
43
+ --fluent-TreeItem--level: 5;
44
+ }
53
45
 
54
- .level8 {
55
- --fluent-TreeItem--level: 8;
56
- }
46
+ .level6 {
47
+ --fluent-TreeItem--level: 6;
48
+ }
57
49
 
58
- .level9 {
59
- --fluent-TreeItem--level: 9;
60
- }
50
+ .level7 {
51
+ --fluent-TreeItem--level: 7;
52
+ }
61
53
 
62
- .level10 {
63
- --fluent-TreeItem--level: 10;
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
  }