@fluentui/react-popover 0.0.0-nightlya372ad979820211103.1 → 0.0.0-nightlya54302c0b220211124.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/CHANGELOG.json +113 -32
  2. package/CHANGELOG.md +34 -15
  3. package/dist/react-popover.d.ts +2 -0
  4. package/lib/common/isConformant.js +1 -1
  5. package/lib/common/isConformant.js.map +1 -1
  6. package/lib/common/mockUsePopoverContext.js +7 -14
  7. package/lib/common/mockUsePopoverContext.js.map +1 -1
  8. package/lib/components/Popover/Popover.js +2 -2
  9. package/lib/components/Popover/Popover.js.map +1 -1
  10. package/lib/components/Popover/renderPopover.js +27 -25
  11. package/lib/components/Popover/renderPopover.js.map +1 -1
  12. package/lib/components/Popover/usePopover.js +39 -51
  13. package/lib/components/Popover/usePopover.js.map +1 -1
  14. package/lib/components/PopoverSurface/PopoverSurface.js +2 -2
  15. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  16. package/lib/components/PopoverSurface/renderPopoverSurface.js +6 -7
  17. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  18. package/lib/components/PopoverSurface/usePopoverSurface.js +41 -55
  19. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  20. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -0
  21. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +16 -8
  22. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  23. package/lib/components/PopoverTrigger/PopoverTrigger.js +2 -2
  24. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  25. package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  26. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  27. package/lib/components/PopoverTrigger/usePopoverTrigger.js +25 -33
  28. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  29. package/lib/popoverContext.js +3 -7
  30. package/lib/popoverContext.js.map +1 -1
  31. package/lib-commonjs/Popover.js +1 -1
  32. package/lib-commonjs/PopoverSurface.js +1 -1
  33. package/lib-commonjs/PopoverTrigger.js +1 -1
  34. package/lib-commonjs/common/isConformant.js +3 -3
  35. package/lib-commonjs/common/isConformant.js.map +1 -1
  36. package/lib-commonjs/common/mockUsePopoverContext.js +8 -16
  37. package/lib-commonjs/common/mockUsePopoverContext.js.map +1 -1
  38. package/lib-commonjs/components/Popover/Popover.js +4 -4
  39. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  40. package/lib-commonjs/components/Popover/index.js +1 -1
  41. package/lib-commonjs/components/Popover/renderPopover.js +29 -27
  42. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  43. package/lib-commonjs/components/Popover/usePopover.js +45 -58
  44. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  45. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +6 -6
  46. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  47. package/lib-commonjs/components/PopoverSurface/index.js +1 -1
  48. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +10 -12
  49. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  50. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +44 -59
  51. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  52. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -0
  53. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +18 -9
  54. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  55. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +4 -4
  56. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  57. package/lib-commonjs/components/PopoverTrigger/index.js +1 -1
  58. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  59. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  60. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +29 -38
  61. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  62. package/lib-commonjs/index.js +1 -1
  63. package/lib-commonjs/popoverContext.js +3 -7
  64. package/lib-commonjs/popoverContext.js.map +1 -1
  65. package/package.json +11 -12
@@ -3,10 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePopoverSurfaceStyles = exports.arrowHeights = void 0;
6
+ exports.usePopoverSurfaceStyles = exports.arrowHeights = exports.popoverSurfaceClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
9
 
10
+ const react_positioning_1 = /*#__PURE__*/require("@fluentui/react-positioning");
11
+
12
+ exports.popoverSurfaceClassName = 'fui-PopoverSurface';
10
13
  exports.arrowHeights = {
11
14
  small: 6,
12
15
  medium: 8,
@@ -16,10 +19,10 @@ exports.arrowHeights = {
16
19
  * Styles for the root slot
17
20
  */
18
21
 
19
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
22
+ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
20
23
  "root": {
21
24
  "De3pzq": "fxugw4r",
22
- "E5pizo": ["f1hg901r", "f136t921"],
25
+ "E5pizo": "f1hg901r",
23
26
  "Dimara": "ff3glw6",
24
27
  "B4j52fo": "f5ogflp",
25
28
  "Bekrc4i": ["f1hqa2wf", "finvdd3"],
@@ -81,7 +84,13 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
81
84
  "B4zgs9e": "ffo048g",
82
85
  "Bex5imi": "fkk33zh",
83
86
  "px8gyy": ["f5bg3dr", "f1rfdd74"],
84
- "h6z6rw": ["fzd2j21", "f2549he"],
87
+ "h6z6rw": "fzd2j21",
88
+ "Iykf4b": ["feexxpo", "f7s5fvx"],
89
+ "F42hee": ["f1jq8eg5", "f12n7c5j"],
90
+ "Blxsnla": ["f1wv7y6t", "fi4qyh6"],
91
+ "t2scew": "fcvru7r",
92
+ "Emsed9": "f7ybgnc",
93
+ "E11wbp": "f16xtfle",
85
94
  "hl6cv3": "fotnskf",
86
95
  "Bh2vraf": "f1n8855c",
87
96
  "yayu3t": ["f1nq055x", "f13ohf3"],
@@ -92,16 +101,16 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
92
101
  "Bwwlvwl": "fm1ycve"
93
102
  }
94
103
  }, {
95
- "d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f136t921{box-shadow:var(--shadow-16);}", ".ff3glw6{border-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);}", ".f2549he: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\"] .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;}"]
104
+ "d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".ff3glw6{border-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
105
  });
97
106
  /**
98
107
  * Apply styling to the PopoverSurface slots based on the state
99
108
  */
100
109
 
101
110
 
102
- var usePopoverSurfaceStyles = function (state) {
103
- var styles = useStyles();
104
- state.root.className = react_make_styles_1.mergeClasses(styles.root, state.size === 'small' && styles.smallPadding, state.size === 'medium' && styles.mediumPadding, state.size === 'large' && styles.largePadding, state.appearance === 'inverted' && styles.inverted, state.appearance === 'brand' && styles.brand, state.root.className);
111
+ const usePopoverSurfaceStyles = state => {
112
+ const styles = useStyles();
113
+ state.root.className = react_make_styles_1.mergeClasses(exports.popoverSurfaceClassName, styles.root, state.size === 'small' && styles.smallPadding, state.size === 'medium' && styles.mediumPadding, state.size === 'large' && styles.largePadding, state.appearance === 'inverted' && styles.inverted, state.appearance === 'brand' && styles.brand, state.root.className);
105
114
  state.arrowClassName = react_make_styles_1.mergeClasses(styles.arrow, state.size === 'small' ? styles.smallArrow : styles.mediumLargeArrow);
106
115
  return state;
107
116
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAIa,OAAA,CAAA,YAAA,GAA4C;AACvD,EAAA,KAAK,EAAE,CADgD;AAEvD,EAAA,MAAM,EAAE,CAF+C;AAGvD,EAAA,KAAK,EAAE;AAHgD,CAA5C;AAMb;;AAEG;;AACH,IAAM,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,EAAlB;AAqEA;;AAEG;;;AACI,IAAM,uBAAuB,GAAG,UAAC,KAAD,EAA2B;AAChE,MAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,m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6
  exports.PopoverTrigger = void 0;
7
7
 
8
- var usePopoverTrigger_1 = /*#__PURE__*/require("./usePopoverTrigger");
8
+ const usePopoverTrigger_1 = /*#__PURE__*/require("./usePopoverTrigger");
9
9
 
10
- var renderPopoverTrigger_1 = /*#__PURE__*/require("./renderPopoverTrigger");
10
+ const renderPopoverTrigger_1 = /*#__PURE__*/require("./renderPopoverTrigger");
11
11
  /**
12
12
  * Wraps a trigger element as an only child and adds the necessary event handling to open a popover.
13
13
  */
14
14
 
15
15
 
16
- var PopoverTrigger = function (props) {
17
- var state = usePopoverTrigger_1.usePopoverTrigger(props);
16
+ const PopoverTrigger = props => {
17
+ const state = usePopoverTrigger_1.usePopoverTrigger(props);
18
18
  return renderPopoverTrigger_1.renderPopoverTrigger(state);
19
19
  };
20
20
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverTrigger/PopoverTrigger.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AACA,IAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,cAAc,GAAkC,UAAA,KAAA,EAAK;AAChE,MAAM,KAAK,GAAG,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAd;AAEA,SAAO,sBAAA,CAAA,oBAAA,CAAqB,KAArB,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd;AAMb,OAAA,CAAA,cAAA,CAAe,WAAf,GAA6B,gBAA7B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/PopoverTrigger/PopoverTrigger.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,cAAc,GAAkC,KAAK,IAAG;AACnE,QAAM,KAAK,GAAG,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAd;AAEA,SAAO,sBAAA,CAAA,oBAAA,CAAqB,KAArB,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd;AAMb,OAAA,CAAA,cAAA,CAAe,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./PopoverTrigger"), exports);
10
10
 
@@ -8,7 +8,7 @@ exports.renderPopoverTrigger = void 0;
8
8
  * Render the final JSX of PopoverTrigger
9
9
  */
10
10
 
11
- var renderPopoverTrigger = function (state) {
11
+ const renderPopoverTrigger = state => {
12
12
  return state.children;
13
13
  };
14
14
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverTrigger/renderPopoverTrigger.tsx"],"names":[],"mappings":";;;;;;AAEA;;AAEG;;AACI,IAAM,oBAAoB,GAAG,UAAC,KAAD,EAA2B;AAC7D,SAAO,KAAK,CAAC,QAAb;AACD,CAFM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/PopoverTrigger/renderPopoverTrigger.tsx"],"names":[],"mappings":";;;;;;AAEA;;AAEG;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAA4C;AAC9E,SAAO,KAAK,CAAC,QAAb;AACD,CAFM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
@@ -5,15 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.usePopoverTrigger = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
11
 
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
12
+ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
13
13
 
14
- var react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
15
-
16
- var popoverContext_1 = /*#__PURE__*/require("../../popoverContext");
14
+ const popoverContext_1 = /*#__PURE__*/require("../../popoverContext");
17
15
  /**
18
16
  * Create the state required to render PopoverTrigger.
19
17
  *
@@ -24,24 +22,17 @@ var popoverContext_1 = /*#__PURE__*/require("../../popoverContext");
24
22
  */
25
23
 
26
24
 
27
- var usePopoverTrigger = function (props) {
28
- var setOpen = popoverContext_1.usePopoverContext(function (context) {
29
- return context.setOpen;
30
- });
31
- var open = popoverContext_1.usePopoverContext(function (context) {
32
- return context.open;
33
- });
34
- var triggerRef = popoverContext_1.usePopoverContext(function (context) {
35
- return context.triggerRef;
36
- });
37
- var openOnHover = popoverContext_1.usePopoverContext(function (context) {
38
- return context.openOnHover;
39
- });
40
- var openOnContext = popoverContext_1.usePopoverContext(function (context) {
41
- return context.openOnContext;
42
- });
43
- var triggerAttributes = react_tabster_1.useModalAttributes().triggerAttributes;
44
- var onContextMenu = react_utilities_1.useEventCallback(function (e) {
25
+ const usePopoverTrigger = props => {
26
+ const setOpen = popoverContext_1.usePopoverContext(context => context.setOpen);
27
+ const open = popoverContext_1.usePopoverContext(context => context.open);
28
+ const triggerRef = popoverContext_1.usePopoverContext(context => context.triggerRef);
29
+ const openOnHover = popoverContext_1.usePopoverContext(context => context.openOnHover);
30
+ const openOnContext = popoverContext_1.usePopoverContext(context => context.openOnContext);
31
+ const trapFocus = popoverContext_1.usePopoverContext(context => context.trapFocus);
32
+ const {
33
+ triggerAttributes
34
+ } = react_tabster_1.useModalAttributes();
35
+ const onContextMenu = react_utilities_1.useEventCallback(e => {
45
36
  var _a, _b;
46
37
 
47
38
  if (openOnContext) {
@@ -51,7 +42,7 @@ var usePopoverTrigger = function (props) {
51
42
 
52
43
  (_b = (_a = child.props) === null || _a === void 0 ? void 0 : _a.onContextMenu) === null || _b === void 0 ? void 0 : _b.call(_a, e);
53
44
  });
54
- var onClick = react_utilities_1.useEventCallback(function (e) {
45
+ const onClick = react_utilities_1.useEventCallback(e => {
55
46
  var _a, _b;
56
47
 
57
48
  if (!openOnContext) {
@@ -60,7 +51,7 @@ var usePopoverTrigger = function (props) {
60
51
 
61
52
  (_b = (_a = child.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
62
53
  });
63
- var onKeyDown = react_utilities_1.useEventCallback(function (e) {
54
+ const onKeyDown = react_utilities_1.useEventCallback(e => {
64
55
  var _a, _b, _c;
65
56
 
66
57
  if (react_utilities_1.shouldPreventDefaultOnKeyDown(e) && (e.key === ' ' || e.key === 'Enter')) {
@@ -74,7 +65,7 @@ var usePopoverTrigger = function (props) {
74
65
 
75
66
  (_c = (_b = child.props) === null || _b === void 0 ? void 0 : _b.onKeyDown) === null || _c === void 0 ? void 0 : _c.call(_b, e);
76
67
  });
77
- var onMouseEnter = react_utilities_1.useEventCallback(function (e) {
68
+ const onMouseEnter = react_utilities_1.useEventCallback(e => {
78
69
  var _a, _b;
79
70
 
80
71
  if (openOnHover) {
@@ -83,7 +74,7 @@ var usePopoverTrigger = function (props) {
83
74
 
84
75
  (_b = (_a = child.props) === null || _a === void 0 ? void 0 : _a.onMouseEnter) === null || _b === void 0 ? void 0 : _b.call(_a, e);
85
76
  });
86
- var onMouseLeave = react_utilities_1.useEventCallback(function (e) {
77
+ const onMouseLeave = react_utilities_1.useEventCallback(e => {
87
78
  var _a, _b;
88
79
 
89
80
  if (openOnHover) {
@@ -92,18 +83,18 @@ var usePopoverTrigger = function (props) {
92
83
 
93
84
  (_b = (_a = child.props) === null || _a === void 0 ? void 0 : _a.onMouseLeave) === null || _b === void 0 ? void 0 : _b.call(_a, e);
94
85
  });
95
- var child = React.Children.only(props.children);
86
+ const child = React.Children.only(props.children);
96
87
  return {
97
- children: React.cloneElement(child, tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, triggerAttributes), {
98
- 'aria-haspopup': 'true'
99
- }), child.props), {
100
- onClick: onClick,
101
- onMouseEnter: onMouseEnter,
102
- onKeyDown: onKeyDown,
103
- onMouseLeave: onMouseLeave,
104
- onContextMenu: onContextMenu,
88
+ children: React.cloneElement(child, { ...triggerAttributes,
89
+ 'aria-haspopup': trapFocus ? 'dialog' : 'true',
90
+ ...child.props,
91
+ onClick,
92
+ onMouseEnter,
93
+ onKeyDown,
94
+ onMouseLeave,
95
+ onContextMenu,
105
96
  ref: react_utilities_1.useMergedRefs(child.ref, triggerRef)
106
- }))
97
+ })
107
98
  };
108
99
  };
109
100
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverTrigger/usePopoverTrigger.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,IAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,IAAA,gBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;AAGA;;;;;;;AAOG;;;AACI,IAAM,iBAAiB,GAAG,UAAC,KAAD,EAA2B;AAC1D,MAAM,OAAO,GAAG,gBAAA,CAAA,iBAAA,CAAkB,UAAA,OAAA,EAAO;AAAI,WAAA,OAAO,CAAP,OAAA;AAAe,GAA5C,CAAhB;AACA,MAAM,IAAI,GAAG,gBAAA,CAAA,iBAAA,CAAkB,UAAA,OAAA,EAAO;AAAI,WAAA,OAAO,CAAP,IAAA;AAAY,GAAzC,CAAb;AACA,MAAM,UAAU,GAAG,gBAAA,CAAA,iBAAA,CAAkB,UAAA,OAAA,EAAO;AAAI,WAAA,OAAO,CAAP,UAAA;AAAkB,GAA/C,CAAnB;AACA,MAAM,WAAW,GAAG,gBAAA,CAAA,iBAA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E,CAAC,GAAxF,EAA6F,UAA7F;AAT6B,KAA1B;AADL,GAAP;AAaD,CAlEM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Popover"), exports);
10
10
 
@@ -5,13 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.usePopoverContext = exports.PopoverContext = void 0;
7
7
 
8
- var react_context_selector_1 = /*#__PURE__*/require("@fluentui/react-context-selector");
8
+ const react_context_selector_1 = /*#__PURE__*/require("@fluentui/react-context-selector");
9
9
 
10
10
  exports.PopoverContext = /*#__PURE__*/react_context_selector_1.createContext({
11
11
  open: false,
12
- setOpen: function () {
13
- return null;
14
- },
12
+ setOpen: () => null,
15
13
  triggerRef: {
16
14
  current: null
17
15
  },
@@ -27,9 +25,7 @@ exports.PopoverContext = /*#__PURE__*/react_context_selector_1.createContext({
27
25
  trapFocus: false
28
26
  });
29
27
 
30
- var usePopoverContext = function (selector) {
31
- return react_context_selector_1.useContextSelector(exports.PopoverContext, selector);
32
- };
28
+ const usePopoverContext = selector => react_context_selector_1.useContextSelector(exports.PopoverContext, selector);
33
29
 
34
30
  exports.usePopoverContext = usePopoverContext;
35
31
  //# sourceMappingURL=popoverContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/popoverContext.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AAIa,OAAA,CAAA,cAAA,gBAA+C,wBAAA,CAAA,aAAA,CAAmC;AAC7F,EAAA,IAAI,EAAE,KADuF;AAE7F,EAAA,OAAO,EAAE,YAAA;AAAM,WAAA,IAAA;AAAI,GAF0E;AAG7F,EAAA,UAAU,EAA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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-popover",
3
- "version": "0.0.0-nightlya372ad979820211103.1",
3
+ "version": "0.0.0-nightlya54302c0b220211124.1",
4
4
  "description": "Popover component for Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -26,11 +26,11 @@
26
26
  "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-popover/src && yarn docs"
27
27
  },
28
28
  "devDependencies": {
29
- "@fluentui/babel-make-styles": "0.0.0-nightlya372ad979820211103.1",
29
+ "@fluentui/babel-make-styles": "0.0.0-nightlya54302c0b220211124.1",
30
30
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlya372ad979820211103.1",
31
+ "@fluentui/jest-serializer-make-styles": "0.0.0-nightlya54302c0b220211124.1",
32
32
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightlya372ad979820211103.1",
33
+ "@fluentui/react-conformance-make-styles": "0.0.0-nightlya54302c0b220211124.1",
34
34
  "@fluentui/scripts": "^1.0.0",
35
35
  "@types/enzyme": "3.10.3",
36
36
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -44,13 +44,13 @@
44
44
  "react-test-renderer": "^16.3.0"
45
45
  },
46
46
  "dependencies": {
47
- "@fluentui/react-context-selector": "0.0.0-nightlya372ad979820211103.1",
48
- "@fluentui/react-make-styles": "0.0.0-nightlya372ad979820211103.1",
49
- "@fluentui/react-portal": "0.0.0-nightlya372ad979820211103.1",
50
- "@fluentui/react-positioning": "0.0.0-nightlya372ad979820211103.1",
51
- "@fluentui/react-shared-contexts": "0.0.0-nightlya372ad979820211103.1",
52
- "@fluentui/react-tabster": "0.0.0-nightlya372ad979820211103.1",
53
- "@fluentui/react-utilities": "0.0.0-nightlya372ad979820211103.1",
47
+ "@fluentui/react-context-selector": "0.0.0-nightlya54302c0b220211124.0",
48
+ "@fluentui/react-make-styles": "0.0.0-nightlya54302c0b220211124.1",
49
+ "@fluentui/react-portal": "0.0.0-nightlya54302c0b220211124.1",
50
+ "@fluentui/react-positioning": "0.0.0-nightlya54302c0b220211124.1",
51
+ "@fluentui/react-shared-contexts": "0.0.0-nightlya54302c0b220211124.1",
52
+ "@fluentui/react-tabster": "0.0.0-nightlya54302c0b220211124.1",
53
+ "@fluentui/react-utilities": "0.0.0-nightlya54302c0b220211124.0",
54
54
  "tslib": "^2.1.0"
55
55
  },
56
56
  "peerDependencies": {
@@ -60,7 +60,6 @@
60
60
  "react-dom": ">=16.8.0 <18.0.0"
61
61
  },
62
62
  "beachball": {
63
- "tag": "beta",
64
63
  "disallowedChangeTypes": [
65
64
  "major",
66
65
  "minor",