@fluentui/react-shared-contexts 0.0.0-nightly-20230427-0418.1 → 0.0.0-nightly-20230428-0419.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 +5 -5
- package/CHANGELOG.md +5 -5
- package/package.json +2 -2
- package/dist/index.d.ts +0 -346
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js +0 -21
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js.map +0 -1
- package/lib/CustomStyleHooksContext/index.js +0 -2
- package/lib/CustomStyleHooksContext/index.js.map +0 -1
- package/lib/CustomStyleHooksContext.js +0 -2
- package/lib/CustomStyleHooksContext.js.map +0 -1
- package/lib/OverridesContext/OverridesContext.js +0 -14
- package/lib/OverridesContext/OverridesContext.js.map +0 -1
- package/lib/OverridesContext/index.js +0 -2
- package/lib/OverridesContext/index.js.map +0 -1
- package/lib/ProviderContext/ProviderContext.js +0 -18
- package/lib/ProviderContext/ProviderContext.js.map +0 -1
- package/lib/ProviderContext/index.js +0 -2
- package/lib/ProviderContext/index.js.map +0 -1
- package/lib/ProviderContext.js +0 -2
- package/lib/ProviderContext.js.map +0 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +0 -18
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +0 -1
- package/lib/ThemeClassNameContext/index.js +0 -2
- package/lib/ThemeClassNameContext/index.js.map +0 -1
- package/lib/ThemeClassNameContext.js +0 -2
- package/lib/ThemeClassNameContext.js.map +0 -1
- package/lib/ThemeContext/ThemeContext.js +0 -10
- package/lib/ThemeContext/ThemeContext.js.map +0 -1
- package/lib/ThemeContext/index.js +0 -2
- package/lib/ThemeContext/index.js.map +0 -1
- package/lib/ThemeContext.js +0 -2
- package/lib/ThemeContext.js.map +0 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js +0 -16
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +0 -1
- package/lib/TooltipVisibilityContext/index.js +0 -2
- package/lib/TooltipVisibilityContext/index.js.map +0 -1
- package/lib/TooltipVisibilityContext.js +0 -2
- package/lib/TooltipVisibilityContext.js.map +0 -1
- package/lib/index.js +0 -7
- package/lib/index.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-
|
7
|
-
"version": "0.0.0-nightly-
|
5
|
+
"date": "Fri, 28 Apr 2023 04:25:23 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-20230428-0419.1",
|
7
|
+
"version": "0.0.0-nightly-20230428-0419.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
@@ -16,8 +16,8 @@
|
|
16
16
|
{
|
17
17
|
"author": "beachball",
|
18
18
|
"package": "@fluentui/react-shared-contexts",
|
19
|
-
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-
|
20
|
-
"commit": "
|
19
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230428-0419.1",
|
20
|
+
"commit": "6d0e3c2fb45fde4cf5056d3d18d4c5bc5899a839"
|
21
21
|
}
|
22
22
|
]
|
23
23
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Fri, 28 Apr 2023 04:25:23 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20230428-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20230428-0419.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.2..@fluentui/react-shared-contexts_v0.0.0-nightly-
|
9
|
+
Fri, 28 Apr 2023 04:25:23 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.2..@fluentui/react-shared-contexts_v0.0.0-nightly-20230428-0419.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
15
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
15
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20230428-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/6d0e3c2fb45fde4cf5056d3d18d4c5bc5899a839) by beachball)
|
16
16
|
|
17
17
|
## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.3.2)
|
18
18
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20230428-0419.1",
|
4
4
|
"description": "Fluent UI React Contexts shared by multiple components.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"@fluentui/scripts-tasks": "*"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
30
|
+
"@fluentui/react-theme": "0.0.0-nightly-20230428-0419.1",
|
31
31
|
"@swc/helpers": "^0.4.14"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
package/dist/index.d.ts
DELETED
@@ -1,346 +0,0 @@
|
|
1
|
-
import * as React_2 from 'react';
|
2
|
-
import type { Theme } from '@fluentui/react-theme';
|
3
|
-
|
4
|
-
declare type CustomStyleHook = (state: unknown) => void;
|
5
|
-
|
6
|
-
/**
|
7
|
-
* @internal
|
8
|
-
*/
|
9
|
-
export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
|
10
|
-
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
11
|
-
useAccordionItemStyles_unstable: CustomStyleHook;
|
12
|
-
useAccordionPanelStyles_unstable: CustomStyleHook;
|
13
|
-
useAccordionStyles_unstable: CustomStyleHook;
|
14
|
-
useAvatarStyles_unstable: CustomStyleHook;
|
15
|
-
useAvatarGroupStyles_unstable: CustomStyleHook;
|
16
|
-
useAvatarGroupItemStyles_unstable: CustomStyleHook;
|
17
|
-
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
18
|
-
useBadgeStyles_unstable: CustomStyleHook;
|
19
|
-
useCounterBadgeStyles_unstable: CustomStyleHook;
|
20
|
-
useCardHeaderStyles_unstable: CustomStyleHook;
|
21
|
-
useCardStyles_unstable: CustomStyleHook;
|
22
|
-
useCardFooterStyles_unstable: CustomStyleHook;
|
23
|
-
useCardPreviewStyles_unstable: CustomStyleHook;
|
24
|
-
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
25
|
-
useButtonStyles_unstable: CustomStyleHook;
|
26
|
-
useCompoundButtonStyles_unstable: CustomStyleHook;
|
27
|
-
useMenuButtonStyles_unstable: CustomStyleHook;
|
28
|
-
useSplitButtonStyles_unstable: CustomStyleHook;
|
29
|
-
useToggleButtonStyles_unstable: CustomStyleHook;
|
30
|
-
useCheckboxStyles_unstable: CustomStyleHook;
|
31
|
-
useComboboxStyles_unstable: CustomStyleHook;
|
32
|
-
useDropdownStyles_unstable: CustomStyleHook;
|
33
|
-
useListboxStyles_unstable: CustomStyleHook;
|
34
|
-
useOptionStyles_unstable: CustomStyleHook;
|
35
|
-
useOptionGroupStyles_unstable: CustomStyleHook;
|
36
|
-
useDividerStyles_unstable: CustomStyleHook;
|
37
|
-
useInputStyles_unstable: CustomStyleHook;
|
38
|
-
useImageStyles_unstable: CustomStyleHook;
|
39
|
-
useLabelStyles_unstable: CustomStyleHook;
|
40
|
-
useLinkStyles_unstable: CustomStyleHook;
|
41
|
-
useMenuDividerStyles_unstable: CustomStyleHook;
|
42
|
-
useMenuGroupHeaderStyles_unstable: CustomStyleHook;
|
43
|
-
useMenuGroupStyles_unstable: CustomStyleHook;
|
44
|
-
useMenuItemCheckboxStyles_unstable: CustomStyleHook;
|
45
|
-
useMenuItemRadioStyles_unstable: CustomStyleHook;
|
46
|
-
useMenuItemStyles_unstable: CustomStyleHook;
|
47
|
-
useMenuListStyles_unstable: CustomStyleHook;
|
48
|
-
useMenuPopoverStyles_unstable: CustomStyleHook;
|
49
|
-
useMenuSplitGroupStyles_unstable: CustomStyleHook;
|
50
|
-
usePersonaStyles_unstable: CustomStyleHook;
|
51
|
-
usePopoverSurfaceStyles_unstable: CustomStyleHook;
|
52
|
-
useRadioGroupStyles_unstable: CustomStyleHook;
|
53
|
-
useRadioStyles_unstable: CustomStyleHook;
|
54
|
-
useSelectStyles_unstable: CustomStyleHook;
|
55
|
-
useSliderStyles_unstable: CustomStyleHook;
|
56
|
-
useSpinButtonStyles_unstable: CustomStyleHook;
|
57
|
-
useSpinnerStyles_unstable: CustomStyleHook;
|
58
|
-
useSwitchStyles_unstable: CustomStyleHook;
|
59
|
-
useTabStyles_unstable: CustomStyleHook;
|
60
|
-
useTabListStyles_unstable: CustomStyleHook;
|
61
|
-
useTextStyles_unstable: CustomStyleHook;
|
62
|
-
useTextareaStyles_unstable: CustomStyleHook;
|
63
|
-
useTooltipStyles_unstable: CustomStyleHook;
|
64
|
-
useDialogTitleStyles_unstable: CustomStyleHook;
|
65
|
-
useDialogBodyStyles_unstable: CustomStyleHook;
|
66
|
-
useDialogActionsStyles_unstable: CustomStyleHook;
|
67
|
-
useDialogSurfaceStyles_unstable: CustomStyleHook;
|
68
|
-
useDialogContentStyles_unstable: CustomStyleHook;
|
69
|
-
useProgressBarStyles_unstable: CustomStyleHook;
|
70
|
-
useToolbarButtonStyles_unstable: CustomStyleHook;
|
71
|
-
useToolbarRadioButtonStyles_unstable: CustomStyleHook;
|
72
|
-
useToolbarGroupStyles_unstable: CustomStyleHook;
|
73
|
-
useToolbarToggleButtonStyles_unstable: CustomStyleHook;
|
74
|
-
useToolbarDividerStyles_unstable: CustomStyleHook;
|
75
|
-
useToolbarStyles_unstable: CustomStyleHook;
|
76
|
-
useTableCellStyles_unstable: CustomStyleHook;
|
77
|
-
useTableRowStyles_unstable: CustomStyleHook;
|
78
|
-
useTableBodyStyles_unstable: CustomStyleHook;
|
79
|
-
useTableStyles_unstable: CustomStyleHook;
|
80
|
-
useTableHeaderStyles_unstable: CustomStyleHook;
|
81
|
-
useTableHeaderCellStyles_unstable: CustomStyleHook;
|
82
|
-
useTableResizeHandleStyles_unstable: CustomStyleHook;
|
83
|
-
useTableSelectionCellStyles_unstable: CustomStyleHook;
|
84
|
-
useTableCellActionsStyles_unstable: CustomStyleHook;
|
85
|
-
useTableCellLayoutStyles_unstable: CustomStyleHook;
|
86
|
-
useDataGridCellStyles_unstable: CustomStyleHook;
|
87
|
-
useDataGridRowStyles_unstable: CustomStyleHook;
|
88
|
-
useDataGridBodyStyles_unstable: CustomStyleHook;
|
89
|
-
useDataGridStyles_unstable: CustomStyleHook;
|
90
|
-
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
91
|
-
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
92
|
-
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
93
|
-
}> | undefined>;
|
94
|
-
|
95
|
-
export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
96
|
-
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
97
|
-
useAccordionItemStyles_unstable: CustomStyleHook;
|
98
|
-
useAccordionPanelStyles_unstable: CustomStyleHook;
|
99
|
-
useAccordionStyles_unstable: CustomStyleHook;
|
100
|
-
useAvatarStyles_unstable: CustomStyleHook;
|
101
|
-
useAvatarGroupStyles_unstable: CustomStyleHook;
|
102
|
-
useAvatarGroupItemStyles_unstable: CustomStyleHook;
|
103
|
-
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
104
|
-
useBadgeStyles_unstable: CustomStyleHook;
|
105
|
-
useCounterBadgeStyles_unstable: CustomStyleHook;
|
106
|
-
useCardHeaderStyles_unstable: CustomStyleHook;
|
107
|
-
useCardStyles_unstable: CustomStyleHook;
|
108
|
-
useCardFooterStyles_unstable: CustomStyleHook;
|
109
|
-
useCardPreviewStyles_unstable: CustomStyleHook;
|
110
|
-
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
111
|
-
useButtonStyles_unstable: CustomStyleHook;
|
112
|
-
useCompoundButtonStyles_unstable: CustomStyleHook;
|
113
|
-
useMenuButtonStyles_unstable: CustomStyleHook;
|
114
|
-
useSplitButtonStyles_unstable: CustomStyleHook;
|
115
|
-
useToggleButtonStyles_unstable: CustomStyleHook;
|
116
|
-
useCheckboxStyles_unstable: CustomStyleHook;
|
117
|
-
useComboboxStyles_unstable: CustomStyleHook;
|
118
|
-
useDropdownStyles_unstable: CustomStyleHook;
|
119
|
-
useListboxStyles_unstable: CustomStyleHook;
|
120
|
-
useOptionStyles_unstable: CustomStyleHook;
|
121
|
-
useOptionGroupStyles_unstable: CustomStyleHook;
|
122
|
-
useDividerStyles_unstable: CustomStyleHook;
|
123
|
-
useInputStyles_unstable: CustomStyleHook;
|
124
|
-
useImageStyles_unstable: CustomStyleHook;
|
125
|
-
useLabelStyles_unstable: CustomStyleHook;
|
126
|
-
useLinkStyles_unstable: CustomStyleHook;
|
127
|
-
useMenuDividerStyles_unstable: CustomStyleHook;
|
128
|
-
useMenuGroupHeaderStyles_unstable: CustomStyleHook;
|
129
|
-
useMenuGroupStyles_unstable: CustomStyleHook;
|
130
|
-
useMenuItemCheckboxStyles_unstable: CustomStyleHook;
|
131
|
-
useMenuItemRadioStyles_unstable: CustomStyleHook;
|
132
|
-
useMenuItemStyles_unstable: CustomStyleHook;
|
133
|
-
useMenuListStyles_unstable: CustomStyleHook;
|
134
|
-
useMenuPopoverStyles_unstable: CustomStyleHook;
|
135
|
-
useMenuSplitGroupStyles_unstable: CustomStyleHook;
|
136
|
-
usePersonaStyles_unstable: CustomStyleHook;
|
137
|
-
usePopoverSurfaceStyles_unstable: CustomStyleHook;
|
138
|
-
useRadioGroupStyles_unstable: CustomStyleHook;
|
139
|
-
useRadioStyles_unstable: CustomStyleHook;
|
140
|
-
useSelectStyles_unstable: CustomStyleHook;
|
141
|
-
useSliderStyles_unstable: CustomStyleHook;
|
142
|
-
useSpinButtonStyles_unstable: CustomStyleHook;
|
143
|
-
useSpinnerStyles_unstable: CustomStyleHook;
|
144
|
-
useSwitchStyles_unstable: CustomStyleHook;
|
145
|
-
useTabStyles_unstable: CustomStyleHook;
|
146
|
-
useTabListStyles_unstable: CustomStyleHook;
|
147
|
-
useTextStyles_unstable: CustomStyleHook;
|
148
|
-
useTextareaStyles_unstable: CustomStyleHook;
|
149
|
-
useTooltipStyles_unstable: CustomStyleHook;
|
150
|
-
useDialogTitleStyles_unstable: CustomStyleHook;
|
151
|
-
useDialogBodyStyles_unstable: CustomStyleHook;
|
152
|
-
useDialogActionsStyles_unstable: CustomStyleHook;
|
153
|
-
useDialogSurfaceStyles_unstable: CustomStyleHook;
|
154
|
-
useDialogContentStyles_unstable: CustomStyleHook;
|
155
|
-
useProgressBarStyles_unstable: CustomStyleHook;
|
156
|
-
useToolbarButtonStyles_unstable: CustomStyleHook;
|
157
|
-
useToolbarRadioButtonStyles_unstable: CustomStyleHook;
|
158
|
-
useToolbarGroupStyles_unstable: CustomStyleHook;
|
159
|
-
useToolbarToggleButtonStyles_unstable: CustomStyleHook;
|
160
|
-
useToolbarDividerStyles_unstable: CustomStyleHook;
|
161
|
-
useToolbarStyles_unstable: CustomStyleHook;
|
162
|
-
useTableCellStyles_unstable: CustomStyleHook;
|
163
|
-
useTableRowStyles_unstable: CustomStyleHook;
|
164
|
-
useTableBodyStyles_unstable: CustomStyleHook;
|
165
|
-
useTableStyles_unstable: CustomStyleHook;
|
166
|
-
useTableHeaderStyles_unstable: CustomStyleHook;
|
167
|
-
useTableHeaderCellStyles_unstable: CustomStyleHook;
|
168
|
-
useTableResizeHandleStyles_unstable: CustomStyleHook;
|
169
|
-
useTableSelectionCellStyles_unstable: CustomStyleHook;
|
170
|
-
useTableCellActionsStyles_unstable: CustomStyleHook;
|
171
|
-
useTableCellLayoutStyles_unstable: CustomStyleHook;
|
172
|
-
useDataGridCellStyles_unstable: CustomStyleHook;
|
173
|
-
useDataGridRowStyles_unstable: CustomStyleHook;
|
174
|
-
useDataGridBodyStyles_unstable: CustomStyleHook;
|
175
|
-
useDataGridStyles_unstable: CustomStyleHook;
|
176
|
-
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
177
|
-
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
178
|
-
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
179
|
-
}>;
|
180
|
-
|
181
|
-
/**
|
182
|
-
* @internal
|
183
|
-
*/
|
184
|
-
export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial<{
|
185
|
-
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
186
|
-
useAccordionItemStyles_unstable: CustomStyleHook;
|
187
|
-
useAccordionPanelStyles_unstable: CustomStyleHook;
|
188
|
-
useAccordionStyles_unstable: CustomStyleHook;
|
189
|
-
useAvatarStyles_unstable: CustomStyleHook;
|
190
|
-
useAvatarGroupStyles_unstable: CustomStyleHook;
|
191
|
-
useAvatarGroupItemStyles_unstable: CustomStyleHook;
|
192
|
-
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
193
|
-
useBadgeStyles_unstable: CustomStyleHook;
|
194
|
-
useCounterBadgeStyles_unstable: CustomStyleHook;
|
195
|
-
useCardHeaderStyles_unstable: CustomStyleHook;
|
196
|
-
useCardStyles_unstable: CustomStyleHook;
|
197
|
-
useCardFooterStyles_unstable: CustomStyleHook;
|
198
|
-
useCardPreviewStyles_unstable: CustomStyleHook;
|
199
|
-
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
200
|
-
useButtonStyles_unstable: CustomStyleHook;
|
201
|
-
useCompoundButtonStyles_unstable: CustomStyleHook;
|
202
|
-
useMenuButtonStyles_unstable: CustomStyleHook;
|
203
|
-
useSplitButtonStyles_unstable: CustomStyleHook;
|
204
|
-
useToggleButtonStyles_unstable: CustomStyleHook;
|
205
|
-
useCheckboxStyles_unstable: CustomStyleHook;
|
206
|
-
useComboboxStyles_unstable: CustomStyleHook;
|
207
|
-
useDropdownStyles_unstable: CustomStyleHook;
|
208
|
-
useListboxStyles_unstable: CustomStyleHook;
|
209
|
-
useOptionStyles_unstable: CustomStyleHook;
|
210
|
-
useOptionGroupStyles_unstable: CustomStyleHook;
|
211
|
-
useDividerStyles_unstable: CustomStyleHook;
|
212
|
-
useInputStyles_unstable: CustomStyleHook;
|
213
|
-
useImageStyles_unstable: CustomStyleHook;
|
214
|
-
useLabelStyles_unstable: CustomStyleHook;
|
215
|
-
useLinkStyles_unstable: CustomStyleHook;
|
216
|
-
useMenuDividerStyles_unstable: CustomStyleHook;
|
217
|
-
useMenuGroupHeaderStyles_unstable: CustomStyleHook;
|
218
|
-
useMenuGroupStyles_unstable: CustomStyleHook;
|
219
|
-
useMenuItemCheckboxStyles_unstable: CustomStyleHook;
|
220
|
-
useMenuItemRadioStyles_unstable: CustomStyleHook;
|
221
|
-
useMenuItemStyles_unstable: CustomStyleHook;
|
222
|
-
useMenuListStyles_unstable: CustomStyleHook;
|
223
|
-
useMenuPopoverStyles_unstable: CustomStyleHook;
|
224
|
-
useMenuSplitGroupStyles_unstable: CustomStyleHook;
|
225
|
-
usePersonaStyles_unstable: CustomStyleHook;
|
226
|
-
usePopoverSurfaceStyles_unstable: CustomStyleHook;
|
227
|
-
useRadioGroupStyles_unstable: CustomStyleHook;
|
228
|
-
useRadioStyles_unstable: CustomStyleHook;
|
229
|
-
useSelectStyles_unstable: CustomStyleHook;
|
230
|
-
useSliderStyles_unstable: CustomStyleHook;
|
231
|
-
useSpinButtonStyles_unstable: CustomStyleHook;
|
232
|
-
useSpinnerStyles_unstable: CustomStyleHook;
|
233
|
-
useSwitchStyles_unstable: CustomStyleHook;
|
234
|
-
useTabStyles_unstable: CustomStyleHook;
|
235
|
-
useTabListStyles_unstable: CustomStyleHook;
|
236
|
-
useTextStyles_unstable: CustomStyleHook;
|
237
|
-
useTextareaStyles_unstable: CustomStyleHook;
|
238
|
-
useTooltipStyles_unstable: CustomStyleHook;
|
239
|
-
useDialogTitleStyles_unstable: CustomStyleHook;
|
240
|
-
useDialogBodyStyles_unstable: CustomStyleHook;
|
241
|
-
useDialogActionsStyles_unstable: CustomStyleHook;
|
242
|
-
useDialogSurfaceStyles_unstable: CustomStyleHook;
|
243
|
-
useDialogContentStyles_unstable: CustomStyleHook;
|
244
|
-
useProgressBarStyles_unstable: CustomStyleHook;
|
245
|
-
useToolbarButtonStyles_unstable: CustomStyleHook;
|
246
|
-
useToolbarRadioButtonStyles_unstable: CustomStyleHook;
|
247
|
-
useToolbarGroupStyles_unstable: CustomStyleHook;
|
248
|
-
useToolbarToggleButtonStyles_unstable: CustomStyleHook;
|
249
|
-
useToolbarDividerStyles_unstable: CustomStyleHook;
|
250
|
-
useToolbarStyles_unstable: CustomStyleHook;
|
251
|
-
useTableCellStyles_unstable: CustomStyleHook;
|
252
|
-
useTableRowStyles_unstable: CustomStyleHook;
|
253
|
-
useTableBodyStyles_unstable: CustomStyleHook;
|
254
|
-
useTableStyles_unstable: CustomStyleHook;
|
255
|
-
useTableHeaderStyles_unstable: CustomStyleHook;
|
256
|
-
useTableHeaderCellStyles_unstable: CustomStyleHook;
|
257
|
-
useTableResizeHandleStyles_unstable: CustomStyleHook;
|
258
|
-
useTableSelectionCellStyles_unstable: CustomStyleHook;
|
259
|
-
useTableCellActionsStyles_unstable: CustomStyleHook;
|
260
|
-
useTableCellLayoutStyles_unstable: CustomStyleHook;
|
261
|
-
useDataGridCellStyles_unstable: CustomStyleHook;
|
262
|
-
useDataGridRowStyles_unstable: CustomStyleHook;
|
263
|
-
useDataGridBodyStyles_unstable: CustomStyleHook;
|
264
|
-
useDataGridStyles_unstable: CustomStyleHook;
|
265
|
-
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
266
|
-
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
267
|
-
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
268
|
-
}> | undefined>;
|
269
|
-
|
270
|
-
/**
|
271
|
-
* @internal
|
272
|
-
*/
|
273
|
-
export declare type OverridesContextValue_unstable = {
|
274
|
-
inputDefaultAppearance?: 'outline' | 'filled-darker' | 'filled-lighter';
|
275
|
-
};
|
276
|
-
|
277
|
-
/**
|
278
|
-
* @internal
|
279
|
-
*/
|
280
|
-
export declare const OverridesProvider_unstable: React_2.Provider<OverridesContextValue_unstable | undefined>;
|
281
|
-
|
282
|
-
/**
|
283
|
-
* @internal
|
284
|
-
*/
|
285
|
-
export declare const Provider_unstable: React_2.Provider<ProviderContextValue_unstable>;
|
286
|
-
|
287
|
-
export declare type ProviderContextValue_unstable = {
|
288
|
-
/** Sets the direction of text & generated styles. */
|
289
|
-
dir: 'ltr' | 'rtl';
|
290
|
-
/** Provides the document, can be undefined during SSR render. */
|
291
|
-
targetDocument?: Document;
|
292
|
-
};
|
293
|
-
|
294
|
-
export declare type ThemeClassNameContextValue_unstable = string;
|
295
|
-
|
296
|
-
export declare const ThemeClassNameProvider_unstable: React_2.Provider<string>;
|
297
|
-
|
298
|
-
/**
|
299
|
-
* @internal
|
300
|
-
*/
|
301
|
-
export declare const ThemeContext_unstable: React_2.Context<ThemeContextValue_unstable>;
|
302
|
-
|
303
|
-
export declare type ThemeContextValue_unstable = Theme | Partial<Theme> | undefined;
|
304
|
-
|
305
|
-
/**
|
306
|
-
* @internal
|
307
|
-
*/
|
308
|
-
export declare const ThemeProvider_unstable: React_2.Provider<ThemeContextValue_unstable>;
|
309
|
-
|
310
|
-
/**
|
311
|
-
* The context provided by TooltipProvider
|
312
|
-
*/
|
313
|
-
export declare type TooltipVisibilityContextValue_unstable = {
|
314
|
-
/**
|
315
|
-
* When a tooltip is shown, it sets itself as the visibleTooltip.
|
316
|
-
* The next tooltip to become visible can use it to hide the previous tooltip immediately.
|
317
|
-
*/
|
318
|
-
visibleTooltip?: {
|
319
|
-
hide: () => void;
|
320
|
-
};
|
321
|
-
};
|
322
|
-
|
323
|
-
/**
|
324
|
-
* @internal
|
325
|
-
*/
|
326
|
-
export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
|
327
|
-
|
328
|
-
/**
|
329
|
-
* Gets a custom style hook
|
330
|
-
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
331
|
-
* @returns The corresponding hook when defined, otherwise a no-op function.
|
332
|
-
*/
|
333
|
-
export declare const useCustomStyleHook_unstable: (hook: keyof CustomStyleHooksContextValue_unstable) => CustomStyleHook;
|
334
|
-
|
335
|
-
export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
336
|
-
|
337
|
-
export declare function useOverrides_unstable(): OverridesContextValue_unstable;
|
338
|
-
|
339
|
-
/**
|
340
|
-
* @returns CSS class that applies css variables
|
341
|
-
*/
|
342
|
-
export declare function useThemeClassName_unstable(): ThemeClassNameContextValue_unstable;
|
343
|
-
|
344
|
-
export declare function useTooltipVisibility_unstable(): TooltipVisibilityContextValue_unstable;
|
345
|
-
|
346
|
-
export { }
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/* eslint-disable */import * as React from 'react';
|
2
|
-
/**
|
3
|
-
* @internal
|
4
|
-
*/
|
5
|
-
export const CustomStyleHooksContext = /*#__PURE__*/React.createContext(undefined);
|
6
|
-
const noop = () => {};
|
7
|
-
/**
|
8
|
-
* @internal
|
9
|
-
*/
|
10
|
-
export const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
11
|
-
/**
|
12
|
-
* Gets a custom style hook
|
13
|
-
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
14
|
-
* @returns The corresponding hook when defined, otherwise a no-op function.
|
15
|
-
*/
|
16
|
-
export const useCustomStyleHook = hook => {
|
17
|
-
var _React_useContext;
|
18
|
-
var _React_useContext_hook;
|
19
|
-
return (_React_useContext_hook = (_React_useContext = React.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;
|
20
|
-
};
|
21
|
-
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","_React_useContext","_React_useContext_hook","useContext"],"sources":["../../src/CustomStyleHooksContext/CustomStyleHooksContext.ts"],"sourcesContent":["/* eslint-disable */\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n// The list of hooks is built from the exports from react-components/src/index\nexport type CustomStyleHooksContextValue = Partial<{\n useAccordionHeaderStyles_unstable: CustomStyleHook;\n useAccordionItemStyles_unstable: CustomStyleHook;\n useAccordionPanelStyles_unstable: CustomStyleHook;\n useAccordionStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n}>;\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\nconst noop = () => {};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\n/**\n * Gets a custom style hook\n * @param hook - One of the hook properties in CustomStyleHooksContextValue\n * @returns The corresponding hook when defined, otherwise a no-op function.\n */\nexport const useCustomStyleHook = (hook: keyof CustomStyleHooksContextValue): CustomStyleHook => {\n return React.useContext(CustomStyleHooksContext)?.[hook] ?? noop;\n};\n"],"mappings":"AAAA,oBAEA,YAAYA,KAAA,MAAW;AA2FvB;;;AAGA,OAAO,MAAMC,uBAAA,gBAA0BD,KAAA,CAAME,aAAa,CAA2CC,SAAA;AAErG,MAAMC,IAAA,GAAOA,CAAA,KAAM,CAAC;AAEpB;;;AAGA,OAAO,MAAMC,wBAAA,GAA2BJ,uBAAA,CAAwBK,QAAQ;AAExE;;;;;AAKA,OAAO,MAAMC,kBAAA,GAAsBC,IAAA,IAA8D;MACxFC,iBAAA;MAAAC,sBAAA;EAAP,OAAO,CAAAA,sBAAA,IAAAD,iBAAA,GAAAT,KAAA,CAAMW,UAAU,CAACV,uBAAA,eAAjBQ,iBAAA,uBAAAA,iBAA2C,CAACD,IAAA,CAAK,cAAjDE,sBAAA,cAAAA,sBAAA,GAAqDN,IAAI;AAClE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/CustomStyleHooksContext/index.ts"],"sourcesContent":["export * from './CustomStyleHooksContext';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../src/CustomStyleHooksContext.ts"],"sourcesContent":["export * from './CustomStyleHooksContext/index';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
/**
|
3
|
-
* @internal
|
4
|
-
*/
|
5
|
-
export const OverridesContext = /*#__PURE__*/React.createContext(undefined);
|
6
|
-
/**
|
7
|
-
* @internal
|
8
|
-
*/
|
9
|
-
export const OverridesProvider = OverridesContext.Provider;
|
10
|
-
export function useOverrides() {
|
11
|
-
var _React_useContext;
|
12
|
-
return (_React_useContext = React.useContext(OverridesContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {};
|
13
|
-
}
|
14
|
-
//# sourceMappingURL=OverridesContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","OverridesContext","createContext","undefined","OverridesProvider","Provider","useOverrides","_React_useContext","useContext"],"sources":["../../src/OverridesContext/OverridesContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * @internal\n */\nexport type OverridesContextValue = {\n // No 'underline' as it is not supported by TextArea\n inputDefaultAppearance?: 'outline' | 'filled-darker' | 'filled-lighter';\n};\n\n/**\n * @internal\n */\nexport const OverridesContext = React.createContext<OverridesContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const OverridesProvider = OverridesContext.Provider;\n\nexport function useOverrides(): OverridesContextValue {\n return React.useContext(OverridesContext) ?? {};\n}\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAUvB;;;AAGA,OAAO,MAAMC,gBAAA,gBAAmBD,KAAA,CAAME,aAAa,CAAoCC,SAAA;AAEvF;;;AAGA,OAAO,MAAMC,iBAAA,GAAoBH,gBAAA,CAAiBI,QAAQ;AAE1D,OAAO,SAASC,aAAA,EAAsC;MAC7CC,iBAAA;EAAP,OAAO,CAAAA,iBAAA,GAAAP,KAAA,CAAMQ,UAAU,CAACP,gBAAA,eAAjBM,iBAAA,cAAAA,iBAAA,GAAsC,CAAC,CAAC;AACjD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/OverridesContext/index.ts"],"sourcesContent":["export * from './OverridesContext';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
/**
|
3
|
-
* @internal
|
4
|
-
*/
|
5
|
-
const ProviderContext = /*#__PURE__*/React.createContext(undefined);
|
6
|
-
const providerContextDefaultValue = {
|
7
|
-
targetDocument: typeof document === 'object' ? document : undefined,
|
8
|
-
dir: 'ltr'
|
9
|
-
};
|
10
|
-
/**
|
11
|
-
* @internal
|
12
|
-
*/
|
13
|
-
export const Provider = ProviderContext.Provider;
|
14
|
-
export function useFluent() {
|
15
|
-
var _React_useContext;
|
16
|
-
return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;
|
17
|
-
}
|
18
|
-
//# sourceMappingURL=ProviderContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","ProviderContext","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","Provider","useFluent","_React_useContext","useContext"],"sources":["../../src/ProviderContext/ProviderContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type 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\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAUvB;;;AAGA,MAAMC,eAAA,gBAAkBD,KAAA,CAAME,aAAa,CACzCC,SAAA;AAGF,MAAMC,2BAAA,GAAoD;EACxDC,cAAA,EAAgB,OAAOC,QAAA,KAAa,WAAWA,QAAA,GAAWH,SAAS;EACnEI,GAAA,EAAK;AACP;AAEA;;;AAGA,OAAO,MAAMC,QAAA,GAAWP,eAAA,CAAgBO,QAAQ;AAEhD,OAAO,SAASC,UAAA,EAAkC;MACzCC,iBAAA;EAAP,OAAO,CAAAA,iBAAA,GAAAV,KAAA,CAAMW,UAAU,CAACV,eAAA,eAAjBS,iBAAA,cAAAA,iBAAA,GAAqCN,2BAA2B;AACzE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/ProviderContext/index.ts"],"sourcesContent":["export * from './ProviderContext';\n"],"mappings":"AAAA,cAAc"}
|
package/lib/ProviderContext.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../src/ProviderContext.ts"],"sourcesContent":["export * from './ProviderContext/index';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
/**
|
3
|
-
* @internal
|
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
|
-
const ThemeClassNameContext = /*#__PURE__*/React.createContext(undefined);
|
9
|
-
const themeClassNameContextDefaultVaue = '';
|
10
|
-
export const ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
11
|
-
/**
|
12
|
-
* @returns CSS class that applies css variables
|
13
|
-
*/
|
14
|
-
export function useThemeClassName() {
|
15
|
-
var _React_useContext;
|
16
|
-
return (_React_useContext = React.useContext(ThemeClassNameContext)) !== null && _React_useContext !== void 0 ? _React_useContext : themeClassNameContextDefaultVaue;
|
17
|
-
}
|
18
|
-
//# sourceMappingURL=ThemeClassNameContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","ThemeClassNameContext","createContext","undefined","themeClassNameContextDefaultVaue","ThemeClassNameProvider","Provider","useThemeClassName","_React_useContext","useContext"],"sources":["../../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\n * Used to provide a CSS class that applies theme css variables\n *\n * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals\n */\nconst ThemeClassNameContext = React.createContext<ThemeClassNameContextValue | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAIvB;;;;;;AAMA,MAAMC,qBAAA,gBAAwBD,KAAA,CAAME,aAAa,CAC/CC,SAAA;AAGF,MAAMC,gCAAA,GAAmC;AAEzC,OAAO,MAAMC,sBAAA,GAAyBJ,qBAAA,CAAsBK,QAAQ;AAEpE;;;AAGA,OAAO,SAASC,kBAAA,EAAgD;MACvDC,iBAAA;EAAP,OAAO,CAAAA,iBAAA,GAAAR,KAAA,CAAMS,UAAU,CAACR,qBAAA,eAAjBO,iBAAA,cAAAA,iBAAA,GAA2CJ,gCAAgC;AACpF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/ThemeClassNameContext/index.ts"],"sourcesContent":["export * from './ThemeClassNameContext';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../src/ThemeClassNameContext.ts"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","ThemeContext","createContext","undefined","ThemeProvider","Provider"],"sources":["../../src/ThemeContext/ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAKvB;;;AAGA,OAAO,MAAMC,YAAA,gBAAeD,KAAA,CAAME,aAAa,CAAoBC,SAAA;AAEnE;;;AAGA,OAAO,MAAMC,aAAA,GAAgBH,YAAA,CAAaI,QAAQ"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/ThemeContext/index.ts"],"sourcesContent":["export * from './ThemeContext';\n"],"mappings":"AAAA,cAAc"}
|
package/lib/ThemeContext.js
DELETED
package/lib/ThemeContext.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../src/ThemeContext.ts"],"sourcesContent":["export * from './ThemeContext/index';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
/**
|
3
|
-
* @internal
|
4
|
-
* Context shared by all of the tooltips in the app
|
5
|
-
*/
|
6
|
-
const TooltipVisibilityContext = /*#__PURE__*/React.createContext(undefined);
|
7
|
-
const tooltipVisibilityContextDefaultValue = {};
|
8
|
-
/**
|
9
|
-
* @internal
|
10
|
-
*/
|
11
|
-
export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
|
12
|
-
export function useTooltipVisibility() {
|
13
|
-
var _React_useContext;
|
14
|
-
return (_React_useContext = React.useContext(TooltipVisibilityContext)) !== null && _React_useContext !== void 0 ? _React_useContext : tooltipVisibilityContextDefaultValue;
|
15
|
-
}
|
16
|
-
//# sourceMappingURL=TooltipContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["React","TooltipVisibilityContext","createContext","undefined","tooltipVisibilityContextDefaultValue","TooltipVisibilityProvider","Provider","useTooltipVisibility","_React_useContext","useContext"],"sources":["../../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * The context provided by TooltipProvider\n */\nexport type TooltipVisibilityContextValue = {\n /**\n * When a tooltip is shown, it sets itself as the visibleTooltip.\n * The next tooltip to become visible can use it to hide the previous tooltip immediately.\n */\n visibleTooltip?: {\n hide: () => void;\n };\n};\n\n/**\n * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAevB;;;;AAIA,MAAMC,wBAAA,gBAA2BD,KAAA,CAAME,aAAa,CAClDC,SAAA;AAGF,MAAMC,oCAAA,GAAsE,CAAC;AAE7E;;;AAGA,OAAO,MAAMC,yBAAA,GAA4BJ,wBAAA,CAAyBK,QAAQ;AAE1E,OAAO,SAASC,qBAAA,EAAsD;MAC7DC,iBAAA;EAAP,OAAO,CAAAA,iBAAA,GAAAR,KAAA,CAAMS,UAAU,CAACR,wBAAA,eAAjBO,iBAAA,cAAAA,iBAAA,GAA8CJ,oCAAoC;AAC3F"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/TooltipVisibilityContext/index.ts"],"sourcesContent":["export * from './TooltipContext';\n"],"mappings":"AAAA,cAAc"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["../src/TooltipVisibilityContext.ts"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"mappings":"AAAA,cAAc"}
|
package/lib/index.js
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';
|
2
|
-
export { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from './ThemeClassNameContext';
|
3
|
-
export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';
|
4
|
-
export { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';
|
5
|
-
export { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from './OverridesContext';
|
6
|
-
export { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from './CustomStyleHooksContext';
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["ThemeContext","ThemeContext_unstable","ThemeProvider","ThemeProvider_unstable","ThemeClassNameProvider","ThemeClassNameProvider_unstable","useThemeClassName","useThemeClassName_unstable","TooltipVisibilityProvider","TooltipVisibilityProvider_unstable","useTooltipVisibility","useTooltipVisibility_unstable","Provider","Provider_unstable","useFluent","useFluent_unstable","OverridesProvider","OverridesProvider_unstable","useOverrides","useOverrides_unstable","CustomStyleHooksContext","CustomStyleHooksContext_unstable","CustomStyleHooksProvider","CustomStyleHooksProvider_unstable","useCustomStyleHook","useCustomStyleHook_unstable"],"sources":["../src/index.ts"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport type { ThemeContextValue as ThemeContextValue_unstable } from './ThemeContext';\n\nexport {\n ThemeClassNameProvider as ThemeClassNameProvider_unstable,\n useThemeClassName as useThemeClassName_unstable,\n} from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue as ThemeClassNameContextValue_unstable } from './ThemeClassNameContext';\n\nexport {\n TooltipVisibilityProvider as TooltipVisibilityProvider_unstable,\n useTooltipVisibility as useTooltipVisibility_unstable,\n} from './TooltipVisibilityContext';\nexport type { TooltipVisibilityContextValue as TooltipVisibilityContextValue_unstable } from './TooltipVisibilityContext';\n\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport type { ProviderContextValue as ProviderContextValue_unstable } from './ProviderContext';\n\nexport {\n OverridesProvider as OverridesProvider_unstable,\n useOverrides as useOverrides_unstable,\n} from './OverridesContext';\nexport type { OverridesContextValue as OverridesContextValue_unstable } from './OverridesContext';\n\nexport {\n CustomStyleHooksContext as CustomStyleHooksContext_unstable,\n CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,\n useCustomStyleHook as useCustomStyleHook_unstable,\n} from './CustomStyleHooksContext';\nexport type { CustomStyleHooksContextValue as CustomStyleHooksContextValue_unstable } from './CustomStyleHooksContext';\n"],"mappings":"AAAA,SAASA,YAAA,IAAgBC,qBAAqB,EAAEC,aAAA,IAAiBC,sBAAsB,QAAQ;AAG/F,SACEC,sBAAA,IAA0BC,+BAA+B,EACzDC,iBAAA,IAAqBC,0BAA0B,QAC1C;AAGP,SACEC,yBAAA,IAA6BC,kCAAkC,EAC/DC,oBAAA,IAAwBC,6BAA6B,QAChD;AAGP,SAASC,QAAA,IAAYC,iBAAiB,EAAEC,SAAA,IAAaC,kBAAkB,QAAQ;AAG/E,SACEC,iBAAA,IAAqBC,0BAA0B,EAC/CC,YAAA,IAAgBC,qBAAqB,QAChC;AAGP,SACEC,uBAAA,IAA2BC,gCAAgC,EAC3DC,wBAAA,IAA4BC,iCAAiC,EAC7DC,kBAAA,IAAsBC,2BAA2B,QAC5C"}
|