@fluentui/react-dialog 9.10.5 → 9.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -2
- package/dist/index.d.ts +6 -1
- package/lib/components/Dialog/index.js +1 -0
- package/lib/components/Dialog/index.js.map +1 -1
- package/lib/components/Dialog/renderDialog.js +7 -17
- package/lib/components/Dialog/renderDialog.js.map +1 -1
- package/lib/components/DialogBackdropMotion.js +23 -0
- package/lib/components/DialogBackdropMotion.js.map +1 -0
- package/lib/components/DialogSurface/DialogSurface.types.js.map +1 -1
- package/lib/components/DialogSurface/renderDialogSurface.js +7 -2
- package/lib/components/DialogSurface/renderDialogSurface.js.map +1 -1
- package/lib/components/DialogSurface/useDialogSurface.js +12 -16
- package/lib/components/DialogSurface/useDialogSurface.js.map +1 -1
- package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js +9 -79
- package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js.map +1 -1
- package/lib/components/DialogSurfaceMotion.js +28 -0
- package/lib/components/DialogSurfaceMotion.js.map +1 -0
- package/lib/components/DialogTitle/useDialogTitleStyles.styles.js +3 -3
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Dialog/index.js +1 -0
- package/lib-commonjs/components/Dialog/index.js.map +1 -1
- package/lib-commonjs/components/Dialog/renderDialog.js +8 -17
- package/lib-commonjs/components/Dialog/renderDialog.js.map +1 -1
- package/lib-commonjs/components/DialogBackdropMotion.js +33 -0
- package/lib-commonjs/components/DialogBackdropMotion.js.map +1 -0
- package/lib-commonjs/components/DialogSurface/renderDialogSurface.js +7 -2
- package/lib-commonjs/components/DialogSurface/renderDialogSurface.js.map +1 -1
- package/lib-commonjs/components/DialogSurface/useDialogSurface.js +12 -16
- package/lib-commonjs/components/DialogSurface/useDialogSurface.js.map +1 -1
- package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.js +24 -106
- package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.js.map +1 -1
- package/lib-commonjs/components/DialogSurfaceMotion.js +38 -0
- package/lib-commonjs/components/DialogSurfaceMotion.js.map +1 -0
- package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.js +13 -13
- package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.js.map +1 -1
- package/lib-commonjs/index.js +3 -0
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +10 -10
- package/lib/contexts/dialogTransitionContext.js +0 -17
- package/lib/contexts/dialogTransitionContext.js.map +0 -1
- package/lib-commonjs/contexts/dialogTransitionContext.js +0 -32
- package/lib-commonjs/contexts/dialogTransitionContext.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-dialog",
|
|
3
|
-
"version": "9.10.
|
|
3
|
+
"version": "9.10.7",
|
|
4
4
|
"description": "Dialog component for Fluent UI React",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"@fluentui/scripts-tasks": "*"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@fluentui/react-utilities": "^9.18.
|
|
44
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
|
45
|
-
"react-transition-group": "^4.4.1",
|
|
43
|
+
"@fluentui/react-utilities": "^9.18.9",
|
|
44
|
+
"@fluentui/react-jsx-runtime": "^9.0.38",
|
|
46
45
|
"@fluentui/keyboard-keys": "^9.0.7",
|
|
47
|
-
"@fluentui/react-context-selector": "^9.1.
|
|
48
|
-
"@fluentui/react-
|
|
49
|
-
"@fluentui/react-
|
|
46
|
+
"@fluentui/react-context-selector": "^9.1.60",
|
|
47
|
+
"@fluentui/react-motions-preview": "^0.3.2",
|
|
48
|
+
"@fluentui/react-shared-contexts": "^9.19.0",
|
|
49
|
+
"@fluentui/react-aria": "^9.11.4",
|
|
50
50
|
"@fluentui/react-icons": "^2.0.239",
|
|
51
|
-
"@fluentui/react-tabster": "^9.21.
|
|
51
|
+
"@fluentui/react-tabster": "^9.21.4",
|
|
52
52
|
"@fluentui/react-theme": "^9.1.19",
|
|
53
|
-
"@fluentui/react-portal": "^9.4.
|
|
54
|
-
"@griffel/react": "^1.5.
|
|
53
|
+
"@fluentui/react-portal": "^9.4.26",
|
|
54
|
+
"@griffel/react": "^1.5.22",
|
|
55
55
|
"@swc/helpers": "^0.5.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/ const defaultContextValue = undefined;
|
|
5
|
-
// Contexts should default to undefined
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/ export const DialogTransitionContext = React.createContext(undefined);
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/ export const DialogTransitionProvider = DialogTransitionContext.Provider;
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/ export const useDialogTransitionContext_unstable = ()=>{
|
|
15
|
-
var _React_useContext;
|
|
16
|
-
return (_React_useContext = React.useContext(DialogTransitionContext)) !== null && _React_useContext !== void 0 ? _React_useContext : defaultContextValue;
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["dialogTransitionContext.ts"],"sourcesContent":["import * as React from 'react';\nimport { TransitionStatus } from 'react-transition-group';\n\n/**\n * @internal\n */\nexport type DialogTransitionContextValue = TransitionStatus | undefined;\n\n/**\n * @internal\n */\nconst defaultContextValue: DialogTransitionContextValue = undefined;\n\n// Contexts should default to undefined\n/**\n * @internal\n */\nexport const DialogTransitionContext: React.Context<DialogTransitionContextValue | undefined> = React.createContext<\n DialogTransitionContextValue | undefined\n>(undefined);\n\n/**\n * @internal\n */\nexport const DialogTransitionProvider = DialogTransitionContext.Provider;\n\n/**\n * @internal\n */\nexport const useDialogTransitionContext_unstable = (): DialogTransitionContextValue => {\n return React.useContext(DialogTransitionContext) ?? defaultContextValue;\n};\n"],"names":["React","defaultContextValue","undefined","DialogTransitionContext","createContext","DialogTransitionProvider","Provider","useDialogTransitionContext_unstable","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAQ/B;;CAEC,GACD,MAAMC,sBAAoDC;AAE1D,uCAAuC;AACvC;;CAEC,GACD,OAAO,MAAMC,0BAAmFH,MAAMI,aAAa,CAEjHF,WAAW;AAEb;;CAEC,GACD,OAAO,MAAMG,2BAA2BF,wBAAwBG,QAAQ,CAAC;AAEzE;;CAEC,GACD,OAAO,MAAMC,sCAAsC;QAC1CP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACL,sCAAjBH,+BAAAA,oBAA6CC;AACtD,EAAE"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
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
|
-
DialogTransitionContext: function() {
|
|
13
|
-
return DialogTransitionContext;
|
|
14
|
-
},
|
|
15
|
-
DialogTransitionProvider: function() {
|
|
16
|
-
return DialogTransitionProvider;
|
|
17
|
-
},
|
|
18
|
-
useDialogTransitionContext_unstable: function() {
|
|
19
|
-
return useDialogTransitionContext_unstable;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
23
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/ const defaultContextValue = undefined;
|
|
27
|
-
const DialogTransitionContext = /*#__PURE__*/ _react.createContext(undefined);
|
|
28
|
-
const DialogTransitionProvider = DialogTransitionContext.Provider;
|
|
29
|
-
const useDialogTransitionContext_unstable = ()=>{
|
|
30
|
-
var _React_useContext;
|
|
31
|
-
return (_React_useContext = _react.useContext(DialogTransitionContext)) !== null && _React_useContext !== void 0 ? _React_useContext : defaultContextValue;
|
|
32
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["dialogTransitionContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ const defaultContextValue = undefined;\n// Contexts should default to undefined\n/**\n * @internal\n */ export const DialogTransitionContext = React.createContext(undefined);\n/**\n * @internal\n */ export const DialogTransitionProvider = DialogTransitionContext.Provider;\n/**\n * @internal\n */ export const useDialogTransitionContext_unstable = ()=>{\n var _React_useContext;\n return (_React_useContext = React.useContext(DialogTransitionContext)) !== null && _React_useContext !== void 0 ? _React_useContext : defaultContextValue;\n};\n"],"names":["DialogTransitionContext","DialogTransitionProvider","useDialogTransitionContext_unstable","defaultContextValue","undefined","React","createContext","Provider","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAOiBA,uBAAuB;eAAvBA;;IAGAC,wBAAwB;eAAxBA;;IAGAC,mCAAmC;eAAnCA;;;;iEAbM;AACvB;;CAEC,GAAG,MAAMC,sBAAsBC;AAIrB,MAAMJ,wCAA0BK,OAAMC,aAAa,CAACF;AAGpD,MAAMH,2BAA2BD,wBAAwBO,QAAQ;AAGjE,MAAML,sCAAsC;IACnD,IAAIM;IACJ,OAAO,AAACA,CAAAA,oBAAoBH,OAAMI,UAAU,CAACT,wBAAuB,MAAO,QAAQQ,sBAAsB,KAAK,IAAIA,oBAAoBL;AAC1I"}
|