@fluentui/react-popover 0.0.0-nightlyca6ef2bc8e20220105.1 → 0.0.0-nightlydd0f007b3f20220119.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +60 -24
- package/CHANGELOG.md +19 -15
- package/dist/react-popover.d.ts +0 -2
- package/lib/components/PopoverSurface/renderPopoverSurface.js +1 -2
- package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
- package/lib/components/PopoverSurface/usePopoverSurface.d.ts +1 -2
- package/lib/components/PopoverSurface/usePopoverSurface.js +0 -1
- package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +20 -21
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +1 -3
- package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/usePopoverSurface.d.ts +1 -2
- package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +2 -3
- package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +20 -20
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.json
CHANGED
@@ -2,17 +2,41 @@
|
|
2
2
|
"name": "@fluentui/react-popover",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Wed,
|
6
|
-
"tag": "@fluentui/react-popover_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Wed, 19 Jan 2022 04:16:38 GMT",
|
6
|
+
"tag": "@fluentui/react-popover_v0.0.0-nightlydd0f007b3f20220119.1",
|
7
|
+
"version": "0.0.0-nightlydd0f007b3f20220119.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-popover",
|
13
|
-
"commit": "
|
13
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
18
|
+
"package": "@fluentui/react-popover",
|
19
|
+
"commit": "38e8f42252c69b1c749c3ca7fca9315b49e6cf31",
|
20
|
+
"comment": "Replacing use of functions in makeStyles with direct use of tokens"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "behowell@microsoft.com",
|
24
|
+
"package": "@fluentui/react-popover",
|
25
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
26
|
+
"comment": "Remove component's shorthandProps array"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "behowell@microsoft.com",
|
30
|
+
"package": "@fluentui/react-popover",
|
31
|
+
"commit": "09804275c7f346db54c33d4ff347bffc33676014",
|
32
|
+
"comment": "Fix Popover arrow border in high contrast"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
36
|
+
"package": "@fluentui/react-popover",
|
37
|
+
"commit": "6c32d0180e89674a46daf795de69e5dc6ca71ef7",
|
38
|
+
"comment": "Updating based on removal of functions from makeStyles."
|
39
|
+
},
|
16
40
|
{
|
17
41
|
"author": "olfedias@microsoft.com",
|
18
42
|
"package": "@fluentui/react-popover",
|
@@ -22,70 +46,82 @@
|
|
22
46
|
{
|
23
47
|
"author": "beachball",
|
24
48
|
"package": "@fluentui/react-popover",
|
25
|
-
"comment": "Bump @fluentui/react-context-selector to v0.0.0-
|
26
|
-
"commit": "
|
49
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlydd0f007b3f20220119.1",
|
50
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
27
51
|
},
|
28
52
|
{
|
29
53
|
"author": "beachball",
|
30
54
|
"package": "@fluentui/react-popover",
|
31
|
-
"comment": "Bump @fluentui/react-make-styles to v0.0.0-
|
32
|
-
"commit": "
|
55
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
|
56
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
33
57
|
},
|
34
58
|
{
|
35
59
|
"author": "beachball",
|
36
60
|
"package": "@fluentui/react-popover",
|
37
|
-
"comment": "Bump @fluentui/react-portal to v0.0.0-
|
38
|
-
"commit": "
|
61
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightlydd0f007b3f20220119.1",
|
62
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
39
63
|
},
|
40
64
|
{
|
41
65
|
"author": "beachball",
|
42
66
|
"package": "@fluentui/react-popover",
|
43
|
-
"comment": "Bump @fluentui/react-positioning to v0.0.0-
|
44
|
-
"commit": "
|
67
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightlydd0f007b3f20220119.1",
|
68
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
45
69
|
},
|
46
70
|
{
|
47
71
|
"author": "beachball",
|
48
72
|
"package": "@fluentui/react-popover",
|
49
|
-
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-
|
50
|
-
"commit": "
|
73
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlydd0f007b3f20220119.1",
|
74
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
51
75
|
},
|
52
76
|
{
|
53
77
|
"author": "beachball",
|
54
78
|
"package": "@fluentui/react-popover",
|
55
|
-
"comment": "Bump @fluentui/react-tabster to v0.0.0-
|
56
|
-
"commit": "
|
79
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlydd0f007b3f20220119.1",
|
80
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
57
81
|
},
|
58
82
|
{
|
59
83
|
"author": "beachball",
|
60
84
|
"package": "@fluentui/react-popover",
|
61
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-
|
62
|
-
"commit": "
|
85
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlydd0f007b3f20220119.1",
|
86
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
63
87
|
},
|
64
88
|
{
|
65
89
|
"author": "beachball",
|
66
90
|
"package": "@fluentui/react-popover",
|
67
|
-
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-
|
68
|
-
"commit": "
|
91
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
|
92
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
69
93
|
},
|
70
94
|
{
|
71
95
|
"author": "beachball",
|
72
96
|
"package": "@fluentui/react-popover",
|
73
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-
|
74
|
-
"commit": "
|
97
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
|
98
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
75
99
|
},
|
76
100
|
{
|
77
101
|
"author": "beachball",
|
78
102
|
"package": "@fluentui/react-popover",
|
79
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-
|
80
|
-
"commit": "
|
103
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
|
104
|
+
"commit": "6044506cc626a9a155e0df40645426ddcc080c55"
|
81
105
|
}
|
82
106
|
],
|
83
107
|
"none": [
|
108
|
+
{
|
109
|
+
"author": "martinhochel@microsoft.com",
|
110
|
+
"package": "@fluentui/react-popover",
|
111
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
112
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
113
|
+
},
|
84
114
|
{
|
85
115
|
"author": "elcraig@microsoft.com",
|
86
116
|
"package": "@fluentui/react-popover",
|
87
117
|
"commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
|
88
118
|
"comment": "Update API file to version generated by typescript 4.3"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"author": "email not defined",
|
122
|
+
"package": "@fluentui/react-popover",
|
123
|
+
"commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
|
124
|
+
"comment": "Add workaround for cypress bug"
|
89
125
|
}
|
90
126
|
]
|
91
127
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,28 +1,32 @@
|
|
1
1
|
# Change Log - @fluentui/react-popover
|
2
2
|
|
3
|
-
This log was last generated on Wed,
|
3
|
+
This log was last generated on Wed, 19 Jan 2022 04:16:38 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlydd0f007b3f20220119.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlydd0f007b3f20220119.1)
|
8
8
|
|
9
|
-
Wed,
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-
|
9
|
+
Wed, 19 Jan 2022 04:16:38 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-nightlydd0f007b3f20220119.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by email not defined)
|
15
|
+
- Replacing use of functions in makeStyles with direct use of tokens ([PR #21049](https://github.com/microsoft/fluentui/pull/21049) by Humberto.Morimoto@microsoft.com)
|
16
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
17
|
+
- Fix Popover arrow border in high contrast ([PR #21086](https://github.com/microsoft/fluentui/pull/21086) by behowell@microsoft.com)
|
18
|
+
- Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
|
15
19
|
- update styles to not use CSS shorthands ([PR #20796](https://github.com/microsoft/fluentui/pull/20796) by olfedias@microsoft.com)
|
16
|
-
- Bump @fluentui/react-context-selector to v0.0.0-
|
17
|
-
- Bump @fluentui/react-make-styles to v0.0.0-
|
18
|
-
- Bump @fluentui/react-portal to v0.0.0-
|
19
|
-
- Bump @fluentui/react-positioning to v0.0.0-
|
20
|
-
- Bump @fluentui/react-shared-contexts to v0.0.0-
|
21
|
-
- Bump @fluentui/react-tabster to v0.0.0-
|
22
|
-
- Bump @fluentui/react-utilities to v0.0.0-
|
23
|
-
- Bump @fluentui/babel-make-styles to v0.0.0-
|
24
|
-
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-
|
25
|
-
- Bump @fluentui/react-conformance-make-styles to v0.0.0-
|
20
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
21
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
22
|
+
- Bump @fluentui/react-portal to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
23
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
24
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
25
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
26
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
27
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
28
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
29
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
|
26
30
|
|
27
31
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.5)
|
28
32
|
|
package/dist/react-popover.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { Portal } from '@fluentui/react-portal';
|
3
3
|
import { getSlots } from '@fluentui/react-utilities';
|
4
|
-
import { popoverSurfaceSlots } from './usePopoverSurface';
|
5
4
|
/**
|
6
5
|
* Render the final JSX of PopoverSurface
|
7
6
|
*/
|
@@ -10,7 +9,7 @@ export const renderPopoverSurface = state => {
|
|
10
9
|
const {
|
11
10
|
slots,
|
12
11
|
slotProps
|
13
|
-
} = getSlots(state
|
12
|
+
} = getSlots(state); // TODO should hidden Popovers be supported ?
|
14
13
|
|
15
14
|
if (!state.open) {
|
16
15
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,CAArC,CADiE,CAGjE;;AACA,MAAI,CAAC,KAAK,CAAC,IAAX,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,CAAC,KAAK,CAAC,OAAP,iBAAkB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADrB,EAEG,SAAS,CAAC,IAAV,CAAe,QAFlB,CADF,CADF;AAQD,CAhBM","sourceRoot":""}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import type { PopoverSurfaceProps,
|
3
|
-
export declare const popoverSurfaceSlots: Array<keyof PopoverSurfaceSlots>;
|
2
|
+
import type { PopoverSurfaceProps, PopoverSurfaceState } from './PopoverSurface.types';
|
4
3
|
/**
|
5
4
|
* Create the state required to render PopoverSurface.
|
6
5
|
*
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
2
2
|
import { getNativeElementProps, useMergedRefs } from '@fluentui/react-utilities';
|
3
3
|
import { useFocusFinders, useModalAttributes } from '@fluentui/react-tabster';
|
4
4
|
import { usePopoverContext } from '../../popoverContext';
|
5
|
-
export const popoverSurfaceSlots = ['root'];
|
6
5
|
/**
|
7
6
|
* Create the state required to render PopoverSurface.
|
8
7
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,aAAhC,QAAqD,2BAArD;AACA,SAAS,eAAT,EAA0B,kBAA1B,QAAoD,yBAApD;AACA,SAAS,iBAAT,QAAkC,sBAAlC;AAGA
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,aAAhC,QAAqD,2BAArD;AACA,SAAS,eAAT,EAA0B,kBAA1B,QAAoD,yBAApD;AACA,SAAS,iBAAT,QAAkC,sBAAlC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAA6B,GAA7B,KAAoF;AACnH,QAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,UAApB,CAApC;AACA,QAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,IAApB,CAA9B;AACA,QAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,WAApB,CAArC;AACA,QAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,OAApB,CAAjC;AACA,QAAM,SAAS,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,SAApB,CAAnC;AACA,QAAM,QAAQ,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,QAApB,CAAlC;AACA,Q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les';
|
2
|
-
import { createArrowStyles } from '@fluentui/react-positioning';
|
2
|
+
import { createArrowHeightStyles, createArrowStyles } from '@fluentui/react-positioning';
|
3
|
+
import { tokens } from '@fluentui/react-theme';
|
3
4
|
export const popoverSurfaceClassName = 'fui-PopoverSurface';
|
4
5
|
export const arrowHeights = {
|
5
6
|
small: 6,
|
@@ -58,12 +59,12 @@ const useStyles = /*#__PURE__*/__styles({
|
|
58
59
|
"uwmqm3": ["fekwl8i", "fat0sn4"]
|
59
60
|
},
|
60
61
|
"smallArrow": {
|
61
|
-
"a9b677": "
|
62
|
-
"Bqenvij": "
|
62
|
+
"a9b677": "f1ekdpwm",
|
63
|
+
"Bqenvij": "f83vc9z"
|
63
64
|
},
|
64
65
|
"mediumLargeArrow": {
|
65
|
-
"a9b677": "
|
66
|
-
"Bqenvij": "
|
66
|
+
"a9b677": "f1kmc0fn",
|
67
|
+
"Bqenvij": "fb6lvc5"
|
67
68
|
},
|
68
69
|
"arrow": {
|
69
70
|
"qhf8xq": "f1euv43f",
|
@@ -71,33 +72,31 @@ const useStyles = /*#__PURE__*/__styles({
|
|
71
72
|
"Bcdw1i0": "fd7fpy0",
|
72
73
|
"Bj3rh1h": "f1bsuimh",
|
73
74
|
"rurcny": "fuzzvh5",
|
74
|
-
"
|
75
|
-
"B5c9fhp": ["fijcjxk", "f11y671q"],
|
76
|
-
"Bhe99jt": ["f1vtdej5", "f7y375m"],
|
77
|
-
"B2r1szc": ["f7y375m", "f1vtdej5"],
|
75
|
+
"Bex5imi": "fkk33zh",
|
78
76
|
"xx9plb": "fxf9f1y",
|
77
|
+
"Bmqnesq": "f170vdtw",
|
79
78
|
"Bdn98qo": "f103af6e",
|
80
79
|
"Bbc2r3f": "f15umuo5",
|
81
80
|
"B1dvbpk": "f3wpjpt",
|
82
|
-
"
|
81
|
+
"D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
|
82
|
+
"cqycoz": ["fiio4mc", "fc8z0qo"],
|
83
|
+
"I89eb": ["f15d5mb5", "fe45dp8"],
|
84
|
+
"k1i1uq": "fyqop9u",
|
85
|
+
"Epwjcz": "f1m5ya7j",
|
86
|
+
"Bp1vogq": "f3sp63x",
|
87
|
+
"px8gyy": ["f5bg3dr", "f1rfdd74"],
|
83
88
|
"h6z6rw": "fzd2j21",
|
84
|
-
"
|
85
|
-
"F42hee": ["f1jq8eg5", "f12n7c5j"],
|
86
|
-
"Blxsnla": ["f1wv7y6t", "fi4qyh6"],
|
87
|
-
"t2scew": "fcvru7r",
|
88
|
-
"Emsed9": "f7ybgnc",
|
89
|
-
"E11wbp": "f16xtfle",
|
90
|
-
"hl6cv3": "fotnskf",
|
89
|
+
"hl6cv3": "f1773hnp",
|
91
90
|
"Bh2vraf": "f1n8855c",
|
92
|
-
"yayu3t": "
|
91
|
+
"yayu3t": "f1v7783n",
|
93
92
|
"wedwtw": "fsw6im5",
|
94
|
-
"rhl9o9": "
|
93
|
+
"rhl9o9": "fh2hsk5",
|
95
94
|
"Bu8t5uz": "f159pzir",
|
96
|
-
"B6q6orb": "
|
95
|
+
"B6q6orb": "f11yvu4",
|
97
96
|
"Bwwlvwl": "fm1ycve"
|
98
97
|
}
|
99
98
|
}, {
|
100
|
-
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".
|
99
|
+
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".f1ekdpwm{width:8.484px;}", ".f83vc9z{height:8.484px;}", ".f1kmc0fn{width:11.312px;}", ".fb6lvc5{height:11.312px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".fkk33zh:before{visibility:visible;}", ".fxf9f1y:before{position:absolute;}", ".f170vdtw:before{box-sizing:border-box;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".f1pa2qi2:before{border-right-width:1px;}", ".f1ooiv2t:before{border-left-width:1px;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f15d5mb5:before{border-right-color:var(--colorTransparentStroke);}", ".fe45dp8:before{border-left-color:var(--colorTransparentStroke);}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f3sp63x:before{border-bottom-color:var(--colorTransparentStroke);}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".fzd2j21:before{-webkit-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-moz-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-ms-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}", "[data-popper-placement^=\"top\"] .f1773hnp{bottom:-1px;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
|
101
100
|
});
|
102
101
|
/**
|
103
102
|
* Apply styling to the PopoverSurface slots based on the state
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,6BAArD;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,6BAArD;AACA,SAAS,uBAAT,EAAkC,iBAAlC,QAA2D,6BAA3D;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAIA,OAAO,MAAM,uBAAuB,GAAG,oBAAhC;AAEP,OAAO,MAAM,YAAY,GAAgC;AACvD,EAAA,KAAK,EAAE,CADgD;AAEvD,EAAA,MAAM,EAAE,CAF+C;AAGvD,EAAA,KAAK,EAAE;AAHgD,CAAlD;AAMP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAqCA;;AAEG;;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAoD;AACzF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,uBADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,YAHA,EAIjC,KAAK,CAAC,IAAN,KAAe,QAAf,IAA2B,MAAM,CAAC,aAJD,EAKjC,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,YALA,EAMjC,KAAK,CAAC,UAAN,KAAqB,UAArB,IAAmC,MAAM,CAAC,QANT,EAOjC,KAAK,CAAC,UAAN,KAAqB,OAArB,IAAgC,MAAM,CAAC,KAPN,EAQjC,KAAK,CAAC,IAAN,CAAW,SARsB,CAAnC;AAWA,EAAA,KAAK,CAAC,cAAN,GAAuB,YAAY,CACjC,MAAM,CAAC,KAD0B,EAEjC,KAAK,CAAC,IAAN,KAAe,OAAf,GAAyB,MAAM,CAAC,UAAhC,GAA6C,MAAM,CAAC,gBAFnB,CAAnC;AAKA,SAAO,KAAP;AACD,CAnBM","sourceRoot":""}
|
@@ -10,8 +10,6 @@ const React = /*#__PURE__*/require("react");
|
|
10
10
|
const react_portal_1 = /*#__PURE__*/require("@fluentui/react-portal");
|
11
11
|
|
12
12
|
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
13
|
-
|
14
|
-
const usePopoverSurface_1 = /*#__PURE__*/require("./usePopoverSurface");
|
15
13
|
/**
|
16
14
|
* Render the final JSX of PopoverSurface
|
17
15
|
*/
|
@@ -21,7 +19,7 @@ const renderPopoverSurface = state => {
|
|
21
19
|
const {
|
22
20
|
slots,
|
23
21
|
slotProps
|
24
|
-
} = react_utilities_1.getSlots(state
|
22
|
+
} = react_utilities_1.getSlots(state); // TODO should hidden Popovers be supported ?
|
25
23
|
|
26
24
|
if (!state.open) {
|
27
25
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA8B,KAA9B,CAA7B,CADiE,CAGjE;;AACA,MAAI,CAAC,KAAK,CAAC,IAAX,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,SACE,KAAA,CAAA,aAAA,CAAC,cAAA,CAAA,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,CAAC,KAAK,CAAC,OAAP,IAAkB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADrB,EAEG,SAAS,CAAC,IAAV,CAAe,QAFlB,CADF,CADF;AAQD,CAhBM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import type { PopoverSurfaceProps,
|
3
|
-
export declare const popoverSurfaceSlots: Array<keyof PopoverSurfaceSlots>;
|
2
|
+
import type { PopoverSurfaceProps, PopoverSurfaceState } from './PopoverSurface.types';
|
4
3
|
/**
|
5
4
|
* Create the state required to render PopoverSurface.
|
6
5
|
*
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.usePopoverSurface =
|
6
|
+
exports.usePopoverSurface = void 0;
|
7
7
|
|
8
8
|
const React = /*#__PURE__*/require("react");
|
9
9
|
|
@@ -12,8 +12,6 @@ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
|
12
12
|
const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
|
13
13
|
|
14
14
|
const popoverContext_1 = /*#__PURE__*/require("../../popoverContext");
|
15
|
-
|
16
|
-
exports.popoverSurfaceSlots = ['root'];
|
17
15
|
/**
|
18
16
|
* Create the state required to render PopoverSurface.
|
19
17
|
*
|
@@ -24,6 +22,7 @@ exports.popoverSurfaceSlots = ['root'];
|
|
24
22
|
* @param ref - reference to root HTMLDivElement of PopoverSurface
|
25
23
|
*/
|
26
24
|
|
25
|
+
|
27
26
|
const usePopoverSurface = (props, ref) => {
|
28
27
|
const contentRef = popoverContext_1.usePopoverContext(context => context.contentRef);
|
29
28
|
const open = popoverContext_1.usePopoverContext(context => context.open);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurface.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,O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AAoB,KAAA,CAApB,GAAA,oBAAoB,CAAG,CAAH,CAApB;AACD,GAND;;AAQA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAwB,CAAD,IAA2C;WAAA,CAChE;AACA;;;AACA,QAAI,CAAC,CAAC,GAAF,KAAU,QAAV,KAAsB,CAAA,EAAA,GAAA,UAAU,CAAC,OAAX,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,KAAA,CAAlB,GAAkB,EAAA,CAAE,QAAF,CAAW,CAAC,CAAC,MAAb,CAAxC,CAAJ,EAAoF;AAClF,MAAA,OAAO,CAAC,CAAD,EAAI,KAAJ,CAAP;AACD;;AAED,IAAA,iBAAiB,KAAA,IAAjB,IAAA,iBAAiB,KAAA,KAAA,CAAjB,GAAiB,KAAA,CAAjB,GAAA,iBAAiB,CAAG,CAAH,CAAjB;AACD,GARD;;AAUA,QAAM;AAAE,IAAA;AAAF,MAAyB,eAAA,CAAA,eAAA,EAA/B;AAEA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB,QAAI,KAAK,CAAC,IAAN,IAAc,UAAU,CAAC,OAA7B,EAAsC;AACpC,YAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAZ,CAAzC;AACA,MAAA,cAAc,KAAA,IAAd,IAAA,cAAc,KAAA,KAAA,CAAd,GAAc,KAAA,CAAd,GAAA,cAAc,CAAE,KAAhB,EAAA;AACD;AACF,GALD,EAKG,CAAC,UAAD,EAAa,kBAAb,EAAiC,KAAK,CAAC,IAAvC,CALH;AAMA,SAAO,KAAP;AACD,CAvEM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
|
@@ -9,6 +9,8 @@ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
|
9
9
|
|
10
10
|
const react_positioning_1 = /*#__PURE__*/require("@fluentui/react-positioning");
|
11
11
|
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
|
+
|
12
14
|
exports.popoverSurfaceClassName = 'fui-PopoverSurface';
|
13
15
|
exports.arrowHeights = {
|
14
16
|
small: 6,
|
@@ -67,12 +69,12 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
67
69
|
"uwmqm3": ["fekwl8i", "fat0sn4"]
|
68
70
|
},
|
69
71
|
"smallArrow": {
|
70
|
-
"a9b677": "
|
71
|
-
"Bqenvij": "
|
72
|
+
"a9b677": "f1ekdpwm",
|
73
|
+
"Bqenvij": "f83vc9z"
|
72
74
|
},
|
73
75
|
"mediumLargeArrow": {
|
74
|
-
"a9b677": "
|
75
|
-
"Bqenvij": "
|
76
|
+
"a9b677": "f1kmc0fn",
|
77
|
+
"Bqenvij": "fb6lvc5"
|
76
78
|
},
|
77
79
|
"arrow": {
|
78
80
|
"qhf8xq": "f1euv43f",
|
@@ -80,33 +82,31 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
80
82
|
"Bcdw1i0": "fd7fpy0",
|
81
83
|
"Bj3rh1h": "f1bsuimh",
|
82
84
|
"rurcny": "fuzzvh5",
|
83
|
-
"
|
84
|
-
"B5c9fhp": ["fijcjxk", "f11y671q"],
|
85
|
-
"Bhe99jt": ["f1vtdej5", "f7y375m"],
|
86
|
-
"B2r1szc": ["f7y375m", "f1vtdej5"],
|
85
|
+
"Bex5imi": "fkk33zh",
|
87
86
|
"xx9plb": "fxf9f1y",
|
87
|
+
"Bmqnesq": "f170vdtw",
|
88
88
|
"Bdn98qo": "f103af6e",
|
89
89
|
"Bbc2r3f": "f15umuo5",
|
90
90
|
"B1dvbpk": "f3wpjpt",
|
91
|
-
"
|
91
|
+
"D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
|
92
|
+
"cqycoz": ["fiio4mc", "fc8z0qo"],
|
93
|
+
"I89eb": ["f15d5mb5", "fe45dp8"],
|
94
|
+
"k1i1uq": "fyqop9u",
|
95
|
+
"Epwjcz": "f1m5ya7j",
|
96
|
+
"Bp1vogq": "f3sp63x",
|
97
|
+
"px8gyy": ["f5bg3dr", "f1rfdd74"],
|
92
98
|
"h6z6rw": "fzd2j21",
|
93
|
-
"
|
94
|
-
"F42hee": ["f1jq8eg5", "f12n7c5j"],
|
95
|
-
"Blxsnla": ["f1wv7y6t", "fi4qyh6"],
|
96
|
-
"t2scew": "fcvru7r",
|
97
|
-
"Emsed9": "f7ybgnc",
|
98
|
-
"E11wbp": "f16xtfle",
|
99
|
-
"hl6cv3": "fotnskf",
|
99
|
+
"hl6cv3": "f1773hnp",
|
100
100
|
"Bh2vraf": "f1n8855c",
|
101
|
-
"yayu3t": "
|
101
|
+
"yayu3t": "f1v7783n",
|
102
102
|
"wedwtw": "fsw6im5",
|
103
|
-
"rhl9o9": "
|
103
|
+
"rhl9o9": "fh2hsk5",
|
104
104
|
"Bu8t5uz": "f159pzir",
|
105
|
-
"B6q6orb": "
|
105
|
+
"B6q6orb": "f11yvu4",
|
106
106
|
"Bwwlvwl": "fm1ycve"
|
107
107
|
}
|
108
108
|
}, {
|
109
|
-
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".
|
109
|
+
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".f1ekdpwm{width:8.484px;}", ".f83vc9z{height:8.484px;}", ".f1kmc0fn{width:11.312px;}", ".fb6lvc5{height:11.312px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".fkk33zh:before{visibility:visible;}", ".fxf9f1y:before{position:absolute;}", ".f170vdtw:before{box-sizing:border-box;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".f1pa2qi2:before{border-right-width:1px;}", ".f1ooiv2t:before{border-left-width:1px;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f15d5mb5:before{border-right-color:var(--colorTransparentStroke);}", ".fe45dp8:before{border-left-color:var(--colorTransparentStroke);}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f3sp63x:before{border-bottom-color:var(--colorTransparentStroke);}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".fzd2j21:before{-webkit-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-moz-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-ms-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}", "[data-popper-placement^=\"top\"] .f1773hnp{bottom:-1px;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
|
110
110
|
});
|
111
111
|
/**
|
112
112
|
* Apply styling to the PopoverSurface slots based on the state
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAIa,OAAA,CAAA,uBAAA,GAA0B,oBAA1B;AAEA,OAAA,CAAA,YAAA,GAA4C;AACvD,EAAA,KAAK,EAAE,CADgD;AAEvD,EAAA,MAAM,EAAE,CAF+C;AAGvD,EAAA,KAAK,EAAE;AAHgD,CAA5C;AAMb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,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C,YALZ,EAMrB,KAAK,CAAC,UAAN,KAAqB,UAArB,IAAmC,MAAM,CAAC,QANrB,EAOrB,KAAK,CAAC,UAAN,KAAqB,OAArB,IAAgC,MAAM,CAAC,KAPlB,EAQrB,KAAK,CAAC,IAAN,CAAW,SARU,CAAvB;AAWA,EAAA,KAAK,CAAC,cAAN,GAAuB,mBAAA,CAAA,YAAA,CACrB,MAAM,CAAC,KADc,EAErB,KAAK,CAAC,IAAN,KAAe,OAAf,GAAyB,MAAM,CAAC,UAAhC,GAA6C,MAAM,CAAC,gBAF/B,CAAvB;AAKA,SAAO,KAAP;AACD,CAnBM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-popover",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-nightlydd0f007b3f20220119.1",
|
4
4
|
"description": "Popover component for Fluent UI",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -20,18 +20,18 @@
|
|
20
20
|
"lint": "just-scripts lint",
|
21
21
|
"start": "yarn storybook",
|
22
22
|
"e2e": "e2e",
|
23
|
-
"storybook": "
|
24
|
-
"test": "jest",
|
23
|
+
"storybook": "node ../../scripts/storybook/runner",
|
24
|
+
"test": "jest --passWithNoTests",
|
25
25
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
26
26
|
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-popover/src && yarn docs",
|
27
27
|
"type-check": "tsc -b tsconfig.json"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@fluentui/babel-make-styles": "0.0.0-
|
30
|
+
"@fluentui/babel-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
|
31
31
|
"@fluentui/eslint-plugin": "*",
|
32
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-
|
32
|
+
"@fluentui/jest-serializer-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
|
33
33
|
"@fluentui/react-conformance": "*",
|
34
|
-
"@fluentui/react-conformance-make-styles": "0.0.0-
|
34
|
+
"@fluentui/react-conformance-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
|
35
35
|
"@fluentui/scripts": "^1.0.0",
|
36
36
|
"@types/enzyme": "3.10.3",
|
37
37
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
@@ -45,13 +45,13 @@
|
|
45
45
|
"react-test-renderer": "^16.3.0"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@fluentui/react-context-selector": "0.0.0-
|
49
|
-
"@fluentui/react-make-styles": "0.0.0-
|
50
|
-
"@fluentui/react-portal": "0.0.0-
|
51
|
-
"@fluentui/react-positioning": "0.0.0-
|
52
|
-
"@fluentui/react-shared-contexts": "0.0.0-
|
53
|
-
"@fluentui/react-tabster": "0.0.0-
|
54
|
-
"@fluentui/react-utilities": "0.0.0-
|
48
|
+
"@fluentui/react-context-selector": "0.0.0-nightlydd0f007b3f20220119.1",
|
49
|
+
"@fluentui/react-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
|
50
|
+
"@fluentui/react-portal": "0.0.0-nightlydd0f007b3f20220119.1",
|
51
|
+
"@fluentui/react-positioning": "0.0.0-nightlydd0f007b3f20220119.1",
|
52
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightlydd0f007b3f20220119.1",
|
53
|
+
"@fluentui/react-tabster": "0.0.0-nightlydd0f007b3f20220119.1",
|
54
|
+
"@fluentui/react-utilities": "0.0.0-nightlydd0f007b3f20220119.1",
|
55
55
|
"tslib": "^2.1.0"
|
56
56
|
},
|
57
57
|
"peerDependencies": {
|