-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react-dialog): Release
react-dialog
stable version
- Loading branch information
1 parent
16c7bca
commit 9356b06
Showing
7 changed files
with
124 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,45 @@ | ||
# @fluentui/react-dialog | ||
# @fluentui/react-Dialog | ||
|
||
**React Dialog components for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)** | ||
|
||
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release. | ||
To import React Dialog components: | ||
|
||
```js | ||
import * as React from 'react'; | ||
import { | ||
Button, | ||
Dialog, | ||
DialogTrigger, | ||
DialogSurface, | ||
DialogTitle, | ||
DialogBody, | ||
DialogActions, | ||
DialogContent, | ||
} from '@fluentui/react-components'; | ||
|
||
export const DialogExample = () => { | ||
return ( | ||
<Dialog> | ||
<DialogTrigger> | ||
<Button>Open dialog</Button> | ||
</DialogTrigger> | ||
<DialogSurface> | ||
<DialogBody> | ||
<DialogTitle>Dialog title</DialogTitle> | ||
<DialogContent> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam exercitationem cumque repellendus eaque | ||
est dolor eius expedita nulla ullam? Tenetur reprehenderit aut voluptatum impedit voluptates in natus iure | ||
cumque eaque? | ||
</DialogContent> | ||
<DialogActions> | ||
<DialogTrigger> | ||
<Button appearance="secondary">Close</Button> | ||
</DialogTrigger> | ||
<Button appearance="primary">Do Something</Button> | ||
</DialogActions> | ||
</DialogBody> | ||
</DialogSurface> | ||
</Dialog> | ||
); | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
packages/react-components/react-dialog/src/stories/Dialog/DialogDescription.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
<!-- Don't allow prettier to collapse code block into single line --> | ||
<!-- prettier-ignore --> | ||
> **⚠️ Preview components are considered unstable:** | ||
> | ||
> ```jsx | ||
> | ||
> import { | ||
> Dialog, | ||
> DialogContent, | ||
> DialogBody, | ||
> DialogTitle, | ||
> DialogSurface, | ||
> DialogActions, | ||
> DialogTrigger, | ||
> } from '@fluentui/react-components/unstable'; | ||
> | ||
> ``` | ||
> | ||
> - Features and APIs may change before final release | ||
> - Please contact us if you intend to use this in your product | ||
`Dialog` is a window overlaid on either the primary window or another dialog window. Windows under a modal dialog are inert. That is, users cannot interact with content outside an active dialog window. Inert content outside an active dialog is typically visually obscured or dimmed so it is difficult to discern, and in some implementations, attempts to interact with the inert content cause the dialog to close. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1656,6 +1656,23 @@ | |
"@uifabric/set-version" "^7.0.23" | ||
tslib "^1.10.0" | ||
|
||
"@fluentui/[email protected]": | ||
version "9.0.0-beta.11" | ||
resolved "https://registry.yarnpkg.com/@fluentui/react-dialog/-/react-dialog-9.0.0-beta.11.tgz#57596a64a46bd0b2ac3176f84446b014e0e90bb0" | ||
integrity sha512-/2PF2bA7dBxfnHLvobIagRizow+6pnyBVZCBPqEmumc75DGw9Sya/XXWA64Mdw6RfOQYtrGNbTNWbUmPZgg8fg== | ||
dependencies: | ||
"@fluentui/keyboard-keys" "^9.0.0" | ||
"@fluentui/react-aria" "^9.2.1" | ||
"@fluentui/react-context-selector" "^9.0.3" | ||
"@fluentui/react-icons" "^2.0.175" | ||
"@fluentui/react-portal" "^9.0.6" | ||
"@fluentui/react-shared-contexts" "^9.0.1" | ||
"@fluentui/react-tabster" "^9.1.2" | ||
"@fluentui/react-theme" "^9.1.0" | ||
"@fluentui/react-utilities" "^9.1.0" | ||
"@griffel/react" "^1.3.0" | ||
tslib "^2.1.0" | ||
|
||
"@fluentui/react-icons@^2.0.175": | ||
version "2.0.175" | ||
resolved "https://registry.yarnpkg.com/@fluentui/react-icons/-/react-icons-2.0.175.tgz#70f60989b5792c1770253beeb0a1f4dc9329e59d" | ||
|
@@ -1710,7 +1727,7 @@ | |
dependencies: | ||
tslib "^2.1.0" | ||
|
||
"@griffel/[email protected]", "@griffel/react@^1.0.0", "@griffel/react@^1.4.0": | ||
"@griffel/[email protected]", "@griffel/react@^1.0.0", "@griffel/react@^1.3.0", "@griffel/react@^1.4.0": | ||
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/@griffel/react/-/react-1.4.0.tgz#dbd56924af99d56aa22550f1804ee667ddcd3f30" | ||
integrity sha512-AR9tY0AJX734MNno/j4uYpkfjKS8OA9rWreBZYIeQMdPApRBnbZjEnkUqmIUBfT8JcsNgQFPv6ssETCK0+dWtQ== | ||
|