@fluentui/react-popover 0.0.0-nightlyca6ef2bc8e20220105.1 → 0.0.0-nightlyd45ba4664620220211.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/CHANGELOG.json +156 -27
  2. package/CHANGELOG.md +40 -15
  3. package/dist/react-popover.d.ts +29 -20
  4. package/lib/components/Popover/Popover.js +4 -4
  5. package/lib/components/Popover/Popover.js.map +1 -1
  6. package/lib/components/Popover/Popover.types.d.ts +2 -1
  7. package/lib/components/Popover/renderPopover.d.ts +1 -1
  8. package/lib/components/Popover/renderPopover.js +1 -1
  9. package/lib/components/Popover/renderPopover.js.map +1 -1
  10. package/lib/components/Popover/usePopover.d.ts +2 -2
  11. package/lib/components/Popover/usePopover.js +2 -2
  12. package/lib/components/Popover/usePopover.js.map +1 -1
  13. package/lib/components/PopoverSurface/PopoverSurface.js +6 -6
  14. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  15. package/lib/components/PopoverSurface/PopoverSurface.types.d.ts +2 -2
  16. package/lib/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  17. package/lib/components/PopoverSurface/renderPopoverSurface.js +2 -3
  18. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  19. package/lib/components/PopoverSurface/usePopoverSurface.d.ts +4 -5
  20. package/lib/components/PopoverSurface/usePopoverSurface.js +16 -16
  21. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  22. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  23. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +22 -23
  24. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  25. package/lib/components/PopoverTrigger/PopoverTrigger.d.ts +2 -1
  26. package/lib/components/PopoverTrigger/PopoverTrigger.js +5 -4
  27. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  28. package/lib/components/PopoverTrigger/PopoverTrigger.types.d.ts +9 -2
  29. package/lib/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  30. package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  31. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  32. package/lib/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  33. package/lib/components/PopoverTrigger/usePopoverTrigger.js +33 -40
  34. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  35. package/lib/popoverContext.d.ts +1 -1
  36. package/lib/popoverContext.js +1 -1
  37. package/lib/popoverContext.js.map +1 -1
  38. package/lib-commonjs/components/Popover/Popover.js +2 -2
  39. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  40. package/lib-commonjs/components/Popover/Popover.types.d.ts +2 -1
  41. package/lib-commonjs/components/Popover/renderPopover.d.ts +1 -1
  42. package/lib-commonjs/components/Popover/renderPopover.js +3 -3
  43. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  44. package/lib-commonjs/components/Popover/usePopover.d.ts +2 -2
  45. package/lib-commonjs/components/Popover/usePopover.js +4 -4
  46. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  47. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +3 -3
  48. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  49. package/lib-commonjs/components/PopoverSurface/PopoverSurface.types.d.ts +2 -2
  50. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  51. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +4 -6
  52. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  53. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.d.ts +4 -5
  54. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +18 -18
  55. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  56. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  57. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +27 -27
  58. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  59. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.d.ts +2 -1
  60. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +3 -2
  61. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  62. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.types.d.ts +9 -2
  63. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  64. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +3 -3
  65. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  66. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  67. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +33 -40
  68. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  69. package/lib-commonjs/popoverContext.d.ts +1 -1
  70. package/lib-commonjs/popoverContext.js +3 -3
  71. package/lib-commonjs/popoverContext.js.map +1 -1
  72. package/package.json +11 -13
@@ -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<PopoverContextValue, 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-nightlyca6ef2bc8e20220105.1",
3
+ "version": "0.0.0-nightlyd45ba4664620220211.1",
4
4
  "description": "Popover component for Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -20,18 +20,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
26
  "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-popover/src && yarn docs",
27
27
  "type-check": "tsc -b tsconfig.json"
28
28
  },
29
29
  "devDependencies": {
30
- "@fluentui/babel-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
31
30
  "@fluentui/eslint-plugin": "*",
32
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
33
31
  "@fluentui/react-conformance": "*",
34
- "@fluentui/react-conformance-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightlyd45ba4664620220211.1",
35
33
  "@fluentui/scripts": "^1.0.0",
36
34
  "@types/enzyme": "3.10.3",
37
35
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -45,13 +43,13 @@
45
43
  "react-test-renderer": "^16.3.0"
46
44
  },
47
45
  "dependencies": {
48
- "@fluentui/react-context-selector": "0.0.0-nightlyca6ef2bc8e20220105.1",
49
- "@fluentui/react-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
50
- "@fluentui/react-portal": "0.0.0-nightlyca6ef2bc8e20220105.1",
51
- "@fluentui/react-positioning": "0.0.0-nightlyca6ef2bc8e20220105.1",
52
- "@fluentui/react-shared-contexts": "0.0.0-nightlyca6ef2bc8e20220105.1",
53
- "@fluentui/react-tabster": "0.0.0-nightlyca6ef2bc8e20220105.1",
54
- "@fluentui/react-utilities": "0.0.0-nightlyca6ef2bc8e20220105.1",
46
+ "@fluentui/react-context-selector": "0.0.0-nightlyd45ba4664620220211.1",
47
+ "@griffel/react": "1.0.0",
48
+ "@fluentui/react-portal": "0.0.0-nightlyd45ba4664620220211.1",
49
+ "@fluentui/react-positioning": "0.0.0-nightlyd45ba4664620220211.1",
50
+ "@fluentui/react-shared-contexts": "0.0.0-nightlyd45ba4664620220211.1",
51
+ "@fluentui/react-tabster": "0.0.0-nightlyd45ba4664620220211.1",
52
+ "@fluentui/react-utilities": "0.0.0-nightlyd45ba4664620220211.1",
55
53
  "tslib": "^2.1.0"
56
54
  },
57
55
  "peerDependencies": {