Skip to content

Commit

Permalink
chore(dialog): remove unneeded wicg-inert polyfill (#16907)
Browse files Browse the repository at this point in the history
* chore(dialog): remove unneeded wicg-inert polyfill

* chore(dialog): rename export to unstable
  • Loading branch information
tay1orjones authored Jul 3, 2024
1 parent 77aa024 commit b780e77
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
Binary file not shown.
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"react-is": "^18.2.0",
"tabbable": "^6.2.0",
"use-resize-observer": "^6.0.0",
"wicg-inert": "^3.1.1",
"window-or-global": "^1.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Dialog/Dialog-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* eslint-disable storybook/story-exports */

import React, { useEffect, useState } from 'react';
import Dialog from './';
import { unstable__Dialog as Dialog } from './';
import Button from '../Button';
import { action } from '@storybook/addon-actions';

Expand Down
11 changes: 5 additions & 6 deletions packages/react/src/components/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

import 'wicg-inert';
import PropTypes from 'prop-types';
import React, { MutableRefObject, useEffect, useRef } from 'react';
import { usePrefix } from '../../internal/usePrefix';
Expand Down Expand Up @@ -38,7 +37,7 @@ export interface DialogProps extends ReactAttr<HTMLDialogElement> {
open?: boolean;
}

const Dialog = React.forwardRef(
const unstable__Dialog = React.forwardRef(
(
{
children,
Expand Down Expand Up @@ -121,9 +120,9 @@ const Dialog = React.forwardRef(
}
);

Dialog.displayName = 'Dialog';
unstable__Dialog.displayName = 'Dialog';

Dialog.propTypes = {
unstable__Dialog.propTypes = {
/**
* Provide children to be rendered inside of the Dialog
*/
Expand All @@ -146,5 +145,5 @@ Dialog.propTypes = {
open: PropTypes.bool,
};

export { Dialog };
export default Dialog;
export { unstable__Dialog };
export default unstable__Dialog;
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2098,7 +2098,6 @@ __metadata:
use-resize-observer: "npm:^6.0.0"
webpack: "npm:^5.65.0"
webpack-dev-server: "npm:^4.7.4"
wicg-inert: "npm:^3.1.1"
window-or-global: "npm:^1.0.1"
peerDependencies:
react: ^16.8.6 || ^17.0.1 || ^18.2.0
Expand Down Expand Up @@ -28407,13 +28406,6 @@ __metadata:
languageName: node
linkType: hard

"wicg-inert@npm:^3.1.1":
version: 3.1.1
resolution: "wicg-inert@npm:3.1.1"
checksum: 10/78710965132ec77d778e7e126cde4a0608a1b4fcbaf9ac1bc01cf7bd84f294b6de4f72a3555d7b3f773bb621a8a659bc9a2cd503cf0019a15385d0846cea9878
languageName: node
linkType: hard

"wide-align@npm:^1.1.0, wide-align@npm:^1.1.5":
version: 1.1.5
resolution: "wide-align@npm:1.1.5"
Expand Down

0 comments on commit b780e77

Please sign in to comment.