@fluentui/react-popover 0.0.0-nightlya54302c0b220211124.1 → 0.0.0-nightlyb2deb9be1720211130.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +102 -19
- package/CHANGELOG.md +31 -12
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +6 -3
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +5 -2
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/package.json +13 -12
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -13
- package/lib/common/isConformant.js.map +0 -1
- package/lib/common/mockUsePopoverContext.d.ts +0 -7
- package/lib/common/mockUsePopoverContext.js +0 -31
- package/lib/common/mockUsePopoverContext.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -24
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/mockUsePopoverContext.d.ts +0 -7
- package/lib-commonjs/common/mockUsePopoverContext.js +0 -41
- package/lib-commonjs/common/mockUsePopoverContext.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,9 +2,72 @@
|
|
2
2
|
"name": "@fluentui/react-popover",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-popover_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Tue, 30 Nov 2021 04:13:50 GMT",
|
6
|
+
"tag": "@fluentui/react-popover_v0.0.0-nightlyb2deb9be1720211130.1",
|
7
|
+
"version": "0.0.0-nightlyb2deb9be1720211130.1",
|
8
|
+
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "olfedias@microsoft.com",
|
12
|
+
"package": "@fluentui/react-popover",
|
13
|
+
"commit": "ec0e785df9c70a2202dc5cc3cb4001d1ee635124",
|
14
|
+
"comment": "update styles to not use CSS shorthands"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-popover",
|
19
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyb2deb9be1720211130.1",
|
20
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-popover",
|
25
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightlyb2deb9be1720211130.1",
|
26
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-popover",
|
31
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyb2deb9be1720211130.1",
|
32
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-popover",
|
37
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyb2deb9be1720211130.1",
|
38
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-popover",
|
43
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyb2deb9be1720211130.1",
|
44
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-popover",
|
49
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyb2deb9be1720211130.1",
|
50
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-popover",
|
55
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyb2deb9be1720211130.1",
|
56
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "beachball",
|
60
|
+
"package": "@fluentui/react-popover",
|
61
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyb2deb9be1720211130.1",
|
62
|
+
"commit": "941112351e1504869184ee2ec1273f418967a448"
|
63
|
+
}
|
64
|
+
]
|
65
|
+
}
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"date": "Thu, 25 Nov 2021 08:34:15 GMT",
|
69
|
+
"tag": "@fluentui/react-popover_v9.0.0-beta.5",
|
70
|
+
"version": "9.0.0-beta.5",
|
8
71
|
"comments": {
|
9
72
|
"prerelease": [
|
10
73
|
{
|
@@ -16,50 +79,70 @@
|
|
16
79
|
{
|
17
80
|
"author": "beachball",
|
18
81
|
"package": "@fluentui/react-popover",
|
19
|
-
"comment": "Bump @fluentui/react-
|
20
|
-
"commit": "
|
82
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
|
83
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
21
84
|
},
|
22
85
|
{
|
23
86
|
"author": "beachball",
|
24
87
|
"package": "@fluentui/react-popover",
|
25
|
-
"comment": "Bump @fluentui/react-
|
26
|
-
"commit": "
|
88
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
89
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
27
90
|
},
|
28
91
|
{
|
29
92
|
"author": "beachball",
|
30
93
|
"package": "@fluentui/react-popover",
|
31
|
-
"comment": "Bump @fluentui/react-
|
32
|
-
"commit": "
|
94
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
|
95
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
33
96
|
},
|
34
97
|
{
|
35
98
|
"author": "beachball",
|
36
99
|
"package": "@fluentui/react-popover",
|
37
|
-
"comment": "Bump @fluentui/react-
|
38
|
-
"commit": "
|
100
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
|
101
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
39
102
|
},
|
40
103
|
{
|
41
104
|
"author": "beachball",
|
42
105
|
"package": "@fluentui/react-popover",
|
43
|
-
"comment": "Bump @fluentui/react-
|
44
|
-
"commit": "
|
106
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
107
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
45
108
|
},
|
46
109
|
{
|
47
110
|
"author": "beachball",
|
48
111
|
"package": "@fluentui/react-popover",
|
49
|
-
"comment": "Bump @fluentui/
|
50
|
-
"commit": "
|
112
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
113
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
51
114
|
},
|
52
115
|
{
|
53
116
|
"author": "beachball",
|
54
117
|
"package": "@fluentui/react-popover",
|
55
|
-
"comment": "Bump @fluentui/
|
56
|
-
"commit": "
|
118
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
119
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
57
120
|
},
|
58
121
|
{
|
59
122
|
"author": "beachball",
|
60
123
|
"package": "@fluentui/react-popover",
|
61
|
-
"comment": "Bump @fluentui/
|
62
|
-
"commit": "
|
124
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
125
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"author": "beachball",
|
129
|
+
"package": "@fluentui/react-popover",
|
130
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
131
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"author": "beachball",
|
135
|
+
"package": "@fluentui/react-popover",
|
136
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
137
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"none": [
|
141
|
+
{
|
142
|
+
"author": "lingfangao@hotmail.com",
|
143
|
+
"package": "@fluentui/react-popover",
|
144
|
+
"commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
|
145
|
+
"comment": "Migrate package to use solution tsconfigs"
|
63
146
|
}
|
64
147
|
]
|
65
148
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,25 +1,44 @@
|
|
1
1
|
# Change Log - @fluentui/react-popover
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 30 Nov 2021 04:13:50 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlyb2deb9be1720211130.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlyb2deb9be1720211130.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.
|
9
|
+
Tue, 30 Nov 2021 04:13:50 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-nightlyb2deb9be1720211130.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- update styles to not use CSS shorthands ([PR #20796](https://github.com/microsoft/fluentui/pull/20796) by olfedias@microsoft.com)
|
15
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
16
|
+
- Bump @fluentui/react-portal to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
17
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
18
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
19
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
20
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
21
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
22
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyb2deb9be1720211130.1 ([commit](https://github.com/microsoft/fluentui/commit/941112351e1504869184ee2ec1273f418967a448) by beachball)
|
23
|
+
|
24
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.5)
|
25
|
+
|
26
|
+
Thu, 25 Nov 2021 08:34:15 GMT
|
27
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.4..@fluentui/react-popover_v9.0.0-beta.5)
|
11
28
|
|
12
29
|
### Changes
|
13
30
|
|
14
31
|
- Add transparent outline to arrow for HC ([PR #20541](https://github.com/microsoft/fluentui/pull/20541) by lingfangao@hotmail.com)
|
15
|
-
- Bump @fluentui/react-
|
16
|
-
- Bump @fluentui/react-
|
17
|
-
- Bump @fluentui/react-
|
18
|
-
- Bump @fluentui/react-
|
19
|
-
- Bump @fluentui/react-
|
20
|
-
- Bump @fluentui/
|
21
|
-
- Bump @fluentui/
|
22
|
-
- Bump @fluentui/
|
32
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
33
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
34
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
35
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
36
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
37
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
38
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
39
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
40
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
41
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
23
42
|
|
24
43
|
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.4)
|
25
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
1
|
+
import { shorthands, __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
2
|
import { createArrowStyles } from '@fluentui/react-positioning';
|
3
3
|
export const popoverSurfaceClassName = 'fui-PopoverSurface';
|
4
4
|
export const arrowHeights = {
|
@@ -14,7 +14,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
14
14
|
"root": {
|
15
15
|
"De3pzq": "fxugw4r",
|
16
16
|
"E5pizo": "f1hg901r",
|
17
|
-
"
|
17
|
+
"Bbmb7ep": ["fff7au0", "f1bjk9e1"],
|
18
|
+
"Beyfa6y": ["f1bjk9e1", "fff7au0"],
|
19
|
+
"B7oj6ja": ["fwsfkhu", "f8wkphi"],
|
20
|
+
"Btl43ni": ["f8wkphi", "fwsfkhu"],
|
18
21
|
"B4j52fo": "f5ogflp",
|
19
22
|
"Bekrc4i": ["f1hqa2wf", "finvdd3"],
|
20
23
|
"Bn0qgzm": "f1f09k3d",
|
@@ -92,7 +95,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
92
95
|
"Bwwlvwl": "fm1ycve"
|
93
96
|
}
|
94
97
|
}, {
|
95
|
-
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".
|
98
|
+
"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;}", ".f1smug5u{width:8.485281374238571px;}", ".f11ci07v{height:8.485281374238571px;}", ".ftmg478{width:11.313708498984761px;}", ".f7bsbfx{height:11.313708498984761px;}", ".f1euv43f{position:absolute;}", ".f1uo6wrk{background:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".f1qudtws:before{border-radius:4px;}", ".fxf9f1y:before{position:absolute;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".ffo048g:before{background:inherit;}", ".fkk33zh:before{visibility:visible;}", ".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] .feexxpo:before{border-right-width:1px;}", "[data-popper-placement] .f7s5fvx:before{border-left-width:1px;}", "[data-popper-placement] .f1jq8eg5:before{border-right-style:solid;}", "[data-popper-placement] .f12n7c5j:before{border-left-style:solid;}", "[data-popper-placement] .f1wv7y6t:before{border-right-color:transparent;}", "[data-popper-placement] .fi4qyh6:before{border-left-color:transparent;}", "[data-popper-placement] .fcvru7r:before{border-bottom-width:1px;}", "[data-popper-placement] .f7ybgnc:before{border-bottom-style:solid;}", "[data-popper-placement] .f16xtfle:before{border-bottom-color:transparent;}", "[data-popper-placement^=\"top\"] .fotnskf{bottom:0;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1nq055x{left:0;}", "[data-popper-placement^=\"right\"] .f13ohf3{right:0;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .ftghsr9{top:0;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f1l8vbt4{right:0;}", "[data-popper-placement^=\"left\"] .fsxzh25{left:0;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
|
96
99
|
});
|
97
100
|
/**
|
98
101
|
* Apply styling to the PopoverSurface slots based on the state
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,6BAArD;AACA,SAAS,iBAAT,QAAkC,6BAAlC;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;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w4r",
|
25
25
|
"E5pizo": "f1hg901r",
|
26
|
-
"
|
26
|
+
"Bbmb7ep": ["fff7au0", "f1bjk9e1"],
|
27
|
+
"Beyfa6y": ["f1bjk9e1", "fff7au0"],
|
28
|
+
"B7oj6ja": ["fwsfkhu", "f8wkphi"],
|
29
|
+
"Btl43ni": ["f8wkphi", "fwsfkhu"],
|
27
30
|
"B4j52fo": "f5ogflp",
|
28
31
|
"Bekrc4i": ["f1hqa2wf", "finvdd3"],
|
29
32
|
"Bn0qgzm": "f1f09k3d",
|
@@ -101,7 +104,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
101
104
|
"Bwwlvwl": "fm1ycve"
|
102
105
|
}
|
103
106
|
}, {
|
104
|
-
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".
|
107
|
+
"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;}", ".f1smug5u{width:8.485281374238571px;}", ".f11ci07v{height:8.485281374238571px;}", ".ftmg478{width:11.313708498984761px;}", ".f7bsbfx{height:11.313708498984761px;}", ".f1euv43f{position:absolute;}", ".f1uo6wrk{background:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".f1qudtws:before{border-radius:4px;}", ".fxf9f1y:before{position:absolute;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".ffo048g:before{background:inherit;}", ".fkk33zh:before{visibility:visible;}", ".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] .feexxpo:before{border-right-width:1px;}", "[data-popper-placement] .f7s5fvx:before{border-left-width:1px;}", "[data-popper-placement] .f1jq8eg5:before{border-right-style:solid;}", "[data-popper-placement] .f12n7c5j:before{border-left-style:solid;}", "[data-popper-placement] .f1wv7y6t:before{border-right-color:transparent;}", "[data-popper-placement] .fi4qyh6:before{border-left-color:transparent;}", "[data-popper-placement] .fcvru7r:before{border-bottom-width:1px;}", "[data-popper-placement] .f7ybgnc:before{border-bottom-style:solid;}", "[data-popper-placement] .f16xtfle:before{border-bottom-color:transparent;}", "[data-popper-placement^=\"top\"] .fotnskf{bottom:0;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1nq055x{left:0;}", "[data-popper-placement^=\"right\"] .f13ohf3{right:0;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .ftghsr9{top:0;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f1l8vbt4{right:0;}", "[data-popper-placement^=\"left\"] .fsxzh25{left:0;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
|
105
108
|
});
|
106
109
|
/**
|
107
110
|
* 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;AA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,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-nightlyb2deb9be1720211130.1",
|
4
4
|
"description": "Popover component for Fluent UI",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -23,14 +23,15 @@
|
|
23
23
|
"storybook": "start-storybook",
|
24
24
|
"test": "jest",
|
25
25
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
26
|
-
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-popover/src && yarn docs"
|
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
|
+
"type-check": "tsc -b tsconfig.json"
|
27
28
|
},
|
28
29
|
"devDependencies": {
|
29
|
-
"@fluentui/babel-make-styles": "0.0.0-
|
30
|
+
"@fluentui/babel-make-styles": "0.0.0-nightlyb2deb9be1720211130.1",
|
30
31
|
"@fluentui/eslint-plugin": "*",
|
31
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-
|
32
|
+
"@fluentui/jest-serializer-make-styles": "0.0.0-nightlyb2deb9be1720211130.1",
|
32
33
|
"@fluentui/react-conformance": "*",
|
33
|
-
"@fluentui/react-conformance-make-styles": "0.0.0-
|
34
|
+
"@fluentui/react-conformance-make-styles": "0.0.0-nightlyb2deb9be1720211130.1",
|
34
35
|
"@fluentui/scripts": "^1.0.0",
|
35
36
|
"@types/enzyme": "3.10.3",
|
36
37
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
@@ -44,13 +45,13 @@
|
|
44
45
|
"react-test-renderer": "^16.3.0"
|
45
46
|
},
|
46
47
|
"dependencies": {
|
47
|
-
"@fluentui/react-context-selector": "0.0.0-
|
48
|
-
"@fluentui/react-make-styles": "0.0.0-
|
49
|
-
"@fluentui/react-portal": "0.0.0-
|
50
|
-
"@fluentui/react-positioning": "0.0.0-
|
51
|
-
"@fluentui/react-shared-contexts": "0.0.0-
|
52
|
-
"@fluentui/react-tabster": "0.0.0-
|
53
|
-
"@fluentui/react-utilities": "0.0.0-
|
48
|
+
"@fluentui/react-context-selector": "0.0.0-nightlyb2deb9be1720211130.0",
|
49
|
+
"@fluentui/react-make-styles": "0.0.0-nightlyb2deb9be1720211130.1",
|
50
|
+
"@fluentui/react-portal": "0.0.0-nightlyb2deb9be1720211130.1",
|
51
|
+
"@fluentui/react-positioning": "0.0.0-nightlyb2deb9be1720211130.1",
|
52
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightlyb2deb9be1720211130.1",
|
53
|
+
"@fluentui/react-tabster": "0.0.0-nightlyb2deb9be1720211130.1",
|
54
|
+
"@fluentui/react-utilities": "0.0.0-nightlyb2deb9be1720211130.0",
|
54
55
|
"tslib": "^2.1.0"
|
55
56
|
},
|
56
57
|
"peerDependencies": {
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
|
2
|
-
import makeStylesTests from '@fluentui/react-conformance-make-styles';
|
3
|
-
export function isConformant(testInfo) {
|
4
|
-
const defaultOptions = {
|
5
|
-
asPropHandlesRef: true,
|
6
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
7
|
-
// TODO // https://github.com/microsoft/fluentui/issues/19522
|
8
|
-
skipAsPropTests: true,
|
9
|
-
extraTests: makeStylesTests
|
10
|
-
};
|
11
|
-
baseIsConformant(defaultOptions, testInfo);
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE;AAL+C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { PopoverContextValue } from '../popoverContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Popover context values to set for testing
|
6
|
-
*/
|
7
|
-
export declare const mockPopoverContext: (options?: Partial<PopoverContextValue>) => void;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { usePopoverContext } from '../popoverContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Popover context values to set for testing
|
6
|
-
*/
|
7
|
-
|
8
|
-
export const mockPopoverContext = (options = {}) => {
|
9
|
-
const mockContext = {
|
10
|
-
open: false,
|
11
|
-
setOpen: () => null,
|
12
|
-
triggerRef: {
|
13
|
-
current: null
|
14
|
-
},
|
15
|
-
contentRef: {
|
16
|
-
current: null
|
17
|
-
},
|
18
|
-
arrowRef: {
|
19
|
-
current: null
|
20
|
-
},
|
21
|
-
openOnContext: false,
|
22
|
-
openOnHover: false,
|
23
|
-
size: 'medium',
|
24
|
-
...options
|
25
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
26
|
-
|
27
|
-
usePopoverContext.mockImplementation(selector => {
|
28
|
-
return selector(mockContext);
|
29
|
-
});
|
30
|
-
};
|
31
|
-
//# sourceMappingURL=mockUsePopoverContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUsePopoverContext.ts"],"names":[],"mappings":"AAAA,SAAS,iBAAT,QAAkC,mBAAlC;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAwC,EAAzC,KAA+C;AAC/E,QAAM,WAAW,GAAwB;AACvC,IAAA,IAAI,EAAE,KADiC;AAEvC,IAAA,OAAO,EAAE,MAAM,IAFwB;AAGvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAH2B;AAIvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAJ2B;AAKvC,IAAA,QAAQ,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAL6B;AAMvC,IAAA,aAAa,EAAE,KANwB;AAOvC,IAAA,WAAW,EAAE,KAP0B;AAQvC,IAAA,IAAI,EAAE,QARiC;AASvC,OAAG;AAToC,GAAzC,CAD+E,CAY/E;;AACC,EAAA,iBAA+B,CAAC,kBAAhC,CAAoD,QAAD,IAAoD;AACtG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM","sourceRoot":""}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.isConformant = void 0;
|
7
|
-
|
8
|
-
const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
|
9
|
-
|
10
|
-
const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
|
11
|
-
|
12
|
-
function isConformant(testInfo) {
|
13
|
-
const defaultOptions = {
|
14
|
-
asPropHandlesRef: true,
|
15
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
16
|
-
// TODO // https://github.com/microsoft/fluentui/issues/19522
|
17
|
-
skipAsPropTests: true,
|
18
|
-
extraTests: react_conformance_make_styles_1.default
|
19
|
-
};
|
20
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
21
|
-
}
|
22
|
-
|
23
|
-
exports.isConformant = isConformant;
|
24
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAL+C,GAA7D;AAQA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAZD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { PopoverContextValue } from '../popoverContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Popover context values to set for testing
|
6
|
-
*/
|
7
|
-
export declare const mockPopoverContext: (options?: Partial<PopoverContextValue>) => void;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.mockPopoverContext = void 0;
|
7
|
-
|
8
|
-
const popoverContext_1 = /*#__PURE__*/require("../popoverContext");
|
9
|
-
/**
|
10
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
11
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
12
|
-
* @param options Popover context values to set for testing
|
13
|
-
*/
|
14
|
-
|
15
|
-
|
16
|
-
const mockPopoverContext = (options = {}) => {
|
17
|
-
const mockContext = {
|
18
|
-
open: false,
|
19
|
-
setOpen: () => null,
|
20
|
-
triggerRef: {
|
21
|
-
current: null
|
22
|
-
},
|
23
|
-
contentRef: {
|
24
|
-
current: null
|
25
|
-
},
|
26
|
-
arrowRef: {
|
27
|
-
current: null
|
28
|
-
},
|
29
|
-
openOnContext: false,
|
30
|
-
openOnHover: false,
|
31
|
-
size: 'medium',
|
32
|
-
...options
|
33
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
34
|
-
|
35
|
-
popoverContext_1.usePopoverContext.mockImplementation(selector => {
|
36
|
-
return selector(mockContext);
|
37
|
-
});
|
38
|
-
};
|
39
|
-
|
40
|
-
exports.mockPopoverContext = mockPopoverContext;
|
41
|
-
//# sourceMappingURL=mockUsePopoverContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUsePopoverContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,gBAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAwC,EAAzC,KAA+C;AAC/E,QAAM,WAAW,GAAwB;AACvC,IAAA,IAAI,EAAE,KADiC;AAEvC,IAAA,OAAO,EAAE,MAAM,IAFwB;AAGvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAH2B;AAIvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAJ2B;AAKvC,IAAA,QAAQ,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAL6B;AAMvC,IAAA,aAAa,EAAE,KANwB;AAOvC,IAAA,WAAW,EAAE,KAP0B;AAQvC,IAAA,IAAI,EAAE,QARiC;AASvC,OAAG;AAToC,GAAzC,CAD+E,CAY/E;;AACC,EAAA,gBAAA,CAAA,iBAAA,CAAgC,kBAAhC,CAAoD,QAAD,IAAoD;AACtG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
|