Skip to content

Commit

Permalink
Update the proptypes warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Sep 6, 2023
1 parent a26ca88 commit b667663
Show file tree
Hide file tree
Showing 250 changed files with 1,001 additions and 1,001 deletions.
8 changes: 4 additions & 4 deletions packages/mui-base/src/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ const Badge = React.forwardRef(function Badge<RootComponentType extends React.El
}) as PolymorphicComponent<BadgeTypeMap>;

Badge.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The content rendered within the badge.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ const Button = React.forwardRef(function Button<RootComponentType extends React.
}) as PolymorphicComponent<ButtonTypeMap>;

Button.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* A ref for imperative actions. It currently only supports `focusVisible()` action.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/ClickAwayListener/ClickAwayListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ function ClickAwayListener(props: ClickAwayListenerProps): JSX.Element {
}

ClickAwayListener.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The wrapped element.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ function Dropdown(props: DropdownProps) {
}

Dropdown.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* @ignore
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/FocusTrap/FocusTrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ function FocusTrap(props: FocusTrapProps): JSX.Element {
}

FocusTrap.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* A single child content element.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/FormControl/FormControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ const FormControl = React.forwardRef(function FormControl<
}) as PolymorphicComponent<FormControlTypeMap>;

FormControl.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The content of the component.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ const Input = React.forwardRef(function Input<RootComponentType extends React.El
}) as PolymorphicComponent<InputTypeMap>;

Input.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* @ignore
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ const Menu = React.forwardRef(function Menu<RootComponentType extends React.Elem
}) as PolymorphicComponent<MenuTypeMap>;

Menu.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* A ref with imperative actions that can be performed on the menu.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/MenuButton/MenuButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ const MenuButton = React.forwardRef(function MenuButton(
});

MenuButton.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* @ignore
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/MenuItem/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ const MenuItem = React.forwardRef(function MenuItem<RootComponentType extends Re
}) as PolymorphicComponent<MenuItemTypeMap>;

MenuItem.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* @ignore
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ const Modal = React.forwardRef(function Modal<RootComponentType extends React.El
}) as PolymorphicComponent<ModalTypeMap>;

Modal.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* A single child content element.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/NoSsr/NoSsr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ function NoSsr(props: NoSsrProps): JSX.Element {
}

NoSsr.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* You can wrap a node.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/OptionGroup/OptionGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ const OptionGroup = React.forwardRef(function OptionGroup<
}) as PolymorphicComponent<OptionGroupTypeMap>;

OptionGroup.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* @ignore
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Popper/Popper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ const Popper = React.forwardRef(function Popper<RootComponentType extends React.
}) as PolymorphicComponent<PopperTypeMap>;

Popper.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
* or a function that returns either.
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ const Select = React.forwardRef(function Select<
}) as SelectType;

Select.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* A function used to determine if two options' values are equal.
* By default, reference equality is used.
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ const Slider = React.forwardRef(function Slider<RootComponentType extends React.
}) as PolymorphicComponent<SliderTypeMap>;

Slider.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The label of the slider.
*/
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Snackbar/Snackbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ const Snackbar = React.forwardRef(function Snackbar<RootComponentType extends Re
}) as PolymorphicComponent<SnackbarTypeMap>;

Snackbar.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The number of milliseconds to wait before automatically calling the
* `onClose` function. `onClose` should then set the state of the `open`
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-base/src/Switch/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ const Switch = React.forwardRef(function Switch<RootComponentType extends React.
}) as PolymorphicComponent<SwitchTypeMap>;

Switch.propTypes /* remove-proptypes */ = {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "pnpm proptypes" |
// ----------------------------------------------------------------------
// ┌────────────────────────────── Warning ──────────────────────────────┐
// These PropTypes are generated from the TypeScript type definitions. │
// To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* If `true`, the component is checked.
*/
Expand Down
Loading

0 comments on commit b667663

Please sign in to comment.