@fluentui/react-shared-contexts 0.0.0-nightly-20220302-0405.1
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.json +1073 -0
- package/CHANGELOG.md +407 -0
- package/LICENSE +15 -0
- package/README.md +7 -0
- package/dist/react-shared-contexts.d.ts +61 -0
- package/lib/MenuContext/MenuContext.d.ts +4 -0
- package/lib/MenuContext/MenuContext.js +6 -0
- package/lib/MenuContext/MenuContext.js.map +1 -0
- package/lib/MenuContext/index.d.ts +2 -0
- package/lib/MenuContext/index.js +3 -0
- package/lib/MenuContext/index.js.map +1 -0
- package/lib/MenuContext/types.d.ts +6 -0
- package/lib/MenuContext/types.js +2 -0
- package/lib/MenuContext/types.js.map +1 -0
- package/lib/MenuContext.d.ts +1 -0
- package/lib/MenuContext.js +2 -0
- package/lib/MenuContext.js.map +1 -0
- package/lib/ProviderContext/ProviderContext.d.ts +4 -0
- package/lib/ProviderContext/ProviderContext.js +9 -0
- package/lib/ProviderContext/ProviderContext.js.map +1 -0
- package/lib/ProviderContext/ProviderContext.types.d.ts +6 -0
- package/lib/ProviderContext/ProviderContext.types.js +2 -0
- package/lib/ProviderContext/ProviderContext.types.js.map +1 -0
- package/lib/ProviderContext/index.d.ts +2 -0
- package/lib/ProviderContext/index.js +3 -0
- package/lib/ProviderContext/index.js.map +1 -0
- package/lib/ProviderContext.d.ts +1 -0
- package/lib/ProviderContext.js +2 -0
- package/lib/ProviderContext.js.map +1 -0
- package/lib/ThemeClassNameContext/ThemeClassNameContext.d.ts +12 -0
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +16 -0
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -0
- package/lib/ThemeClassNameContext/index.d.ts +1 -0
- package/lib/ThemeClassNameContext/index.js +2 -0
- package/lib/ThemeClassNameContext/index.js.map +1 -0
- package/lib/ThemeClassNameContext.d.ts +1 -0
- package/lib/ThemeClassNameContext.js +2 -0
- package/lib/ThemeClassNameContext.js.map +1 -0
- package/lib/ThemeContext/ThemeContext.d.ts +4 -0
- package/lib/ThemeContext/ThemeContext.js +6 -0
- package/lib/ThemeContext/ThemeContext.js.map +1 -0
- package/lib/ThemeContext/index.d.ts +1 -0
- package/lib/ThemeContext/index.js +2 -0
- package/lib/ThemeContext/index.js.map +1 -0
- package/lib/ThemeContext.d.ts +1 -0
- package/lib/ThemeContext.js +2 -0
- package/lib/ThemeContext.js.map +1 -0
- package/lib/TooltipContext/TooltipContext.d.ts +17 -0
- package/lib/TooltipContext/TooltipContext.js +7 -0
- package/lib/TooltipContext/TooltipContext.js.map +1 -0
- package/lib/TooltipContext/index.d.ts +1 -0
- package/lib/TooltipContext/index.js +2 -0
- package/lib/TooltipContext/index.js.map +1 -0
- package/lib/TooltipContext.d.ts +1 -0
- package/lib/TooltipContext.js +2 -0
- package/lib/TooltipContext.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -0
- package/lib/tsdoc-metadata.json +11 -0
- package/lib-commonjs/MenuContext/MenuContext.d.ts +4 -0
- package/lib-commonjs/MenuContext/MenuContext.js +17 -0
- package/lib-commonjs/MenuContext/MenuContext.js.map +1 -0
- package/lib-commonjs/MenuContext/index.d.ts +2 -0
- package/lib-commonjs/MenuContext/index.js +12 -0
- package/lib-commonjs/MenuContext/index.js.map +1 -0
- package/lib-commonjs/MenuContext/types.d.ts +6 -0
- package/lib-commonjs/MenuContext/types.js +6 -0
- package/lib-commonjs/MenuContext/types.js.map +1 -0
- package/lib-commonjs/MenuContext.d.ts +1 -0
- package/lib-commonjs/MenuContext.js +10 -0
- package/lib-commonjs/MenuContext.js.map +1 -0
- package/lib-commonjs/ProviderContext/ProviderContext.d.ts +4 -0
- package/lib-commonjs/ProviderContext/ProviderContext.js +20 -0
- package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -0
- package/lib-commonjs/ProviderContext/ProviderContext.types.d.ts +6 -0
- package/lib-commonjs/ProviderContext/ProviderContext.types.js +6 -0
- package/lib-commonjs/ProviderContext/ProviderContext.types.js.map +1 -0
- package/lib-commonjs/ProviderContext/index.d.ts +2 -0
- package/lib-commonjs/ProviderContext/index.js +12 -0
- package/lib-commonjs/ProviderContext/index.js.map +1 -0
- package/lib-commonjs/ProviderContext.d.ts +1 -0
- package/lib-commonjs/ProviderContext.js +10 -0
- package/lib-commonjs/ProviderContext.js.map +1 -0
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.d.ts +12 -0
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +26 -0
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -0
- package/lib-commonjs/ThemeClassNameContext/index.d.ts +1 -0
- package/lib-commonjs/ThemeClassNameContext/index.js +10 -0
- package/lib-commonjs/ThemeClassNameContext/index.js.map +1 -0
- package/lib-commonjs/ThemeClassNameContext.d.ts +1 -0
- package/lib-commonjs/ThemeClassNameContext.js +10 -0
- package/lib-commonjs/ThemeClassNameContext.js.map +1 -0
- package/lib-commonjs/ThemeContext/ThemeContext.d.ts +4 -0
- package/lib-commonjs/ThemeContext/ThemeContext.js +17 -0
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -0
- package/lib-commonjs/ThemeContext/index.d.ts +1 -0
- package/lib-commonjs/ThemeContext/index.js +10 -0
- package/lib-commonjs/ThemeContext/index.js.map +1 -0
- package/lib-commonjs/ThemeContext.d.ts +1 -0
- package/lib-commonjs/ThemeContext.js +10 -0
- package/lib-commonjs/ThemeContext.js.map +1 -0
- package/lib-commonjs/TooltipContext/TooltipContext.d.ts +17 -0
- package/lib-commonjs/TooltipContext/TooltipContext.js +15 -0
- package/lib-commonjs/TooltipContext/TooltipContext.js.map +1 -0
- package/lib-commonjs/TooltipContext/index.d.ts +1 -0
- package/lib-commonjs/TooltipContext/index.js +10 -0
- package/lib-commonjs/TooltipContext/index.js.map +1 -0
- package/lib-commonjs/TooltipContext.d.ts +1 -0
- package/lib-commonjs/TooltipContext.js +10 -0
- package/lib-commonjs/TooltipContext.js.map +1 -0
- package/lib-commonjs/index.d.ts +5 -0
- package/lib-commonjs/index.js +18 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +52 -0
package/CHANGELOG.md
ADDED
@@ -0,0 +1,407 @@
|
|
1
|
+
# Change Log - @fluentui/react-shared-contexts
|
2
|
+
|
3
|
+
This log was last generated on Wed, 02 Mar 2022 04:14:57 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
<!-- Start content -->
|
6
|
+
|
7
|
+
## [0.0.0-nightly-20220302-0405.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20220302-0405.1)
|
8
|
+
|
9
|
+
Wed, 02 Mar 2022 04:14:57 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.3..@fluentui/react-shared-contexts_v0.0.0-nightly-20220302-0405.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/53b1c4f7ec45eabb24152a601ce3341b825b3aec) by email not defined)
|
15
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20220302-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/53b1c4f7ec45eabb24152a601ce3341b825b3aec) by beachball)
|
16
|
+
|
17
|
+
## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.3)
|
18
|
+
|
19
|
+
Fri, 18 Feb 2022 13:35:34 GMT
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.1..@fluentui/react-shared-contexts_v9.0.0-rc.3)
|
21
|
+
|
22
|
+
### Changes
|
23
|
+
|
24
|
+
- fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
|
25
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
26
|
+
|
27
|
+
## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.1)
|
28
|
+
|
29
|
+
Thu, 10 Feb 2022 08:50:48 GMT
|
30
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.4..@fluentui/react-shared-contexts_v9.0.0-rc.1)
|
31
|
+
|
32
|
+
### Changes
|
33
|
+
|
34
|
+
- make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue ([PR #21286](https://github.com/microsoft/fluentui/pull/21286) by martinhochel@microsoft.com)
|
35
|
+
- Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
|
36
|
+
- Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
37
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
38
|
+
|
39
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.4)
|
40
|
+
|
41
|
+
Thu, 25 Nov 2021 08:34:16 GMT
|
42
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.3..@fluentui/react-shared-contexts_v9.0.0-beta.4)
|
43
|
+
|
44
|
+
### Changes
|
45
|
+
|
46
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
47
|
+
|
48
|
+
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.3)
|
49
|
+
|
50
|
+
Fri, 12 Nov 2021 13:25:32 GMT
|
51
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.2..@fluentui/react-shared-contexts_v9.0.0-beta.3)
|
52
|
+
|
53
|
+
### Changes
|
54
|
+
|
55
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
56
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
57
|
+
|
58
|
+
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.2)
|
59
|
+
|
60
|
+
Wed, 27 Oct 2021 12:14:24 GMT
|
61
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.1..@fluentui/react-shared-contexts_v9.0.0-beta.2)
|
62
|
+
|
63
|
+
### Changes
|
64
|
+
|
65
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
66
|
+
|
67
|
+
## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.1)
|
68
|
+
|
69
|
+
Wed, 06 Oct 2021 10:37:22 GMT
|
70
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.28..@fluentui/react-shared-contexts_v9.0.0-beta.1)
|
71
|
+
|
72
|
+
### Changes
|
73
|
+
|
74
|
+
- Bump all v9 components to beta prerelease tag ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by lingfangao@hotmail.com)
|
75
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
|
76
|
+
|
77
|
+
## [9.0.0-alpha.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.28)
|
78
|
+
|
79
|
+
Fri, 01 Oct 2021 14:13:08 GMT
|
80
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.26..@fluentui/react-shared-contexts_v9.0.0-alpha.28)
|
81
|
+
|
82
|
+
### Changes
|
83
|
+
|
84
|
+
- Bump v9 prerelease versions to rerelease ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by lingfangao@hotmail.com)
|
85
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.26 ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by beachball)
|
86
|
+
|
87
|
+
## [9.0.0-alpha.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.26)
|
88
|
+
|
89
|
+
Wed, 29 Sep 2021 08:06:11 GMT
|
90
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.25..@fluentui/react-shared-contexts_v9.0.0-alpha.26)
|
91
|
+
|
92
|
+
### Changes
|
93
|
+
|
94
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.24 ([PR #19660](https://github.com/microsoft/fluentui/pull/19660) by beachball)
|
95
|
+
|
96
|
+
## [9.0.0-alpha.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.25)
|
97
|
+
|
98
|
+
Tue, 21 Sep 2021 07:42:34 GMT
|
99
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.24..@fluentui/react-shared-contexts_v9.0.0-alpha.25)
|
100
|
+
|
101
|
+
### Changes
|
102
|
+
|
103
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.23 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
104
|
+
|
105
|
+
## [9.0.0-alpha.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.24)
|
106
|
+
|
107
|
+
Fri, 10 Sep 2021 16:31:53 GMT
|
108
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.23..@fluentui/react-shared-contexts_v9.0.0-alpha.24)
|
109
|
+
|
110
|
+
### Changes
|
111
|
+
|
112
|
+
- chore(v9): Move all internal v9 dependencies from caret to fixed version ([PR #19748](https://github.com/microsoft/fluentui/pull/19748) by lingfangao@hotmail.com)
|
113
|
+
|
114
|
+
## [9.0.0-alpha.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.23)
|
115
|
+
|
116
|
+
Tue, 24 Aug 2021 07:34:48 GMT
|
117
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.22..@fluentui/react-shared-contexts_v9.0.0-alpha.23)
|
118
|
+
|
119
|
+
### Changes
|
120
|
+
|
121
|
+
- Updating TypeScript type-only imports/exports to use import/export syntax. ([PR #19473](https://github.com/microsoft/fluentui/pull/19473) by dzearing@hotmail.com)
|
122
|
+
|
123
|
+
## [9.0.0-alpha.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.22)
|
124
|
+
|
125
|
+
Fri, 20 Aug 2021 07:37:28 GMT
|
126
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.21..@fluentui/react-shared-contexts_v9.0.0-alpha.22)
|
127
|
+
|
128
|
+
### Changes
|
129
|
+
|
130
|
+
- Update .npmignore ([PR #19441](https://github.com/microsoft/fluentui/pull/19441) by elcraig@microsoft.com)
|
131
|
+
|
132
|
+
## [9.0.0-alpha.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.21)
|
133
|
+
|
134
|
+
Fri, 13 Aug 2021 07:36:34 GMT
|
135
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.20..@fluentui/react-shared-contexts_v9.0.0-alpha.21)
|
136
|
+
|
137
|
+
### Changes
|
138
|
+
|
139
|
+
- create type for ThemeClassNameContext value and export it ([PR #19341](https://github.com/microsoft/fluentui/pull/19341) by olfedias@microsoft.com)
|
140
|
+
|
141
|
+
## [9.0.0-alpha.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.20)
|
142
|
+
|
143
|
+
Tue, 03 Aug 2021 07:39:30 GMT
|
144
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.19..@fluentui/react-shared-contexts_v9.0.0-alpha.20)
|
145
|
+
|
146
|
+
### Patches
|
147
|
+
|
148
|
+
- Bump @fluentui/eslint-plugin to v1.3.3 ([PR #19169](https://github.com/microsoft/fluentui/pull/19169) by behowell@microsoft.com)
|
149
|
+
- Bump @fluentui/test-utilities to v8.0.8 ([PR #19169](https://github.com/microsoft/fluentui/pull/19169) by behowell@microsoft.com)
|
150
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #19169](https://github.com/microsoft/fluentui/pull/19169) by behowell@microsoft.com)
|
151
|
+
|
152
|
+
## [9.0.0-alpha.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.19)
|
153
|
+
|
154
|
+
Mon, 26 Jul 2021 07:37:30 GMT
|
155
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.18..@fluentui/react-shared-contexts_v9.0.0-alpha.19)
|
156
|
+
|
157
|
+
### Changes
|
158
|
+
|
159
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.19 ([PR #19060](https://github.com/microsoft/fluentui/pull/19060) by miroslav.stastny@microsoft.com)
|
160
|
+
|
161
|
+
## [9.0.0-alpha.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.18)
|
162
|
+
|
163
|
+
Fri, 23 Jul 2021 07:38:19 GMT
|
164
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.17..@fluentui/react-shared-contexts_v9.0.0-alpha.18)
|
165
|
+
|
166
|
+
### Changes
|
167
|
+
|
168
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.18 ([PR #19041](https://github.com/microsoft/fluentui/pull/19041) by miroslav.stastny@microsoft.com)
|
169
|
+
|
170
|
+
## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.17)
|
171
|
+
|
172
|
+
Fri, 09 Jul 2021 07:39:31 GMT
|
173
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.16..@fluentui/react-shared-contexts_v9.0.0-alpha.17)
|
174
|
+
|
175
|
+
### Patches
|
176
|
+
|
177
|
+
- Bump @fluentui/eslint-plugin to v1.3.2 ([PR #18808](https://github.com/microsoft/fluentui/pull/18808) by martinhochel@microsoft.com)
|
178
|
+
- Bump @fluentui/test-utilities to v8.0.7 ([PR #18808](https://github.com/microsoft/fluentui/pull/18808) by martinhochel@microsoft.com)
|
179
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #18808](https://github.com/microsoft/fluentui/pull/18808) by martinhochel@microsoft.com)
|
180
|
+
|
181
|
+
## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.16)
|
182
|
+
|
183
|
+
Fri, 02 Jul 2021 07:37:06 GMT
|
184
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.15..@fluentui/react-shared-contexts_v9.0.0-alpha.16)
|
185
|
+
|
186
|
+
### Changes
|
187
|
+
|
188
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.16 ([PR #18655](https://github.com/microsoft/fluentui/pull/18655) by miroslav.stastny@microsoft.com)
|
189
|
+
|
190
|
+
## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.15)
|
191
|
+
|
192
|
+
Mon, 07 Jun 2021 07:38:15 GMT
|
193
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.14..@fluentui/react-shared-contexts_v9.0.0-alpha.15)
|
194
|
+
|
195
|
+
### Patches
|
196
|
+
|
197
|
+
- Bump @fluentui/eslint-plugin to v1.3.1 ([PR #18437](https://github.com/microsoft/fluentui/pull/18437) by martinhochel@microsoft.com)
|
198
|
+
- Bump @fluentui/test-utilities to v8.0.6 ([PR #18437](https://github.com/microsoft/fluentui/pull/18437) by martinhochel@microsoft.com)
|
199
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #18437](https://github.com/microsoft/fluentui/pull/18437) by martinhochel@microsoft.com)
|
200
|
+
|
201
|
+
## [9.0.0-alpha.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.14)
|
202
|
+
|
203
|
+
Fri, 04 Jun 2021 07:37:23 GMT
|
204
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.13..@fluentui/react-shared-contexts_v9.0.0-alpha.14)
|
205
|
+
|
206
|
+
### Changes
|
207
|
+
|
208
|
+
- Modifying MinimalMenuProps target prop to only be React.Ref<HTMLElement> instead of React.Ref<HTMLElement | undefined>. ([PR #18168](https://github.com/microsoft/fluentui/pull/18168) by Humberto.Morimoto@microsoft.com)
|
209
|
+
|
210
|
+
## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.13)
|
211
|
+
|
212
|
+
Thu, 03 Jun 2021 07:36:03 GMT
|
213
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.12..@fluentui/react-shared-contexts_v9.0.0-alpha.13)
|
214
|
+
|
215
|
+
### Changes
|
216
|
+
|
217
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.14 ([PR #18321](https://github.com/microsoft/fluentui/pull/18321) by miroslav.stastny@microsoft.com)
|
218
|
+
|
219
|
+
## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.12)
|
220
|
+
|
221
|
+
Thu, 20 May 2021 07:41:54 GMT
|
222
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.11..@fluentui/react-shared-contexts_v9.0.0-alpha.12)
|
223
|
+
|
224
|
+
### Patches
|
225
|
+
|
226
|
+
- Bump @fluentui/eslint-plugin to v1.3.0 ([PR #18024](https://github.com/microsoft/fluentui/pull/18024) by elcraig@microsoft.com)
|
227
|
+
- Bump @fluentui/test-utilities to v8.0.5 ([PR #18024](https://github.com/microsoft/fluentui/pull/18024) by elcraig@microsoft.com)
|
228
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #18024](https://github.com/microsoft/fluentui/pull/18024) by elcraig@microsoft.com)
|
229
|
+
|
230
|
+
## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.11)
|
231
|
+
|
232
|
+
Wed, 19 May 2021 07:34:20 GMT
|
233
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.10..@fluentui/react-shared-contexts_v9.0.0-alpha.11)
|
234
|
+
|
235
|
+
### Changes
|
236
|
+
|
237
|
+
- chore: add more Babel plugins ([PR #18037](https://github.com/microsoft/fluentui/pull/18037) by olfedias@microsoft.com)
|
238
|
+
|
239
|
+
## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.10)
|
240
|
+
|
241
|
+
Thu, 13 May 2021 07:36:55 GMT
|
242
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.9..@fluentui/react-shared-contexts_v9.0.0-alpha.10)
|
243
|
+
|
244
|
+
### Changes
|
245
|
+
|
246
|
+
- set null as default value for ThemeContext ([PR #18156](https://github.com/microsoft/fluentui/pull/18156) by olfedias@microsoft.com)
|
247
|
+
|
248
|
+
## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.9)
|
249
|
+
|
250
|
+
Wed, 12 May 2021 07:36:20 GMT
|
251
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.8..@fluentui/react-shared-contexts_v9.0.0-alpha.9)
|
252
|
+
|
253
|
+
### Changes
|
254
|
+
|
255
|
+
- Add TooltipContext and TooltipManager interface ([PR #18043](https://github.com/microsoft/fluentui/pull/18043) by behowell@microsoft.com)
|
256
|
+
|
257
|
+
## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.8)
|
258
|
+
|
259
|
+
Fri, 30 Apr 2021 07:42:23 GMT
|
260
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.7..@fluentui/react-shared-contexts_v9.0.0-alpha.8)
|
261
|
+
|
262
|
+
### Patches
|
263
|
+
|
264
|
+
- Bump @fluentui/eslint-plugin to v1.2.0 ([PR #17932](https://github.com/microsoft/fluentui/pull/17932) by joschect@microsoft.com)
|
265
|
+
- Bump @fluentui/test-utilities to v8.0.4 ([PR #17932](https://github.com/microsoft/fluentui/pull/17932) by joschect@microsoft.com)
|
266
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #17932](https://github.com/microsoft/fluentui/pull/17932) by joschect@microsoft.com)
|
267
|
+
|
268
|
+
### Changes
|
269
|
+
|
270
|
+
- Upgrade to ts 4.0 ([PR #17932](https://github.com/microsoft/fluentui/pull/17932) by joschect@microsoft.com)
|
271
|
+
|
272
|
+
## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.7)
|
273
|
+
|
274
|
+
Fri, 23 Apr 2021 07:37:10 GMT
|
275
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.6..@fluentui/react-shared-contexts_v9.0.0-alpha.7)
|
276
|
+
|
277
|
+
### Patches
|
278
|
+
|
279
|
+
- Bump @fluentui/eslint-plugin to v1.1.1 ([PR #17894](https://github.com/microsoft/fluentui/pull/17894) by olfedias@microsoft.com)
|
280
|
+
- Bump @fluentui/test-utilities to v8.0.3 ([PR #17894](https://github.com/microsoft/fluentui/pull/17894) by olfedias@microsoft.com)
|
281
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #17894](https://github.com/microsoft/fluentui/pull/17894) by olfedias@microsoft.com)
|
282
|
+
|
283
|
+
## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.6)
|
284
|
+
|
285
|
+
Tue, 20 Apr 2021 07:31:35 GMT
|
286
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.5..@fluentui/react-shared-contexts_v9.0.0-alpha.6)
|
287
|
+
|
288
|
+
### Changes
|
289
|
+
|
290
|
+
- Rename internal document to targetDocument ([PR #17827](https://github.com/microsoft/fluentui/pull/17827) by lingfan.gao@microsoft.com)
|
291
|
+
|
292
|
+
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.5)
|
293
|
+
|
294
|
+
Fri, 16 Apr 2021 18:08:21 GMT
|
295
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.4..@fluentui/react-shared-contexts_v9.0.0-alpha.5)
|
296
|
+
|
297
|
+
### Changes
|
298
|
+
|
299
|
+
- Add ThemeClassNameContext for CSS variable class ([PR #17794](https://github.com/microsoft/fluentui/pull/17794) by lingfan.gao@microsoft.com)
|
300
|
+
|
301
|
+
## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.4)
|
302
|
+
|
303
|
+
Thu, 08 Apr 2021 07:33:06 GMT
|
304
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.3..@fluentui/react-shared-contexts_v9.0.0-alpha.4)
|
305
|
+
|
306
|
+
### Changes
|
307
|
+
|
308
|
+
- Bump @fluentui/react-theme to v9.0.0-alpha.8 ([PR #17676](https://github.com/microsoft/fluentui/pull/17676) by Humberto.Morimoto@microsoft.com)
|
309
|
+
|
310
|
+
## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.3)
|
311
|
+
|
312
|
+
Wed, 31 Mar 2021 00:53:43 GMT
|
313
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.2..@fluentui/react-shared-contexts_v9.0.0-alpha.3)
|
314
|
+
|
315
|
+
### Patches
|
316
|
+
|
317
|
+
- Bump @fluentui/eslint-plugin to v1.1.0 ([PR #17568](https://github.com/microsoft/fluentui/pull/17568) by elcraig@microsoft.com)
|
318
|
+
- Bump @fluentui/test-utilities to v8.0.2 ([PR #17568](https://github.com/microsoft/fluentui/pull/17568) by elcraig@microsoft.com)
|
319
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #17568](https://github.com/microsoft/fluentui/pull/17568) by elcraig@microsoft.com)
|
320
|
+
|
321
|
+
## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.2)
|
322
|
+
|
323
|
+
Tue, 30 Mar 2021 07:34:45 GMT
|
324
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.11..@fluentui/react-shared-contexts_v9.0.0-alpha.2)
|
325
|
+
|
326
|
+
### Changes
|
327
|
+
|
328
|
+
- chore: restore "sideEffects" to enable treeshaking ([PR #17584](https://github.com/microsoft/fluentui/pull/17584) by olfedias@microsoft.com)
|
329
|
+
- Lifts ThemeContext and FluentProviderContext to react-shared-contexts ([PR #17586](https://github.com/microsoft/fluentui/pull/17586) by bsunderhus@microsoft.com)
|
330
|
+
|
331
|
+
## [1.0.0-beta.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.11)
|
332
|
+
|
333
|
+
Mon, 15 Mar 2021 07:36:20 GMT
|
334
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.10..@fluentui/react-shared-contexts_v1.0.0-beta.11)
|
335
|
+
|
336
|
+
### Changes
|
337
|
+
|
338
|
+
- Remove set-version references ([PR #17381](https://github.com/microsoft/fluentui/pull/17381) by elcraig@microsoft.com)
|
339
|
+
|
340
|
+
## [1.0.0-beta.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.10)
|
341
|
+
|
342
|
+
Fri, 26 Feb 2021 01:16:27 GMT
|
343
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.9..@fluentui/react-shared-contexts_v1.0.0-beta.10)
|
344
|
+
|
345
|
+
### Patches
|
346
|
+
|
347
|
+
- Bump @fluentui/eslint-plugin to v1.0.1 ([PR #17169](https://github.com/microsoft/fluentui/pull/17169) by elcraig@microsoft.com)
|
348
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #17169](https://github.com/microsoft/fluentui/pull/17169) by elcraig@microsoft.com)
|
349
|
+
- Bump @fluentui/set-version to v8.0.1 ([PR #17169](https://github.com/microsoft/fluentui/pull/17169) by elcraig@microsoft.com)
|
350
|
+
- Bump @fluentui/test-utilities to v8.0.1 ([PR #17169](https://github.com/microsoft/fluentui/pull/17169) by elcraig@microsoft.com)
|
351
|
+
|
352
|
+
### Changes
|
353
|
+
|
354
|
+
- Update references to major-bumped packages ([PR #17169](https://github.com/microsoft/fluentui/pull/17169) by elcraig@microsoft.com)
|
355
|
+
|
356
|
+
## [1.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.9)
|
357
|
+
|
358
|
+
Mon, 22 Feb 2021 12:26:22 GMT
|
359
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.8..@fluentui/react-shared-contexts_v1.0.0-beta.9)
|
360
|
+
|
361
|
+
### Changes
|
362
|
+
|
363
|
+
- Bump @fluentui/test-utilities to v8.0.0-beta.9 ([PR #17061](https://github.com/microsoft/fluentui/pull/17061) by elcraig@microsoft.com)
|
364
|
+
|
365
|
+
## [1.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.8)
|
366
|
+
|
367
|
+
Thu, 18 Feb 2021 19:38:50 GMT
|
368
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.7..@fluentui/react-shared-contexts_v1.0.0-beta.8)
|
369
|
+
|
370
|
+
### Changes
|
371
|
+
|
372
|
+
- Allow React 17 in peerDependencies ([PR #17048](https://github.com/microsoft/fluentui/pull/17048) by elcraig@microsoft.com)
|
373
|
+
|
374
|
+
## [1.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.7)
|
375
|
+
|
376
|
+
Thu, 18 Feb 2021 12:27:34 GMT
|
377
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.6..@fluentui/react-shared-contexts_v1.0.0-beta.7)
|
378
|
+
|
379
|
+
### Changes
|
380
|
+
|
381
|
+
- Bump @fluentui/test-utilities to v8.0.0-beta.7 ([PR #16975](https://github.com/microsoft/fluentui/pull/16975) by elcraig@microsoft.com)
|
382
|
+
|
383
|
+
## [1.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.6)
|
384
|
+
|
385
|
+
Mon, 15 Feb 2021 12:22:00 GMT
|
386
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.5..@fluentui/react-shared-contexts_v1.0.0-beta.6)
|
387
|
+
|
388
|
+
### Changes
|
389
|
+
|
390
|
+
- Bump @fluentui/test-utilities to v8.0.0-beta.6 ([PR #16880](https://github.com/microsoft/fluentui/pull/16880) by xgao@microsoft.com)
|
391
|
+
|
392
|
+
## [1.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.4)
|
393
|
+
|
394
|
+
Thu, 21 Jan 2021 12:36:12 GMT
|
395
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.1..@fluentui/react-shared-contexts_v1.0.0-beta.4)
|
396
|
+
|
397
|
+
### Changes
|
398
|
+
|
399
|
+
- Updating dev dependencies. ([PR #16548](https://github.com/microsoft/fluentui/pull/16548) by dzearing@microsoft.com)
|
400
|
+
|
401
|
+
## [1.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.1)
|
402
|
+
|
403
|
+
Fri, 06 Nov 2020 12:34:34 GMT
|
404
|
+
|
405
|
+
### Changes
|
406
|
+
|
407
|
+
- Creating @fluentui/react-shared-contexts package and moving MenuContext from @fluentui/react-button into it. ([PR #15826](https://github.com/microsoft/fluentui/pull/15826) by humbertomakotomorimoto@gmail.com)
|
package/LICENSE
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Fluent UI React - react-shared-contexts
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation
|
4
|
+
|
5
|
+
All rights reserved.
|
6
|
+
|
7
|
+
MIT License
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
14
|
+
|
15
|
+
Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
|
package/README.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# @fluentui/react-shared-contexts
|
2
|
+
|
3
|
+
**Shared contexts for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
|
4
|
+
|
5
|
+
This package includes a number of exported React Contexts that are shared by Fluent UI components.
|
6
|
+
|
7
|
+
See [GitHub](https://github.com/microsoft/fluentui) for more details on the Fluent UI React project and packages within.
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import * as React_2 from 'react';
|
2
|
+
import type { Theme } from '@fluentui/react-theme';
|
3
|
+
|
4
|
+
export declare const MenuContext: React_2.Context<MinimalMenuProps>;
|
5
|
+
|
6
|
+
export declare type MinimalMenuProps = {
|
7
|
+
hidden?: boolean;
|
8
|
+
onDismiss?: () => void;
|
9
|
+
target?: React_2.Ref<HTMLElement>;
|
10
|
+
};
|
11
|
+
|
12
|
+
export declare const ProviderContext: React_2.Context<ProviderContextValue>;
|
13
|
+
|
14
|
+
export declare interface ProviderContextValue {
|
15
|
+
/** Sets the direction of text & generated styles. */
|
16
|
+
dir: 'ltr' | 'rtl';
|
17
|
+
/** Provides the document, can be undefined during SSR render. */
|
18
|
+
targetDocument?: Document;
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Used to provide a CSS class that applies theme css variables
|
23
|
+
*
|
24
|
+
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
25
|
+
*/
|
26
|
+
export declare const ThemeClassNameContext: React_2.Context<string>;
|
27
|
+
|
28
|
+
export declare type ThemeClassNameContextValue = string;
|
29
|
+
|
30
|
+
export declare const ThemeContext: React_2.Context<Theme | Partial<Theme> | undefined>;
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Context shared by all of the tooltips in the app
|
34
|
+
*/
|
35
|
+
export declare const TooltipContext: React_2.Context<TooltipContextType>;
|
36
|
+
|
37
|
+
/**
|
38
|
+
* The context provided by TooltipProvider
|
39
|
+
*/
|
40
|
+
export declare type TooltipContextType = {
|
41
|
+
/**
|
42
|
+
* When a tooltip is shown, it sets itself as the visibleTooltip.
|
43
|
+
* The next tooltip to become visible can use it to hide the previous tooltip immediately.
|
44
|
+
*/
|
45
|
+
visibleTooltip?: {
|
46
|
+
hide: () => void;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
|
50
|
+
export declare function useFluent(): ProviderContextValue;
|
51
|
+
|
52
|
+
export declare const useMenuContext: () => MinimalMenuProps;
|
53
|
+
|
54
|
+
export declare function useTheme(): Theme | Partial<Theme> | undefined;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* @returns CSS class that applies css variables
|
58
|
+
*/
|
59
|
+
export declare function useThemeClassName(): ThemeClassNameContextValue;
|
60
|
+
|
61
|
+
export { }
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["MenuContext/MenuContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAO,MAAM,WAAW,gBAAG,KAAK,CAAC,aAAN,CAAsC,EAAtC,CAApB;AAEP,OAAO,MAAM,cAAc,GAAG,MAAK;AACjC,SAAO,KAAK,CAAC,UAAN,CAAiB,WAAjB,CAAP;AACD,CAFM","sourcesContent":["import * as React from 'react';\nimport type { MinimalMenuProps } from './types';\n\nexport const MenuContext = React.createContext<MinimalMenuProps>({});\n\nexport const useMenuContext = () => {\n return React.useContext(MenuContext);\n};\n"],"sourceRoot":"../src/"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["MenuContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC","sourcesContent":["export * from './MenuContext';\nexport * from './types';\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"../src/","sources":["MenuContext/types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\n\nexport type MinimalMenuProps = {\n hidden?: boolean;\n onDismiss?: () => void;\n target?: React.Ref<HTMLElement>;\n};\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './MenuContext/index';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MenuContext.js","sourceRoot":"../src/","sources":["MenuContext.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './MenuContext/index';\n"]}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
export const ProviderContext = /*#__PURE__*/React.createContext({
|
3
|
+
targetDocument: typeof document === 'object' ? document : undefined,
|
4
|
+
dir: 'ltr'
|
5
|
+
});
|
6
|
+
export function useFluent() {
|
7
|
+
return React.useContext(ProviderContext);
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=ProviderContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAO,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;AACvE,EAAA,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADa;AAEvE,EAAA,GAAG,EAAE;AAFkE,CAA1C,CAAxB;AAKP,OAAM,SAAU,SAAV,GAAmB;AACvB,SAAO,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\nimport type { ProviderContextValue } from './ProviderContext.types';\n\nexport const ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext);\n}\n"],"sourceRoot":"../src/"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProviderContext.types.js","sourceRoot":"../src/","sources":["ProviderContext/ProviderContext.types.ts"],"names":[],"mappings":"","sourcesContent":["export interface ProviderContextValue {\n /** Sets the direction of text & generated styles. */\n dir: 'ltr' | 'rtl';\n\n /** Provides the document, can be undefined during SSR render. */\n targetDocument?: Document;\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ProviderContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './ProviderContext';\nexport * from './ProviderContext.types';\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ProviderContext/index';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProviderContext.js","sourceRoot":"../src/","sources":["ProviderContext.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './ProviderContext/index';\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
export declare type ThemeClassNameContextValue = string;
|
3
|
+
/**
|
4
|
+
* Used to provide a CSS class that applies theme css variables
|
5
|
+
*
|
6
|
+
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
7
|
+
*/
|
8
|
+
export declare const ThemeClassNameContext: React.Context<string>;
|
9
|
+
/**
|
10
|
+
* @returns CSS class that applies css variables
|
11
|
+
*/
|
12
|
+
export declare function useThemeClassName(): ThemeClassNameContextValue;
|