Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs][base-ui] Renaming demos to BaseXxx #38924

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
325f6c9
Slider demo renamed
christophermorin Sep 11, 2023
8117de8
fix: ran docs:typescript:formatted to transpile demo
christophermorin Sep 11, 2023
5b01a4e
Button demos renamed
christophermorin Sep 14, 2023
ca807f3
again, ran docs:typescript:formatted to transpile demos correctly
christophermorin Sep 14, 2023
968b1df
Merge branch 'mui:master' into docs-base-ui-ISSUE-#38904
christophermorin Sep 14, 2023
05c5ad0
Merge branch 'mui:master' into docs-base-ui-ISSUE-#38904
christophermorin Sep 16, 2023
5d0aedd
remaining slider demos renamed
christophermorin Sep 16, 2023
5d6f9e5
remaining Button demos renamed
christophermorin Sep 18, 2023
098bc90
[website] Improve lighthouse score (#39011)
oliviertassinari Sep 17, 2023
31d2197
[docs] Fix number input wrong demo
oliviertassinari Sep 17, 2023
650322b
[joy-ui][AccordionGroup] Fix console warning when using custom color …
sai6855 Sep 18, 2023
8488eae
[docs][Dialog] Add non-modal dialog docs & demo (#38684)
mnajdova Sep 18, 2023
c145bf8
[docs][material-ui][Pagination] Add `TablePagination` to the API comp…
MonstraG Sep 18, 2023
5218b9a
[utils] Move @types/prop-types back to dependencies (#39030)
Methuselah96 Sep 18, 2023
fe5da06
[core] Move eslint to peer dependencies of eslint-plugin-material-ui …
michaldudak Sep 18, 2023
d306556
[release] v5.14.10 (#39034)
mnajdova Sep 18, 2023
3ad4f1f
[docs][joy-ui] Add `use-count-up` integration with the Circular Progr…
xcode-it Sep 18, 2023
40a5aa1
[docs-infra] Open demo crash in the right repository (#39006)
oliviertassinari Sep 18, 2023
2e5faca
[core] Add a comment to explain `useEnhancedEffect` (#39035)
Janpot Sep 18, 2023
9131d9f
[TextareaAutosize] Simplify logic and add test (#38728)
oliviertassinari Sep 18, 2023
40531ac
[docs] Add live demo with CssVarsProvider (#38792)
oliviertassinari Sep 18, 2023
a35b69b
[docs][joy-ui] Refine the Sign in template (#38942)
zanivan Sep 19, 2023
dcae273
[Select][material-ui] Missing aria-multiselectable attribute on multi…
gitstart Sep 19, 2023
9628e38
[website] Add stray design tweaks to the X page (#38589)
danilo-leal Sep 19, 2023
58cf1fb
[docs-infra] Fix error when redirecting to the root page (#38451)
maheshguntur Sep 19, 2023
b2755ed
[docs-infra] Fix key warning in Base UI Slider slots section (#38954)
ZeeshanTamboli Sep 19, 2023
b5ce28a
[base-ui][NumberInput] Support adornments (#38900)
anle9650 Sep 20, 2023
6bbc4ea
[base-ui][useSelect][useOption] Align external props handling (#39038)
mj12albert Sep 20, 2023
320f338
[website] Small fixes on the X marketing page (#38975)
flaviendelangle Sep 20, 2023
f7dd710
Bump lerna to ^7.3.0 (#38778)
renovate[bot] Sep 20, 2023
295e94c
Bump chai to ^4.3.8 (#38893)
renovate[bot] Sep 20, 2023
af1ceac
Bump @types/babel__helper-module-imports to ^7.18.1 (#39015)
renovate[bot] Sep 20, 2023
ba6976e
Bump @types/loader-utils to ^2.0.4 (#39019)
renovate[bot] Sep 20, 2023
e941b19
Bump webpack-cli to ^5.1.4 (#38784)
renovate[bot] Sep 20, 2023
4957760
Bump @types/node to ^18.17.18 (#39020)
renovate[bot] Sep 20, 2023
a6dcdb9
Bump rollup to ^3.29.2 (#39023)
renovate[bot] Sep 20, 2023
820e3cd
[docs][base] Add Tailwind CSS + plain CSS demo on the Tabs page (#39000)
alisasanib Sep 20, 2023
85f36e0
Bump @types/fs-extra to ^11.0.2 (#39018)
renovate[bot] Sep 20, 2023
030c204
[base-ui][useMenu] Align external props handling for useMenu/MenuButt…
mj12albert Sep 20, 2023
6aaee2e
Bump @types/babel-plugin-macros to ^3.1.1 (#39013)
renovate[bot] Sep 20, 2023
7f18c38
Bump @types/babel__traverse to ^7.20.2 (#39017)
renovate[bot] Sep 20, 2023
fa4cab9
Bump @types/doctrine to ^0.0.6 (#38886)
renovate[bot] Sep 20, 2023
84b5969
Bump babel (#39021)
renovate[bot] Sep 20, 2023
b4a28d7
Bump styled-components to ^5.3.11 (#39024)
renovate[bot] Sep 20, 2023
66dd91d
Bump @definitelytyped tools to ^0.0.178 (#39012)
renovate[bot] Sep 20, 2023
df0a306
Bump react-virtuoso to ^4.6.0 (#38898)
renovate[bot] Sep 20, 2023
c518a6a
Bump github/codeql-action action to v2.21.8 (#39022)
renovate[bot] Sep 20, 2023
99778ef
[core] Update Babel types along with source packages (#39070)
michaldudak Sep 20, 2023
5da2dec
Bump @types/babel__core to ^7.20.2 (#39014)
renovate[bot] Sep 20, 2023
9324e1c
[FormControl][material-next] Copy v5 FormControl (#39039)
mj12albert Sep 21, 2023
695e3db
[docs][joy-ui] Fix the Templates link on the Overview page (#39086)
danilo-leal Sep 21, 2023
5a7d682
[docs][joy-ui] Simplify the button's loading indicator demo (#39082)
danilo-leal Sep 21, 2023
65e7fee
Select demos renamed
christophermorin Sep 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
uses: github/codeql-action/init@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8
with:
languages: typescript
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -30,4 +30,4 @@ jobs:
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
uses: github/codeql-action/analyze@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
uses: github/codeql-action/upload-sarif@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8
with:
sarif_file: results.sarif
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# [Versions](https://mui.com/versions/)

## 5.14.10

<!-- generated comparing v5.14.9..master -->

_Sep 18, 2023_

A big thanks to the 16 contributors who made this release possible. This release was mostly about 🐛 bug fixes and 📚 documentation improvements.

### `@mui/[email protected]`

- &#8203;<!-- 20 -->[Chip] Add cursor CSS property reset (#38984) @DiegoAndai

### `@mui/[email protected]`

- &#8203;<!-- 05 -->[utils] Move @types/prop-types back to dependencies (#39030) @Methuselah96

### `@mui/[email protected]`

- &#8203;<!-- 24 -->[NumberInput][base-ui] Warn when changing control mode with `useControlled` (#38757) @sai6855
- &#8203;<!-- 23 -->[Select][base-ui] Fix Select button layout shift, add placeholder prop (#38796) @mj12albert
- &#8203;<!-- 22 -->[useList][base-ui] Accept arbitrary external props and forward to root (#38848) @mj12albert
- &#8203;<!-- 25 -->[Autocomplete][base-ui] Added ref to getInputProps return value (#38919) @DarhkVoyd

### `@mui/[email protected]`

- &#8203;<!-- 26 -->[AccordionGroup][joy-ui] Fix console warning when using custom color (#38950) @sai6855
- &#8203;<!-- 07 -->[GlobalStyles][joy-ui] Ensure compatibility with RSC (#38955) @mateuseap

### Docs

- &#8203;<!-- 21 -->[docs][base] Add Tailwind CSS + plain CSS demo on the NumberInput page (#38928) @alisasanib
- &#8203;<!-- 13 -->[docs][Dialog] Add non-modal dialog docs & demo (#38684) @mnajdova
- &#8203;<!-- 12 -->[docs] Fix number input wrong demo @oliviertassinari
- &#8203;<!-- 11 -->[docs] Exclude joy-ui LinearProgressCountup from visual regression (#38969) @siriwatknp
- &#8203;<!-- 09 -->[docs][joy-ui] Revise the Overview page (#38842) @danilo-leal
- &#8203;<!-- 08 -->[docs][material-ui][Pagination] Add `TablePagination` to the API components list (#38486) @MonstraG

### Core

- &#8203;<!-- 19 -->[core] Add more context about useEventCallback @oliviertassinari
- &#8203;<!-- 18 -->[core] Allow deeper import of @mui/utils (#38806) @oliviertassinari
- &#8203;<!-- 17 -->[core] Remove react-dom from @mui/utils peerDependencies (#38974) @michaldudak
- &#8203;<!-- 16 -->[core] Remove react from styled-engine dependencies (#38971) @michaldudak
- &#8203;<!-- 15 -->[core] Fix image loading bug on Safari @oliviertassinari
- &#8203;<!-- 14 -->[core] Fix bundle size upload to S3 job (#38956) @Janpot
- &#8203;<!-- 20 -->[core] Move eslint to peer dependencies of eslint-plugin-material-ui (#39033) @michaldudak
- &#8203;<!-- 10 -->[docs-infra] Display markdown lists correctly in docs for props description (#38973) @ZeeshanTamboli
- &#8203;<!-- 04 -->[website] Improve lighthouse score (#39011) @oliviertassinari
- &#8203;<!-- 03 -->[website] Fix lighthouse issues @oliviertassinari
- &#8203;<!-- 02 -->[website] Create the `InfoCard` component (#38987) @danilo-leal
- &#8203;<!-- 01 -->[website] Small tweaks for performance @oliviertassinari
- &#8203;<!-- 06 -->[zero][next] Setup nextjs plugin package (#38852) @brijeshb42

All contributors of this release in alphabetical order: @alisasanib, @brijeshb42, @danilo-leal, @DarhkVoyd, @DiegoAndai, @Janpot, @mateuseap, @Methuselah96, @michaldudak, @mj12albert, @mnajdova, @MonstraG, @oliviertassinari, @sai6855, @siriwatknp, @ZeeshanTamboli

## 5.14.9

<!-- generated comparing v5.14.8..master -->
Expand Down
6 changes: 3 additions & 3 deletions benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"@emotion/react": "^11.11.1",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.14.9",
"@mui/styles": "^5.14.9",
"@mui/system": "^5.14.9",
"@mui/material": "^5.14.10",
"@mui/styles": "^5.14.10",
"@mui/system": "^5.14.10",
"@styled-system/css": "^5.1.5",
"benchmark": "^2.1.4",
"docs": "^5.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default function UnstyledButtonsIntroduction() {
return (
<React.Fragment>
<Stack spacing={2} direction="row">
<Button className="CustomButton">Button</Button>
<Button className="CustomButton" disabled>
<Button className="BaseButton">Button</Button>
<Button className="BaseButton" disabled>
Disabled
</Button>
</Stack>
Expand All @@ -32,7 +32,7 @@ const cyan = {
function Styles() {
return (
<style>{`
.CustomButton {
.BaseButton {
font-family: IBM Plex Sans,sans-serif;
font-weight: 600;
font-size: 0.875rem;
Expand All @@ -44,7 +44,7 @@ function Styles() {
cursor: pointer;
border: none;
}
.CustomButton:hover {
.BaseButton:hover {
background-color: ${cyan[600]};
}
.${buttonClasses.active} {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default function UnstyledButtonsIntroduction() {
return (
<React.Fragment>
<Stack spacing={2} direction="row">
<Button className="CustomButton">Button</Button>
<Button className="CustomButton" disabled>
<Button className="BaseButton">Button</Button>
<Button className="BaseButton" disabled>
Disabled
</Button>
</Stack>
Expand All @@ -32,7 +32,7 @@ const cyan = {
function Styles() {
return (
<style>{`
.CustomButton {
.BaseButton {
font-family: IBM Plex Sans,sans-serif;
font-weight: 600;
font-size: 0.875rem;
Expand All @@ -44,7 +44,7 @@ function Styles() {
cursor: pointer;
border: none;
}
.CustomButton:hover {
.BaseButton:hover {
background-color: ${cyan[600]};
}
.${buttonClasses.active} {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<React.Fragment>
<Stack spacing={2} direction="row">
<Button className="CustomButton">Button</Button>
<Button className="CustomButton" disabled>
<Button className="BaseButton">Button</Button>
<Button className="BaseButton" disabled>
Disabled
</Button>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import { Button, buttonClasses } from '@mui/base/Button';
import { Button as BaseButton, buttonClasses } from '@mui/base/Button';
import { styled } from '@mui/system';
import Stack from '@mui/material/Stack';

export default function UnstyledButtonsIntroduction() {
return (
<Stack spacing={2} direction="row">
<CustomButton>Button</CustomButton>
<CustomButton disabled>Disabled</CustomButton>
<Button>Button</Button>
<Button disabled>Disabled</Button>
</Stack>
);
}
Expand All @@ -24,7 +24,7 @@ const grey = {
900: '#24292f',
};

const CustomButton = styled(Button)(
const Button = styled(BaseButton)(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-weight: 600;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import { Button, buttonClasses } from '@mui/base/Button';
import { Button as BaseButton, buttonClasses } from '@mui/base/Button';
import { styled } from '@mui/system';
import Stack from '@mui/material/Stack';

export default function UnstyledButtonsIntroduction() {
return (
<Stack spacing={2} direction="row">
<CustomButton>Button</CustomButton>
<CustomButton disabled>Disabled</CustomButton>
<Button>Button</Button>
<Button disabled>Disabled</Button>
</Stack>
);
}
Expand All @@ -24,7 +24,7 @@ const grey = {
900: '#24292f',
};

const CustomButton = styled(Button)(
const Button = styled(BaseButton)(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-weight: 600;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<CustomButton>Button</CustomButton>
<CustomButton disabled>Disabled</CustomButton>
<Button>Button</Button>
<Button disabled>Disabled</Button>
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { Button } from '@mui/base/Button';
import { Button as BaseButton } from '@mui/base/Button';
import Stack from '@mui/material/Stack';
import clsx from 'clsx';

export default function UnstyledButtonsIntroduction() {
return (
<Stack spacing={2} direction="row">
<CustomButton>Button</CustomButton>
<CustomButton disabled>Disabled</CustomButton>
<Button>Button</Button>
<Button disabled>Disabled</Button>
</Stack>
);
}

const CustomButton = React.forwardRef((props, ref) => {
const Button = React.forwardRef((props, ref) => {
const { className, ...other } = props;
return (
<Button
<BaseButton
ref={ref}
className={clsx(
'cursor-pointer disabled:cursor-not-allowed text-sm font-sans bg-violet-500 hover:bg-violet-600 active:bg-violet-700 text-white rounded-lg font-semibold px-4 py-2 border-none disabled:opacity-50',
Expand All @@ -27,6 +27,6 @@ const CustomButton = React.forwardRef((props, ref) => {
);
});

CustomButton.propTypes = {
Button.propTypes = {
className: PropTypes.string,
};
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
import * as React from 'react';
import { Button, ButtonProps } from '@mui/base/Button';
import { Button as BaseButton, ButtonProps } from '@mui/base/Button';
import Stack from '@mui/material/Stack';
import clsx from 'clsx';

export default function UnstyledButtonsIntroduction() {
return (
<Stack spacing={2} direction="row">
<CustomButton>Button</CustomButton>
<CustomButton disabled>Disabled</CustomButton>
<Button>Button</Button>
<Button disabled>Disabled</Button>
</Stack>
);
}

const CustomButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
(props, ref) => {
const { className, ...other } = props;
return (
<Button
ref={ref}
className={clsx(
'cursor-pointer disabled:cursor-not-allowed text-sm font-sans bg-violet-500 hover:bg-violet-600 active:bg-violet-700 text-white rounded-lg font-semibold px-4 py-2 border-none disabled:opacity-50',
className,
)}
{...other}
/>
);
},
);
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
const { className, ...other } = props;
return (
<BaseButton
ref={ref}
className={clsx(
'cursor-pointer disabled:cursor-not-allowed text-sm font-sans bg-violet-500 hover:bg-violet-600 active:bg-violet-700 text-white rounded-lg font-semibold px-4 py-2 border-none disabled:opacity-50',
className,
)}
{...other}
/>
);
});
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<CustomButton>Button</CustomButton>
<CustomButton disabled>Disabled</CustomButton>
<Button>Button</Button>
<Button disabled>Disabled</Button>
10 changes: 5 additions & 5 deletions docs/data/base/components/button/UnstyledButtonsDisabledFocus.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as React from 'react';
import { Button, buttonClasses } from '@mui/base/Button';
import { Button as BaseButton, buttonClasses } from '@mui/base/Button';
import { styled } from '@mui/system';
import Stack from '@mui/material/Stack';

export default function UnstyledButtonsDisabledFocus() {
return (
<Stack spacing={2}>
<CustomButton disabled>focusableWhenDisabled = false</CustomButton>
<CustomButton disabled focusableWhenDisabled>
<Button disabled>focusableWhenDisabled = false</Button>
<Button disabled focusableWhenDisabled>
focusableWhenDisabled = true
</CustomButton>
</Button>
</Stack>
);
}
Expand All @@ -20,7 +20,7 @@ const blue = {
700: '#0059B2',
};

const CustomButton = styled(Button)`
const Button = styled(BaseButton)`
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as React from 'react';
import { Button, buttonClasses } from '@mui/base/Button';
import { Button as BaseButton, buttonClasses } from '@mui/base/Button';
import { styled } from '@mui/system';
import Stack from '@mui/material/Stack';

export default function UnstyledButtonsDisabledFocus() {
return (
<Stack spacing={2}>
<CustomButton disabled>focusableWhenDisabled = false</CustomButton>
<CustomButton disabled focusableWhenDisabled>
<Button disabled>focusableWhenDisabled = false</Button>
<Button disabled focusableWhenDisabled>
focusableWhenDisabled = true
</CustomButton>
</Button>
</Stack>
);
}
Expand All @@ -20,7 +20,7 @@ const blue = {
700: '#0059B2',
};

const CustomButton = styled(Button)`
const Button = styled(BaseButton)`
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
line-height: 1.5;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<CustomButton disabled>focusableWhenDisabled = false</CustomButton>
<CustomButton disabled focusableWhenDisabled>
<Button disabled>focusableWhenDisabled = false</Button>
<Button disabled focusableWhenDisabled>
focusableWhenDisabled = true
</CustomButton>
</Button>
Loading