@fluentui/react-popover 9.5.3 → 9.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +127 -1
  3. package/CHANGELOG.md +36 -2
  4. package/lib/Popover.js.map +1 -1
  5. package/lib/PopoverSurface.js.map +1 -1
  6. package/lib/PopoverTrigger.js.map +1 -1
  7. package/lib/components/Popover/Popover.js +1 -0
  8. package/lib/components/Popover/Popover.js.map +1 -1
  9. package/lib/components/Popover/Popover.types.js +1 -1
  10. package/lib/components/Popover/Popover.types.js.map +1 -1
  11. package/lib/components/Popover/constants.js +1 -2
  12. package/lib/components/Popover/constants.js.map +1 -1
  13. package/lib/components/Popover/index.js.map +1 -1
  14. package/lib/components/Popover/renderPopover.js.map +1 -1
  15. package/lib/components/Popover/usePopover.js +8 -8
  16. package/lib/components/Popover/usePopover.js.map +1 -1
  17. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  18. package/lib/components/PopoverSurface/PopoverSurface.types.js.map +1 -1
  19. package/lib/components/PopoverSurface/index.js.map +1 -1
  20. package/lib/components/PopoverSurface/renderPopoverSurface.js +1 -3
  21. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  22. package/lib/components/PopoverSurface/usePopoverSurface.js +3 -2
  23. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  24. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  25. package/lib/components/PopoverTrigger/PopoverTrigger.js +1 -0
  26. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  27. package/lib/components/PopoverTrigger/PopoverTrigger.types.js +1 -1
  28. package/lib/components/PopoverTrigger/PopoverTrigger.types.js.map +1 -1
  29. package/lib/components/PopoverTrigger/index.js.map +1 -1
  30. package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -2
  31. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  32. package/lib/components/PopoverTrigger/usePopoverTrigger.js +1 -0
  33. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  34. package/lib/index.js.map +1 -1
  35. package/lib/popoverContext.js.map +1 -1
  36. package/lib-commonjs/Popover.js +5 -4
  37. package/lib-commonjs/Popover.js.map +1 -1
  38. package/lib-commonjs/PopoverSurface.js +5 -4
  39. package/lib-commonjs/PopoverSurface.js.map +1 -1
  40. package/lib-commonjs/PopoverTrigger.js +5 -4
  41. package/lib-commonjs/PopoverTrigger.js.map +1 -1
  42. package/lib-commonjs/components/Popover/Popover.js +14 -13
  43. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  44. package/lib-commonjs/components/Popover/Popover.types.js +5 -2
  45. package/lib-commonjs/components/Popover/Popover.types.js.map +1 -1
  46. package/lib-commonjs/components/Popover/constants.js +10 -8
  47. package/lib-commonjs/components/Popover/constants.js.map +1 -1
  48. package/lib-commonjs/components/Popover/index.js +8 -7
  49. package/lib-commonjs/components/Popover/index.js.map +1 -1
  50. package/lib-commonjs/components/Popover/renderPopover.js +31 -47
  51. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  52. package/lib-commonjs/components/Popover/usePopover.js +179 -173
  53. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  54. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +19 -20
  55. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  56. package/lib-commonjs/components/PopoverSurface/PopoverSurface.types.js +3 -2
  57. package/lib-commonjs/components/PopoverSurface/PopoverSurface.types.js.map +1 -1
  58. package/lib-commonjs/components/PopoverSurface/index.js +9 -8
  59. package/lib-commonjs/components/PopoverSurface/index.js.map +1 -1
  60. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +23 -28
  61. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  62. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +70 -81
  63. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  64. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +243 -113
  65. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  66. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +15 -14
  67. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  68. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.types.js +5 -2
  69. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.types.js.map +1 -1
  70. package/lib-commonjs/components/PopoverTrigger/index.js +8 -7
  71. package/lib-commonjs/components/PopoverTrigger/index.js.map +1 -1
  72. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +12 -11
  73. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  74. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +71 -80
  75. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  76. package/lib-commonjs/index.js +30 -92
  77. package/lib-commonjs/index.js.map +1 -1
  78. package/lib-commonjs/popoverContext.js +34 -25
  79. package/lib-commonjs/popoverContext.js.map +1 -1
  80. package/package.json +14 -13
  81. package/lib-amd/Popover.js +0 -6
  82. package/lib-amd/Popover.js.map +0 -1
  83. package/lib-amd/PopoverSurface.js +0 -6
  84. package/lib-amd/PopoverSurface.js.map +0 -1
  85. package/lib-amd/PopoverTrigger.js +0 -6
  86. package/lib-amd/PopoverTrigger.js.map +0 -1
  87. package/lib-amd/components/Popover/Popover.js +0 -15
  88. package/lib-amd/components/Popover/Popover.js.map +0 -1
  89. package/lib-amd/components/Popover/Popover.types.js +0 -5
  90. package/lib-amd/components/Popover/Popover.types.js.map +0 -1
  91. package/lib-amd/components/Popover/constants.js +0 -15
  92. package/lib-amd/components/Popover/constants.js.map +0 -1
  93. package/lib-amd/components/Popover/index.js +0 -9
  94. package/lib-amd/components/Popover/index.js.map +0 -1
  95. package/lib-amd/components/Popover/renderPopover.js +0 -32
  96. package/lib-amd/components/Popover/renderPopover.js.map +0 -1
  97. package/lib-amd/components/Popover/usePopover.js +0 -147
  98. package/lib-amd/components/Popover/usePopover.js.map +0 -1
  99. package/lib-amd/components/PopoverSurface/PopoverSurface.js +0 -17
  100. package/lib-amd/components/PopoverSurface/PopoverSurface.js.map +0 -1
  101. package/lib-amd/components/PopoverSurface/PopoverSurface.types.js +0 -5
  102. package/lib-amd/components/PopoverSurface/PopoverSurface.types.js.map +0 -1
  103. package/lib-amd/components/PopoverSurface/index.js +0 -10
  104. package/lib-amd/components/PopoverSurface/index.js.map +0 -1
  105. package/lib-amd/components/PopoverSurface/renderPopoverSurface.js +0 -20
  106. package/lib-amd/components/PopoverSurface/renderPopoverSurface.js.map +0 -1
  107. package/lib-amd/components/PopoverSurface/usePopoverSurface.js +0 -69
  108. package/lib-amd/components/PopoverSurface/usePopoverSurface.js.map +0 -1
  109. package/lib-amd/components/PopoverSurface/usePopoverSurfaceStyles.js +0 -44
  110. package/lib-amd/components/PopoverSurface/usePopoverSurfaceStyles.js.map +0 -1
  111. package/lib-amd/components/PopoverTrigger/PopoverTrigger.js +0 -17
  112. package/lib-amd/components/PopoverTrigger/PopoverTrigger.js.map +0 -1
  113. package/lib-amd/components/PopoverTrigger/PopoverTrigger.types.js +0 -5
  114. package/lib-amd/components/PopoverTrigger/PopoverTrigger.types.js.map +0 -1
  115. package/lib-amd/components/PopoverTrigger/index.js +0 -9
  116. package/lib-amd/components/PopoverTrigger/index.js.map +0 -1
  117. package/lib-amd/components/PopoverTrigger/renderPopoverTrigger.js +0 -13
  118. package/lib-amd/components/PopoverTrigger/renderPopoverTrigger.js.map +0 -1
  119. package/lib-amd/components/PopoverTrigger/usePopoverTrigger.js +0 -61
  120. package/lib-amd/components/PopoverTrigger/usePopoverTrigger.js.map +0 -1
  121. package/lib-amd/index.js +0 -20
  122. package/lib-amd/index.js.map +0 -1
  123. package/lib-amd/popoverContext.js +0 -28
  124. package/lib-amd/popoverContext.js.map +0 -1
@@ -1,85 +1,74 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "usePopoverSurface_unstable", {
6
+ enumerable: true,
7
+ get: ()=>usePopoverSurface_unstable
5
8
  });
6
- exports.usePopoverSurface_unstable = void 0;
7
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
- const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
9
- const popoverContext_1 = /*#__PURE__*/require("../../popoverContext");
10
- /**
11
- * Create the state required to render PopoverSurface.
12
- *
13
- * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,
14
- * before being passed to renderPopoverSurface_unstable.
15
- *
16
- * @param props - props from this instance of PopoverSurface
17
- * @param ref - reference to root HTMLDivElement of PopoverSurface
18
- */
19
- const usePopoverSurface_unstable = (props, ref) => {
20
- const contentRef = popoverContext_1.usePopoverContext_unstable(context => context.contentRef);
21
- const openOnHover = popoverContext_1.usePopoverContext_unstable(context => context.openOnHover);
22
- const setOpen = popoverContext_1.usePopoverContext_unstable(context => context.setOpen);
23
- const mountNode = popoverContext_1.usePopoverContext_unstable(context => context.mountNode);
24
- const arrowRef = popoverContext_1.usePopoverContext_unstable(context => context.arrowRef);
25
- const size = popoverContext_1.usePopoverContext_unstable(context => context.size);
26
- const withArrow = popoverContext_1.usePopoverContext_unstable(context => context.withArrow);
27
- const appearance = popoverContext_1.usePopoverContext_unstable(context => context.appearance);
28
- const trapFocus = popoverContext_1.usePopoverContext_unstable(context => context.trapFocus);
29
- const inertTrapFocus = popoverContext_1.usePopoverContext_unstable(context => context.inertTrapFocus);
30
- const inline = popoverContext_1.usePopoverContext_unstable(context => context.inline);
31
- const {
32
- modalAttributes
33
- } = react_tabster_1.useModalAttributes({
34
- trapFocus,
35
- legacyTrapFocus: !inertTrapFocus,
36
- alwaysFocusable: !trapFocus
37
- });
38
- const state = {
39
- inline,
40
- appearance,
41
- withArrow,
42
- size,
43
- arrowRef,
44
- mountNode,
45
- components: {
46
- root: 'div'
47
- },
48
- root: react_utilities_1.getNativeElementProps('div', {
49
- ref: react_utilities_1.useMergedRefs(ref, contentRef),
50
- role: trapFocus ? 'dialog' : 'group',
51
- 'aria-modal': trapFocus ? true : undefined,
52
- ...modalAttributes,
53
- ...props
54
- })
55
- };
56
- const {
57
- onMouseEnter: onMouseEnterOriginal,
58
- onMouseLeave: onMouseLeaveOriginal,
59
- onKeyDown: onKeyDownOriginal
60
- } = state.root;
61
- state.root.onMouseEnter = e => {
62
- if (openOnHover) {
63
- setOpen(e, true);
64
- }
65
- onMouseEnterOriginal === null || onMouseEnterOriginal === void 0 ? void 0 : onMouseEnterOriginal(e);
66
- };
67
- state.root.onMouseLeave = e => {
68
- if (openOnHover) {
69
- setOpen(e, false);
70
- }
71
- onMouseLeaveOriginal === null || onMouseLeaveOriginal === void 0 ? void 0 : onMouseLeaveOriginal(e);
72
- };
73
- state.root.onKeyDown = e => {
74
- var _a;
75
- // only close if the event happened inside the current popover
76
- // If using a stack of inline popovers, the user should call `stopPropagation` to avoid dismissing the entire stack
77
- if (e.key === 'Escape' && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
78
- setOpen(e, false);
79
- }
80
- onKeyDownOriginal === null || onKeyDownOriginal === void 0 ? void 0 : onKeyDownOriginal(e);
81
- };
82
- return state;
83
- };
84
- exports.usePopoverSurface_unstable = usePopoverSurface_unstable;
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactUtilities = require("@fluentui/react-utilities");
12
+ const _reactTabster = require("@fluentui/react-tabster");
13
+ const _popoverContext = require("../../popoverContext");
14
+ const usePopoverSurface_unstable = (props, ref)=>{
15
+ const contentRef = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.contentRef);
16
+ const openOnHover = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.openOnHover);
17
+ const setOpen = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.setOpen);
18
+ const mountNode = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.mountNode);
19
+ const arrowRef = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.arrowRef);
20
+ const size = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.size);
21
+ const withArrow = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.withArrow);
22
+ const appearance = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.appearance);
23
+ const trapFocus = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.trapFocus);
24
+ const inertTrapFocus = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.inertTrapFocus);
25
+ const inline = (0, _popoverContext.usePopoverContext_unstable)((context)=>context.inline);
26
+ const { modalAttributes } = (0, _reactTabster.useModalAttributes)({
27
+ trapFocus,
28
+ legacyTrapFocus: !inertTrapFocus,
29
+ alwaysFocusable: !trapFocus
30
+ });
31
+ const state = {
32
+ inline,
33
+ appearance,
34
+ withArrow,
35
+ size,
36
+ arrowRef,
37
+ mountNode,
38
+ components: {
39
+ root: 'div'
40
+ },
41
+ root: (0, _reactUtilities.getNativeElementProps)('div', {
42
+ ref: (0, _reactUtilities.useMergedRefs)(ref, contentRef),
43
+ role: trapFocus ? 'dialog' : 'group',
44
+ 'aria-modal': trapFocus ? true : undefined,
45
+ ...modalAttributes,
46
+ ...props
47
+ })
48
+ };
49
+ const { onMouseEnter: onMouseEnterOriginal , onMouseLeave: onMouseLeaveOriginal , onKeyDown: onKeyDownOriginal } = state.root;
50
+ state.root.onMouseEnter = (e)=>{
51
+ if (openOnHover) {
52
+ setOpen(e, true);
53
+ }
54
+ onMouseEnterOriginal === null || onMouseEnterOriginal === void 0 ? void 0 : onMouseEnterOriginal(e);
55
+ };
56
+ state.root.onMouseLeave = (e)=>{
57
+ if (openOnHover) {
58
+ setOpen(e, false);
59
+ }
60
+ onMouseLeaveOriginal === null || onMouseLeaveOriginal === void 0 ? void 0 : onMouseLeaveOriginal(e);
61
+ };
62
+ state.root.onKeyDown = (e)=>{
63
+ var _contentRef_current;
64
+ // only close if the event happened inside the current popover
65
+ // If using a stack of inline popovers, the user should call `stopPropagation` to avoid dismissing the entire stack
66
+ if (e.key === 'Escape' && ((_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 ? void 0 : _contentRef_current.contains(e.target))) {
67
+ setOpen(e, false);
68
+ }
69
+ onKeyDownOriginal === null || onKeyDownOriginal === void 0 ? void 0 : onKeyDownOriginal(e);
70
+ };
71
+ return state;
72
+ }; //# sourceMappingURL=usePopoverSurface.js.map
73
+
85
74
  //# sourceMappingURL=usePopoverSurface.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_utilities_1","require","react_tabster_1","popoverContext_1","usePopoverSurface_unstable","props","ref","contentRef","usePopoverContext_unstable","context","openOnHover","setOpen","mountNode","arrowRef","size","withArrow","appearance","trapFocus","inertTrapFocus","inline","modalAttributes","useModalAttributes","legacyTrapFocus","alwaysFocusable","state","components","root","getNativeElementProps","useMergedRefs","role","undefined","onMouseEnter","onMouseEnterOriginal","onMouseLeave","onMouseLeaveOriginal","onKeyDown","onKeyDownOriginal","e","key","_a","current","contains","target","exports"],"sources":["../src/packages/react-components/react-popover/src/components/PopoverSurface/usePopoverSurface.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, useMergedRefs } from '@fluentui/react-utilities';\nimport { useModalAttributes } from '@fluentui/react-tabster';\nimport { usePopoverContext_unstable } from '../../popoverContext';\nimport type { PopoverSurfaceProps, PopoverSurfaceState } from './PopoverSurface.types';\n\n/**\n * Create the state required to render PopoverSurface.\n *\n * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,\n * before being passed to renderPopoverSurface_unstable.\n *\n * @param props - props from this instance of PopoverSurface\n * @param ref - reference to root HTMLDivElement of PopoverSurface\n */\nexport const usePopoverSurface_unstable = (\n props: PopoverSurfaceProps,\n ref: React.Ref<HTMLDivElement>,\n): PopoverSurfaceState => {\n const contentRef = usePopoverContext_unstable(context => context.contentRef);\n const openOnHover = usePopoverContext_unstable(context => context.openOnHover);\n const setOpen = usePopoverContext_unstable(context => context.setOpen);\n const mountNode = usePopoverContext_unstable(context => context.mountNode);\n const arrowRef = usePopoverContext_unstable(context => context.arrowRef);\n const size = usePopoverContext_unstable(context => context.size);\n const withArrow = usePopoverContext_unstable(context => context.withArrow);\n const appearance = usePopoverContext_unstable(context => context.appearance);\n const trapFocus = usePopoverContext_unstable(context => context.trapFocus);\n const inertTrapFocus = usePopoverContext_unstable(context => context.inertTrapFocus);\n const inline = usePopoverContext_unstable(context => context.inline);\n const { modalAttributes } = useModalAttributes({\n trapFocus,\n legacyTrapFocus: !inertTrapFocus,\n alwaysFocusable: !trapFocus,\n });\n\n const state: PopoverSurfaceState = {\n inline,\n appearance,\n withArrow,\n size,\n arrowRef,\n mountNode,\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ref: useMergedRefs(ref, contentRef),\n role: trapFocus ? 'dialog' : 'group',\n 'aria-modal': trapFocus ? true : undefined,\n ...modalAttributes,\n ...props,\n }),\n };\n\n const {\n onMouseEnter: onMouseEnterOriginal,\n onMouseLeave: onMouseLeaveOriginal,\n onKeyDown: onKeyDownOriginal,\n } = state.root;\n state.root.onMouseEnter = (e: React.MouseEvent<HTMLDivElement>) => {\n if (openOnHover) {\n setOpen(e, true);\n }\n\n onMouseEnterOriginal?.(e);\n };\n\n state.root.onMouseLeave = (e: React.MouseEvent<HTMLDivElement>) => {\n if (openOnHover) {\n setOpen(e, false);\n }\n\n onMouseLeaveOriginal?.(e);\n };\n\n state.root.onKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {\n // only close if the event happened inside the current popover\n // If using a stack of inline popovers, the user should call `stopPropagation` to avoid dismissing the entire stack\n if (e.key === 'Escape' && contentRef.current?.contains(e.target as HTMLDivElement)) {\n setOpen(e, false);\n }\n\n onKeyDownOriginal?.(e);\n };\n\n return state;\n};\n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AK,QAAQ,KAAI,CAAAC,EAAA,GAAAhC,UAAU,CAACiC,OAAO,cAAAD,EAAA,uBAAAA,EAAA,CAAEE,QAAQ,CAACJ,CAAC,CAACK,MAAwB,CAAC,GAAE;MAClF/B,OAAO,CAAC0B,CAAC,EAAE,KAAK,CAAC;;IAGnBD,iBAAiB,aAAjBA,iBAAiB,uBAAjBA,iBAAiB,CAAGC,CAAC,CAAC;EACxB,CAAC;EAED,OAAOb,KAAK;AACd,CAAC;AAxEYmB,OAAA,CAAAvC,0BAA0B,GAAAA,0BAAA"}
1
+ {"version":3,"sources":["../../../lib/components/PopoverSurface/usePopoverSurface.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, useMergedRefs } from '@fluentui/react-utilities';\nimport { useModalAttributes } from '@fluentui/react-tabster';\nimport { usePopoverContext_unstable } from '../../popoverContext';\n/**\n * Create the state required to render PopoverSurface.\n *\n * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,\n * before being passed to renderPopoverSurface_unstable.\n *\n * @param props - props from this instance of PopoverSurface\n * @param ref - reference to root HTMLDivElement of PopoverSurface\n */\nexport const usePopoverSurface_unstable = (props, ref) => {\n const contentRef = usePopoverContext_unstable(context => context.contentRef);\n const openOnHover = usePopoverContext_unstable(context => context.openOnHover);\n const setOpen = usePopoverContext_unstable(context => context.setOpen);\n const mountNode = usePopoverContext_unstable(context => context.mountNode);\n const arrowRef = usePopoverContext_unstable(context => context.arrowRef);\n const size = usePopoverContext_unstable(context => context.size);\n const withArrow = usePopoverContext_unstable(context => context.withArrow);\n const appearance = usePopoverContext_unstable(context => context.appearance);\n const trapFocus = usePopoverContext_unstable(context => context.trapFocus);\n const inertTrapFocus = usePopoverContext_unstable(context => context.inertTrapFocus);\n const inline = usePopoverContext_unstable(context => context.inline);\n const {\n modalAttributes\n } = useModalAttributes({\n trapFocus,\n legacyTrapFocus: !inertTrapFocus,\n alwaysFocusable: !trapFocus\n });\n const state = {\n inline,\n appearance,\n withArrow,\n size,\n arrowRef,\n mountNode,\n components: {\n root: 'div'\n },\n root: getNativeElementProps('div', {\n ref: useMergedRefs(ref, contentRef),\n role: trapFocus ? 'dialog' : 'group',\n 'aria-modal': trapFocus ? true : undefined,\n ...modalAttributes,\n ...props\n })\n };\n const {\n onMouseEnter: onMouseEnterOriginal,\n onMouseLeave: onMouseLeaveOriginal,\n onKeyDown: onKeyDownOriginal\n } = state.root;\n state.root.onMouseEnter = e => {\n if (openOnHover) {\n setOpen(e, true);\n }\n onMouseEnterOriginal === null || onMouseEnterOriginal === void 0 ? void 0 : onMouseEnterOriginal(e);\n };\n state.root.onMouseLeave = e => {\n if (openOnHover) {\n setOpen(e, false);\n }\n onMouseLeaveOriginal === null || onMouseLeaveOriginal === void 0 ? void 0 : onMouseLeaveOriginal(e);\n };\n state.root.onKeyDown = e => {\n var _contentRef_current;\n // only close if the event happened inside the current popover\n // If using a stack of inline popovers, the user should call `stopPropagation` to avoid dismissing the entire stack\n if (e.key === 'Escape' && ((_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 ? void 0 : _contentRef_current.contains(e.target))) {\n setOpen(e, false);\n }\n onKeyDownOriginal === null || onKeyDownOriginal === void 0 ? void 0 : onKeyDownOriginal(e);\n };\n return state;\n};\n//# sourceMappingURL=usePopoverSurface.js.map"],"names":["usePopoverSurface_unstable","props","ref","contentRef","usePopoverContext_unstable","context","openOnHover","setOpen","mountNode","arrowRef","size","withArrow","appearance","trapFocus","inertTrapFocus","inline","modalAttributes","useModalAttributes","legacyTrapFocus","alwaysFocusable","state","components","root","getNativeElementProps","useMergedRefs","role","undefined","onMouseEnter","onMouseEnterOriginal","onMouseLeave","onMouseLeaveOriginal","onKeyDown","onKeyDownOriginal","e","_contentRef_current","key","current","contains","target"],"mappings":";;;;+BAaaA;;aAAAA;;;6DAbU;gCAC8B;8BAClB;gCACQ;AAUpC,MAAMA,6BAA6B,CAACC,OAAOC,MAAQ;IACxD,MAAMC,aAAaC,IAAAA,0CAA0B,EAACC,CA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AAGZ,MAAME,IAAI;IACdF,MAAME,IAAI,CAACK,YAAY,GAAGM,CAAAA,IAAK;QAC7B,IAAI3B,aAAa;YACfC,QAAQ0B,GAAG,IAAI;QACjB,CAAC;QACDL,yBAAyB,IAAI,IAAIA,yBAAyB,KAAK,IAAI,KAAK,IAAIA,qBAAqBK,EAAE;IACrG;IACAb,MAAME,IAAI,CAACO,YAAY,GAAGI,CAAAA,IAAK;QAC7B,IAAI3B,aAAa;YACfC,QAAQ0B,GAAG,KAAK;QAClB,CAAC;QACDH,yBAAyB,IAAI,IAAIA,yBAAyB,KAAK,IAAI,KAAK,IAAIA,qBAAqBG,EAAE;IACrG;IACAb,MAAME,IAAI,CAACS,SAAS,GAAGE,CAAAA,IAAK;QAC1B,IAAIC;QACJ,8DAA8D;QAC9D,mHAAmH;QACnH,IAAID,EAAEE,GAAG,KAAK,YAAa,CAAA,AAACD,CAAAA,sBAAsB/B,WAAWiC,OAAO,AAAD,MAAO,IAAI,IAAIF,wBAAwB,KAAK,IAAI,KAAK,IAAIA,oBAAoBG,QAAQ,CAACJ,EAAEK,MAAM,CAAC,AAAD,GAAI;YACnK/B,QAAQ0B,GAAG,KAAK;QAClB,CAAC;QACDD,sBAAsB,IAAI,IAAIA,sBAAsB,KAAK,IAAI,KAAK,IAAIA,kBAAkBC,EAAE;IAC5F;IACA,OAAOb;AACT,GACA,6CAA6C"}
@@ -1,123 +1,253 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ popoverSurfaceClassNames: ()=>popoverSurfaceClassNames,
13
+ arrowHeights: ()=>arrowHeights,
14
+ usePopoverSurfaceStyles_unstable: ()=>usePopoverSurfaceStyles_unstable
5
15
  });
6
- exports.usePopoverSurfaceStyles_unstable = exports.arrowHeights = exports.popoverSurfaceClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- const react_positioning_1 = /*#__PURE__*/require("@fluentui/react-positioning");
9
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
10
- exports.popoverSurfaceClassNames = {
11
- root: 'fui-PopoverSurface'
16
+ const _react = require("@griffel/react");
17
+ const popoverSurfaceClassNames = {
18
+ root: 'fui-PopoverSurface'
12
19
  };
13
- exports.arrowHeights = {
14
- small: 6,
15
- medium: 8,
16
- large: 8
20
+ const arrowHeights = {
21
+ small: 6,
22
+ medium: 8,
23
+ large: 8
17
24
  };
18
25
  /**
19
26
  * Styles for the root slot
20
- */
21
- const useStyles = /*#__PURE__*/react_1.__styles({
22
- root: {
23
- sj55zd: "f19n0e5",
24
- De3pzq: "fxugw4r",
25
- E5pizo: "f1hg901r",
26
- Bbmb7ep: ["f1aa9q02", "f16jpd5f"],
27
- Beyfa6y: ["f16jpd5f", "f1aa9q02"],
28
- B7oj6ja: ["f1jar5jt", "fyu767a"],
29
- Btl43ni: ["fyu767a", "f1jar5jt"],
30
- B4j52fo: "f5ogflp",
31
- Bekrc4i: ["f1hqa2wf", "finvdd3"],
32
- Bn0qgzm: "f1f09k3d",
33
- ibv6hh: ["finvdd3", "f1hqa2wf"],
34
- icvyot: "fzkkow9",
35
- vrafjx: ["fcdblym", "fjik90z"],
36
- oivjwe: "fg706s2",
37
- wvpqe5: ["fjik90z", "fcdblym"],
38
- g2u3we: "fghlq4f",
39
- h3c5rm: ["f1gn591s", "fjscplz"],
40
- B9xav0g: "fb073pr",
41
- zhjwy3: ["fjscplz", "f1gn591s"],
42
- Bahqtrf: "fk6fouc",
43
- Be2twd7: "fkhj508",
44
- Bhrd7zp: "figsok6",
45
- Bg96gwp: "f1i3iumi"
46
- },
47
- inverted: {
48
- De3pzq: "fg3r6xk",
49
- sj55zd: "fonrgv7"
50
- },
51
- brand: {
52
- De3pzq: "ffp7eso",
53
- sj55zd: "f1phragk"
54
- },
55
- smallPadding: {
56
- z8tnut: "f1kcqot9",
57
- z189sj: ["f11qrl6u", "fjlbh76"],
58
- Byoj8tv: "fpe6lb7",
59
- uwmqm3: ["fjlbh76", "f11qrl6u"]
60
- },
61
- mediumPadding: {
62
- z8tnut: "fqag9an",
63
- z189sj: ["f1gbmcue", "f1rh9g5y"],
64
- Byoj8tv: "fp67ikv",
65
- uwmqm3: ["f1rh9g5y", "f1gbmcue"]
66
- },
67
- largePadding: {
68
- z8tnut: "fc7z3ec",
69
- z189sj: ["fat0sn4", "fekwl8i"],
70
- Byoj8tv: "fe2my4m",
71
- uwmqm3: ["fekwl8i", "fat0sn4"]
72
- },
73
- smallArrow: {
74
- a9b677: "f1ekdpwm",
75
- Bqenvij: "f83vc9z"
76
- },
77
- mediumLargeArrow: {
78
- a9b677: "f1kmc0fn",
79
- Bqenvij: "fb6lvc5"
80
- },
81
- arrow: {
82
- qhf8xq: "f1euv43f",
83
- De3pzq: "f1u2r49w",
84
- Bcdw1i0: "fd7fpy0",
85
- Bj3rh1h: "f1bsuimh",
86
- Ftih45: "f1wl9k8s",
87
- B1puzpu: "f1wkw4r9",
88
- Brfgrao: "f1j7ml58",
89
- Bcvre1j: "fyl8oag",
90
- Ccq8qp: "frdoeuz",
91
- Baz25je: "fb81m9q",
92
- cmx5o7: "f1ljr5q2",
93
- B4f6apu: "fyfemzf",
94
- m598lv: "focyt6c",
95
- Bk5zm6e: "fnhxbxj",
96
- y0oebl: "fdw6hkg",
97
- qa3bma: "f11yjt3y",
98
- Bqjgrrk: "f1172wan",
99
- Budzafs: ["f9e5op9", "f112wvtl"],
100
- Hv9wc6: ["ftj5xct", "fyavhwi"],
101
- hl6cv3: "f1773hnp",
102
- Bh2vraf: "f1n8855c",
103
- yayu3t: "f1v7783n",
104
- wedwtw: "fsw6im5",
105
- rhl9o9: "fh2hsk5",
106
- Bu8t5uz: "f159pzir",
107
- B6q6orb: "f11yvu4",
108
- Bwwlvwl: "fm1ycve"
109
- }
27
+ */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
28
+ root: {
29
+ sj55zd: "f19n0e5",
30
+ De3pzq: "fxugw4r",
31
+ E5pizo: "f1hg901r",
32
+ Bbmb7ep: [
33
+ "f1aa9q02",
34
+ "f16jpd5f"
35
+ ],
36
+ Beyfa6y: [
37
+ "f16jpd5f",
38
+ "f1aa9q02"
39
+ ],
40
+ B7oj6ja: [
41
+ "f1jar5jt",
42
+ "fyu767a"
43
+ ],
44
+ Btl43ni: [
45
+ "fyu767a",
46
+ "f1jar5jt"
47
+ ],
48
+ B4j52fo: "f5ogflp",
49
+ Bekrc4i: [
50
+ "f1hqa2wf",
51
+ "finvdd3"
52
+ ],
53
+ Bn0qgzm: "f1f09k3d",
54
+ ibv6hh: [
55
+ "finvdd3",
56
+ "f1hqa2wf"
57
+ ],
58
+ icvyot: "fzkkow9",
59
+ vrafjx: [
60
+ "fcdblym",
61
+ "fjik90z"
62
+ ],
63
+ oivjwe: "fg706s2",
64
+ wvpqe5: [
65
+ "fjik90z",
66
+ "fcdblym"
67
+ ],
68
+ g2u3we: "fghlq4f",
69
+ h3c5rm: [
70
+ "f1gn591s",
71
+ "fjscplz"
72
+ ],
73
+ B9xav0g: "fb073pr",
74
+ zhjwy3: [
75
+ "fjscplz",
76
+ "f1gn591s"
77
+ ],
78
+ Bahqtrf: "fk6fouc",
79
+ Be2twd7: "fkhj508",
80
+ Bhrd7zp: "figsok6",
81
+ Bg96gwp: "f1i3iumi"
82
+ },
83
+ inverted: {
84
+ De3pzq: "fg3r6xk",
85
+ sj55zd: "fonrgv7"
86
+ },
87
+ brand: {
88
+ De3pzq: "ffp7eso",
89
+ sj55zd: "f1phragk"
90
+ },
91
+ smallPadding: {
92
+ z8tnut: "f1kcqot9",
93
+ z189sj: [
94
+ "f11qrl6u",
95
+ "fjlbh76"
96
+ ],
97
+ Byoj8tv: "fpe6lb7",
98
+ uwmqm3: [
99
+ "fjlbh76",
100
+ "f11qrl6u"
101
+ ]
102
+ },
103
+ mediumPadding: {
104
+ z8tnut: "fqag9an",
105
+ z189sj: [
106
+ "f1gbmcue",
107
+ "f1rh9g5y"
108
+ ],
109
+ Byoj8tv: "fp67ikv",
110
+ uwmqm3: [
111
+ "f1rh9g5y",
112
+ "f1gbmcue"
113
+ ]
114
+ },
115
+ largePadding: {
116
+ z8tnut: "fc7z3ec",
117
+ z189sj: [
118
+ "fat0sn4",
119
+ "fekwl8i"
120
+ ],
121
+ Byoj8tv: "fe2my4m",
122
+ uwmqm3: [
123
+ "fekwl8i",
124
+ "fat0sn4"
125
+ ]
126
+ },
127
+ smallArrow: {
128
+ a9b677: "f1ekdpwm",
129
+ Bqenvij: "f83vc9z"
130
+ },
131
+ mediumLargeArrow: {
132
+ a9b677: "f1kmc0fn",
133
+ Bqenvij: "fb6lvc5"
134
+ },
135
+ arrow: {
136
+ qhf8xq: "f1euv43f",
137
+ De3pzq: "f1u2r49w",
138
+ Bcdw1i0: "fd7fpy0",
139
+ Bj3rh1h: "f1bsuimh",
140
+ Ftih45: "f1wl9k8s",
141
+ B1puzpu: "f1wkw4r9",
142
+ Brfgrao: "f1j7ml58",
143
+ Bcvre1j: "fyl8oag",
144
+ Ccq8qp: "frdoeuz",
145
+ Baz25je: "fb81m9q",
146
+ cmx5o7: "f1ljr5q2",
147
+ B4f6apu: "fyfemzf",
148
+ m598lv: "focyt6c",
149
+ Bk5zm6e: "fnhxbxj",
150
+ y0oebl: "fdw6hkg",
151
+ qa3bma: "f11yjt3y",
152
+ Bqjgrrk: "f1172wan",
153
+ Budzafs: [
154
+ "f9e5op9",
155
+ "f112wvtl"
156
+ ],
157
+ Hv9wc6: [
158
+ "ftj5xct",
159
+ "fyavhwi"
160
+ ],
161
+ hl6cv3: "f1773hnp",
162
+ Bh2vraf: "f1n8855c",
163
+ yayu3t: "f1v7783n",
164
+ wedwtw: "fsw6im5",
165
+ rhl9o9: "fh2hsk5",
166
+ Bu8t5uz: "f159pzir",
167
+ B6q6orb: "f11yvu4",
168
+ Bwwlvwl: "fm1ycve"
169
+ }
110
170
  }, {
111
- d: [".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".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);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}", ".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".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;}", ".f1wl9k8s::before{content:\"\";}", ".f1wkw4r9::before{visibility:visible;}", ".f1j7ml58::before{position:absolute;}", ".fyl8oag::before{box-sizing:border-box;}", ".frdoeuz::before{width:inherit;}", ".fb81m9q::before{height:inherit;}", ".f1ljr5q2::before{background-color:inherit;}", ".fyfemzf::before{border-right-width:1px;}", ".focyt6c::before{border-right-style:solid;}", ".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}", ".fdw6hkg::before{border-bottom-width:1px;}", ".f11yjt3y::before{border-bottom-style:solid;}", ".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}", ".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".ftj5xct::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);}", ".fyavhwi::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;}"]
171
+ d: [
172
+ ".f19n0e5{color:var(--colorNeutralForeground1);}",
173
+ ".fxugw4r{background-color:var(--colorNeutralBackground1);}",
174
+ ".f1hg901r{box-shadow:var(--shadow16);}",
175
+ ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",
176
+ ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",
177
+ ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",
178
+ ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",
179
+ ".f5ogflp{border-top-width:1px;}",
180
+ ".f1hqa2wf{border-right-width:1px;}",
181
+ ".finvdd3{border-left-width:1px;}",
182
+ ".f1f09k3d{border-bottom-width:1px;}",
183
+ ".fzkkow9{border-top-style:solid;}",
184
+ ".fcdblym{border-right-style:solid;}",
185
+ ".fjik90z{border-left-style:solid;}",
186
+ ".fg706s2{border-bottom-style:solid;}",
187
+ ".fghlq4f{border-top-color:var(--colorTransparentStroke);}",
188
+ ".f1gn591s{border-right-color:var(--colorTransparentStroke);}",
189
+ ".fjscplz{border-left-color:var(--colorTransparentStroke);}",
190
+ ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",
191
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
192
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
193
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
194
+ ".f1i3iumi{line-height:var(--lineHeightBase300);}",
195
+ ".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",
196
+ ".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",
197
+ ".ffp7eso{background-color:var(--colorBrandBackground);}",
198
+ ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",
199
+ ".f1kcqot9{padding-top:12px;}",
200
+ ".f11qrl6u{padding-right:12px;}",
201
+ ".fjlbh76{padding-left:12px;}",
202
+ ".fpe6lb7{padding-bottom:12px;}",
203
+ ".fqag9an{padding-top:16px;}",
204
+ ".f1gbmcue{padding-right:16px;}",
205
+ ".f1rh9g5y{padding-left:16px;}",
206
+ ".fp67ikv{padding-bottom:16px;}",
207
+ ".fc7z3ec{padding-top:20px;}",
208
+ ".fat0sn4{padding-right:20px;}",
209
+ ".fekwl8i{padding-left:20px;}",
210
+ ".fe2my4m{padding-bottom:20px;}",
211
+ ".f1ekdpwm{width:8.484px;}",
212
+ ".f83vc9z{height:8.484px;}",
213
+ ".f1kmc0fn{width:11.312px;}",
214
+ ".fb6lvc5{height:11.312px;}",
215
+ ".f1euv43f{position:absolute;}",
216
+ ".f1u2r49w{background-color:inherit;}",
217
+ ".fd7fpy0{visibility:hidden;}",
218
+ ".f1bsuimh{z-index:-1;}",
219
+ ".f1wl9k8s::before{content:\"\";}",
220
+ ".f1wkw4r9::before{visibility:visible;}",
221
+ ".f1j7ml58::before{position:absolute;}",
222
+ ".fyl8oag::before{box-sizing:border-box;}",
223
+ ".frdoeuz::before{width:inherit;}",
224
+ ".fb81m9q::before{height:inherit;}",
225
+ ".f1ljr5q2::before{background-color:inherit;}",
226
+ ".fyfemzf::before{border-right-width:1px;}",
227
+ ".focyt6c::before{border-right-style:solid;}",
228
+ ".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",
229
+ ".fdw6hkg::before{border-bottom-width:1px;}",
230
+ ".f11yjt3y::before{border-bottom-style:solid;}",
231
+ ".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",
232
+ ".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",
233
+ ".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",
234
+ ".ftj5xct::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);}",
235
+ ".fyavhwi::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);}",
236
+ "[data-popper-placement^=\"top\"] .f1773hnp{bottom:-1px;}",
237
+ "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}",
238
+ "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}",
239
+ "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}",
240
+ "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}",
241
+ "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}",
242
+ "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}",
243
+ "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"
244
+ ]
112
245
  });
113
- /**
114
- * Apply styling to the PopoverSurface slots based on the state
115
- */
116
- const usePopoverSurfaceStyles_unstable = state => {
117
- const styles = useStyles();
118
- state.root.className = react_1.mergeClasses(exports.popoverSurfaceClassNames.root, 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);
120
- return state;
121
- };
122
- exports.usePopoverSurfaceStyles_unstable = usePopoverSurfaceStyles_unstable;
246
+ const usePopoverSurfaceStyles_unstable = (state)=>{
247
+ const styles = useStyles();
248
+ state.root.className = (0, _react.mergeClasses)(popoverSurfaceClassNames.root, 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);
249
+ state.arrowClassName = (0, _react.mergeClasses)(styles.arrow, state.size === 'small' ? styles.smallArrow : styles.mediumLargeArrow);
250
+ return state;
251
+ }; //# sourceMappingURL=usePopoverSurfaceStyles.js.map
252
+
123
253
  //# sourceMappingURL=usePopoverSurfaceStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_1","require","react_positioning_1","react_theme_1","exports","popoverSurfaceClassNames","root","arrowHeights","small","medium","large","useStyles","__styles","sj55zd","De3pzq","E5pizo","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","B4j52fo","Bekrc4i","Bn0qgzm","ibv6hh","icvyot","vrafjx","oivjwe","wvpqe5","g2u3we","h3c5rm","B9xav0g","zhjwy3","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","inverted","brand","smallPadding","z8tnut","z189sj","Byoj8tv","uwmqm3","mediumPadding","largePadding","smallArrow","a9b677","Bqenvij","mediumLargeArrow","arrow","qhf8xq","Bcdw1i0","Bj3rh1h","Ftih45","B1puzpu","Brfgrao","Bcvre1j","Ccq8qp","Baz25je","cmx5o7","B4f6apu","m598lv","Bk5zm6e","y0oebl","qa3bma","Bqjgrrk","Budzafs","Hv9wc6","hl6cv3","Bh2vraf","yayu3t","wedwtw","rhl9o9","Bu8t5uz","B6q6orb","Bwwlvwl","d","usePopoverSurfaceStyles_unstable","state","styles","className","mergeClasses","size","appearance","arrowClassName"],"sources":["../src/packages/react-components/react-popover/src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"sourcesContent":["import { shorthands, makeStyles, mergeClasses } from '@griffel/react';\nimport { createArrowHeightStyles, createArrowStyles } from '@fluentui/react-positioning';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport type { PopoverSize } from '../Popover/Popover.types';\nimport type { PopoverSurfaceSlots, PopoverSurfaceState } from './PopoverSurface.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const popoverSurfaceClassNames: SlotClassNames<PopoverSurfaceSlots> = {\n root: 'fui-PopoverSurface',\n};\n\nexport const arrowHeights: Record<PopoverSize, number> = {\n small: 6,\n medium: 8,\n large: 8,\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n color: tokens.colorNeutralForeground1,\n backgroundColor: tokens.colorNeutralBackground1,\n boxShadow: tokens.shadow16,\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n ...shorthands.border('1px', 'solid', tokens.colorTransparentStroke),\n ...typographyStyles.body1,\n },\n\n inverted: {\n backgroundColor: tokens.colorNeutralBackgroundStatic,\n color: tokens.colorNeutralForegroundStaticInverted,\n },\n\n brand: {\n backgroundColor: tokens.colorBrandBackground,\n color: tokens.colorNeutralForegroundOnBrand,\n },\n\n smallPadding: {\n ...shorthands.padding('12px'),\n },\n\n mediumPadding: {\n ...shorthands.padding('16px'),\n },\n\n largePadding: {\n ...shorthands.padding('20px'),\n },\n\n smallArrow: createArrowHeightStyles(arrowHeights.small),\n mediumLargeArrow: createArrowHeightStyles(arrowHeights.medium),\n arrow: createArrowStyles({ arrowHeight: undefined }),\n});\n\n/**\n * Apply styling to the PopoverSurface slots based on the state\n */\nexport const usePopoverSurfaceStyles_unstable = (state: PopoverSurfaceState): PopoverSurfaceState => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n popoverSurfaceClassNames.root,\n styles.root,\n state.size === 'small' && styles.smallPadding,\n state.size === 'medium' && styles.mediumPadding,\n state.size === 'large' && styles.largePadding,\n state.appearance === 'inverted' && styles.inverted,\n state.appearance === 'brand' && styles.brand,\n state.root.className,\n );\n\n state.arrowClassName = mergeClasses(\n styles.arrow,\n state.size === 'small' ? styles.smallArrow : styles.mediumLargeArrow,\n );\n\n return state;\n};\n"],"mappings":";;;;;;AAAA,MAAAA,OAAA,gBAAAC,OAAA;AACA,MAAAC,mBAAA,gBAAAD,OAAA;AACA,MAAAE,aAAA,gBAAAF,OAAA;AAKaG,OAAA,CAAAC,wBAAwB,GAAwC;EAC3EC,IAAI,EAAE;CACP;AAEYF,OAAA,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AA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAmC1B;AAEF;;;AAGO,MAAMC,gCAAgC,GAAIC,KAA0B,IAAyB;EAClG,MAAMC,MAAM,GAAGpE,SAAS,EAAE;EAC1BmE,KAAK,CAACxE,IAAI,CAAC0E,SAAS,GAAGhF,OAAA,CAAAiF,YAAY,CACjC7E,OAAA,CAAAC,wBAAwB,CAACC,IAAI,EAC7ByE,MAAM,CAACzE,IAAI,EACXwE,KAAK,CAACI,IAAI,KAAK,OAAO,IAAIH,MAAM,CAACzC,YAAY,EAC7CwC,KAAK,CAACI,IAAI,KAAK,QAAQ,IAAIH,MAAM,CAACpC,aAAa,EAC/CmC,KAAK,CAACI,IAAI,KAAK,OAAO,IAAIH,MAAM,CAACnC,YAAY,EAC7CkC,KAAK,CAACK,UAAU,KAAK,UAAU,IAAIJ,MAAM,CAAC3C,QAAQ,EAClD0C,KAAK,CAACK,UAAU,KAAK,OAAO,IAAIJ,MAAM,CAAC1C,KAAK,EAC5CyC,KAAK,CAACxE,IAAI,CAAC0E,SAAS,CACrB;EAEDF,KAAK,CAACM,cAAc,GAAGpF,OAAA,CAAAiF,YAAY,CACjCF,MAAM,CAAC9B,KAAK,EACZ6B,KAAK,CAACI,IAAI,KAAK,OAAO,GAAGH,MAAM,CAAClC,UAAU,GAAGkC,MAAM,CAAC/B,gBAAgB,CACrE;EAED,OAAO8B,KAAK;AACd,CAAC;AAnBY1E,OAAA,CAAAyE,gCAAgC,GAAAA,gCAAA"}
1
+ {"version":3,"sources":["../../../lib/components/PopoverSurface/usePopoverSurfaceStyles.js"],"sourcesContent":["import { shorthands, __styles, mergeClasses } from '@griffel/react';\nimport { createArrowHeightStyles, createArrowStyles } from '@fluentui/react-positioning';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nexport const popoverSurfaceClassNames = {\n root: 'fui-PopoverSurface'\n};\nexport const arrowHeights = {\n small: 6,\n medium: 8,\n large: 8\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n sj55zd: \"f19n0e5\",\n De3pzq: \"fxugw4r\",\n E5pizo: \"f1hg901r\",\n Bbmb7ep: [\"f1aa9q02\", \"f16jpd5f\"],\n Beyfa6y: [\"f16jpd5f\", \"f1aa9q02\"],\n B7oj6ja: [\"f1jar5jt\", \"fyu767a\"],\n Btl43ni: [\"fyu767a\", \"f1jar5jt\"],\n B4j52fo: \"f5ogflp\",\n Bekrc4i: [\"f1hqa2wf\", \"finvdd3\"],\n Bn0qgzm: \"f1f09k3d\",\n ibv6hh: [\"finvdd3\", \"f1hqa2wf\"],\n icvyot: \"fzkkow9\",\n vrafjx: [\"fcdblym\", \"fjik90z\"],\n oivjwe: \"fg706s2\",\n wvpqe5: [\"fjik90z\", \"fcdblym\"],\n g2u3we: \"fghlq4f\",\n h3c5rm: [\"f1gn591s\", \"fjscplz\"],\n B9xav0g: \"fb073pr\",\n zhjwy3: [\"fjscplz\", \"f1gn591s\"],\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fkhj508\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"f1i3iumi\"\n },\n inverted: {\n De3pzq: \"fg3r6xk\",\n sj55zd: \"fonrgv7\"\n },\n brand: {\n De3pzq: \"ffp7eso\",\n sj55zd: \"f1phragk\"\n },\n smallPadding: {\n z8tnut: \"f1kcqot9\",\n z189sj: [\"f11qrl6u\", \"fjlbh76\"],\n Byoj8tv: \"fpe6lb7\",\n uwmqm3: [\"fjlbh76\", \"f11qrl6u\"]\n },\n mediumPadding: {\n z8tnut: \"fqag9an\",\n z189sj: [\"f1gbmcue\", \"f1rh9g5y\"],\n Byoj8tv: \"fp67ikv\",\n uwmqm3: [\"f1rh9g5y\", \"f1gbmcue\"]\n },\n largePadding: {\n z8tnut: \"fc7z3ec\",\n z189sj: [\"fat0sn4\", \"fekwl8i\"],\n Byoj8tv: \"fe2my4m\",\n uwmqm3: [\"fekwl8i\", \"fat0sn4\"]\n },\n smallArrow: {\n a9b677: \"f1ekdpwm\",\n Bqenvij: \"f83vc9z\"\n },\n mediumLargeArrow: {\n a9b677: \"f1kmc0fn\",\n Bqenvij: \"fb6lvc5\"\n },\n arrow: {\n qhf8xq: \"f1euv43f\",\n De3pzq: \"f1u2r49w\",\n Bcdw1i0: \"fd7fpy0\",\n Bj3rh1h: \"f1bsuimh\",\n Ftih45: \"f1wl9k8s\",\n B1puzpu: \"f1wkw4r9\",\n Brfgrao: \"f1j7ml58\",\n Bcvre1j: \"fyl8oag\",\n Ccq8qp: \"frdoeuz\",\n Baz25je: \"fb81m9q\",\n cmx5o7: \"f1ljr5q2\",\n B4f6apu: \"fyfemzf\",\n m598lv: \"focyt6c\",\n Bk5zm6e: \"fnhxbxj\",\n y0oebl: \"fdw6hkg\",\n qa3bma: \"f11yjt3y\",\n Bqjgrrk: \"f1172wan\",\n Budzafs: [\"f9e5op9\", \"f112wvtl\"],\n Hv9wc6: [\"ftj5xct\", \"fyavhwi\"],\n hl6cv3: \"f1773hnp\",\n Bh2vraf: \"f1n8855c\",\n yayu3t: \"f1v7783n\",\n wedwtw: \"fsw6im5\",\n rhl9o9: \"fh2hsk5\",\n Bu8t5uz: \"f159pzir\",\n B6q6orb: \"f11yvu4\",\n Bwwlvwl: \"fm1ycve\"\n }\n}, {\n d: [\".f19n0e5{color:var(--colorNeutralForeground1);}\", \".fxugw4r{background-color:var(--colorNeutralBackground1);}\", \".f1hg901r{box-shadow:var(--shadow16);}\", \".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}\", \".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}\", \".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}\", \".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}\", \".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);}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".f1i3iumi{line-height:var(--lineHeightBase300);}\", \".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}\", \".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}\", \".ffp7eso{background-color:var(--colorBrandBackground);}\", \".f1phragk{color:var(--colorNeutralForegroundOnBrand);}\", \".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;}\", \".f1wl9k8s::before{content:\\\"\\\";}\", \".f1wkw4r9::before{visibility:visible;}\", \".f1j7ml58::before{position:absolute;}\", \".fyl8oag::before{box-sizing:border-box;}\", \".frdoeuz::before{width:inherit;}\", \".fb81m9q::before{height:inherit;}\", \".f1ljr5q2::before{background-color:inherit;}\", \".fyfemzf::before{border-right-width:1px;}\", \".focyt6c::before{border-right-style:solid;}\", \".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}\", \".fdw6hkg::before{border-bottom-width:1px;}\", \".f11yjt3y::before{border-bottom-style:solid;}\", \".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}\", \".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}\", \".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}\", \".ftj5xct::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);}\", \".fyavhwi::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;}\"]\n});\n/**\n * Apply styling to the PopoverSurface slots based on the state\n */\nexport const usePopoverSurfaceStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(popoverSurfaceClassNames.root, 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);\n state.arrowClassName = mergeClasses(styles.arrow, state.size === 'small' ? styles.smallArrow : styles.mediumLargeArrow);\n return state;\n};\n//# sourceMappingURL=usePopoverSurfaceStyles.js.map"],"names":["popoverSurfaceClassNames","arrowHeights","usePopoverSurfaceStyles_unstable","root","small","medium","large","useStyles","__styles","sj55zd","De3pzq","E5pizo","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","B4j52fo","Bekrc4i","Bn0qgzm","ibv6hh","icvyot","vrafjx","oivjwe","wvpqe5","g2u3we","h3c5rm","B9xav0g","zhjwy3","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","inverted","brand","smallPadding","z8tnut","z189sj","Byoj8tv","uwmqm3","mediumPadding","largePadding","smallArrow","a9b677","Bqenvij","mediumLargeArrow","arrow","qhf8xq","Bcdw1i0","Bj3rh1h","Ftih45","B1puzpu","Brfgrao","Bcvre1j","Ccq8qp","Baz25je","cmx5o7","B4f6apu","m598lv","Bk5zm6e","y0oebl","qa3bma","Bqjgrrk","Budzafs","Hv9wc6","hl6cv3","Bh2vraf","yayu3t","wedwtw","rhl9o9","Bu8t5uz","B6q6orb","Bwwlvwl","d","state","styles","className","mergeClasses","size","appearance","arrowClassName"],"mappings":";;;;;;;;;;;IAGaA,wBAAwB,MAAxBA;IAGAC,YAAY,MAAZA;IAuGAC,gCAAgC,MAAhCA;;uBA7GsC;AAG5C,MAAMF,2BAA2B;IACtCG,MAAM;AACR;AACO,MAAMF,eAAe;IAC1BG,OAAO;IACPC,QAAQ;IACRC,OAAO;AACT;AACA;;CAEC,GACD,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCL,MAAM;QACJM,QAAQ;QACRC,QAAQ;QACRC,QAAQ;QACRC,SAAS;YAAC;YAAY;SAAW;QACjCC,SAAS;YAAC;YAAY;SAAW;QACjCC,SAAS;YAAC;YAAY;SAAU;QAChCC,SAAS;YAAC;YAAW;SAAW;QAChCC,SAAS;QACTC,SAAS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