@fluentui/react-positioning 9.6.0 → 9.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,54 @@
2
2
  "name": "@fluentui/react-positioning",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 31 May 2023 06:43:00 GMT",
5
+ "date": "Tue, 20 Jun 2023 12:34:45 GMT",
6
+ "tag": "@fluentui/react-positioning_v9.7.0",
7
+ "version": "9.7.0",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "martinhochel@microsoft.com",
12
+ "package": "@fluentui/react-positioning",
13
+ "commit": "cf6b94ba6559236150bc1f1814b023607edaeb20",
14
+ "comment": "chore: migrate to ts 4.7 which wont emit undefined anymore for optional arguments"
15
+ },
16
+ {
17
+ "author": "olfedias@microsoft.com",
18
+ "package": "@fluentui/react-positioning",
19
+ "commit": "cbdfdd61ae2ea8954fad2eb53d62c2b036416101",
20
+ "comment": "fix: cleanup assignment of initial styles"
21
+ }
22
+ ],
23
+ "minor": [
24
+ {
25
+ "author": "lingfangao@hotmail.com",
26
+ "package": "@fluentui/react-positioning",
27
+ "commit": "71fcadc8347a9c547066b631eb7f3ec527ca9775",
28
+ "comment": "feat: Implement shared styles for slide animations"
29
+ },
30
+ {
31
+ "author": "beachball",
32
+ "package": "@fluentui/react-positioning",
33
+ "comment": "Bump @fluentui/react-shared-contexts to v9.5.1",
34
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
35
+ },
36
+ {
37
+ "author": "beachball",
38
+ "package": "@fluentui/react-positioning",
39
+ "comment": "Bump @fluentui/react-theme to v9.1.9",
40
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
41
+ },
42
+ {
43
+ "author": "beachball",
44
+ "package": "@fluentui/react-positioning",
45
+ "comment": "Bump @fluentui/react-utilities to v9.9.3",
46
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ {
52
+ "date": "Wed, 31 May 2023 06:46:17 GMT",
6
53
  "tag": "@fluentui/react-positioning_v9.6.0",
7
54
  "version": "9.6.0",
8
55
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,29 @@
1
1
  # Change Log - @fluentui/react-positioning
2
2
 
3
- This log was last generated on Wed, 31 May 2023 06:43:00 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 20 Jun 2023 12:34:45 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.7.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-positioning_v9.7.0)
8
+
9
+ Tue, 20 Jun 2023 12:34:45 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-positioning_v9.6.0..@fluentui/react-positioning_v9.7.0)
11
+
12
+ ### Minor changes
13
+
14
+ - feat: Implement shared styles for slide animations ([PR #28119](https://github.com/microsoft/fluentui/pull/28119) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-shared-contexts to v9.5.1 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
16
+ - Bump @fluentui/react-theme to v9.1.9 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
17
+ - Bump @fluentui/react-utilities to v9.9.3 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
18
+
19
+ ### Patches
20
+
21
+ - chore: migrate to ts 4.7 which wont emit undefined anymore for optional arguments ([PR #28067](https://github.com/microsoft/fluentui/pull/28067) by martinhochel@microsoft.com)
22
+ - fix: cleanup assignment of initial styles ([PR #28109](https://github.com/microsoft/fluentui/pull/28109) by olfedias@microsoft.com)
23
+
7
24
  ## [9.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-positioning_v9.6.0)
8
25
 
9
- Wed, 31 May 2023 06:43:00 GMT
26
+ Wed, 31 May 2023 06:46:17 GMT
10
27
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-positioning_v9.5.14..@fluentui/react-positioning_v9.6.0)
11
28
 
12
29
  ### Minor changes
package/dist/index.d.ts CHANGED
@@ -76,6 +76,13 @@ export declare type CreateArrowStylesOptions = {
76
76
  borderColor?: GriffelStyle['borderBottomColor'];
77
77
  };
78
78
 
79
+ /**
80
+ * Creates animation styles so that positioned elements slide in from the main axis
81
+ * @param mainAxis - distance than the element sides for
82
+ * @returns Griffel styles to spread to a slot
83
+ */
84
+ export declare function createSlideStyles(mainAxis: number): GriffelStyle;
85
+
79
86
  /**
80
87
  * Creates a virtual element based on the position of a click event
81
88
  * Can be used as a target for popper in scenarios such as context menus
@@ -254,7 +261,7 @@ export declare function usePositioning(options: UsePositioningOptions): UsePosit
254
261
  * @param initialState - initializes a user provided state similare to useState
255
262
  * @returns state and dispatcher for a Popper virtual element that uses native/synthetic mouse events
256
263
  */
257
- export declare const usePositioningMouseTarget: (initialState?: PositioningVirtualElement | (() => PositioningVirtualElement) | undefined) => readonly [PositioningVirtualElement | undefined, SetVirtualMouseTarget];
264
+ export declare const usePositioningMouseTarget: (initialState?: PositioningVirtualElement | (() => PositioningVirtualElement)) => readonly [PositioningVirtualElement | undefined, SetVirtualMouseTarget];
258
265
 
259
266
  declare interface UsePositioningOptions extends PositioningProps, Pick<PositioningOptions, 'fallbackPositions' | 'pinned'> {
260
267
  /**
@@ -0,0 +1,59 @@
1
+ import { tokens } from '@fluentui/react-theme';
2
+ import { DATA_POSITIONING_PLACEMENT } from './constants';
3
+ /**
4
+ * Creates animation styles so that positioned elements slide in from the main axis
5
+ * @param mainAxis - distance than the element sides for
6
+ * @returns Griffel styles to spread to a slot
7
+ */ export function createSlideStyles(mainAxis) {
8
+ const fadeIn = {
9
+ from: {
10
+ opacity: 0
11
+ },
12
+ to: {
13
+ opacity: 1
14
+ }
15
+ };
16
+ const slideDistanceVarX = '--slide-distance-x';
17
+ const slideDistanceVarY = '--slide-distance-y';
18
+ return {
19
+ animationComposition: 'accumulate',
20
+ animationDuration: tokens.durationSlower,
21
+ animationTimingFunction: tokens.curveDecelerateMid,
22
+ [slideDistanceVarX]: `0px`,
23
+ [slideDistanceVarY]: `${mainAxis}px`,
24
+ [`&[${DATA_POSITIONING_PLACEMENT}^=right]`]: {
25
+ [slideDistanceVarX]: `-${mainAxis}px`,
26
+ [slideDistanceVarY]: '0px'
27
+ },
28
+ [`&[${DATA_POSITIONING_PLACEMENT}^=bottom]`]: {
29
+ [slideDistanceVarX]: '0px',
30
+ [slideDistanceVarY]: `-${mainAxis}px`
31
+ },
32
+ [`&[${DATA_POSITIONING_PLACEMENT}^=left]`]: {
33
+ [slideDistanceVarX]: `${mainAxis}px`,
34
+ [slideDistanceVarY]: '0px'
35
+ },
36
+ animationName: [
37
+ fadeIn,
38
+ {
39
+ from: {
40
+ transform: `translate(var(${slideDistanceVarX}), var(${slideDistanceVarY}))`
41
+ },
42
+ to: {}
43
+ }
44
+ ],
45
+ // Note: at-rules have more specificity in Griffel
46
+ '@media(prefers-reduced-motion)': {
47
+ [`&[${DATA_POSITIONING_PLACEMENT}]`]: {
48
+ animationDuration: '1ms',
49
+ animationName: fadeIn
50
+ }
51
+ },
52
+ // Tested in Firefox 79
53
+ '@supports not (animation-composition: accumulate)': {
54
+ [`&[${DATA_POSITIONING_PLACEMENT}]`]: {
55
+ animationName: fadeIn
56
+ }
57
+ }
58
+ };
59
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["createSlideStyles.ts"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport type { GriffelStyle } from '@griffel/react';\nimport { DATA_POSITIONING_PLACEMENT } from './constants';\n\n/**\n * Creates animation styles so that positioned elements slide in from the main axis\n * @param mainAxis - distance than the element sides for\n * @returns Griffel styles to spread to a slot\n */\nexport function createSlideStyles(mainAxis: number): GriffelStyle {\n const fadeIn = {\n from: {\n opacity: 0,\n },\n to: {\n opacity: 1,\n },\n };\n\n const slideDistanceVarX = '--slide-distance-x';\n const slideDistanceVarY = '--slide-distance-y';\n\n return {\n animationComposition: 'accumulate',\n animationDuration: tokens.durationSlower,\n animationTimingFunction: tokens.curveDecelerateMid,\n [slideDistanceVarX]: `0px`,\n [slideDistanceVarY]: `${mainAxis}px`,\n [`&[${DATA_POSITIONING_PLACEMENT}^=right]`]: {\n [slideDistanceVarX]: `-${mainAxis}px`,\n [slideDistanceVarY]: '0px',\n },\n\n [`&[${DATA_POSITIONING_PLACEMENT}^=bottom]`]: {\n [slideDistanceVarX]: '0px',\n [slideDistanceVarY]: `-${mainAxis}px`,\n },\n\n [`&[${DATA_POSITIONING_PLACEMENT}^=left]`]: {\n [slideDistanceVarX]: `${mainAxis}px`,\n [slideDistanceVarY]: '0px',\n },\n\n animationName: [\n fadeIn,\n {\n from: {\n transform: `translate(var(${slideDistanceVarX}), var(${slideDistanceVarY}))`,\n },\n to: {},\n },\n ],\n\n // Note: at-rules have more specificity in Griffel\n '@media(prefers-reduced-motion)': {\n [`&[${DATA_POSITIONING_PLACEMENT}]`]: {\n animationDuration: '1ms',\n animationName: fadeIn,\n },\n },\n\n // Tested in Firefox 79\n '@supports not (animation-composition: accumulate)': {\n [`&[${DATA_POSITIONING_PLACEMENT}]`]: {\n animationName: fadeIn,\n },\n },\n };\n}\n"],"names":["tokens","DATA_POSITIONING_PLACEMENT","createSlideStyles","mainAxis","fadeIn","from","opacity","to","slideDistanceVarX","slideDistanceVarY","animationComposition","animationDuration","durationSlower","animationTimingFunction","curveDecelerateMid","animationName","transform"],"mappings":"AAAA,SAASA,MAAM,QAAQ,wBAAwB;AAE/C,SAASC,0BAA0B,QAAQ,cAAc;AAEzD;;;;CAIC,GACD,OAAO,SAASC,kBAAkBC,QAAgB,EAAgB;IAChE,MAAMC,SAAS;QACbC,MAAM;YACJC,SAAS;QACX;QACAC,IAAI;YACFD,SAAS;QACX;IACF;IAEA,MAAME,oBAAoB;IAC1B,MAAMC,oBAAoB;IAE1B,OAAO;QACLC,sBAAsB;QACtBC,mBAAmBX,OAAOY,cAAc;QACxCC,yBAAyBb,OAAOc,kBAAkB;QAClD,CAACN,kBAAkB,EAAE,CAAC,GAAG,CAAC;QAC1B,CAACC,kBAAkB,EAAE,CAAC,EAAEN,SAAS,EAAE,CAAC;QACpC,CAAC,CAAC,EAAE,EAAEF,2BAA2B,QAAQ,CAAC,CAAC,EAAE;YAC3C,CAACO,kBAAkB,EAAE,CAAC,CAAC,EAAEL,SAAS,EAAE,CAAC;YACrC,CAACM,kBAAkB,EAAE;QACvB;QAEA,CAAC,CAAC,EAAE,EAAER,2BAA2B,SAAS,CAAC,CAAC,EAAE;YAC5C,CAACO,kBAAkB,EAAE;YACrB,CAACC,kBAAkB,EAAE,CAAC,CAAC,EAAEN,SAAS,EAAE,CAAC;QACvC;QAEA,CAAC,CAAC,EAAE,EAAEF,2BAA2B,OAAO,CAAC,CAAC,EAAE;YAC1C,CAACO,kBAAkB,EAAE,CAAC,EAAEL,SAAS,EAAE,CAAC;YACpC,CAACM,kBAAkB,EAAE;QACvB;QAEAM,eAAe;YACbX;YACA;gBACEC,MAAM;oBACJW,WAAW,CAAC,cAAc,EAAER,kBAAkB,OAAO,EAAEC,kBAAkB,EAAE,CAAC;gBAC9E;gBACAF,IAAI,CAAC;YACP;SACD;QAED,kDAAkD;QAClD,kCAAkC;YAChC,CAAC,CAAC,EAAE,EAAEN,2BAA2B,CAAC,CAAC,CAAC,EAAE;gBACpCU,mBAAmB;gBACnBI,eAAeX;YACjB;QACF;QAEA,uBAAuB;QACvB,qDAAqD;YACnD,CAAC,CAAC,EAAE,EAAEH,2BAA2B,CAAC,CAAC,CAAC,EAAE;gBACpCc,eAAeX;YACjB;QACF;IACF;AACF,CAAC"}
package/lib/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { createVirtualElementFromClick } from './createVirtualElementFromClick';
2
2
  export { createArrowHeightStyles, createArrowStyles } from './createArrowStyles';
3
+ export { createSlideStyles } from './createSlideStyles';
3
4
  export { usePositioning } from './usePositioning';
4
5
  export { usePositioningMouseTarget } from './usePositioningMouseTarget';
5
6
  export { resolvePositioningShorthand, mergeArrowOffset } from './utils/index';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export { createVirtualElementFromClick } from './createVirtualElementFromClick';\nexport { createArrowHeightStyles, createArrowStyles } from './createArrowStyles';\nexport type { CreateArrowStylesOptions } from './createArrowStyles';\nexport { usePositioning } from './usePositioning';\nexport { usePositioningMouseTarget } from './usePositioningMouseTarget';\nexport { resolvePositioningShorthand, mergeArrowOffset } from './utils/index';\nexport type {\n Alignment,\n AutoSize,\n Boundary,\n Offset,\n OffsetFunction,\n OffsetFunctionParam,\n OffsetObject,\n OffsetShorthand,\n Position,\n PositioningImperativeRef,\n PositioningProps,\n PositioningShorthand,\n PositioningShorthandValue,\n PositioningVirtualElement,\n SetVirtualMouseTarget,\n} from './types';\n"],"names":["createVirtualElementFromClick","createArrowHeightStyles","createArrowStyles","usePositioning","usePositioningMouseTarget","resolvePositioningShorthand","mergeArrowOffset"],"mappings":"AAAA,SAASA,6BAA6B,QAAQ,kCAAkC;AAChF,SAASC,uBAAuB,EAAEC,iBAAiB,QAAQ,sBAAsB;AAEjF,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,yBAAyB,QAAQ,8BAA8B;AACxE,SAASC,2BAA2B,EAAEC,gBAAgB,QAAQ,gBAAgB"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { createVirtualElementFromClick } from './createVirtualElementFromClick';\nexport { createArrowHeightStyles, createArrowStyles } from './createArrowStyles';\nexport { createSlideStyles } from './createSlideStyles';\nexport type { CreateArrowStylesOptions } from './createArrowStyles';\nexport { usePositioning } from './usePositioning';\nexport { usePositioningMouseTarget } from './usePositioningMouseTarget';\nexport { resolvePositioningShorthand, mergeArrowOffset } from './utils/index';\nexport type {\n Alignment,\n AutoSize,\n Boundary,\n Offset,\n OffsetFunction,\n OffsetFunctionParam,\n OffsetObject,\n OffsetShorthand,\n Position,\n PositioningImperativeRef,\n PositioningProps,\n PositioningShorthand,\n PositioningShorthandValue,\n PositioningVirtualElement,\n SetVirtualMouseTarget,\n} from './types';\n"],"names":["createVirtualElementFromClick","createArrowHeightStyles","createArrowStyles","createSlideStyles","usePositioning","usePositioningMouseTarget","resolvePositioningShorthand","mergeArrowOffset"],"mappings":"AAAA,SAASA,6BAA6B,QAAQ,kCAAkC;AAChF,SAASC,uBAAuB,EAAEC,iBAAiB,QAAQ,sBAAsB;AACjF,SAASC,iBAAiB,QAAQ,sBAAsB;AAExD,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,yBAAyB,QAAQ,8BAA8B;AACxE,SAASC,2BAA2B,EAAEC,gBAAgB,QAAQ,gBAAgB"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "createSlideStyles", {
6
+ enumerable: true,
7
+ get: ()=>createSlideStyles
8
+ });
9
+ const _reactTheme = require("@fluentui/react-theme");
10
+ const _constants = require("./constants");
11
+ function createSlideStyles(mainAxis) {
12
+ const fadeIn = {
13
+ from: {
14
+ opacity: 0
15
+ },
16
+ to: {
17
+ opacity: 1
18
+ }
19
+ };
20
+ const slideDistanceVarX = '--slide-distance-x';
21
+ const slideDistanceVarY = '--slide-distance-y';
22
+ return {
23
+ animationComposition: 'accumulate',
24
+ animationDuration: _reactTheme.tokens.durationSlower,
25
+ animationTimingFunction: _reactTheme.tokens.curveDecelerateMid,
26
+ [slideDistanceVarX]: `0px`,
27
+ [slideDistanceVarY]: `${mainAxis}px`,
28
+ [`&[${_constants.DATA_POSITIONING_PLACEMENT}^=right]`]: {
29
+ [slideDistanceVarX]: `-${mainAxis}px`,
30
+ [slideDistanceVarY]: '0px'
31
+ },
32
+ [`&[${_constants.DATA_POSITIONING_PLACEMENT}^=bottom]`]: {
33
+ [slideDistanceVarX]: '0px',
34
+ [slideDistanceVarY]: `-${mainAxis}px`
35
+ },
36
+ [`&[${_constants.DATA_POSITIONING_PLACEMENT}^=left]`]: {
37
+ [slideDistanceVarX]: `${mainAxis}px`,
38
+ [slideDistanceVarY]: '0px'
39
+ },
40
+ animationName: [
41
+ fadeIn,
42
+ {
43
+ from: {
44
+ transform: `translate(var(${slideDistanceVarX}), var(${slideDistanceVarY}))`
45
+ },
46
+ to: {}
47
+ }
48
+ ],
49
+ // Note: at-rules have more specificity in Griffel
50
+ '@media(prefers-reduced-motion)': {
51
+ [`&[${_constants.DATA_POSITIONING_PLACEMENT}]`]: {
52
+ animationDuration: '1ms',
53
+ animationName: fadeIn
54
+ }
55
+ },
56
+ // Tested in Firefox 79
57
+ '@supports not (animation-composition: accumulate)': {
58
+ [`&[${_constants.DATA_POSITIONING_PLACEMENT}]`]: {
59
+ animationName: fadeIn
60
+ }
61
+ }
62
+ };
63
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["createSlideStyles.js"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { DATA_POSITIONING_PLACEMENT } from './constants';\n/**\n * Creates animation styles so that positioned elements slide in from the main axis\n * @param mainAxis - distance than the element sides for\n * @returns Griffel styles to spread to a slot\n */ export function createSlideStyles(mainAxis) {\n const fadeIn = {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n };\n const slideDistanceVarX = '--slide-distance-x';\n const slideDistanceVarY = '--slide-distance-y';\n return {\n animationComposition: 'accumulate',\n animationDuration: tokens.durationSlower,\n animationTimingFunction: tokens.curveDecelerateMid,\n [slideDistanceVarX]: `0px`,\n [slideDistanceVarY]: `${mainAxis}px`,\n [`&[${DATA_POSITIONING_PLACEMENT}^=right]`]: {\n [slideDistanceVarX]: `-${mainAxis}px`,\n [slideDistanceVarY]: '0px'\n },\n [`&[${DATA_POSITIONING_PLACEMENT}^=bottom]`]: {\n [slideDistanceVarX]: '0px',\n [slideDistanceVarY]: `-${mainAxis}px`\n },\n [`&[${DATA_POSITIONING_PLACEMENT}^=left]`]: {\n [slideDistanceVarX]: `${mainAxis}px`,\n [slideDistanceVarY]: '0px'\n },\n animationName: [\n fadeIn,\n {\n from: {\n transform: `translate(var(${slideDistanceVarX}), var(${slideDistanceVarY}))`\n },\n to: {}\n }\n ],\n // Note: at-rules have more specificity in Griffel\n '@media(prefers-reduced-motion)': {\n [`&[${DATA_POSITIONING_PLACEMENT}]`]: {\n animationDuration: '1ms',\n animationName: fadeIn\n }\n },\n // Tested in Firefox 79\n '@supports not (animation-composition: accumulate)': {\n [`&[${DATA_POSITIONING_PLACEMENT}]`]: {\n animationName: fadeIn\n }\n }\n };\n}\n"],"names":["createSlideStyles","mainAxis","fadeIn","from","opacity","to","slideDistanceVarX","slideDistanceVarY","animationComposition","animationDuration","tokens","durationSlower","animationTimingFunction","curveDecelerateMid","DATA_POSITIONING_PLACEMENT","animationName","transform"],"mappings":";;;;+BAMoBA;;aAAAA;;4BANG;2BACoB;AAKhC,SAASA,kBAAkBC,QAAQ,EAAE;IAC5C,MAAMC,SAAS;QACXC,MAAM;YACFC,SAAS;QACb;QACAC,IAAI;YACAD,SAAS;QACb;IACJ;IACA,MAAME,oBAAoB;IAC1B,MAAMC,oBAAoB;IAC1B,OAAO;QACHC,sBAAsB;QACtBC,mBAAmBC,kBAAM,CAACC,cAAc;QACxCC,yBAAyBF,kBAAM,CAACG,kBAAkB;QAClD,CAACP,kBAAkB,EAAE,CAAC,GAAG,CAAC;QAC1B,CAACC,kBAAkB,EAAE,CAAC,EAAEN,SAAS,EAAE,CAAC;QACpC,CAAC,CAAC,EAAE,EAAEa,qCAA0B,CAAC,QAAQ,CAAC,CAAC,EAAE;YACzC,CAACR,kBAAkB,EAAE,CAAC,CAAC,EAAEL,SAAS,EAAE,CAAC;YACrC,CAACM,kBAAkB,EAAE;QACzB;QACA,CAAC,CAAC,EAAE,EAAEO,qCAA0B,CAAC,SAAS,CAAC,CAAC,EAAE;YAC1C,CAACR,kBAAkB,EAAE;YACrB,CAACC,kBAAkB,EAAE,CAAC,CAAC,EAAEN,SAAS,EAAE,CAAC;QACzC;QACA,CAAC,CAAC,EAAE,EAAEa,qCAA0B,CAAC,OAAO,CAAC,CAAC,EAAE;YACxC,CAACR,kBAAkB,EAAE,CAAC,EAAEL,SAAS,EAAE,CAAC;YACpC,CAACM,kBAAkB,EAAE;QACzB;QACAQ,eAAe;YACXb;YACA;gBACIC,MAAM;oBACFa,WAAW,CAAC,cAAc,EAAEV,kBAAkB,OAAO,EAAEC,kBAAkB,EAAE,CAAC;gBAChF;gBACAF,IAAI,CAAC;YACT;SACH;QACD,kDAAkD;QAClD,kCAAkC;YAC9B,CAAC,CAAC,EAAE,EAAES,qCAA0B,CAAC,CAAC,CAAC,CAAC,EAAE;gBAClCL,mBAAmB;gBACnBM,eAAeb;YACnB;QACJ;QACA,uBAAuB;QACvB,qDAAqD;YACjD,CAAC,CAAC,EAAE,EAAEY,qCAA0B,CAAC,CAAC,CAAC,CAAC,EAAE;gBAClCC,eAAeb;YACnB;QACJ;IACJ;AACJ"}
@@ -12,6 +12,7 @@ _export(exports, {
12
12
  createVirtualElementFromClick: ()=>_createVirtualElementFromClick.createVirtualElementFromClick,
13
13
  createArrowHeightStyles: ()=>_createArrowStyles.createArrowHeightStyles,
14
14
  createArrowStyles: ()=>_createArrowStyles.createArrowStyles,
15
+ createSlideStyles: ()=>_createSlideStyles.createSlideStyles,
15
16
  usePositioning: ()=>_usePositioning.usePositioning,
16
17
  usePositioningMouseTarget: ()=>_usePositioningMouseTarget.usePositioningMouseTarget,
17
18
  resolvePositioningShorthand: ()=>_index.resolvePositioningShorthand,
@@ -19,6 +20,7 @@ _export(exports, {
19
20
  });
20
21
  const _createVirtualElementFromClick = require("./createVirtualElementFromClick");
21
22
  const _createArrowStyles = require("./createArrowStyles");
23
+ const _createSlideStyles = require("./createSlideStyles");
22
24
  const _usePositioning = require("./usePositioning");
23
25
  const _usePositioningMouseTarget = require("./usePositioningMouseTarget");
24
26
  const _index = require("./utils/index");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { createVirtualElementFromClick } from './createVirtualElementFromClick';\nexport { createArrowHeightStyles, createArrowStyles } from './createArrowStyles';\nexport { usePositioning } from './usePositioning';\nexport { usePositioningMouseTarget } from './usePositioningMouseTarget';\nexport { resolvePositioningShorthand, mergeArrowOffset } from './utils/index';\n"],"names":["createVirtualElementFromClick","createArrowHeightStyles","createArrowStyles","usePositioning","usePositioningMouseTarget","resolvePositioningShorthand","mergeArrowOffset"],"mappings":";;;;;;;;;;;IAASA,6BAA6B,MAA7BA,4DAA6B;IAC7BC,uBAAuB,MAAvBA,0CAAuB;IAAEC,iBAAiB,MAAjBA,oCAAiB;IAC1CC,cAAc,MAAdA,8BAAc;IACdC,yBAAyB,MAAzBA,oDAAyB;IACzBC,2BAA2B,MAA3BA,kCAA2B;IAAEC,gBAAgB,MAAhBA,uBAAgB;;+CAJR;mCACa;gCAC5B;2CACW;uBACoB"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { createVirtualElementFromClick } from './createVirtualElementFromClick';\nexport { createArrowHeightStyles, createArrowStyles } from './createArrowStyles';\nexport { createSlideStyles } from './createSlideStyles';\nexport { usePositioning } from './usePositioning';\nexport { usePositioningMouseTarget } from './usePositioningMouseTarget';\nexport { resolvePositioningShorthand, mergeArrowOffset } from './utils/index';\n"],"names":["createVirtualElementFromClick","createArrowHeightStyles","createArrowStyles","createSlideStyles","usePositioning","usePositioningMouseTarget","resolvePositioningShorthand","mergeArrowOffset"],"mappings":";;;;;;;;;;;IAASA,6BAA6B,MAA7BA,4DAA6B;IAC7BC,uBAAuB,MAAvBA,0CAAuB;IAAEC,iBAAiB,MAAjBA,oCAAiB;IAC1CC,iBAAiB,MAAjBA,oCAAiB;IACjBC,cAAc,MAAdA,8BAAc;IACdC,yBAAyB,MAAzBA,oDAAyB;IACzBC,2BAA2B,MAA3BA,kCAA2B;IAAEC,gBAAgB,MAAhBA,uBAAgB;;+CALR;mCACa;mCACzB;gCACH;2CACW;uBACoB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-positioning",
3
- "version": "9.6.0",
3
+ "version": "9.7.0",
4
4
  "description": "A react wrapper around Popper.js for Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@floating-ui/dom": "^1.2.0",
33
- "@fluentui/react-shared-contexts": "^9.5.0",
34
- "@fluentui/react-theme": "^9.1.8",
35
- "@fluentui/react-utilities": "^9.9.2",
33
+ "@fluentui/react-shared-contexts": "^9.5.1",
34
+ "@fluentui/react-theme": "^9.1.9",
35
+ "@fluentui/react-utilities": "^9.9.3",
36
36
  "@griffel/react": "^1.5.7",
37
37
  "@swc/helpers": "^0.4.14"
38
38
  },