@fluentui/react-popover 9.0.0-rc.7 → 9.0.0-rc.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/CHANGELOG.json +84 -1
  2. package/CHANGELOG.md +95 -76
  3. package/Spec.md +20 -0
  4. package/dist/{react-popover.d.ts → index.d.ts} +14 -2
  5. package/{lib → dist}/tsdoc-metadata.json +0 -0
  6. package/lib/components/Popover/Popover.types.js.map +1 -1
  7. package/lib/components/Popover/renderPopover.js +4 -2
  8. package/lib/components/Popover/renderPopover.js.map +1 -1
  9. package/lib/components/Popover/usePopover.js +38 -5
  10. package/lib/components/Popover/usePopover.js.map +1 -1
  11. package/lib/components/PopoverSurface/PopoverSurface.types.js.map +1 -1
  12. package/lib/components/PopoverSurface/renderPopoverSurface.js +10 -4
  13. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  14. package/lib/components/PopoverSurface/usePopoverSurface.js +2 -0
  15. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  16. package/lib/popoverContext.js +2 -1
  17. package/lib/popoverContext.js.map +1 -1
  18. package/lib-commonjs/components/Popover/renderPopover.js +4 -2
  19. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  20. package/lib-commonjs/components/Popover/usePopover.js +38 -5
  21. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  22. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +10 -4
  23. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  24. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +2 -0
  25. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  26. package/lib-commonjs/popoverContext.js +2 -1
  27. package/lib-commonjs/popoverContext.js.map +1 -1
  28. package/package.json +11 -11
  29. package/lib/Popover.d.ts +0 -1
  30. package/lib/PopoverSurface.d.ts +0 -1
  31. package/lib/PopoverTrigger.d.ts +0 -1
  32. package/lib/components/Popover/Popover.d.ts +0 -6
  33. package/lib/components/Popover/Popover.types.d.ts +0 -109
  34. package/lib/components/Popover/index.d.ts +0 -4
  35. package/lib/components/Popover/renderPopover.d.ts +0 -5
  36. package/lib/components/Popover/usePopover.d.ts +0 -10
  37. package/lib/components/PopoverSurface/PopoverSurface.d.ts +0 -6
  38. package/lib/components/PopoverSurface/PopoverSurface.types.d.ts +0 -21
  39. package/lib/components/PopoverSurface/index.d.ts +0 -5
  40. package/lib/components/PopoverSurface/renderPopoverSurface.d.ts +0 -5
  41. package/lib/components/PopoverSurface/usePopoverSurface.d.ts +0 -12
  42. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +0 -13
  43. package/lib/components/PopoverTrigger/PopoverTrigger.d.ts +0 -7
  44. package/lib/components/PopoverTrigger/PopoverTrigger.types.d.ts +0 -18
  45. package/lib/components/PopoverTrigger/index.d.ts +0 -4
  46. package/lib/components/PopoverTrigger/renderPopoverTrigger.d.ts +0 -5
  47. package/lib/components/PopoverTrigger/usePopoverTrigger.d.ts +0 -10
  48. package/lib/index.d.ts +0 -4
  49. package/lib/popoverContext.d.ts +0 -8
  50. package/lib-commonjs/Popover.d.ts +0 -1
  51. package/lib-commonjs/PopoverSurface.d.ts +0 -1
  52. package/lib-commonjs/PopoverTrigger.d.ts +0 -1
  53. package/lib-commonjs/components/Popover/Popover.d.ts +0 -6
  54. package/lib-commonjs/components/Popover/Popover.types.d.ts +0 -109
  55. package/lib-commonjs/components/Popover/index.d.ts +0 -4
  56. package/lib-commonjs/components/Popover/renderPopover.d.ts +0 -5
  57. package/lib-commonjs/components/Popover/usePopover.d.ts +0 -10
  58. package/lib-commonjs/components/PopoverSurface/PopoverSurface.d.ts +0 -6
  59. package/lib-commonjs/components/PopoverSurface/PopoverSurface.types.d.ts +0 -21
  60. package/lib-commonjs/components/PopoverSurface/index.d.ts +0 -5
  61. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.d.ts +0 -5
  62. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.d.ts +0 -12
  63. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +0 -13
  64. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.d.ts +0 -7
  65. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.types.d.ts +0 -18
  66. package/lib-commonjs/components/PopoverTrigger/index.d.ts +0 -4
  67. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.d.ts +0 -5
  68. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.d.ts +0 -10
  69. package/lib-commonjs/index.d.ts +0 -4
  70. package/lib-commonjs/popoverContext.d.ts +0 -8
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * PopoverTrigger Props
4
- */
5
- export declare type PopoverTriggerProps = {
6
- children: (React.ReactElement & {
7
- ref?: React.Ref<unknown>;
8
- }) | ((props: PopoverTriggerChildProps) => React.ReactElement | null);
9
- };
10
- /**
11
- * PopoverTrigger State
12
- */
13
- export declare type PopoverTriggerState = {
14
- children: React.ReactElement | null;
15
- };
16
- export declare type PopoverTriggerChildProps = {
17
- ref?: React.Ref<never>;
18
- } & Pick<React.HTMLAttributes<HTMLElement>, 'aria-haspopup' | 'onClick' | 'onMouseEnter' | 'onKeyDown' | 'onMouseLeave' | 'onContextMenu'>;
@@ -1,4 +0,0 @@
1
- export * from './PopoverTrigger';
2
- export * from './PopoverTrigger.types';
3
- export * from './renderPopoverTrigger';
4
- export * from './usePopoverTrigger';
@@ -1,5 +0,0 @@
1
- import type { PopoverTriggerState } from './PopoverTrigger.types';
2
- /**
3
- * Render the final JSX of PopoverTrigger
4
- */
5
- export declare const renderPopoverTrigger_unstable: (state: PopoverTriggerState) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
@@ -1,10 +0,0 @@
1
- import type { PopoverTriggerProps, PopoverTriggerState } from './PopoverTrigger.types';
2
- /**
3
- * Create the state required to render PopoverTrigger.
4
- *
5
- * The returned state can be modified with hooks such as usePopoverTriggerStyles,
6
- * before being passed to renderPopoverTrigger_unstable.
7
- *
8
- * @param props - props from this instance of PopoverTrigger
9
- */
10
- export declare const usePopoverTrigger_unstable: (props: PopoverTriggerProps) => PopoverTriggerState;
@@ -1,4 +0,0 @@
1
- export * from './Popover';
2
- export * from './PopoverSurface';
3
- export * from './popoverContext';
4
- export * from './PopoverTrigger';
@@ -1,8 +0,0 @@
1
- import type { ContextSelector, Context } from '@fluentui/react-context-selector';
2
- import type { PopoverState } from './components/Popover/index';
3
- export declare const PopoverContext: Context<PopoverContextValue>;
4
- /**
5
- * Context shared between Popover and its children components
6
- */
7
- export declare type PopoverContextValue = Pick<PopoverState, 'toggleOpen' | 'setOpen' | 'triggerRef' | 'contentRef' | 'openOnHover' | 'openOnContext' | 'mountNode' | 'noArrow' | 'arrowRef' | 'size' | 'appearance' | 'trapFocus'>;
8
- export declare const usePopoverContext_unstable: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;