Skip to content

Commit

Permalink
Merge branch 'next' into add-useslot-poppver
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed May 29, 2024
2 parents 93b32c4 + 384e5e4 commit 65c3845
Show file tree
Hide file tree
Showing 447 changed files with 5,848 additions and 3,478 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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
uses: github/codeql-action/init@9fdb3e49720b44c48891d036bb502feb25684276 # v3.25.6
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@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
uses: github/codeql-action/analyze@9fdb3e49720b44c48891d036bb502feb25684276 # v3.25.6
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@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
uses: github/codeql-action/upload-sarif@9fdb3e49720b44c48891d036bb502feb25684276 # v3.25.6
with:
sarif_file: results.sarif
27 changes: 0 additions & 27 deletions .stylelintrc.js

This file was deleted.

4 changes: 3 additions & 1 deletion apps/local-ui-lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as React from 'react';

export const bounceAnim: string;
export const Button: React.ComponentType<
JSX.IntrinsicElements['button'] & {
React.JSX.IntrinsicElements['button'] & {
isRed?: boolean;
sx?: unknown;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/pigment-css-next-app/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node */
// eslint-ignore-next-line import/no-unresolved
const { withPigment } = require('@pigment-css/nextjs-plugin');
const { experimental_extendTheme: extendTheme } = require('@mui/material/styles');
const { extendTheme } = require('@mui/material/styles');

/**
* @typedef {import('@pigment-css/nextjs-plugin').PigmentOptions} PigmentOptions
Expand Down
4 changes: 2 additions & 2 deletions apps/pigment-css-vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"react-router-dom": "^6.23.1"
},
"devDependencies": {
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@babel/preset-react": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@pigment-css/vite-plugin": "^0.0.9",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.3.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/pigment-css-vite-app/src/augment.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { experimental_extendTheme } from '@mui/material/styles';
import type { extendTheme } from '@mui/material/styles';
import '@pigment-css/react/theme';

declare module '@pigment-css/react/theme' {
export interface ThemeArgs {
theme: ReturnType<typeof experimental_extendTheme> & {
theme: ReturnType<typeof extendTheme> & {
applyDarkStyles<T>(obj: T): Record<string, T>;
};
}
Expand Down
4 changes: 2 additions & 2 deletions apps/pigment-css-vite-app/src/extend-zero.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { experimental_extendTheme } from '@mui/material/styles';
import type { extendTheme } from '@mui/material/styles';

declare module '@pigment-css/react/theme' {
interface ThemeArgs {
theme: ReturnType<typeof experimental_extendTheme> & {
theme: ReturnType<typeof extendTheme> & {
applyDarkStyles<T>(obj: T): Record<string, T>;
};
}
Expand Down
2 changes: 1 addition & 1 deletion apps/pigment-css-vite-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig, splitVendorChunkPlugin } from 'vite';
import reactPlugin from '@vitejs/plugin-react';
import Pages from 'vite-plugin-pages';
import { pigment } from '@pigment-css/vite-plugin';
import { experimental_extendTheme as extendTheme } from '@mui/material/styles';
import { extendTheme } from '@mui/material/styles';

const theme = extendTheme({
getSelector: function getSelector(colorScheme, css) {
Expand Down
8 changes: 8 additions & 0 deletions docs/data/about/teamMembers.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,13 @@
"about": "Amateur cook, DIYer, and film photographer",
"github": "KenanYusuf",
"twitter": "KebabYusuf"
},
{
"name": "Nikita Ossei",
"title": "Customer Support",
"location": "London, United Kingdom",
"locationCountry": "uk",
"about": "Astrology ♊️, learning 📚 and designing stuff 🎨",
"github": "nikitaa24"
}
]
4 changes: 2 additions & 2 deletions docs/data/base/components/modal/SpringModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function SpringModal() {

const Backdrop = React.forwardRef<
HTMLDivElement,
{ children: React.ReactElement; open: boolean }
{ children: React.ReactElement<any>; open: boolean }
>((props, ref) => {
const { open, ...other } = props;
return <Fade ref={ref} in={open} {...other} />;
Expand All @@ -61,7 +61,7 @@ const StyledBackdrop = styled(Backdrop)`
`;

interface FadeProps {
children: React.ReactElement;
children: React.ReactElement<any>;
in?: boolean;
onClick?: any;
onEnter?: (node: HTMLElement, isAppearing: boolean) => void;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/modal/UseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function UseModal() {
}

interface ModalProps {
children: React.ReactElement;
children: React.ReactElement<any>;
closeAfterTransition?: boolean;
container?: Element | (() => Element | null) | null;
disableAutoFocus?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/popper/PlacementPopper.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { Popper, PopperPlacementType } from '@mui/base/Popper';

function Radio({ value, ...props }: JSX.IntrinsicElements['input']) {
function Radio({ value, ...props }: React.JSX.IntrinsicElements['input']) {
return (
<span>
<input
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/popup/Placement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@mui/base/Unstable_Popup';
import { styled, css, Theme } from '@mui/system';

function Radio({ value, ...props }: JSX.IntrinsicElements['input']) {
function Radio({ value, ...props }: React.JSX.IntrinsicElements['input']) {
return (
<span>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Select = React.forwardRef(function Select<
return <BaseSelect {...props} ref={ref} slots={slots} />;
}) as <TValue extends {}, Multiple extends boolean>(
props: SelectProps<TValue, Multiple> & React.RefAttributes<HTMLButtonElement>,
) => JSX.Element;
) => React.JSX.Element;

export default function UnstyledSelectBasic() {
return (
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/select/UnstyledSelectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Select = React.forwardRef(function CustomSelect<
return <BaseSelect {...props} ref={ref} slots={slots} />;
}) as <TValue extends {}, Multiple extends boolean>(
props: SelectProps<TValue, Multiple> & React.RefAttributes<HTMLButtonElement>,
) => JSX.Element;
) => React.JSX.Element;

const blue = {
100: '#DAECFF',
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/DiscreteSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function DiscreteSlider() {
}

interface SliderValueLabelProps {
children: React.ReactElement;
children: React.ReactElement<any>;
}

function SliderValueLabel({ children }: SliderValueLabelProps) {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/slider/LabeledValuesSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function LabeledValuesSlider() {
}

interface SliderValueLabelProps {
children: React.ReactElement;
children: React.ReactElement<any>;
}

function SliderValueLabel({ children }: SliderValueLabelProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function PopupWithTrigger(props: PopupProps) {
);
}

function MaterialUITransitionAdapter(props: { children: React.ReactElement }) {
function MaterialUITransitionAdapter(props: { children: React.ReactElement<any> }) {
const { requestedEnter, onExited } = useTransitionStateManager();
const { children } = props;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Select = React.forwardRef(function Select<
return <BaseSelect {...props} ref={ref} slots={slots} />;
}) as <TValue extends {}, Multiple extends boolean>(
props: SelectProps<TValue, Multiple> & React.RefAttributes<HTMLButtonElement>,
) => JSX.Element;
) => React.JSX.Element;

const SelectButton = React.forwardRef(function SelectButton<
TValue extends {},
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/alert/AlertVariousStates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function AlertVariousStates() {
const items: {
title: string;
color: ColorPaletteProp;
icon: React.ReactElement;
icon: React.ReactElement<any>;
}[] = [
{ title: 'Success', color: 'success', icon: <CheckCircleIcon /> },
{ title: 'Warning', color: 'warning', icon: <WarningIcon /> },
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/autocomplete/AutocompleteHint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const StyledDiv = styled('div')({
});

type WrapperProps = {
children: JSX.Element;
children: React.JSX.Element;
hint: string;
};

Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/autocomplete/Virtualize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ListboxComponent = React.forwardRef<
const { children, anchorEl, open, modifiers, ...other } = props;
const itemData: Array<any> = [];
(
children as [Array<{ children: Array<React.ReactElement> | undefined }>]
children as [Array<{ children: Array<React.ReactElement<any>> | undefined }>]
)[0].forEach((item) => {
if (item) {
itemData.push(item);
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/input/FloatingLabelInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const StyledLabel = styled('label')(({ theme }) => ({

const InnerInput = React.forwardRef<
HTMLInputElement,
JSX.IntrinsicElements['input']
React.JSX.IntrinsicElements['input']
>(function InnerInput(props, ref) {
const id = React.useId();
return (
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/menu/MenuIconSideNavExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import MenuButton from '@mui/joy/MenuButton';
// https://popper.js.org/docs/v2/modifiers/offset/
interface MenuButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
menu: React.ReactElement;
menu: React.ReactElement<any>;
open: boolean;
onOpen: (
event?:
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/menu/MenuToolbarExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Theme } from '@mui/joy';
type MenuBarButtonProps = Pick<DropdownProps, 'children' | 'open'> & {
onOpen: DropdownProps['onOpenChange'];
onKeyDown: React.KeyboardEventHandler;
menu: JSX.Element;
menu: React.JSX.Element;
onMouseEnter: React.MouseEventHandler;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const StyledLabel = styled('label')(({ theme }) => ({

const InnerTextarea = React.forwardRef<
HTMLTextAreaElement,
JSX.IntrinsicElements['textarea']
React.JSX.IntrinsicElements['textarea']
>(function InnerTextarea(props, ref) {
const id = React.useId();
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import MenuItem from '@mui/joy/MenuItem';
import { ListActionTypes } from '@mui/base/useList';

export default function Menu(props: {
control: React.ReactElement;
control: React.ReactElement<any>;
id: string;
menus: Array<{ label: string } & { [k: string]: any }>;
}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function ChatsPane(props: ChatsPaneProps) {
sx={{
borderRight: '1px solid',
borderColor: 'divider',
height: 'calc(100dvh - var(--Header-height))',
height: { sm: 'calc(100dvh - var(--Header-height))', md: '100dvh' },
overflowY: 'auto',
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Header() {
return (
<Sheet
sx={{
display: { xs: 'flex', sm: 'none' },
display: { sm: 'flex', md: 'none' },
alignItems: 'center',
justifyContent: 'space-between',
position: 'fixed',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function MessagesPane(props: MessagesPaneProps) {
return (
<Sheet
sx={{
height: { xs: 'calc(100dvh - var(--Header-height))', lg: '100dvh' },
height: { xs: 'calc(100dvh - var(--Header-height))', md: '100dvh' },
display: 'flex',
flexDirection: 'column',
backgroundColor: 'background.level1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function MyProfile() {
flex: 1,
width: '100%',
mx: 'auto',
pt: { xs: 'var(--Header-height)', sm: 0 },
pt: { xs: 'var(--Header-height)', md: 0 },
display: 'grid',
gridTemplateColumns: {
xs: '1fr',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import AspectRatio from '@mui/joy/AspectRatio';

import FileUploadRoundedIcon from '@mui/icons-material/FileUploadRounded';

export default function DropZone(props: CardProps & { icon?: React.ReactElement }) {
export default function DropZone(
props: CardProps & { icon?: React.ReactElement<any> },
) {
const { icon, sx, ...other } = props;
return (
<Card
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import RemoveCircleOutlineRoundedIcon from '@mui/icons-material/RemoveCircleOutl

export default function FileUpload(
props: CardProps & {
icon?: React.ReactElement;
icon?: React.ReactElement<any>;
fileName: string;
fileSize: string;
progress: number;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/joy/integrations/material-ui/material-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Render Joy UI's `CssVarsProvider` inside Material UI's provider and use `THEME

```js
import {
experimental_extendTheme as materialExtendTheme,
Experimental_CssVarsProvider as MaterialCssVarsProvider,
extendTheme as materialExtendTheme,
CssVarsProvider as MaterialCssVarsProvider,
THEME_ID as MATERIAL_THEME_ID,
} from '@mui/material/styles';
import { CssVarsProvider as JoyCssVarsProvider } from '@mui/joy/styles';
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/app-bar/BackToTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface Props {
* You won't need it on your project.
*/
window?: () => Window;
children?: React.ReactElement;
children?: React.ReactElement<any>;
}

function ScrollTop(props: Props) {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/app-bar/ElevateAppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface Props {
* You won't need it on your project.
*/
window?: () => Window;
children?: React.ReactElement;
children?: React.ReactElement<any>;
}

function ElevationScroll(props: Props) {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/app-bar/HideAppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Props {
* You won't need it on your project.
*/
window?: () => Window;
children?: React.ReactElement;
children?: React.ReactElement<any>;
}

function HideOnScroll(props: Props) {
Expand Down
Loading

0 comments on commit 65c3845

Please sign in to comment.