@fluentui/react-popover 0.0.0-nightly8faa94d11420211118.1 → 0.0.0-nightly946f57cad420220203.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/CHANGELOG.json +169 -24
  2. package/CHANGELOG.md +40 -15
  3. package/dist/react-popover.d.ts +14 -16
  4. package/lib/components/Popover/Popover.js +4 -4
  5. package/lib/components/Popover/Popover.js.map +1 -1
  6. package/lib/components/Popover/renderPopover.d.ts +1 -1
  7. package/lib/components/Popover/renderPopover.js +1 -1
  8. package/lib/components/Popover/renderPopover.js.map +1 -1
  9. package/lib/components/Popover/usePopover.d.ts +2 -2
  10. package/lib/components/Popover/usePopover.js +4 -3
  11. package/lib/components/Popover/usePopover.js.map +1 -1
  12. package/lib/components/PopoverSurface/PopoverSurface.js +6 -6
  13. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  14. package/lib/components/PopoverSurface/PopoverSurface.types.d.ts +2 -2
  15. package/lib/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  16. package/lib/components/PopoverSurface/renderPopoverSurface.js +4 -4
  17. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  18. package/lib/components/PopoverSurface/usePopoverSurface.d.ts +4 -5
  19. package/lib/components/PopoverSurface/usePopoverSurface.js +16 -16
  20. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  21. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  22. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +27 -23
  23. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  24. package/lib/components/PopoverTrigger/PopoverTrigger.js +4 -4
  25. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  26. package/lib/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  27. package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  28. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  29. package/lib/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  30. package/lib/components/PopoverTrigger/usePopoverTrigger.js +9 -9
  31. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  32. package/lib/popoverContext.d.ts +1 -1
  33. package/lib/popoverContext.js +1 -1
  34. package/lib/popoverContext.js.map +1 -1
  35. package/lib-commonjs/components/Popover/Popover.js +2 -2
  36. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  37. package/lib-commonjs/components/Popover/renderPopover.d.ts +1 -1
  38. package/lib-commonjs/components/Popover/renderPopover.js +3 -3
  39. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  40. package/lib-commonjs/components/Popover/usePopover.d.ts +2 -2
  41. package/lib-commonjs/components/Popover/usePopover.js +6 -5
  42. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  43. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +3 -3
  44. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  45. package/lib-commonjs/components/PopoverSurface/PopoverSurface.types.d.ts +2 -2
  46. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  47. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +6 -7
  48. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  49. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.d.ts +4 -5
  50. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +18 -18
  51. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  52. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  53. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +32 -27
  54. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  55. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +2 -2
  56. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  57. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  58. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +3 -3
  59. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  60. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  61. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +10 -10
  62. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  63. package/lib-commonjs/popoverContext.d.ts +1 -1
  64. package/lib-commonjs/popoverContext.js +3 -3
  65. package/lib-commonjs/popoverContext.js.map +1 -1
  66. package/package.json +13 -14
  67. package/lib/common/isConformant.d.ts +0 -4
  68. package/lib/common/isConformant.js +0 -13
  69. package/lib/common/isConformant.js.map +0 -1
  70. package/lib/common/mockUsePopoverContext.d.ts +0 -7
  71. package/lib/common/mockUsePopoverContext.js +0 -31
  72. package/lib/common/mockUsePopoverContext.js.map +0 -1
  73. package/lib-commonjs/common/isConformant.d.ts +0 -4
  74. package/lib-commonjs/common/isConformant.js +0 -24
  75. package/lib-commonjs/common/isConformant.js.map +0 -1
  76. package/lib-commonjs/common/mockUsePopoverContext.d.ts +0 -7
  77. package/lib-commonjs/common/mockUsePopoverContext.js +0 -41
  78. package/lib-commonjs/common/mockUsePopoverContext.js.map +0 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePopoverSurface = exports.popoverSurfaceSlots = void 0;
6
+ exports.usePopoverSurface_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -12,29 +12,28 @@ 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
  *
20
- * The returned state can be modified with hooks such as usePopoverSurfaceStyles,
21
- * before being passed to renderPopoverSurface.
18
+ * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,
19
+ * before being passed to renderPopoverSurface_unstable.
22
20
  *
23
21
  * @param props - props from this instance of PopoverSurface
24
22
  * @param ref - reference to root HTMLDivElement of PopoverSurface
25
23
  */
26
24
 
27
- const usePopoverSurface = (props, ref) => {
28
- const contentRef = popoverContext_1.usePopoverContext(context => context.contentRef);
29
- const open = popoverContext_1.usePopoverContext(context => context.open);
30
- const openOnHover = popoverContext_1.usePopoverContext(context => context.openOnHover);
31
- const setOpen = popoverContext_1.usePopoverContext(context => context.setOpen);
32
- const mountNode = popoverContext_1.usePopoverContext(context => context.mountNode);
33
- const arrowRef = popoverContext_1.usePopoverContext(context => context.arrowRef);
34
- const size = popoverContext_1.usePopoverContext(context => context.size);
35
- const noArrow = popoverContext_1.usePopoverContext(context => context.noArrow);
36
- const appearance = popoverContext_1.usePopoverContext(context => context.appearance);
37
- const trapFocus = popoverContext_1.usePopoverContext(context => context.trapFocus);
25
+
26
+ const usePopoverSurface_unstable = (props, ref) => {
27
+ const contentRef = popoverContext_1.usePopoverContext_unstable(context => context.contentRef);
28
+ const open = popoverContext_1.usePopoverContext_unstable(context => context.open);
29
+ const openOnHover = popoverContext_1.usePopoverContext_unstable(context => context.openOnHover);
30
+ const setOpen = popoverContext_1.usePopoverContext_unstable(context => context.setOpen);
31
+ const mountNode = popoverContext_1.usePopoverContext_unstable(context => context.mountNode);
32
+ const arrowRef = popoverContext_1.usePopoverContext_unstable(context => context.arrowRef);
33
+ const size = popoverContext_1.usePopoverContext_unstable(context => context.size);
34
+ const noArrow = popoverContext_1.usePopoverContext_unstable(context => context.noArrow);
35
+ const appearance = popoverContext_1.usePopoverContext_unstable(context => context.appearance);
36
+ const trapFocus = popoverContext_1.usePopoverContext_unstable(context => context.trapFocus);
38
37
  const {
39
38
  modalAttributes
40
39
  } = react_tabster_1.useModalAttributes({
@@ -52,7 +51,8 @@ const usePopoverSurface = (props, ref) => {
52
51
  },
53
52
  root: react_utilities_1.getNativeElementProps('div', {
54
53
  ref: react_utilities_1.useMergedRefs(ref, contentRef),
55
- role: 'dialog',
54
+ role: trapFocus ? 'dialog' : 'complementary',
55
+ 'aria-modal': trapFocus ? true : undefined,
56
56
  ...modalAttributes,
57
57
  ...props
58
58
  })
@@ -103,5 +103,5 @@ const usePopoverSurface = (props, ref) => {
103
103
  return state;
104
104
  };
105
105
 
106
- exports.usePopoverSurface = usePopoverSurface;
106
+ exports.usePopoverSurface_unstable = usePopoverSurface_unstable;
107
107
  //# sourceMappingURL=usePopoverSurface.js.map
@@ -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,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AAGa,OAAA,CAAA,mBAAA,GAAwD,CAAC,MAAD,CAAxD;AAEb;;;;;;;;AAQG;;AACI,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAA6B,GAA7B,KAAoF;AACnH,QAAM,UAAU,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,UAArC,CAAnB;AACA,QAAM,IAAI,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,IAArC,CAAb;AACA,QAAM,WAAW,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,WAArC,CAApB;AACA,QAAM,OAAO,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,OAArC,CAAhB;AACA,QAAM,SAAS,GAAG,gB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,CA3EM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
@@ -5,4 +5,4 @@ export declare const arrowHeights: Record<PopoverSize, number>;
5
5
  /**
6
6
  * Apply styling to the PopoverSurface slots based on the state
7
7
  */
8
- export declare const usePopoverSurfaceStyles: (state: PopoverSurfaceState) => PopoverSurfaceState;
8
+ export declare const usePopoverSurfaceStyles_unstable: (state: PopoverSurfaceState) => PopoverSurfaceState;
@@ -3,12 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePopoverSurfaceStyles = exports.arrowHeights = exports.popoverSurfaceClassName = void 0;
6
+ exports.usePopoverSurfaceStyles_unstable = exports.arrowHeights = exports.popoverSurfaceClassName = void 0;
7
7
 
8
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
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,
@@ -19,11 +21,14 @@ exports.arrowHeights = {
19
21
  * Styles for the root slot
20
22
  */
21
23
 
22
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
24
+ const useStyles = /*#__PURE__*/react_1.__styles({
23
25
  "root": {
24
26
  "De3pzq": "fxugw4r",
25
27
  "E5pizo": "f1hg901r",
26
- "Dimara": "ff3glw6",
28
+ "Bbmb7ep": ["fff7au0", "f1bjk9e1"],
29
+ "Beyfa6y": ["f1bjk9e1", "fff7au0"],
30
+ "B7oj6ja": ["fwsfkhu", "f8wkphi"],
31
+ "Btl43ni": ["f8wkphi", "fwsfkhu"],
27
32
  "B4j52fo": "f5ogflp",
28
33
  "Bekrc4i": ["f1hqa2wf", "finvdd3"],
29
34
  "Bn0qgzm": "f1f09k3d",
@@ -64,56 +69,56 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
64
69
  "uwmqm3": ["fekwl8i", "fat0sn4"]
65
70
  },
66
71
  "smallArrow": {
67
- "a9b677": "f1smug5u",
68
- "Bqenvij": "f11ci07v"
72
+ "a9b677": "f1ekdpwm",
73
+ "Bqenvij": "f83vc9z"
69
74
  },
70
75
  "mediumLargeArrow": {
71
- "a9b677": "ftmg478",
72
- "Bqenvij": "f7bsbfx"
76
+ "a9b677": "f1kmc0fn",
77
+ "Bqenvij": "fb6lvc5"
73
78
  },
74
79
  "arrow": {
75
80
  "qhf8xq": "f1euv43f",
76
- "ayd6f0": "f1uo6wrk",
81
+ "De3pzq": "f1u2r49w",
77
82
  "Bcdw1i0": "fd7fpy0",
78
83
  "Bj3rh1h": "f1bsuimh",
79
84
  "rurcny": "fuzzvh5",
80
- "zf3lio": "f1qudtws",
85
+ "Bex5imi": "fkk33zh",
81
86
  "xx9plb": "fxf9f1y",
87
+ "Bmqnesq": "f170vdtw",
82
88
  "Bdn98qo": "f103af6e",
83
89
  "Bbc2r3f": "f15umuo5",
84
- "B4zgs9e": "ffo048g",
85
- "Bex5imi": "fkk33zh",
90
+ "B1dvbpk": "f3wpjpt",
91
+ "D4ky5z": "f1k3tce7",
92
+ "cqycoz": "f1dkdgqi",
93
+ "I89eb": "f5ghsz",
94
+ "k1i1uq": "fyqop9u",
95
+ "Epwjcz": "f1m5ya7j",
96
+ "Bp1vogq": "f3sp63x",
86
97
  "px8gyy": ["f5bg3dr", "f1rfdd74"],
87
98
  "h6z6rw": "fzd2j21",
88
- "Iykf4b": ["feexxpo", "f7s5fvx"],
89
- "F42hee": ["f1jq8eg5", "f12n7c5j"],
90
- "Blxsnla": ["f1wv7y6t", "fi4qyh6"],
91
- "t2scew": "fcvru7r",
92
- "Emsed9": "f7ybgnc",
93
- "E11wbp": "f16xtfle",
94
- "hl6cv3": "fotnskf",
99
+ "hl6cv3": "f1773hnp",
95
100
  "Bh2vraf": "f1n8855c",
96
- "yayu3t": ["f1nq055x", "f13ohf3"],
101
+ "yayu3t": "f1v7783n",
97
102
  "wedwtw": "fsw6im5",
98
- "rhl9o9": "ftghsr9",
103
+ "rhl9o9": "fh2hsk5",
99
104
  "Bu8t5uz": "f159pzir",
100
- "B6q6orb": ["f1l8vbt4", "fsxzh25"],
105
+ "B6q6orb": "f11yvu4",
101
106
  "Bwwlvwl": "fm1ycve"
102
107
  }
103
108
  }, {
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;}"]
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;}", ".f1k3tce7:before{border-right-width:1px;}", ".f1dkdgqi:before{border-right-style:solid;}", ".f5ghsz:before{border-right-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;}"]
105
110
  });
106
111
  /**
107
112
  * Apply styling to the PopoverSurface slots based on the state
108
113
  */
109
114
 
110
115
 
111
- const usePopoverSurfaceStyles = state => {
116
+ const usePopoverSurfaceStyles_unstable = state => {
112
117
  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);
114
- state.arrowClassName = react_make_styles_1.mergeClasses(styles.arrow, state.size === 'small' ? styles.smallArrow : styles.mediumLargeArrow);
118
+ state.root.className = react_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);
119
+ state.arrowClassName = react_1.mergeClasses(styles.arrow, state.size === 'small' ? styles.smallArrow : styles.mediumLargeArrow);
115
120
  return state;
116
121
  };
117
122
 
118
- exports.usePopoverSurfaceStyles = usePopoverSurfaceStyles;
123
+ exports.usePopoverSurfaceStyles_unstable = usePopoverSurfaceStyles_unstable;
119
124
  //# sourceMappingURL=usePopoverSurfaceStyles.js.map
@@ -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;AAA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,UAAN,KAAqB,OAArB,IAAgC,MAAM,CAAC,KAPlB,EAQrB,KAAK,CAAC,IAAN,CAAW,SARU,CAAvB;AAWA,EAAA,KAAK,CAAC,cAAN,GAAuB,OAAA,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,gCAAA,GAAgC,gCAAhC","sourceRoot":""}
@@ -14,8 +14,8 @@ const renderPopoverTrigger_1 = /*#__PURE__*/require("./renderPopoverTrigger");
14
14
 
15
15
 
16
16
  const PopoverTrigger = props => {
17
- const state = usePopoverTrigger_1.usePopoverTrigger(props);
18
- return renderPopoverTrigger_1.renderPopoverTrigger(state);
17
+ const state = usePopoverTrigger_1.usePopoverTrigger_unstable(props);
18
+ return renderPopoverTrigger_1.renderPopoverTrigger_unstable(state);
19
19
  };
20
20
 
21
21
  exports.PopoverTrigger = PopoverTrigger;
@@ -1 +1 @@
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":""}
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,0BAAA,CAA2B,KAA3B,CAAd;AAEA,SAAO,sBAAA,CAAA,6BAAA,CAA8B,KAA9B,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd;AAMb,OAAA,CAAA,cAAA,CAAe,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -2,4 +2,4 @@ import type { PopoverTriggerState } from './PopoverTrigger.types';
2
2
  /**
3
3
  * Render the final JSX of PopoverTrigger
4
4
  */
5
- export declare const renderPopoverTrigger: (state: PopoverTriggerState) => JSX.Element;
5
+ export declare const renderPopoverTrigger_unstable: (state: PopoverTriggerState) => JSX.Element;
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderPopoverTrigger = void 0;
6
+ exports.renderPopoverTrigger_unstable = void 0;
7
7
  /**
8
8
  * Render the final JSX of PopoverTrigger
9
9
  */
10
10
 
11
- const renderPopoverTrigger = state => {
11
+ const renderPopoverTrigger_unstable = state => {
12
12
  return state.children;
13
13
  };
14
14
 
15
- exports.renderPopoverTrigger = renderPopoverTrigger;
15
+ exports.renderPopoverTrigger_unstable = renderPopoverTrigger_unstable;
16
16
  //# sourceMappingURL=renderPopoverTrigger.js.map
@@ -1 +1 @@
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":""}
1
+ {"version":3,"sources":["../../../src/components/PopoverTrigger/renderPopoverTrigger.tsx"],"names":[],"mappings":";;;;;;AAEA;;AAEG;;AACI,MAAM,6BAA6B,GAAI,KAAD,IAA4C;AACvF,SAAO,KAAK,CAAC,QAAb;AACD,CAFM;;AAAM,OAAA,CAAA,6BAAA,GAA6B,6BAA7B","sourceRoot":""}
@@ -3,8 +3,8 @@ import type { PopoverTriggerProps, PopoverTriggerState } from './PopoverTrigger.
3
3
  * Create the state required to render PopoverTrigger.
4
4
  *
5
5
  * The returned state can be modified with hooks such as usePopoverTriggerStyles,
6
- * before being passed to renderPopoverTrigger.
6
+ * before being passed to renderPopoverTrigger_unstable.
7
7
  *
8
8
  * @param props - props from this instance of PopoverTrigger
9
9
  */
10
- export declare const usePopoverTrigger: (props: PopoverTriggerProps) => PopoverTriggerState;
10
+ export declare const usePopoverTrigger_unstable: (props: PopoverTriggerProps) => PopoverTriggerState;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePopoverTrigger = void 0;
6
+ exports.usePopoverTrigger_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -16,19 +16,19 @@ const popoverContext_1 = /*#__PURE__*/require("../../popoverContext");
16
16
  * Create the state required to render PopoverTrigger.
17
17
  *
18
18
  * The returned state can be modified with hooks such as usePopoverTriggerStyles,
19
- * before being passed to renderPopoverTrigger.
19
+ * before being passed to renderPopoverTrigger_unstable.
20
20
  *
21
21
  * @param props - props from this instance of PopoverTrigger
22
22
  */
23
23
 
24
24
 
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);
25
+ const usePopoverTrigger_unstable = props => {
26
+ const setOpen = popoverContext_1.usePopoverContext_unstable(context => context.setOpen);
27
+ const open = popoverContext_1.usePopoverContext_unstable(context => context.open);
28
+ const triggerRef = popoverContext_1.usePopoverContext_unstable(context => context.triggerRef);
29
+ const openOnHover = popoverContext_1.usePopoverContext_unstable(context => context.openOnHover);
30
+ const openOnContext = popoverContext_1.usePopoverContext_unstable(context => context.openOnContext);
31
+ const trapFocus = popoverContext_1.usePopoverContext_unstable(context => context.trapFocus);
32
32
  const {
33
33
  triggerAttributes
34
34
  } = react_tabster_1.useModalAttributes();
@@ -98,5 +98,5 @@ const usePopoverTrigger = props => {
98
98
  };
99
99
  };
100
100
 
101
- exports.usePopoverTrigger = usePopoverTrigger;
101
+ exports.usePopoverTrigger_unstable = usePopoverTrigger_unstable;
102
102
  //# sourceMappingURL=usePopoverTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverTrigger/usePopoverTrigger.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;AAGA;;;;;;;AAOG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAAoD;AACnF,QAAM,OAAO,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,OAArC,CAAhB;AACA,QAAM,IAAI,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,IAArC,CAAb;AACA,QAAM,UAAU,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,UAArC,CAAnB;AACA,QAAM,WAAW,GAAG,gBAAA,CAAA,iBAAA,CAAkB,OAAO,IAAI,OAAO,CAAC,WAArC,CAApB;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AAA,CAAX,GAAW,KAAA,CAAX,GAAW,EAAA,CAAE,YAAb,MAAyB,IAAzB,IAAyB,EAAA,KAAA,KAAA,CAAzB,GAAyB,KAAA,CAAzB,GAAyB,EAAA,CAAA,IAAA,CAAA,EAAA,EAAG,CAAH,CAAzB;AACD,GALoB,CAArB;AAOA,QAAM,YAAY,GAAG,iBAAA,CAAA,gBAAA,CAAkB,CAAD,IAAqC;;;AACzE,QAAI,WAAJ,EAAiB;AACf,MAAA,OAAO,CAAC,CAAD,EAAI,KAAJ,CAAP;AACD;;AACD,KAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAK,CAAC,KAAN,MAAW,IAAX,IAAW,EAAA,KAAA,KAAA,CAAX,GAAW,KAAA,CAAX,GAAW,EAAA,CAAE,YAAb,MAAyB,IAAzB,IAAyB,EAAA,KAAA,KAAA,CAAzB,GAAyB,KAAA,CAAzB,GAAyB,EAAA,CAAA,IAAA,CAAA,EAAA,EAAG,CAAH,CAAzB;AACD,GALoB,CAArB;AAOA,QAAM,KAAK,GAAG,KAAK,CAAC,QAAN,CAAe,IAAf,CAAoB,KAAK,CAAC,QAA1B,CAAd;AACA,SAAO;AACL,IAAA,QAAQ,EAAE,KAAK,CAAC,YAAN,CAAmB,KAAnB,EAA0B,EAClC,GAAG,iBAD+B;AAElC,uBAAiB,SAAS,GAAG,QAAH,GAAc,MAFN;AAGlC,SAAG,KAAK,CAAC,KAHyB;AAIlC,MAAA,OAJkC;AAKlC,MAAA,YALkC;AAMlC,MAAA,SANkC;AAOlC,MAAA,YAPkC;AAQlC,MAAA,aARkC;AASlC,MAAA,GAAG,EAAE,iBAAA,CAAA,aAAA,CAAgB,KAAuE,CAAC,GAAxF,EAA6F,UAA7F;AAT6B,KAA1B;AADL,GAAP;AAaD,CAlEM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
@@ -5,4 +5,4 @@ export declare const PopoverContext: Context<PopoverContextValue>;
5
5
  * Context shared between Popover and its children components
6
6
  */
7
7
  export declare type PopoverContextValue = Pick<PopoverState, 'open' | 'setOpen' | 'triggerRef' | 'contentRef' | 'openOnHover' | 'openOnContext' | 'mountNode' | 'noArrow' | 'arrowRef' | 'size' | 'appearance' | 'trapFocus'>;
8
- export declare const usePopoverContext: <T>(selector: ContextSelector<Pick<PopoverState, "mountNode" | "open" | "setOpen" | "triggerRef" | "contentRef" | "openOnHover" | "openOnContext" | "noArrow" | "arrowRef" | "size" | "appearance" | "trapFocus">, T>) => T;
8
+ export declare const usePopoverContext_unstable: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePopoverContext = exports.PopoverContext = void 0;
6
+ exports.usePopoverContext_unstable = exports.PopoverContext = void 0;
7
7
 
8
8
  const react_context_selector_1 = /*#__PURE__*/require("@fluentui/react-context-selector");
9
9
 
@@ -25,7 +25,7 @@ exports.PopoverContext = /*#__PURE__*/react_context_selector_1.createContext({
25
25
  trapFocus: false
26
26
  });
27
27
 
28
- const usePopoverContext = selector => react_context_selector_1.useContextSelector(exports.PopoverContext, selector);
28
+ const usePopoverContext_unstable = selector => react_context_selector_1.useContextSelector(exports.PopoverContext, selector);
29
29
 
30
- exports.usePopoverContext = usePopoverContext;
30
+ exports.usePopoverContext_unstable = usePopoverContext_unstable;
31
31
  //# sourceMappingURL=popoverContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/popoverContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,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,MAAM,IAF8E;AAG7F,EAAA,UAAU,EAAE;AAAE,IAAA,OAAO,EAAE;AAAX,GAHiF;AAI7F,EAAA,UAAU,EAAE;AAAE,IAAA,OAAO,EAAE;AAAX,GAJiF;AAK7F,EAAA,QAAQ,EAAE;AAAE,IAAA,OAAO,EAAE;AAAX,GALmF;AAM7F,EAAA,aAAa,EAAE,KAN8E;AAO7F,EAAA,WAAW,EAAE,KAPgF;AAQ7F,EAAA,IAAI,EAAE,QARuF;AAS7F,EAAA,SAAS,EAAE;AATkF,CAAnC,CAA/C;;AA+BN,MAAM,iBAAiB,GAAO,QAAJ,IAC/B,wBAAA,CAAA,kBAAA,CAAmB,OAAA,CAAA,cAAnB,EAAmC,QAAnC,CADK;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
1
+ {"version":3,"sources":["../src/popoverContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,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,MAAM,IAF8E;AAG7F,EAAA,UAAU,EAAE;AAAE,IAAA,OAAO,EAAE;AAAX,GAHiF;AAI7F,EAAA,UAAU,EAAE;AAAE,IAAA,OAAO,EAAE;AAAX,GAJiF;AAK7F,EAAA,QAAQ,EAAE;AAAE,IAAA,OAAO,EAAE;AAAX,GALmF;AAM7F,EAAA,aAAa,EAAE,KAN8E;AAO7F,EAAA,WAAW,EAAE,KAPgF;AAQ7F,EAAA,IAAI,EAAE,QARuF;AAS7F,EAAA,SAAS,EAAE;AATkF,CAAnC,CAA/C;;AA+BN,MAAM,0BAA0B,GAAO,QAAJ,IACxC,wBAAA,CAAA,kBAAA,CAAmB,OAAA,CAAA,cAAnB,EAAmC,QAAnC,CADK;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-popover",
3
- "version": "0.0.0-nightly8faa94d11420211118.1",
3
+ "version": "0.0.0-nightly946f57cad420220203.1",
4
4
  "description": "Popover component for Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -20,17 +20,16 @@
20
20
  "lint": "just-scripts lint",
21
21
  "start": "yarn storybook",
22
22
  "e2e": "e2e",
23
- "storybook": "start-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
- "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-nightly8faa94d11420211118.1",
30
30
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightly8faa94d11420211118.1",
32
31
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightly8faa94d11420211118.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly946f57cad420220203.1",
34
33
  "@fluentui/scripts": "^1.0.0",
35
34
  "@types/enzyme": "3.10.3",
36
35
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -44,13 +43,13 @@
44
43
  "react-test-renderer": "^16.3.0"
45
44
  },
46
45
  "dependencies": {
47
- "@fluentui/react-context-selector": "0.0.0-nightly8faa94d11420211118.1",
48
- "@fluentui/react-make-styles": "0.0.0-nightly8faa94d11420211118.1",
49
- "@fluentui/react-portal": "0.0.0-nightly8faa94d11420211118.1",
50
- "@fluentui/react-positioning": "0.0.0-nightly8faa94d11420211118.1",
51
- "@fluentui/react-shared-contexts": "0.0.0-nightly8faa94d11420211118.1",
52
- "@fluentui/react-tabster": "0.0.0-nightly8faa94d11420211118.1",
53
- "@fluentui/react-utilities": "0.0.0-nightly8faa94d11420211118.1",
46
+ "@fluentui/react-context-selector": "0.0.0-nightly946f57cad420220203.1",
47
+ "@griffel/react": "1.0.0",
48
+ "@fluentui/react-portal": "0.0.0-nightly946f57cad420220203.1",
49
+ "@fluentui/react-positioning": "0.0.0-nightly946f57cad420220203.1",
50
+ "@fluentui/react-shared-contexts": "0.0.0-nightly946f57cad420220203.1",
51
+ "@fluentui/react-tabster": "0.0.0-nightly946f57cad420220203.1",
52
+ "@fluentui/react-utilities": "0.0.0-nightly946f57cad420220203.1",
54
53
  "tslib": "^2.1.0"
55
54
  },
56
55
  "peerDependencies": {
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -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,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -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":""}