Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mui/joy

Package Overview
Dependencies
Maintainers
7
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/joy - npm Package Compare versions

Comparing version 5.0.0-alpha.76 to 5.0.0-alpha.77

0

Alert/Alert.d.ts

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

25

Alert/Alert.js
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["children", "className", "color", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"];
const _excluded = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"];
import * as React from 'react';

@@ -11,3 +11,3 @@ import PropTypes from 'prop-types';

import useThemeProps from '../styles/useThemeProps';
import { useColorInversion } from '../styles/ColorInversion';
import { ColorInversionProvider, useColorInversion } from '../styles/ColorInversion';
import useSlot from '../utils/useSlot';

@@ -38,4 +38,4 @@ import { getAlertUtilityClass } from './alertClasses';

}) => {
var _theme$variants;
return _extends({
var _theme$variants, _theme$colorInversion;
return [_extends({
'--Alert-radius': theme.vars.radius.sm,

@@ -72,6 +72,7 @@ '--Alert-decoratorChildRadius': 'max((var(--Alert-radius) - var(--variant-borderWidth, 0px)) - var(--Alert-padding), min(var(--Alert-padding) + var(--variant-borderWidth, 0px), var(--Alert-radius) / 2))',

display: 'flex',
position: 'relative',
alignItems: 'center',
padding: `var(--Alert-padding)`,
borderRadius: 'var(--Alert-radius)'
}, (_theme$variants = theme.variants[ownerState.variant]) == null ? void 0 : _theme$variants[ownerState.color]);
}, (_theme$variants = theme.variants[ownerState.variant]) == null ? void 0 : _theme$variants[ownerState.color]), ownerState.color !== 'context' && ownerState.invertedColors && ((_theme$colorInversion = theme.colorInversion[ownerState.variant]) == null ? void 0 : _theme$colorInversion[ownerState.color])];
});

@@ -132,2 +133,3 @@ const AlertStartDecorator = styled('span', {

color: colorProp = 'primary',
invertedColors = false,
role = 'alert',

@@ -180,3 +182,3 @@ variant = 'soft',

});
return /*#__PURE__*/_jsxs(SlotRoot, _extends({}, rootProps, {
const result = /*#__PURE__*/_jsxs(React.Fragment, {
children: [startDecorator && /*#__PURE__*/_jsx(SlotStartDecorator, _extends({}, startDecoratorProps, {

@@ -187,2 +189,8 @@ children: startDecorator

}))]
});
return /*#__PURE__*/_jsx(SlotRoot, _extends({}, rootProps, {
children: invertedColors ? /*#__PURE__*/_jsx(ColorInversionProvider, {
variant: variant,
children: result
}) : result
}));

@@ -218,2 +226,7 @@ });

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors: PropTypes.bool,
/**
* The ARIA role attribute of the element.

@@ -220,0 +233,0 @@ * @default 'alert'

@@ -0,0 +0,0 @@ export interface AlertClasses {

@@ -46,2 +46,7 @@ import * as React from 'react';

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors?: boolean;
/**
* The ARIA role attribute of the element.

@@ -48,0 +53,0 @@ * @default 'alert'

@@ -0,0 +0,0 @@ export { default } from './Alert';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface AspectRatioClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './AspectRatio';

@@ -0,0 +0,0 @@ /// <reference types="react" />

@@ -14,3 +14,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import useAutocomplete from '@mui/base/useAutocomplete';
import PopperUnstyled from '@mui/base/PopperUnstyled';
import Popper from '@mui/base/Popper';
import { useThemeProps } from '../styles';

@@ -610,7 +610,7 @@ import ClearIcon from '../internal/svg-icons/Close';

className: clsx(listboxProps.className, ((_listboxProps$ownerSt = listboxProps.ownerState) == null ? void 0 : _listboxProps$ownerSt.color) === 'context' && autocompleteClasses.colorContext)
// @ts-ignore internal logic (too complex to typed PopperUnstyledOwnProps to SlotListbox but this should be removed when we have `usePopper`)
// @ts-ignore internal logic (too complex to typed PopperOwnProps to SlotListbox but this should be removed when we have `usePopper`)
,
modifiers: modifiers
}, !((_props$slots = props.slots) != null && _props$slots.listbox) && {
as: PopperUnstyled,
as: Popper,
slots: {

@@ -617,0 +617,0 @@ root: listboxProps.as || 'ul'

@@ -0,0 +0,0 @@ export interface AutocompleteClasses {

import * as React from 'react';
import { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteInputChangeReason, AutocompleteValue, UseAutocompleteProps } from '@mui/base/useAutocomplete';
import { PopperUnstyledOwnProps } from '@mui/base/PopperUnstyled';
import { PopperOwnProps } from '@mui/base/Popper';
import { OverridableStringUnion } from '@mui/types';

@@ -116,3 +116,3 @@ import { ColorPaletteProp, SxProps, VariantProp, ApplyColorInversion } from '../styles/types';

size?: OverridableStringUnion<'sm' | 'md' | 'lg', AutocompletePropsSizeOverrides>;
} & Omit<PopperUnstyledOwnProps, 'slots' | 'slotProps' | 'open'>, AutocompleteOwnerState<any, any, any, any>>;
} & Omit<PopperOwnProps, 'slots' | 'slotProps' | 'open'>, AutocompleteOwnerState<any, any, any, any>>;
option: SlotProps<'li', {

@@ -119,0 +119,0 @@ color?: OverridableStringUnion<ColorPaletteProp, AutocompletePropsColorOverrides>;

@@ -0,0 +0,0 @@ export { createFilterOptions } from '@mui/base/useAutocomplete';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface AutocompleteListboxClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './AutocompleteListbox';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface AutocompleteOptionClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './AutocompleteOption';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface AvatarClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Avatar';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface AvatarGroupClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './AvatarGroup';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface BadgeClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Badge';

import { Theme } from '../styles/types';
declare const Box: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", Theme>>;
export default Box;

@@ -0,0 +0,0 @@ /// <reference types="react" />

export { default } from './Box';
export * from './BoxProps';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface BreadcrumbsClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Breadcrumbs';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface ButtonClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Button';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface CardClasses {

import * as React from 'react';
export declare const CardRowContext: React.Context<boolean>;

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Card';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface CardContentClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './CardContent';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface CardCoverClasses {

@@ -0,0 +0,0 @@ import { OverrideProps } from '@mui/types';

@@ -0,0 +0,0 @@ export { default } from './CardCover';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface CardOverflowClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './CardOverflow';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface CheckboxClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Checkbox';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -139,2 +139,4 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

right: 0,
width: '100%',
// To fix Firefox issue (https://github.com/mui/material-ui/issues/36877)
border: 'none',

@@ -141,0 +143,0 @@ cursor: 'pointer',

@@ -0,0 +0,0 @@ export interface ChipClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Chip';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface ChipDeleteClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ChipDelete';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface CircularProgressClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './CircularProgress';

export { unstable_ClassNameGenerator } from '@mui/utils';
export declare const generateUtilityClass: (componentName: string, slot: string) => string;
export declare const generateUtilityClasses: <T extends string>(componentName: string, slots: T[]) => Record<T, string>;

@@ -0,0 +0,0 @@ declare const colors: {

export { default } from './colors';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ import { ContainerClasses } from '@mui/system';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Container';

@@ -0,0 +0,0 @@ /// <reference types="react" />

@@ -0,0 +0,0 @@ /// <reference types="react" />

export { default } from './CssBaseline';
export * from './CssBaselineProps';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface DividerClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Divider';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface FormControlClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './FormControl';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface FormHelperTextClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './FormHelperText';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface FormLabelClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './FormLabel';

@@ -0,0 +0,0 @@ /// <reference types="react" />

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ import { GridClasses } from '@mui/system/Unstable_Grid';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Grid';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface IconButtonClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './IconButton';

@@ -0,0 +0,0 @@ export { default as colors } from './colors';

/**
* @mui/joy v5.0.0-alpha.76
* @mui/joy v5.0.0-alpha.77
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -0,0 +0,0 @@ export { default } from './Input';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface InputClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import { FormControlContextValue } from '../FormControl/FormControlContext';

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export { default } from './LinearProgress';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface LinearProgressClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Link';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface LinkClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

import * as React from 'react';
declare const ComponentListContext: React.Context<string | undefined>;
export default ComponentListContext;
import * as React from 'react';
declare const GroupListContext: React.Context<"menu" | "select" | undefined>;
export default GroupListContext;

@@ -0,0 +0,0 @@ export { default } from './List';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface ListClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import * as React from 'react';

import * as React from 'react';
declare const NestedListContext: React.Context<string | boolean>;
export default NestedListContext;
import * as React from 'react';
declare const RowListContext: React.Context<boolean>;
export default RowListContext;
import * as React from 'react';
declare const WrapListContext: React.Context<boolean>;
export default WrapListContext;

@@ -0,0 +0,0 @@ export { default } from './ListDivider';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface ListDividerClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ListItem';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface ListItemClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ListItemButton';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -49,4 +49,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

display: 'flex',
flexDirection: ownerState.orientation === 'vertical' ? 'column' : 'row',
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'stretch'
}, ownerState.orientation === 'vertical' && {
flexDirection: 'column',
justifyContent: 'center'
}, {
textAlign: 'initial',

@@ -53,0 +58,0 @@ textDecoration: 'initial',

@@ -0,0 +0,0 @@ export interface ListItemButtonClasses {

import * as React from 'react';
declare const ListItemButtonOrientationContext: React.Context<"horizontal" | "vertical">;
export default ListItemButtonOrientationContext;

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ListItemContent';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface ListItemContentClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ListItemDecorator';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -28,8 +28,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

display: 'inline-flex',
alignItems: 'center',
color: `var(--ListItemDecorator-color)`
}, ownerState.parentOrientation === 'horizontal' ? {
minInlineSize: 'var(--ListItemDecorator-size)'
minInlineSize: 'var(--ListItemDecorator-size)',
alignItems: 'center'
} : {
minBlockSize: 'var(--ListItemDecorator-size)'
minBlockSize: 'var(--ListItemDecorator-size)',
justifyContent: 'center'
}));

@@ -36,0 +37,0 @@ /**

@@ -0,0 +0,0 @@ export interface ListItemDecoratorClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ListSubheader';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface ListSubheaderClasses {

import * as React from 'react';
declare const ListSubheaderDispatch: React.Context<React.Dispatch<React.SetStateAction<string>> | undefined>;
export default ListSubheaderDispatch;

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Menu';

@@ -12,5 +12,5 @@ import { OverridableComponent } from '@mui/types';

* - [Menu API](https://mui.com/joy-ui/api/menu/)
* - inherits [PopperUnstyled API](https://mui.com/base/api/popper-unstyled/)
* - inherits [Popper API](https://mui.com/base/api/popper/)
*/
declare const Menu: OverridableComponent<MenuTypeMap<{}, "ul">>;
export default Menu;
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["actions", "anchorEl", "children", "color", "component", "disablePortal", "keepMounted", "id", "onClose", "open", "modifiers", "variant", "size", "slots", "slotProps"];
const _excluded = ["actions", "anchorEl", "children", "color", "component", "disablePortal", "keepMounted", "invertedColors", "id", "onClose", "open", "modifiers", "variant", "size", "slots", "slotProps"];
import * as React from 'react';

@@ -9,3 +9,3 @@ import PropTypes from 'prop-types';

import useMenu, { MenuProvider } from '@mui/base/useMenu';
import PopperUnstyled from '@mui/base/PopperUnstyled';
import Popper from '@mui/base/Popper';
import { useSlotProps } from '@mui/base/utils';

@@ -16,3 +16,3 @@ import { StyledList } from '../List/List';

import { styled, useThemeProps } from '../styles';
import ColorInversion, { useColorInversion } from '../styles/ColorInversion';
import ColorInversion, { ColorInversionProvider, useColorInversion } from '../styles/ColorInversion';
import { getMenuUtilityClass } from './menuClasses';

@@ -41,5 +41,5 @@ import { jsx as _jsx } from "react/jsx-runtime";

}) => {
var _theme$variants;
var _theme$variants, _theme$colorInversion;
const variantStyle = (_theme$variants = theme.variants[ownerState.variant]) == null ? void 0 : _theme$variants[ownerState.color];
return _extends({
return [_extends({
'--focus-outline-offset': `calc(${theme.vars.focus.thickness} * -1)`,

@@ -56,3 +56,3 @@ // to prevent the focus outline from being cut by overflow

backgroundColor: theme.vars.palette.background.popup
});
}), ownerState.color !== 'context' && ownerState.invertedColors && ((_theme$colorInversion = theme.colorInversion[ownerState.variant]) == null ? void 0 : _theme$colorInversion[ownerState.color])];
});

@@ -69,3 +69,3 @@

* - [Menu API](https://mui.com/joy-ui/api/menu/)
* - inherits [PopperUnstyled API](https://mui.com/base/api/popper-unstyled/)
* - inherits [Popper API](https://mui.com/base/api/popper/)
*/

@@ -86,2 +86,3 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {

keepMounted = false,
invertedColors = false,
id,

@@ -120,2 +121,3 @@ onClose,

disablePortal,
invertedColors,
color,

@@ -156,4 +158,20 @@ variant,

});
const result = /*#__PURE__*/_jsx(MenuRoot, _extends({}, rootProps, !((_props$slots = props.slots) != null && _props$slots.root) && {
as: PopperUnstyled,
let result = /*#__PURE__*/_jsx(MenuProvider, {
value: contextValue,
children: /*#__PURE__*/_jsx(GroupListContext.Provider, {
value: "menu",
children: /*#__PURE__*/_jsx(ListProvider, {
nested: true,
children: children
})
})
});
if (invertedColors) {
result = /*#__PURE__*/_jsx(ColorInversionProvider, {
variant: variant,
children: result
});
}
result = /*#__PURE__*/_jsx(MenuRoot, _extends({}, rootProps, !((_props$slots = props.slots) != null && _props$slots.root) && {
as: Popper,
slots: {

@@ -163,18 +181,3 @@ root: component || 'ul'

}, {
children: /*#__PURE__*/_jsx(MenuProvider, {
value: contextValue,
children: /*#__PURE__*/_jsx(GroupListContext.Provider, {
value: "menu",
children: /*#__PURE__*/_jsx(ListProvider, {
nested: true,
children: disablePortal ? children :
/*#__PURE__*/
// For portal popup, the children should not inherit color inversion from the upper parent.
_jsx(ColorInversion.Provider, {
value: undefined,
children: children
})
})
})
})
children: result
}));

@@ -230,2 +233,7 @@ return disablePortal ? result :

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors: PropTypes.bool,
/**
* Always keep the children in the DOM.

@@ -232,0 +240,0 @@ * This prop can be useful in SEO situation or

@@ -0,0 +0,0 @@ export interface MenuClasses {

import * as React from 'react';
import { OverrideProps, OverridableStringUnion } from '@mui/types';
import { PopperUnstyledProps } from '@mui/base/PopperUnstyled';
import { MenuUnstyledActions } from '@mui/base/MenuUnstyled';
import { PopperProps } from '@mui/base/Popper';
import { MenuActions } from '@mui/base/Menu';
import { ColorPaletteProp, VariantProp, SxProps, ApplyColorInversion } from '../styles/types';

@@ -24,3 +24,3 @@ import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types';

}
export type { MenuUnstyledActions } from '@mui/base/MenuUnstyled';
export type { MenuActions } from '@mui/base/Menu';
export interface MenuTypeMap<P = {}, D extends React.ElementType = 'ul'> {

@@ -32,3 +32,3 @@ props: P & {

*/
actions?: React.Ref<MenuUnstyledActions>;
actions?: React.Ref<MenuActions>;
/**

@@ -40,2 +40,7 @@ * The color of the component. It supports those theme colors that make sense for this component.

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors?: boolean;
/**
* Triggered when focus leaves the menu and the menu should close.

@@ -63,3 +68,3 @@ */

variant?: OverridableStringUnion<VariantProp, MenuPropsVariantOverrides>;
} & MenuSlotsAndSlotProps & Omit<PopperUnstyledProps, 'children' | 'open'>;
} & MenuSlotsAndSlotProps & Omit<PopperProps, 'children' | 'open'>;
defaultComponent: D;

@@ -66,0 +71,0 @@ }

@@ -0,0 +0,0 @@ export { default } from './MenuItem';

@@ -0,0 +0,0 @@ import { ExtendMenuItem, MenuItemTypeMap } from './MenuItemProps';

import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["children", "disabled", "component", "selected", "color", "variant", "slots", "slotProps"];
const _excluded = ["children", "disabled", "component", "selected", "color", "orientation", "variant", "slots", "slotProps"];
import * as React from 'react';

@@ -14,2 +14,3 @@ import PropTypes from 'prop-types';

import RowListContext from '../List/RowListContext';
import ListItemButtonOrientationContext from '../ListItemButton/ListItemButtonOrientationContext';
import useSlot from '../utils/useSlot';

@@ -59,2 +60,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

color: colorProp = selected ? 'primary' : 'neutral',
orientation = 'horizontal',
variant = 'plain',

@@ -82,2 +84,3 @@ slots = {},

focusVisible,
orientation,
selected,

@@ -101,5 +104,8 @@ row,

});
return /*#__PURE__*/_jsx(SlotRoot, _extends({}, rootProps, {
children: children
}));
return /*#__PURE__*/_jsx(ListItemButtonOrientationContext.Provider, {
value: orientation,
children: /*#__PURE__*/_jsx(SlotRoot, _extends({}, rootProps, {
children: children
}))
});
});

@@ -129,2 +135,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes */ = {

/**
* The content direction flow.
* @default 'horizontal'
*/
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
/**
* If `true`, the component is selected.

@@ -131,0 +142,0 @@ * @default false

@@ -0,0 +0,0 @@ export interface MenuItemClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './MenuList';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface MenuListClasses {

import * as React from 'react';
import { OverrideProps, OverridableStringUnion } from '@mui/types';
import { MenuUnstyledActions } from '@mui/base/MenuUnstyled';
import { MenuActions as BaseMenuActions } from '@mui/base/Menu';
import { ColorPaletteProp, VariantProp, SxProps, ApplyColorInversion } from '../styles/types';

@@ -23,4 +23,2 @@ import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types';

}
export interface MenuActions extends MenuUnstyledActions {
}
export interface MenuListTypeMap<P = {}, D extends React.ElementType = 'ul'> {

@@ -32,3 +30,3 @@ props: P & {

*/
actions?: React.Ref<MenuUnstyledActions>;
actions?: React.Ref<BaseMenuActions>;
/**

@@ -35,0 +33,0 @@ * The color of the component. It supports those theme colors that make sense for this component.

import * as React from 'react';
declare const CloseModalContext: React.Context<((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined>;
export default CloseModalContext;

@@ -0,0 +0,0 @@ export { default } from './Modal';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -10,3 +10,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import FocusTrap from '@mui/base/FocusTrap';
import { ModalManager } from '@mui/base/ModalUnstyled';
import { ModalManager } from '@mui/base/Modal';
import { styled, useThemeProps } from '../styles';

@@ -88,3 +88,3 @@ import useSlot from '../utils/useSlot';

*/
const Modal = /*#__PURE__*/React.forwardRef(function ModalUnstyled(inProps, ref) {
const Modal = /*#__PURE__*/React.forwardRef(function ModalU(inProps, ref) {
const props = useThemeProps({

@@ -91,0 +91,0 @@ props: inProps,

@@ -0,0 +0,0 @@ export interface ModalClasses {

import * as React from 'react';
import { ModalUnstyledOwnProps } from '@mui/base/ModalUnstyled';
import { ModalOwnProps } from '@mui/base/Modal';
import { OverrideProps } from '@mui/types';

@@ -24,3 +24,3 @@ import { SxProps } from '../styles/types';

export interface ModalTypeMap<P = {}, D extends React.ElementType = 'div'> {
props: P & Pick<ModalUnstyledOwnProps, 'children' | 'container' | 'disableAutoFocus' | 'disableEnforceFocus' | 'disableEscapeKeyDown' | 'disablePortal' | 'disableRestoreFocus' | 'disableScrollLock' | 'hideBackdrop' | 'keepMounted' | 'open'> & {
props: P & Pick<ModalOwnProps, 'children' | 'container' | 'disableAutoFocus' | 'disableEnforceFocus' | 'disableEscapeKeyDown' | 'disablePortal' | 'disableRestoreFocus' | 'disableScrollLock' | 'hideBackdrop' | 'keepMounted' | 'open'> & {
/**

@@ -27,0 +27,0 @@ * Callback fired when the component requests to be closed.

@@ -0,0 +0,0 @@ export { default } from './ModalClose';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface ModalCloseClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ModalDialog';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface ModalDialogClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

import * as React from 'react';
declare const ModalDialogSizeContext: React.Context<"sm" | "md" | "lg" | undefined>;
export default ModalDialogSizeContext;

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ModalOverflow';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface ModalOverflowClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["children", "className", "color", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"];
const _excluded = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"];
import * as React from 'react';

@@ -11,3 +11,3 @@ import PropTypes from 'prop-types';

import useThemeProps from '../styles/useThemeProps';
import { useColorInversion } from '../styles/ColorInversion';
import { ColorInversionProvider, useColorInversion } from '../styles/ColorInversion';
import useSlot from '../utils/useSlot';

@@ -37,3 +37,3 @@ import { getAlertUtilityClass } from './alertClasses';

ownerState
}) => _extends({
}) => [_extends({
'--Alert-radius': theme.vars.radius.sm,

@@ -70,6 +70,7 @@ '--Alert-decoratorChildRadius': 'max((var(--Alert-radius) - var(--variant-borderWidth, 0px)) - var(--Alert-padding), min(var(--Alert-padding) + var(--variant-borderWidth, 0px), var(--Alert-radius) / 2))',

display: 'flex',
position: 'relative',
alignItems: 'center',
padding: `var(--Alert-padding)`,
borderRadius: 'var(--Alert-radius)'
}, theme.variants[ownerState.variant]?.[ownerState.color]));
}, theme.variants[ownerState.variant]?.[ownerState.color]), ownerState.color !== 'context' && ownerState.invertedColors && theme.colorInversion[ownerState.variant]?.[ownerState.color]]);
const AlertStartDecorator = styled('span', {

@@ -123,2 +124,3 @@ name: 'JoyAlert',

color: colorProp = 'primary',
invertedColors = false,
role = 'alert',

@@ -171,3 +173,3 @@ variant = 'soft',

});
return /*#__PURE__*/_jsxs(SlotRoot, _extends({}, rootProps, {
const result = /*#__PURE__*/_jsxs(React.Fragment, {
children: [startDecorator && /*#__PURE__*/_jsx(SlotStartDecorator, _extends({}, startDecoratorProps, {

@@ -178,2 +180,8 @@ children: startDecorator

}))]
});
return /*#__PURE__*/_jsx(SlotRoot, _extends({}, rootProps, {
children: invertedColors ? /*#__PURE__*/_jsx(ColorInversionProvider, {
variant: variant,
children: result
}) : result
}));

@@ -209,2 +217,7 @@ });

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors: PropTypes.bool,
/**
* The ARIA role attribute of the element.

@@ -211,0 +224,0 @@ * @default 'alert'

@@ -14,3 +14,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import useAutocomplete from '@mui/base/useAutocomplete';
import PopperUnstyled from '@mui/base/PopperUnstyled';
import Popper from '@mui/base/Popper';
import { useThemeProps } from '../styles';

@@ -602,7 +602,7 @@ import ClearIcon from '../internal/svg-icons/Close';

className: clsx(listboxProps.className, listboxProps.ownerState?.color === 'context' && autocompleteClasses.colorContext)
// @ts-ignore internal logic (too complex to typed PopperUnstyledOwnProps to SlotListbox but this should be removed when we have `usePopper`)
// @ts-ignore internal logic (too complex to typed PopperOwnProps to SlotListbox but this should be removed when we have `usePopper`)
,
modifiers: modifiers
}, !props.slots?.listbox && {
as: PopperUnstyled,
as: Popper,
slots: {

@@ -609,0 +609,0 @@ root: listboxProps.as || 'ul'

@@ -136,2 +136,4 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

right: 0,
width: '100%',
// To fix Firefox issue (https://github.com/mui/material-ui/issues/36877)
border: 'none',

@@ -138,0 +140,0 @@ cursor: 'pointer',

/**
* @mui/joy v5.0.0-alpha.76
* @mui/joy v5.0.0-alpha.77
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -47,4 +47,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

display: 'flex',
flexDirection: ownerState.orientation === 'vertical' ? 'column' : 'row',
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'stretch'
}, ownerState.orientation === 'vertical' && {
flexDirection: 'column',
justifyContent: 'center'
}, {
textAlign: 'initial',

@@ -51,0 +56,0 @@ textDecoration: 'initial',

@@ -28,8 +28,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

display: 'inline-flex',
alignItems: 'center',
color: `var(--ListItemDecorator-color)`
}, ownerState.parentOrientation === 'horizontal' ? {
minInlineSize: 'var(--ListItemDecorator-size)'
minInlineSize: 'var(--ListItemDecorator-size)',
alignItems: 'center'
} : {
minBlockSize: 'var(--ListItemDecorator-size)'
minBlockSize: 'var(--ListItemDecorator-size)',
justifyContent: 'center'
}));

@@ -36,0 +37,0 @@ /**

import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["actions", "anchorEl", "children", "color", "component", "disablePortal", "keepMounted", "id", "onClose", "open", "modifiers", "variant", "size", "slots", "slotProps"];
const _excluded = ["actions", "anchorEl", "children", "color", "component", "disablePortal", "keepMounted", "invertedColors", "id", "onClose", "open", "modifiers", "variant", "size", "slots", "slotProps"];
import * as React from 'react';

@@ -9,3 +9,3 @@ import PropTypes from 'prop-types';

import useMenu, { MenuProvider } from '@mui/base/useMenu';
import PopperUnstyled from '@mui/base/PopperUnstyled';
import Popper from '@mui/base/Popper';
import { useSlotProps } from '@mui/base/utils';

@@ -16,3 +16,3 @@ import { StyledList } from '../List/List';

import { styled, useThemeProps } from '../styles';
import ColorInversion, { useColorInversion } from '../styles/ColorInversion';
import ColorInversion, { ColorInversionProvider, useColorInversion } from '../styles/ColorInversion';
import { getMenuUtilityClass } from './menuClasses';

@@ -42,3 +42,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

const variantStyle = theme.variants[ownerState.variant]?.[ownerState.color];
return _extends({
return [_extends({
'--focus-outline-offset': `calc(${theme.vars.focus.thickness} * -1)`,

@@ -55,3 +55,3 @@ // to prevent the focus outline from being cut by overflow

backgroundColor: theme.vars.palette.background.popup
});
}), ownerState.color !== 'context' && ownerState.invertedColors && theme.colorInversion[ownerState.variant]?.[ownerState.color]];
});

@@ -68,3 +68,3 @@

* - [Menu API](https://mui.com/joy-ui/api/menu/)
* - inherits [PopperUnstyled API](https://mui.com/base/api/popper-unstyled/)
* - inherits [Popper API](https://mui.com/base/api/popper/)
*/

@@ -84,2 +84,3 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {

keepMounted = false,
invertedColors = false,
id,

@@ -118,2 +119,3 @@ onClose,

disablePortal,
invertedColors,
color,

@@ -154,4 +156,20 @@ variant,

});
const result = /*#__PURE__*/_jsx(MenuRoot, _extends({}, rootProps, !props.slots?.root && {
as: PopperUnstyled,
let result = /*#__PURE__*/_jsx(MenuProvider, {
value: contextValue,
children: /*#__PURE__*/_jsx(GroupListContext.Provider, {
value: "menu",
children: /*#__PURE__*/_jsx(ListProvider, {
nested: true,
children: children
})
})
});
if (invertedColors) {
result = /*#__PURE__*/_jsx(ColorInversionProvider, {
variant: variant,
children: result
});
}
result = /*#__PURE__*/_jsx(MenuRoot, _extends({}, rootProps, !props.slots?.root && {
as: Popper,
slots: {

@@ -161,18 +179,3 @@ root: component || 'ul'

}, {
children: /*#__PURE__*/_jsx(MenuProvider, {
value: contextValue,
children: /*#__PURE__*/_jsx(GroupListContext.Provider, {
value: "menu",
children: /*#__PURE__*/_jsx(ListProvider, {
nested: true,
children: disablePortal ? children :
/*#__PURE__*/
// For portal popup, the children should not inherit color inversion from the upper parent.
_jsx(ColorInversion.Provider, {
value: undefined,
children: children
})
})
})
})
children: result
}));

@@ -228,2 +231,7 @@ return disablePortal ? result :

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors: PropTypes.bool,
/**
* Always keep the children in the DOM.

@@ -230,0 +238,0 @@ * This prop can be useful in SEO situation or

import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["children", "disabled", "component", "selected", "color", "variant", "slots", "slotProps"];
const _excluded = ["children", "disabled", "component", "selected", "color", "orientation", "variant", "slots", "slotProps"];
import * as React from 'react';

@@ -14,2 +14,3 @@ import PropTypes from 'prop-types';

import RowListContext from '../List/RowListContext';
import ListItemButtonOrientationContext from '../ListItemButton/ListItemButtonOrientationContext';
import useSlot from '../utils/useSlot';

@@ -59,2 +60,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

color: colorProp = selected ? 'primary' : 'neutral',
orientation = 'horizontal',
variant = 'plain',

@@ -82,2 +84,3 @@ slots = {},

focusVisible,
orientation,
selected,

@@ -101,5 +104,8 @@ row,

});
return /*#__PURE__*/_jsx(SlotRoot, _extends({}, rootProps, {
children: children
}));
return /*#__PURE__*/_jsx(ListItemButtonOrientationContext.Provider, {
value: orientation,
children: /*#__PURE__*/_jsx(SlotRoot, _extends({}, rootProps, {
children: children
}))
});
});

@@ -129,2 +135,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes */ = {

/**
* The content direction flow.
* @default 'horizontal'
*/
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
/**
* If `true`, the component is selected.

@@ -131,0 +142,0 @@ * @default false

@@ -10,3 +10,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import FocusTrap from '@mui/base/FocusTrap';
import { ModalManager } from '@mui/base/ModalUnstyled';
import { ModalManager } from '@mui/base/Modal';
import { styled, useThemeProps } from '../styles';

@@ -88,3 +88,3 @@ import useSlot from '../utils/useSlot';

*/
const Modal = /*#__PURE__*/React.forwardRef(function ModalUnstyled(inProps, ref) {
const Modal = /*#__PURE__*/React.forwardRef(function ModalU(inProps, ref) {
const props = useThemeProps({

@@ -91,0 +91,0 @@ props: inProps,

@@ -9,3 +9,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils';
import PopperUnstyled from '@mui/base/PopperUnstyled';
import Popper from '@mui/base/Popper';
import useSelect, { SelectActionTypes, SelectProvider } from '@mui/base/useSelect';

@@ -498,7 +498,7 @@ import composeClasses from '@mui/base/composeClasses';

className: clsx(listboxProps.className, listboxProps.ownerState?.color === 'context' && selectClasses.colorContext)
// @ts-ignore internal logic (too complex to typed PopperUnstyledOwnProps to SlotListbox but this should be removed when we have `usePopper`)
// @ts-ignore internal logic (too complex to typed PopperOwnProps to SlotListbox but this should be removed when we have `usePopper`)
,
modifiers: modifiers
}, !props.slots?.listbox && {
as: PopperUnstyled,
as: Popper,
slots: {

@@ -505,0 +505,0 @@ root: listboxProps.as || 'ul'

import * as React from 'react';
import { useTheme as useSystemTheme } from '@mui/system';
import { useTheme } from './ThemeProvider';
import defaultTheme from './defaultTheme';

@@ -30,3 +30,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

}) {
const theme = useSystemTheme(defaultTheme);
const theme = useTheme();
return /*#__PURE__*/_jsx(ColorInversion.Provider, {

@@ -33,0 +33,0 @@ value: variant ?

@@ -233,3 +233,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

surface: getCssVarColor('palette-common-black'),
popup: getCssVarColor('palette-neutral-800'),
popup: getCssVarColor('palette-neutral-900'),
level1: getCssVarColor('palette-neutral-800'),

@@ -236,0 +236,0 @@ level2: getCssVarColor('palette-neutral-700'),

@@ -196,4 +196,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

[prefixVar('--palette-divider')]: `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.32)`,
'--variant-plainColor': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 1)`,
'--variant-plainHoverColor': getCssVar(`palette-${color}-600`),
'--variant-plainColor': `rgba(${getCssVar(`palette-${color}-darkChannel`)} / 0.8)`,
'--variant-plainHoverColor': `rgba(${getCssVar(`palette-${color}-darkChannel`)} / 1)`,
'--variant-plainHoverBg': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.12)`,

@@ -200,0 +200,0 @@ '--variant-plainActiveBg': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.24)`,

@@ -9,3 +9,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import useTabPanel from '@mui/base/useTabPanel';
import { useTabsContext } from '@mui/base/TabsUnstyled';
import { useTabsContext } from '@mui/base/Tabs';
import { styled, useThemeProps } from '../styles';

@@ -12,0 +12,0 @@ import SizeTabsContext from '../Tabs/SizeTabsContext';

@@ -8,3 +8,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import { unstable_capitalize as capitalize, unstable_useControlled as useControlled, unstable_useEventCallback as useEventCallback, unstable_useForkRef as useForkRef, unstable_useIsFocusVisible as useIsFocusVisible, unstable_useId as useId } from '@mui/utils';
import { PopperUnstyled, unstable_composeClasses as composeClasses } from '@mui/base';
import { Popper, unstable_composeClasses as composeClasses } from '@mui/base';
import styled from '../styles/styled';

@@ -527,3 +527,3 @@ import useThemeProps from '../styles/useThemeProps';

const result = /*#__PURE__*/_jsxs(SlotRoot, _extends({}, rootProps, !props.slots?.root && {
as: PopperUnstyled,
as: Popper,
slots: {

@@ -530,0 +530,0 @@ root: component || 'div'

@@ -21,3 +21,3 @@ "use strict";

var _jsxRuntime = require("react/jsx-runtime");
const _excluded = ["children", "className", "color", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"];
const _excluded = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -46,4 +46,4 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

}) => {
var _theme$variants;
return (0, _extends2.default)({
var _theme$variants, _theme$colorInversion;
return [(0, _extends2.default)({
'--Alert-radius': theme.vars.radius.sm,

@@ -80,6 +80,7 @@ '--Alert-decoratorChildRadius': 'max((var(--Alert-radius) - var(--variant-borderWidth, 0px)) - var(--Alert-padding), min(var(--Alert-padding) + var(--variant-borderWidth, 0px), var(--Alert-radius) / 2))',

display: 'flex',
position: 'relative',
alignItems: 'center',
padding: `var(--Alert-padding)`,
borderRadius: 'var(--Alert-radius)'
}, (_theme$variants = theme.variants[ownerState.variant]) == null ? void 0 : _theme$variants[ownerState.color]);
}, (_theme$variants = theme.variants[ownerState.variant]) == null ? void 0 : _theme$variants[ownerState.color]), ownerState.color !== 'context' && ownerState.invertedColors && ((_theme$colorInversion = theme.colorInversion[ownerState.variant]) == null ? void 0 : _theme$colorInversion[ownerState.color])];
});

@@ -140,2 +141,3 @@ const AlertStartDecorator = (0, _styled.default)('span', {

color: colorProp = 'primary',
invertedColors = false,
role = 'alert',

@@ -188,3 +190,3 @@ variant = 'soft',

});
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(SlotRoot, (0, _extends2.default)({}, rootProps, {
const result = /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
children: [startDecorator && /*#__PURE__*/(0, _jsxRuntime.jsx)(SlotStartDecorator, (0, _extends2.default)({}, startDecoratorProps, {

@@ -195,2 +197,8 @@ children: startDecorator

}))]
});
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SlotRoot, (0, _extends2.default)({}, rootProps, {
children: invertedColors ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ColorInversion.ColorInversionProvider, {
variant: variant,
children: result
}) : result
}));

@@ -226,2 +234,7 @@ });

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors: _propTypes.default.bool,
/**
* The ARIA role attribute of the element.

@@ -228,0 +241,0 @@ * @default 'alert'

@@ -16,3 +16,3 @@ "use strict";

var _useAutocomplete = _interopRequireDefault(require("@mui/base/useAutocomplete"));
var _PopperUnstyled = _interopRequireDefault(require("@mui/base/PopperUnstyled"));
var _Popper = _interopRequireDefault(require("@mui/base/Popper"));
var _styles = require("../styles");

@@ -616,7 +616,7 @@ var _Close = _interopRequireDefault(require("../internal/svg-icons/Close"));

className: (0, _clsx.default)(listboxProps.className, ((_listboxProps$ownerSt = listboxProps.ownerState) == null ? void 0 : _listboxProps$ownerSt.color) === 'context' && _autocompleteClasses.default.colorContext)
// @ts-ignore internal logic (too complex to typed PopperUnstyledOwnProps to SlotListbox but this should be removed when we have `usePopper`)
// @ts-ignore internal logic (too complex to typed PopperOwnProps to SlotListbox but this should be removed when we have `usePopper`)
,
modifiers: modifiers
}, !((_props$slots = props.slots) != null && _props$slots.listbox) && {
as: _PopperUnstyled.default,
as: _Popper.default,
slots: {

@@ -623,0 +623,0 @@ root: listboxProps.as || 'ul'

@@ -147,2 +147,4 @@ "use strict";

right: 0,
width: '100%',
// To fix Firefox issue (https://github.com/mui/material-ui/issues/36877)
border: 'none',

@@ -149,0 +151,0 @@ cursor: 'pointer',

/**
* @mui/joy v5.0.0-alpha.76
* @mui/joy v5.0.0-alpha.77
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -58,4 +58,9 @@ "use strict";

display: 'flex',
flexDirection: ownerState.orientation === 'vertical' ? 'column' : 'row',
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'stretch'
}, ownerState.orientation === 'vertical' && {
flexDirection: 'column',
justifyContent: 'center'
}, {
textAlign: 'initial',

@@ -62,0 +67,0 @@ textDecoration: 'initial',

@@ -37,8 +37,9 @@ "use strict";

display: 'inline-flex',
alignItems: 'center',
color: `var(--ListItemDecorator-color)`
}, ownerState.parentOrientation === 'horizontal' ? {
minInlineSize: 'var(--ListItemDecorator-size)'
minInlineSize: 'var(--ListItemDecorator-size)',
alignItems: 'center'
} : {
minBlockSize: 'var(--ListItemDecorator-size)'
minBlockSize: 'var(--ListItemDecorator-size)',
justifyContent: 'center'
}));

@@ -45,0 +46,0 @@ /**

@@ -15,3 +15,3 @@ "use strict";

var _useMenu = _interopRequireWildcard(require("@mui/base/useMenu"));
var _PopperUnstyled = _interopRequireDefault(require("@mui/base/PopperUnstyled"));
var _Popper = _interopRequireDefault(require("@mui/base/Popper"));
var _utils2 = require("@mui/base/utils");

@@ -25,3 +25,3 @@ var _List = require("../List/List");

var _jsxRuntime = require("react/jsx-runtime");
const _excluded = ["actions", "anchorEl", "children", "color", "component", "disablePortal", "keepMounted", "id", "onClose", "open", "modifiers", "variant", "size", "slots", "slotProps"];
const _excluded = ["actions", "anchorEl", "children", "color", "component", "disablePortal", "keepMounted", "invertedColors", "id", "onClose", "open", "modifiers", "variant", "size", "slots", "slotProps"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -50,5 +50,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

}) => {
var _theme$variants;
var _theme$variants, _theme$colorInversion;
const variantStyle = (_theme$variants = theme.variants[ownerState.variant]) == null ? void 0 : _theme$variants[ownerState.color];
return (0, _extends2.default)({
return [(0, _extends2.default)({
'--focus-outline-offset': `calc(${theme.vars.focus.thickness} * -1)`,

@@ -65,3 +65,3 @@ // to prevent the focus outline from being cut by overflow

backgroundColor: theme.vars.palette.background.popup
});
}), ownerState.color !== 'context' && ownerState.invertedColors && ((_theme$colorInversion = theme.colorInversion[ownerState.variant]) == null ? void 0 : _theme$colorInversion[ownerState.color])];
});

@@ -78,3 +78,3 @@

* - [Menu API](https://mui.com/joy-ui/api/menu/)
* - inherits [PopperUnstyled API](https://mui.com/base/api/popper-unstyled/)
* - inherits [Popper API](https://mui.com/base/api/popper/)
*/

@@ -95,2 +95,3 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {

keepMounted = false,
invertedColors = false,
id,

@@ -129,2 +130,3 @@ onClose,

disablePortal,
invertedColors,
color,

@@ -165,4 +167,20 @@ variant,

});
const result = /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuRoot, (0, _extends2.default)({}, rootProps, !((_props$slots = props.slots) != null && _props$slots.root) && {
as: _PopperUnstyled.default,
let result = /*#__PURE__*/(0, _jsxRuntime.jsx)(_useMenu.MenuProvider, {
value: contextValue,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupListContext.default.Provider, {
value: "menu",
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListProvider.default, {
nested: true,
children: children
})
})
});
if (invertedColors) {
result = /*#__PURE__*/(0, _jsxRuntime.jsx)(_ColorInversion.ColorInversionProvider, {
variant: variant,
children: result
});
}
result = /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuRoot, (0, _extends2.default)({}, rootProps, !((_props$slots = props.slots) != null && _props$slots.root) && {
as: _Popper.default,
slots: {

@@ -172,18 +190,3 @@ root: component || 'ul'

}, {
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_useMenu.MenuProvider, {
value: contextValue,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupListContext.default.Provider, {
value: "menu",
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListProvider.default, {
nested: true,
children: disablePortal ? children :
/*#__PURE__*/
// For portal popup, the children should not inherit color inversion from the upper parent.
(0, _jsxRuntime.jsx)(_ColorInversion.default.Provider, {
value: undefined,
children: children
})
})
})
})
children: result
}));

@@ -239,2 +242,7 @@ return disablePortal ? result :

/**
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
* @default false
*/
invertedColors: _propTypes.default.bool,
/**
* Always keep the children in the DOM.

@@ -241,0 +249,0 @@ * This prop can be useful in SEO situation or

@@ -20,5 +20,6 @@ "use strict";

var _RowListContext = _interopRequireDefault(require("../List/RowListContext"));
var _ListItemButtonOrientationContext = _interopRequireDefault(require("../ListItemButton/ListItemButtonOrientationContext"));
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
var _jsxRuntime = require("react/jsx-runtime");
const _excluded = ["children", "disabled", "component", "selected", "color", "variant", "slots", "slotProps"];
const _excluded = ["children", "disabled", "component", "selected", "color", "orientation", "variant", "slots", "slotProps"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -68,2 +69,3 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

color: colorProp = selected ? 'primary' : 'neutral',
orientation = 'horizontal',
variant = 'plain',

@@ -91,2 +93,3 @@ slots = {},

focusVisible,
orientation,
selected,

@@ -110,5 +113,8 @@ row,

});
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SlotRoot, (0, _extends2.default)({}, rootProps, {
children: children
}));
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemButtonOrientationContext.default.Provider, {
value: orientation,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SlotRoot, (0, _extends2.default)({}, rootProps, {
children: children
}))
});
});

@@ -138,2 +144,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes */ = {

/**
* The content direction flow.
* @default 'horizontal'
*/
orientation: _propTypes.default.oneOf(['horizontal', 'vertical']),
/**
* If `true`, the component is selected.

@@ -140,0 +151,0 @@ * @default false

@@ -16,3 +16,3 @@ "use strict";

var _FocusTrap = _interopRequireDefault(require("@mui/base/FocusTrap"));
var _ModalUnstyled = require("@mui/base/ModalUnstyled");
var _Modal = require("@mui/base/Modal");
var _styles = require("../styles");

@@ -49,3 +49,3 @@ var _useSlot = _interopRequireDefault(require("../utils/useSlot"));

// Modals don't open on the server so this won't conflict with concurrent requests.
const manager = new _ModalUnstyled.ModalManager();
const manager = new _Modal.ModalManager();
const ModalRoot = (0, _styles.styled)('div', {

@@ -97,3 +97,3 @@ name: 'JoyModal',

*/
const Modal = /*#__PURE__*/React.forwardRef(function ModalUnstyled(inProps, ref) {
const Modal = /*#__PURE__*/React.forwardRef(function ModalU(inProps, ref) {
const props = (0, _styles.useThemeProps)({

@@ -100,0 +100,0 @@ props: inProps,

@@ -14,3 +14,3 @@ "use strict";

var _utils = require("@mui/utils");
var _PopperUnstyled = _interopRequireDefault(require("@mui/base/PopperUnstyled"));
var _Popper = _interopRequireDefault(require("@mui/base/Popper"));
var _useSelect = _interopRequireWildcard(require("@mui/base/useSelect"));

@@ -517,7 +517,7 @@ var _composeClasses = _interopRequireDefault(require("@mui/base/composeClasses"));

className: (0, _clsx.default)(listboxProps.className, ((_listboxProps$ownerSt = listboxProps.ownerState) == null ? void 0 : _listboxProps$ownerSt.color) === 'context' && _selectClasses.default.colorContext)
// @ts-ignore internal logic (too complex to typed PopperUnstyledOwnProps to SlotListbox but this should be removed when we have `usePopper`)
// @ts-ignore internal logic (too complex to typed PopperOwnProps to SlotListbox but this should be removed when we have `usePopper`)
,
modifiers: modifiers
}, !((_props$slots = props.slots) != null && _props$slots.listbox) && {
as: _PopperUnstyled.default,
as: _Popper.default,
slots: {

@@ -524,0 +524,0 @@ root: listboxProps.as || 'ul'

@@ -10,3 +10,3 @@ "use strict";

var React = _interopRequireWildcard(require("react"));
var _system = require("@mui/system");
var _ThemeProvider = require("./ThemeProvider");
var _defaultTheme = _interopRequireDefault(require("./defaultTheme"));

@@ -43,3 +43,3 @@ var _jsxRuntime = require("react/jsx-runtime");

var _theme$colorInversion;
const theme = (0, _system.useTheme)(_defaultTheme.default);
const theme = (0, _ThemeProvider.useTheme)();
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ColorInversion.Provider, {

@@ -46,0 +46,0 @@ value: variant ?

@@ -244,3 +244,3 @@ "use strict";

surface: getCssVarColor('palette-common-black'),
popup: getCssVarColor('palette-neutral-800'),
popup: getCssVarColor('palette-neutral-900'),
level1: getCssVarColor('palette-neutral-800'),

@@ -247,0 +247,0 @@ level2: getCssVarColor('palette-neutral-700'),

@@ -210,4 +210,4 @@ "use strict";

[prefixVar('--palette-divider')]: `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.32)`,
'--variant-plainColor': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 1)`,
'--variant-plainHoverColor': getCssVar(`palette-${color}-600`),
'--variant-plainColor': `rgba(${getCssVar(`palette-${color}-darkChannel`)} / 0.8)`,
'--variant-plainHoverColor': `rgba(${getCssVar(`palette-${color}-darkChannel`)} / 1)`,
'--variant-plainHoverBg': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.12)`,

@@ -214,0 +214,0 @@ '--variant-plainActiveBg': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.24)`,

@@ -15,3 +15,3 @@ "use strict";

var _useTabPanel = _interopRequireDefault(require("@mui/base/useTabPanel"));
var _TabsUnstyled = require("@mui/base/TabsUnstyled");
var _Tabs = require("@mui/base/Tabs");
var _styles = require("../styles");

@@ -76,3 +76,3 @@ var _SizeTabsContext = _interopRequireDefault(require("../Tabs/SizeTabsContext"));

orientation
} = (0, _TabsUnstyled.useTabsContext)() || {
} = (0, _Tabs.useTabsContext)() || {
orientation: 'horizontal'

@@ -79,0 +79,0 @@ };

@@ -538,3 +538,3 @@ "use strict";

const result = /*#__PURE__*/(0, _jsxRuntime.jsxs)(SlotRoot, (0, _extends2.default)({}, rootProps, !((_props$slots = props.slots) != null && _props$slots.root) && {
as: _base.PopperUnstyled,
as: _base.Popper,
slots: {

@@ -541,0 +541,0 @@ root: component || 'div'

@@ -0,0 +0,0 @@ export { default } from './Option';

@@ -0,0 +0,0 @@ import { ExtendOption, OptionTypeMap } from './OptionProps';

@@ -0,0 +0,0 @@ export interface OptionClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

{
"name": "@mui/joy",
"version": "5.0.0-alpha.76",
"version": "5.0.0-alpha.77",
"private": false,

@@ -47,4 +47,4 @@ "author": "MUI Team",

"@babel/runtime": "^7.21.0",
"@mui/base": "5.0.0-alpha.126",
"@mui/core-downloads-tracker": "^5.12.1",
"@mui/base": "5.0.0-alpha.127",
"@mui/core-downloads-tracker": "^5.12.2",
"@mui/system": "^5.12.1",

@@ -51,0 +51,0 @@ "@mui/types": "^7.2.4",

@@ -0,0 +0,0 @@ export { default } from './Radio';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface RadioClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './RadioGroup';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface RadioGroupClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './ScopedCssBaseline';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface ScopedCssBaselineClasses {

@@ -0,0 +0,0 @@ /// <reference types="react" />

@@ -0,0 +0,0 @@ export { default } from './Select';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -9,3 +9,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils';
import PopperUnstyled from '@mui/base/PopperUnstyled';
import Popper from '@mui/base/Popper';
import useSelect, { SelectActionTypes, SelectProvider } from '@mui/base/useSelect';

@@ -509,7 +509,7 @@ import composeClasses from '@mui/base/composeClasses';

className: clsx(listboxProps.className, ((_listboxProps$ownerSt = listboxProps.ownerState) == null ? void 0 : _listboxProps$ownerSt.color) === 'context' && selectClasses.colorContext)
// @ts-ignore internal logic (too complex to typed PopperUnstyledOwnProps to SlotListbox but this should be removed when we have `usePopper`)
// @ts-ignore internal logic (too complex to typed PopperOwnProps to SlotListbox but this should be removed when we have `usePopper`)
,
modifiers: modifiers
}, !((_props$slots = props.slots) != null && _props$slots.listbox) && {
as: PopperUnstyled,
as: Popper,
slots: {

@@ -516,0 +516,0 @@ root: listboxProps.as || 'ul'

@@ -0,0 +0,0 @@ export interface SelectClasses {

import * as React from 'react';
import { OverridableStringUnion, OverrideProps } from '@mui/types';
import { PopperUnstyledOwnProps } from '@mui/base/PopperUnstyled';
import { PopperOwnProps } from '@mui/base/Popper';
import { SelectOption } from '@mui/base/useOption';

@@ -57,3 +57,3 @@ import { ColorPaletteProp, SxProps, VariantProp, ApplyColorInversion } from '../styles/types';

size?: OverridableStringUnion<'sm' | 'md' | 'lg', SelectPropsSizeOverrides>;
} & Omit<PopperUnstyledOwnProps, 'slots' | 'slotProps' | 'open'>, SelectOwnerState<any>>;
} & Omit<PopperOwnProps, 'slots' | 'slotProps' | 'open'>, SelectOwnerState<any>>;
}>;

@@ -60,0 +60,0 @@ export interface SelectStaticProps {

@@ -0,0 +0,0 @@ export { default } from './Sheet';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface SheetClasses {

@@ -0,0 +0,0 @@ import { OverridableStringUnion, OverrideProps } from '@mui/types';

@@ -0,0 +0,0 @@ export { default } from './Slider';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface SliderClasses {

import * as React from 'react';
import { SliderUnstyledClasses, SliderUnstyledOwnProps } from '@mui/base/SliderUnstyled';
import { SliderClasses, SliderOwnProps } from '@mui/base/Slider';
import { OverridableStringUnion, OverrideProps } from '@mui/types';

@@ -68,7 +68,7 @@ import { ColorPaletteProp, SxProps, VariantProp, ApplyColorInversion } from '../styles/types';

export type SliderTypeMap<D extends React.ElementType = 'span', P = {}> = {
props: P & Omit<SliderUnstyledOwnProps, 'slots' | 'slotProps'> & {
props: P & Omit<SliderOwnProps, 'slots' | 'slotProps'> & {
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<SliderUnstyledClasses>;
classes?: Partial<SliderClasses>;
/**

@@ -75,0 +75,0 @@ * The color of the component. It supports those theme colors that make sense for this component.

@@ -0,0 +0,0 @@ export { default } from './Stack';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ import { StackClasses } from '@mui/system';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import * as React from 'react';

import * as React from 'react';
import { useTheme as useSystemTheme } from '@mui/system';
import { useTheme } from './ThemeProvider';
import defaultTheme from './defaultTheme';

@@ -31,3 +31,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

var _theme$colorInversion;
const theme = useSystemTheme(defaultTheme);
const theme = useTheme();
return /*#__PURE__*/_jsx(ColorInversion.Provider, {

@@ -34,0 +34,0 @@ value: variant ?

@@ -0,0 +0,0 @@ /// <reference types="react" />

declare const defaultTheme: import("./types").Theme;
export default defaultTheme;

@@ -0,0 +0,0 @@ import { BreakpointsOptions, SpacingOptions, SxConfig } from '@mui/system';

@@ -235,3 +235,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

surface: getCssVarColor('palette-common-black'),
popup: getCssVarColor('palette-neutral-800'),
popup: getCssVarColor('palette-neutral-900'),
level1: getCssVarColor('palette-neutral-800'),

@@ -238,0 +238,0 @@ level2: getCssVarColor('palette-neutral-700'),

declare const _default: "$$joy";
export default _default;

@@ -0,0 +0,0 @@ export type { BreakpointOverrides } from '@mui/system';

export default function shouldSkipGeneratingVar(keys: string[]): boolean;
import { Theme } from './types';
declare const styled: import("@mui/system").CreateMUIStyled<Theme>;
export default styled;
export { StyledEngineProvider as default } from '@mui/system';

@@ -0,0 +0,0 @@ import { Theme, SxProps } from './types';

import { SxConfig } from '@mui/system';
declare const sxConfig: SxConfig;
export default sxConfig;

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import { OverridableStringUnion } from '@mui/types';

@@ -0,0 +0,0 @@ import { OverridableStringUnion, Simplify } from '@mui/types';

@@ -0,0 +0,0 @@ import { CSSObject } from '@mui/system';

@@ -0,0 +0,0 @@ export * from './colorScheme';

@@ -0,0 +0,0 @@ import { OverridableRecord } from './utils';

@@ -0,0 +0,0 @@ import { OverridableRecord } from './utils';

@@ -0,0 +0,0 @@ import { OverridableStringUnion } from '@mui/types';

@@ -0,0 +0,0 @@ import { CSSObject } from '@mui/system';

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { OverridableStringUnion } from '@mui/types';

@@ -0,0 +0,0 @@ import { OverridableRecord } from './utils';

@@ -0,0 +0,0 @@ export default function useThemeProps<T extends {}>({ props, name, }: {

@@ -0,0 +0,0 @@ import { CSSObject } from '@mui/system';

@@ -200,4 +200,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

[prefixVar('--palette-divider')]: `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.32)`,
'--variant-plainColor': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 1)`,
'--variant-plainHoverColor': getCssVar(`palette-${color}-600`),
'--variant-plainColor': `rgba(${getCssVar(`palette-${color}-darkChannel`)} / 0.8)`,
'--variant-plainHoverColor': `rgba(${getCssVar(`palette-${color}-darkChannel`)} / 1)`,
'--variant-plainHoverBg': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.12)`,

@@ -204,0 +204,0 @@ '--variant-plainActiveBg': `rgba(${getCssVar(`palette-${color}-mainChannel`)} / 0.24)`,

@@ -0,0 +0,0 @@ export { default } from './SvgIcon';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface SvgIconClasses {

@@ -0,0 +0,0 @@ import { OverridableStringUnion, OverrideProps } from '@mui/types';

@@ -0,0 +0,0 @@ export { default } from './Switch';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface SwitchClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Tab';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface TabClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './Table';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface TableClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './TabList';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface TabListClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export { default } from './TabPanel';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -9,3 +9,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import useTabPanel from '@mui/base/useTabPanel';
import { useTabsContext } from '@mui/base/TabsUnstyled';
import { useTabsContext } from '@mui/base/Tabs';
import { styled, useThemeProps } from '../styles';

@@ -12,0 +12,0 @@ import SizeTabsContext from '../Tabs/SizeTabsContext';

@@ -0,0 +0,0 @@ export interface TabPanelClasses {

import * as React from 'react';
import { OverridableStringUnion, OverrideProps } from '@mui/types';
import { TabPanelUnstyledOwnProps } from '@mui/base/TabPanelUnstyled';
import { TabPanelOwnProps } from '@mui/base/TabPanel';
import { SxProps } from '../styles/types';

@@ -20,3 +20,3 @@ import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types';

export interface TabPanelTypeMap<P = {}, D extends React.ElementType = 'div'> {
props: P & Omit<TabPanelUnstyledOwnProps, 'value' | 'slots' | 'slotProps'> & {
props: P & Omit<TabPanelOwnProps, 'value' | 'slots' | 'slotProps'> & {
/**

@@ -23,0 +23,0 @@ * The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.

@@ -0,0 +0,0 @@ export { default } from './Tabs';

import * as React from 'react';
declare const SizeTabsContext: React.Context<"sm" | "md" | "lg">;
export default SizeTabsContext;

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface TabsClasses {

import * as React from 'react';
import { OverridableStringUnion, OverrideProps } from '@mui/types';
import { TabsUnstyledOwnProps } from '@mui/base/TabsUnstyled';
import { TabsOwnProps } from '@mui/base/Tabs';
import { ColorPaletteProp, SxProps, VariantProp, ApplyColorInversion } from '../styles/types';

@@ -24,3 +24,3 @@ import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types';

export interface TabsTypeMap<P = {}, D extends React.ElementType = 'div'> {
props: P & Omit<TabsUnstyledOwnProps, 'slots' | 'slotProps'> & {
props: P & Omit<TabsOwnProps, 'slots' | 'slotProps'> & {
/**

@@ -27,0 +27,0 @@ * The color of the component. It supports those theme colors that make sense for this component.

@@ -0,0 +0,0 @@ export { default } from './Textarea';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -0,0 +0,0 @@ export interface TextareaClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

export { default } from './TextField';

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export { default } from './Tooltip';

@@ -0,0 +0,0 @@ import { OverridableComponent } from '@mui/types';

@@ -8,3 +8,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import { unstable_capitalize as capitalize, unstable_useControlled as useControlled, unstable_useEventCallback as useEventCallback, unstable_useForkRef as useForkRef, unstable_useIsFocusVisible as useIsFocusVisible, unstable_useId as useId } from '@mui/utils';
import { PopperUnstyled, unstable_composeClasses as composeClasses } from '@mui/base';
import { Popper, unstable_composeClasses as composeClasses } from '@mui/base';
import styled from '../styles/styled';

@@ -530,3 +530,3 @@ import useThemeProps from '../styles/useThemeProps';

const result = /*#__PURE__*/_jsxs(SlotRoot, _extends({}, rootProps, !((_props$slots = props.slots) != null && _props$slots.root) && {
as: PopperUnstyled,
as: Popper,
slots: {

@@ -533,0 +533,0 @@ root: component || 'div'

@@ -0,0 +0,0 @@ export interface TooltipClasses {

import * as React from 'react';
import { PopperUnstyledProps } from '@mui/base';
import { PopperProps } from '@mui/base';
import { OverridableStringUnion, OverrideProps } from '@mui/types';

@@ -29,7 +29,7 @@ import { ColorPaletteProp, SxProps, VariantProp, ApplyColorInversion } from '../styles/types';

sx?: SxProps;
} & Omit<PopperUnstyledProps, 'direction'>, TooltipOwnerState>;
} & Omit<PopperProps, 'direction'>, TooltipOwnerState>;
arrow: SlotProps<'span', {}, TooltipOwnerState>;
}>;
export interface TooltipTypeMap<P = {}, D extends React.ElementType = 'div'> {
props: P & TooltipSlotsAndSlotProps & Pick<PopperUnstyledProps, 'disablePortal' | 'direction' | 'keepMounted' | 'modifiers'> & {
props: P & TooltipSlotsAndSlotProps & Pick<PopperProps, 'disablePortal' | 'direction' | 'keepMounted' | 'modifiers'> & {
/**

@@ -36,0 +36,0 @@ * If `true`, adds an arrow to the tooltip.

@@ -0,0 +0,0 @@ export { default } from './Typography';

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ export interface TypographyClasses {

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ import * as React from 'react';

export { default as createSvgIcon } from './createSvgIcon';
declare const shouldSpreadAdditionalProps: (Slot: any) => boolean;
export default shouldSpreadAdditionalProps;

@@ -0,0 +0,0 @@ /// <reference types="react" />

@@ -78,3 +78,3 @@ import * as React from 'react';

* props forward to `T` only if the `slotProps.*.component` is not provided.
* e.g. Autocomplete's listbox uses PopperUnstyled + StyledComponent
* e.g. Autocomplete's listbox uses Popper + StyledComponent
*/

@@ -81,0 +81,0 @@ internalForwardedProps?: any;

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc