Skip to content

Commit

Permalink
Merge branch 'master' into rtl-docs-revision-add-joy
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Oct 20, 2023
2 parents 6248101 + 9b74132 commit e5af316
Show file tree
Hide file tree
Showing 411 changed files with 10,264 additions and 6,580 deletions.
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@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
uses: github/codeql-action/init@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
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@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
uses: github/codeql-action/analyze@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
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@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
uses: github/codeql-action/upload-sarif@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
with:
sarif_file: results.sarif
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,78 @@
# [Versions](https://mui.com/versions/)

## 5.14.14

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

_Oct 17, 2023_

A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.

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

- &#8203;<!-- 29 -->[material-ui][AppBar] Support all default palette colors in TypeScript (#39389) @BreakBB
- &#8203;<!-- 28 -->[material-ui][AvatarGroup] Add `renderSurplus` prop (#39283) @uuxxx
- &#8203;<!-- 25 -->[material-ui][Box] Fix system properties has incorrect `Theme` interface when applied directly (#39404) @Semigradsky
- &#8203;<!-- 04 -->[material-ui][Pagination] Update `type` parameter of `getItemAriaLabel` prop (#39390) @Simer13
- &#8203;<!-- 06 -->[material][tab] Show/hide scroll buttons for dynamically added children (#39415) @brijeshb42

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

- &#8203;<!-- 26 -->[base-ui][Menu] Do not reopen the menu after clicking on a trigger in Safari (#39393) @michaldudak

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

- &#8203;<!-- 23 -->[Divider][material-next] Add Divider component (#39179) @Best-Sardar

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

- &#8203;<!-- 08 -->[joy-ui][List] Add the `marker` prop (#39313) @siriwatknp
- &#8203;<!-- 07 -->[joy-ui][Skeleton] Fix semi-transparent scenario when with surface components and color inversion (#39400) @TheNatkat
- &#8203;<!-- 06 -->[joy-ui][Textarea] Fix focus ring for error state (#39391) @vineetjk

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

- &#8203;<!-- 09 -->[icons] Fix VoiceChatOutlined showing the wrong icon (#39418) @devuser200

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

- &#8203;<!-- 03 -->[mui-system][style] bug fix for style value check color in nullable object (#39457) @DarhkVoyd

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

- &#8203;<!-- 05 -->[styled-engine-sc] Fix TS issues because of missing types (#39395) @mnajdova

### Docs

- &#8203;<!-- 27 -->[docs][base-ui] Renaming demos to BaseXxx (#39104) @christophermorin
- &#8203;<!-- 26 -->[docs] Accessibility in Base UI (#39264) @michaldudak
- &#8203;<!-- 22 -->[docs] Fix 301 redirection @oliviertassinari
- &#8203;<!-- 21 -->[docs] Improve Base UI table of contents for APIs (#39412) @ZeeshanTamboli
- &#8203;<!-- 20 -->[docs] Adjust design kits-related content (#39367) @danilo-leal
- &#8203;<!-- 19 -->[docs] Revise the Contributing Guide (#39190) @samuelsycamore
- &#8203;<!-- 12 -->[docs][joy-ui] Fix row hover prop name in the Table page (#39431) @adrienbrault
- &#8203;<!-- 11 -->[docs][joy-ui] Fix color inversion demos (#39403) @danilo-leal
- &#8203;<!-- 10 -->[docs][material-ui] Remove irrelevant TODO from Snackbar demo (#39396) @ZeeshanTamboli
- &#8203;<!-- 06 -->[docs][material-ui][Table] Bug in "Sorting & Selecting" demo (#39426) @codewithrabeeh
- &#8203;<!-- 05 -->[docs][joy-ui][typography] Update docs after lineHeight changes (#39366) @zanivan

### Core

- &#8203;<!-- 24 -->[core] Fix multiple typos across the repo (#39422) @parikshitadhikari
- &#8203;<!-- 18 -->[docs-infra] Add refinements to the API content design (#39425) @danilo-leal
- &#8203;<!-- 17 -->[docs-infra] Add a min height to the layout component (#39416) @danilo-leal
- &#8203;<!-- 16 -->[docs-infra] Prevent horizontal scroll in the TOC (#39417) @danilo-leal
- &#8203;<!-- 15 -->[docs-infra] Add a collapsible list & table views to the API content display (#38265) @alexfauquette
- &#8203;<!-- 14 -->[docs-infra] Adjust the `kbd` tag styles (#39397) @danilo-leal
- &#8203;<!-- 13 -->[docs-infra] Fix strong style regression (#39384) @oliviertassinari
- &#8203;<!-- 04 -->[website] Add the LinkedIn profile to the contributors section on the About page (#39455) @chhawinder
- &#8203;<!-- 03 -->[website] Update new role template (#39386) @oliviertassinari
- &#8203;<!-- 02 -->[website] Add stray design fine-tunning to the Pricing page (#39472) @danilo-leal
- &#8203;<!-- 01 -->[website] Fix career anchor link to perks & benefits @oliviertassinari

All contributors of this release in alphabetical order: @adrienbrault, @alexfauquette, @Best-Sardar, @BreakBB, @brijeshb42, @chhawinder, @christophermorin, @codewithrabeeh, @danilo-leal, @DarhkVoyd, @devuser200, @michaldudak, @mnajdova, @oliviertassinari, @parikshitadhikari, @samuelsycamore, @Semigradsky, @Simer13, @siriwatknp, @TheNatkat, @uuxxx, @vineetjk, @zanivan, @ZeeshanTamboli

## 5.14.13

<!-- generated comparing v5.14.12..master -->
Expand Down
6 changes: 6 additions & 0 deletions apps/local-library/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const bounceAnim: string;
export const Button: React.ComponentType<
JSX.IntrinsicElements['button'] & {
isRed?: boolean;
}
>;
31 changes: 31 additions & 0 deletions apps/local-library/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { keyframes, styled } from '@mui/zero-runtime';

export const bounceAnim = keyframes({
'from, 20%, 53%, 80%, to': {
transform: 'translate3d(0,0,0)',
},
'40%, 43%': {
transform: 'translate3d(0, -30px, 0)',
},
'70%': {
transform: 'translate3d(0, -15px, 0)',
},
'90%': {
transform: 'translate3d(0,-4px,0)',
},
});

export const Button = styled('button', {
name: 'MuiButton',
slot: 'Root',
})(
({ theme }) => ({
fontFamily: 'sans-serif',
backgroundColor: theme.palette.primary.main,
}),
{
fontFamily: 'sans-serif',
color: (props) => (props.isRed ? 'primary.main' : 'secondary.main'),
'--css-variable': (props) => (props.isRed ? 'palette.primary.main' : 'palette.secondary.main'),
},
);
7 changes: 7 additions & 0 deletions apps/local-library/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "local-ui-lib",
"version": "0.0.0",
"dependencies": {
"zero-runtime": "*"
}
}
4 changes: 2 additions & 2 deletions apps/zero-runtime-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@mui/zero-tag-processor": "file:../../packages/zero-tag-processor/build",
"@mui/zero-next-plugin": "file:../../packages/zero-next-plugin/build",
"@types/node": "20.5.7",
"@types/react": "18.2.23",
"@types/react-dom": "18.2.11",
"@types/react": "18.2.29",
"@types/react-dom": "18.2.13",
"typescript": "5.1.6"
},
"resolutions": {
Expand Down
7 changes: 4 additions & 3 deletions apps/zero-runtime-vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/preset-env": "^7.22.20",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.0",
"@babel/preset-typescript": "^7.23.2",
"@mui/material": "file:../../packages/mui-material/build",
"@mui/utils": "file:../../packages/mui-utils/build",
"@mui/zero-jest": "file:../../packages/zero-jest/build",
"@mui/zero-vite-plugin": "file:../../packages/zero-vite-plugin/build",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.0.0",
"@vitejs/plugin-react": "^4.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^22.1.0",
"local-library": "file:../local-library",
"vite": "4.4.11",
"vitest": "^0.34.6"
},
Expand Down
50 changes: 3 additions & 47 deletions apps/zero-runtime-vite-app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,52 +1,8 @@
import * as React from 'react';
import { styled, keyframes } from '@mui/zero-runtime';
import { styled } from '@mui/zero-runtime';
import { Button, bounceAnim } from 'local-library';
import Slider from './Slider/ZeroSlider';

const bounce = keyframes`
from, 20%, 53%, 80%, to {
transform: translate3d(0,0,0);
}
40%, 43% {
transform: translate3d(0, -30px, 0);
}
70% {
transform: translate3d(0, -15px, 0);
}
90% {
transform: translate3d(0,-4px,0);
}
`;

const bounceAnim = keyframes({
'from, 20%, 53%, 80%, to': {
transform: 'translate3d(0,0,0)',
},
'40%, 43%': {
transform: 'translate3d(0, -30px, 0)',
},
'70%': {
transform: 'translate3d(0, -15px, 0)',
},
'90%': {
transform: 'translate3d(0,-4px,0)',
},
});

const Button = styled('button', {
name: 'MuiButton',
slot: 'Root',
})(
({ theme }: any) => ({
fontFamily: 'sans-serif',
backgroundColor: [theme.palette.primary.main, 'text.primary', 'background.paper'],
}),
{
fontFamily: 'sans-serif',
// p: (props: any) => (props.isRed ? 10 : 20),
color: (props: any) => (props.isRed ? 'primary.main' : 'secondary.main'),
},
);

const ShowCaseDiv = styled('div')({
[`.${Button}`]: {
color: '#f94564',
Expand All @@ -59,7 +15,7 @@ const HalfWidth = styled.div({
maxHeight: 100,
padding: 20,
border: '1px solid #ccc',
animation: [`${bounce} 1s ease infinite`, `${bounceAnim} 1s ease infinite`],
animation: `${bounceAnim} 1s ease infinite`,
});

export default function App({ isRed }: any) {
Expand Down
1 change: 1 addition & 0 deletions apps/zero-runtime-vite-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default defineConfig({
zeroVitePlugin({
cssVariablesPrefix: 'app',
theme,
transformLibraries: ['local-library'],
}),
reactPlugin(),
splitVendorChunkPlugin(),
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.13",
"@mui/styles": "^5.14.13",
"@mui/system": "^5.14.13",
"@mui/material": "^5.14.14",
"@mui/styles": "^5.14.14",
"@mui/system": "^5.14.14",
"@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 @@ -163,16 +163,16 @@ const cyan = {
};

const grey = {
50: '#f6f8fa',
100: '#eaeef2',
200: '#d0d7de',
300: '#afb8c1',
400: '#8c959f',
500: '#6e7781',
600: '#57606a',
700: '#424a53',
800: '#32383f',
900: '#24292f',
50: '#F3F6F9',
100: '#E5EAF2',
200: '#DAE2ED',
300: '#C7D0DD',
400: '#B0B8C4',
500: '#9DA8B7',
600: '#6B7A90',
700: '#434D5B',
800: '#303740',
900: '#1C2025',
};

function useIsDarkMode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,16 @@ const cyan = {
};

const grey = {
50: '#f6f8fa',
100: '#eaeef2',
200: '#d0d7de',
300: '#afb8c1',
400: '#8c959f',
500: '#6e7781',
600: '#57606a',
700: '#424a53',
800: '#32383f',
900: '#24292f',
50: '#F3F6F9',
100: '#E5EAF2',
200: '#DAE2ED',
300: '#C7D0DD',
400: '#B0B8C4',
500: '#9DA8B7',
600: '#6B7A90',
700: '#434D5B',
800: '#303740',
900: '#1C2025',
};

function useIsDarkMode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,21 @@ const blue = {
400: '#3399FF',
500: '#007FFF',
600: '#0072E5',
700: '#0059B2',
900: '#003A75',
};

const grey = {
50: '#f6f8fa',
100: '#eaeef2',
200: '#d0d7de',
300: '#afb8c1',
400: '#8c959f',
500: '#6e7781',
600: '#57606a',
700: '#424a53',
800: '#32383f',
900: '#24292f',
50: '#F3F6F9',
100: '#E5EAF2',
200: '#DAE2ED',
300: '#C7D0DD',
400: '#B0B8C4',
500: '#9DA8B7',
600: '#6B7A90',
700: '#434D5B',
800: '#303740',
900: '#1C2025',
};

const StyledAutocompleteRoot = styled('div')(
Expand All @@ -146,8 +147,8 @@ const StyledAutocompleteRoot = styled('div')(
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
background: ${theme.palette.mode === 'dark' ? grey[900] : '#fff'};
border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]};
box-shadow: 0px 4px 6px ${
theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.05)'
box-shadow: 0px 2px 4px ${
theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.5)' : 'rgba(0,0,0, 0.05)'
};
display: flex;
gap: 5px;
Expand All @@ -157,7 +158,7 @@ const StyledAutocompleteRoot = styled('div')(
&.focused {
border-color: ${blue[400]};
box-shadow: 0 0 0 3px ${theme.palette.mode === 'dark' ? blue[500] : blue[200]};
box-shadow: 0 0 0 3px ${theme.palette.mode === 'dark' ? blue[700] : blue[200]};
}
&:hover {
Expand Down Expand Up @@ -211,7 +212,7 @@ const StyledListbox = styled('ul')(
border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]};
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
box-shadow: 0px 4px 6px ${
theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.05)'
theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.3)' : 'rgba(0,0,0, 0.05)'
};
`,
);
Expand Down
Loading

0 comments on commit e5af316

Please sign in to comment.