@soyfri/shared-library 1.1.12 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/DatePicker/DatePicker.cjs +1 -1
- package/cjs/components/DateTimePicker/DateTimePicker.cjs +1 -1
- package/cjs/components/Flyout/Flyout.cjs +2 -0
- package/cjs/components/Flyout/Flyout.cjs.map +1 -0
- package/cjs/components/Flyout.cjs +2 -0
- package/cjs/components/Flyout.cjs.map +1 -0
- package/cjs/components/Input/Input.cjs +1 -1
- package/cjs/components/InputGroup/InputGroup.cjs +2 -0
- package/cjs/components/InputGroup/InputGroup.cjs.map +1 -0
- package/cjs/components/InputGroup.cjs +2 -0
- package/cjs/components/InputGroup.cjs.map +1 -0
- package/cjs/components/Select/Select.cjs +1 -1
- package/cjs/components/Table/Table.cjs +1 -1
- package/cjs/components/timeline/Timeline.cjs +2 -0
- package/cjs/components/timeline/Timeline.cjs.map +1 -0
- package/cjs/components/timeline/TimelineItem.cjs +2 -0
- package/cjs/components/timeline/TimelineItem.cjs.map +1 -0
- package/cjs/components/timeline.cjs +2 -0
- package/cjs/components/timeline.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/Check.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/Check.cjs.map +1 -0
- package/cjs/node_modules/@mui/icons-material/esm/Close.cjs +2 -0
- package/cjs/node_modules/@mui/icons-material/esm/Close.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs.map +1 -0
- package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs +2 -0
- package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs.map +1 -0
- package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/Button/Button.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Button/Button.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/Input/Input.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Input/Input.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/Paper/Paper.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs.map +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs +1 -1
- package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs.map +1 -1
- package/cjs/node_modules/@mui/styled-engine/esm/index.cjs +1 -1
- package/cjs/node_modules/@mui/styled-engine/esm/index.cjs.map +1 -1
- package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs +1 -1
- package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs.map +1 -1
- package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs +1 -1
- package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs.map +1 -1
- package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs +1 -1
- package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs.map +1 -1
- package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs +1 -1
- package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs.map +1 -1
- package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs +1 -1
- package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs.map +1 -1
- package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs +1 -1
- package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs.map +1 -1
- package/cjs/node_modules/@mui/system/esm/styled/styled.cjs +2 -0
- package/cjs/node_modules/@mui/system/esm/styled/styled.cjs.map +1 -0
- package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs +1 -1
- package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs.map +1 -1
- package/components/Flyout/index.ts +1 -0
- package/components/InputGroup/index.ts +1 -0
- package/components/timeline/index.ts +1 -0
- package/esm/components/DatePicker/DatePicker.js +1 -1
- package/esm/components/DateTimePicker/DateTimePicker.d.ts +1 -0
- package/esm/components/DateTimePicker/DateTimePicker.js +1 -1
- package/esm/components/Flyout/Flyout.d.ts +13 -0
- package/esm/components/Flyout/Flyout.js +2 -0
- package/esm/components/Flyout/Flyout.js.map +1 -0
- package/esm/components/Flyout/Flyout.stories.d.ts +12 -0
- package/esm/components/Flyout/index.d.ts +1 -0
- package/esm/components/Flyout.js +2 -0
- package/esm/components/Flyout.js.map +1 -0
- package/esm/components/Input/Input.d.ts +0 -7
- package/esm/components/Input/Input.js +1 -1
- package/esm/components/Input/Input.stories.d.ts +1 -0
- package/esm/components/InputGroup/InputGroup.d.ts +6 -0
- package/esm/components/InputGroup/InputGroup.js +2 -0
- package/esm/components/InputGroup/InputGroup.js.map +1 -0
- package/esm/components/InputGroup/InputGroup.stories.d.ts +8 -0
- package/esm/components/InputGroup/index.d.ts +1 -0
- package/esm/components/InputGroup.js +2 -0
- package/esm/components/InputGroup.js.map +1 -0
- package/esm/components/Select/Select.js +1 -1
- package/esm/components/Table/Table.js +1 -1
- package/esm/components/timeline/Timeline.d.ts +11 -0
- package/esm/components/timeline/Timeline.definition.d.ts +1 -0
- package/esm/components/timeline/Timeline.js +2 -0
- package/esm/components/timeline/Timeline.js.map +1 -0
- package/esm/components/timeline/Timeline.stories.d.ts +6 -0
- package/esm/components/timeline/TimelineItem.d.ts +7 -0
- package/esm/components/timeline/TimelineItem.js +2 -0
- package/esm/components/timeline/TimelineItem.js.map +1 -0
- package/esm/components/timeline/index.d.ts +2 -0
- package/esm/components/timeline.js +2 -0
- package/esm/components/timeline.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/Check.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/Check.js.map +1 -0
- package/esm/node_modules/@mui/icons-material/esm/Close.js +2 -0
- package/esm/node_modules/@mui/icons-material/esm/Close.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js +2 -0
- package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js +2 -0
- package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js +2 -0
- package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js +2 -0
- package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js.map +1 -0
- package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js +2 -0
- package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js.map +1 -0
- package/esm/node_modules/@mui/material/esm/Alert/Alert.js +1 -1
- package/esm/node_modules/@mui/material/esm/Alert/Alert.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
- package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/Button/Button.js +1 -1
- package/esm/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/Chip/Chip.js +1 -1
- package/esm/node_modules/@mui/material/esm/Chip/Chip.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/Divider/Divider.js +1 -1
- package/esm/node_modules/@mui/material/esm/Divider/Divider.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js +1 -1
- package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
- package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/Input/Input.js +1 -1
- package/esm/node_modules/@mui/material/esm/Input/Input.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js +1 -1
- package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +1 -1
- package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +1 -1
- package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +1 -1
- package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
- package/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
- package/esm/node_modules/@mui/material/esm/Select/SelectInput.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createPalette.js +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createPalette.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js +1 -1
- package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js.map +1 -1
- package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js +1 -1
- package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js.map +1 -1
- package/esm/node_modules/@mui/styled-engine/esm/index.js +1 -1
- package/esm/node_modules/@mui/styled-engine/esm/index.js.map +1 -1
- package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
- package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +1 -1
- package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
- package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js +1 -1
- package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
- package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +1 -1
- package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
- package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -1
- package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
- package/esm/node_modules/@mui/system/esm/styled/styled.js +2 -0
- package/esm/node_modules/@mui/system/esm/styled/styled.js.map +1 -0
- package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
- package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -1
- package/package.json +17 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Alert/Alert.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { darken, lighten } from '@mui/system/colorManipulator';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport Paper from \"../Paper/index.js\";\nimport alertClasses, { getAlertUtilityClass } from \"./alertClasses.js\";\nimport IconButton from \"../IconButton/index.js\";\nimport SuccessOutlinedIcon from \"../internal/svg-icons/SuccessOutlined.js\";\nimport ReportProblemOutlinedIcon from \"../internal/svg-icons/ReportProblemOutlined.js\";\nimport ErrorOutlineIcon from \"../internal/svg-icons/ErrorOutline.js\";\nimport InfoOutlinedIcon from \"../internal/svg-icons/InfoOutlined.js\";\nimport CloseIcon from \"../internal/svg-icons/Close.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n variant,\n color,\n severity,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color || severity)}`, `${variant}${capitalize(color || severity)}`, `${variant}`],\n icon: ['icon'],\n message: ['message'],\n action: ['action']\n };\n return composeClasses(slots, getAlertUtilityClass, classes);\n};\nconst AlertRoot = styled(Paper, {\n name: 'MuiAlert',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color || ownerState.severity)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n const getColor = theme.palette.mode === 'light' ? darken : lighten;\n const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;\n return {\n ...theme.typography.body2,\n backgroundColor: 'transparent',\n display: 'flex',\n padding: '6px 16px',\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'standard'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'outlined'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n border: `1px solid ${(theme.vars || theme).palette[color].light}`,\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'filled'\n },\n style: {\n fontWeight: theme.typography.fontWeightMedium,\n ...(theme.vars ? {\n color: theme.vars.palette.Alert[`${color}FilledColor`],\n backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]\n } : {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,\n color: theme.palette.getContrastText(theme.palette[color].main)\n })\n }\n }))]\n };\n}));\nconst AlertIcon = styled('div', {\n name: 'MuiAlert',\n slot: 'Icon'\n})({\n marginRight: 12,\n padding: '7px 0',\n display: 'flex',\n fontSize: 22,\n opacity: 0.9\n});\nconst AlertMessage = styled('div', {\n name: 'MuiAlert',\n slot: 'Message'\n})({\n padding: '8px 0',\n minWidth: 0,\n overflow: 'auto'\n});\nconst AlertAction = styled('div', {\n name: 'MuiAlert',\n slot: 'Action'\n})({\n display: 'flex',\n alignItems: 'flex-start',\n padding: '4px 0 0 16px',\n marginLeft: 'auto',\n marginRight: -8\n});\nconst defaultIconMapping = {\n success: /*#__PURE__*/_jsx(SuccessOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n warning: /*#__PURE__*/_jsx(ReportProblemOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n error: /*#__PURE__*/_jsx(ErrorOutlineIcon, {\n fontSize: \"inherit\"\n }),\n info: /*#__PURE__*/_jsx(InfoOutlinedIcon, {\n fontSize: \"inherit\"\n })\n};\nconst Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAlert'\n });\n const {\n action,\n children,\n className,\n closeText = 'Close',\n color,\n components = {},\n componentsProps = {},\n icon,\n iconMapping = defaultIconMapping,\n onClose,\n role = 'alert',\n severity = 'success',\n slotProps = {},\n slots = {},\n variant = 'standard',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n severity,\n variant,\n colorSeverity: color || severity\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots: {\n closeButton: components.CloseButton,\n closeIcon: components.CloseIcon,\n ...slots\n },\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n shouldForwardComponentProp: true,\n className: clsx(classes.root, className),\n elementType: AlertRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n additionalProps: {\n role,\n elevation: 0\n }\n });\n const [IconSlot, iconSlotProps] = useSlot('icon', {\n className: classes.icon,\n elementType: AlertIcon,\n externalForwardedProps,\n ownerState\n });\n const [MessageSlot, messageSlotProps] = useSlot('message', {\n className: classes.message,\n elementType: AlertMessage,\n externalForwardedProps,\n ownerState\n });\n const [ActionSlot, actionSlotProps] = useSlot('action', {\n className: classes.action,\n elementType: AlertAction,\n externalForwardedProps,\n ownerState\n });\n const [CloseButtonSlot, closeButtonProps] = useSlot('closeButton', {\n elementType: IconButton,\n externalForwardedProps,\n ownerState\n });\n const [CloseIconSlot, closeIconProps] = useSlot('closeIcon', {\n elementType: CloseIcon,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [icon !== false ? /*#__PURE__*/_jsx(IconSlot, {\n ...iconSlotProps,\n children: icon || iconMapping[severity] || defaultIconMapping[severity]\n }) : null, /*#__PURE__*/_jsx(MessageSlot, {\n ...messageSlotProps,\n children: children\n }), action != null ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: action\n }) : null, action == null && onClose ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: /*#__PURE__*/_jsx(CloseButtonSlot, {\n size: \"small\",\n \"aria-label\": closeText,\n title: closeText,\n color: \"inherit\",\n onClick: onClose,\n ...closeButtonProps,\n children: /*#__PURE__*/_jsx(CloseIconSlot, {\n fontSize: \"small\",\n ...closeIconProps\n })\n })\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Alert.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display. It renders after the message, at the end of the alert.\n */\n action: PropTypes.node,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Override the default label for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Close'\n */\n closeText: PropTypes.string,\n /**\n * The color of the component. Unless provided, the value is taken from the `severity` prop.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n CloseButton: PropTypes.elementType,\n CloseIcon: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n closeButton: PropTypes.object,\n closeIcon: PropTypes.object\n }),\n /**\n * Override the icon displayed before the children.\n * Unless provided, the icon is mapped to the value of the `severity` prop.\n * Set to `false` to remove the `icon`.\n */\n icon: PropTypes.node,\n /**\n * The component maps the `severity` prop to a range of different icons,\n * for instance success to `<SuccessOutlined>`.\n * If you wish to change this mapping, you can provide your own.\n * Alternatively, you can use the `icon` prop to override the icon displayed.\n */\n iconMapping: PropTypes.shape({\n error: PropTypes.node,\n info: PropTypes.node,\n success: PropTypes.node,\n warning: PropTypes.node\n }),\n /**\n * Callback fired when the component requests to be closed.\n * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * The ARIA role attribute of the element.\n * @default 'alert'\n */\n role: PropTypes.string,\n /**\n * The severity of the alert. This defines the color and icon used.\n * @default 'success'\n */\n severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeButton: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n message: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n action: PropTypes.elementType,\n closeButton: PropTypes.elementType,\n closeIcon: PropTypes.elementType,\n icon: PropTypes.elementType,\n message: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'standard'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])\n} : void 0;\nexport default Alert;"],"names":["AlertRoot","styled","default","Paper","name","slot","overridesResolver","props","styles","ownerState","root","variant","capitalize","color","severity","memoTheme","theme","getColor","palette","mode","darken","lighten","getBackgroundColor","typography","body2","backgroundColor","display","padding","variants","Object","entries","filter","createSimplePaletteValueFilter","map","colorSeverity","style","vars","Alert","light","alertClasses","icon","main","border","fontWeight","fontWeightMedium","dark","getContrastText","AlertIcon","marginRight","fontSize","opacity","AlertMessage","minWidth","overflow","AlertAction","alignItems","marginLeft","defaultIconMapping","success","_jsx","jsxRuntimeExports","jsx","SuccessOutlinedIcon","warning","ReportProblemOutlinedIcon","error","ErrorOutlineIcon","info","InfoOutlinedIcon","React","forwardRef","inProps","ref","useDefaultProps","action","children","className","closeText","components","componentsProps","iconMapping","onClose","role","slotProps","slots","other","classes","message","composeClasses","getAlertUtilityClass","useUtilityClasses","externalForwardedProps","closeButton","CloseButton","closeIcon","CloseIcon","RootSlot","rootSlotProps","useSlot","shouldForwardComponentProp","clsx","elementType","additionalProps","elevation","IconSlot","iconSlotProps","MessageSlot","messageSlotProps","ActionSlot","actionSlotProps","CloseButtonSlot","closeButtonProps","IconButton","CloseIconSlot","closeIconProps","_jsxs","size","title","onClick","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOfType","oneOf","shape","func","sx","arrayOf","bool"],"mappings":"utCAsBA,MAeMA,EAAYC,EAAMC,QAACC,EAAO,CAC9BC,KAAM,WACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMF,EAAOC,EAAWE,SAAUH,EAAO,GAAGC,EAAWE,UAAUC,EAAWH,EAAWI,OAASJ,EAAWK,gBAP5Gb,CASfc,GAAU,EACXC,YAEA,MAAMC,EAAkC,UAAvBD,EAAME,QAAQC,KAAmBC,EAAAA,OAASC,EAAOA,QAC5DC,EAA4C,UAAvBN,EAAME,QAAQC,KAAmBE,EAAAA,QAAUD,EAAMA,OAC5E,MAAO,IACFJ,EAAMO,WAAWC,MACpBC,gBAAiB,cACjBC,QAAS,OACTC,QAAS,WACTC,SAAU,IAAIC,OAAOC,QAAQd,EAAME,SAASa,OAAOC,EAA+B,CAAC,WAAWC,KAAI,EAAEpB,MAAY,CAC9GN,MAAO,CACL2B,cAAerB,EACfF,QAAS,YAEXwB,MAAO,CACLtB,MAAOG,EAAMoB,KAAOpB,EAAMoB,KAAKlB,QAAQmB,MAAM,GAAGxB,UAAgBI,EAASD,EAAME,QAAQL,GAAOyB,MAAO,IACrGb,gBAAiBT,EAAMoB,KAAOpB,EAAMoB,KAAKlB,QAAQmB,MAAM,GAAGxB,eAAqBS,EAAmBN,EAAME,QAAQL,GAAOyB,MAAO,IAC9H,CAAC,MAAMC,EAAYrC,QAACsC,QAASxB,EAAMoB,KAAO,CACxCvB,MAAOG,EAAMoB,KAAKlB,QAAQmB,MAAM,GAAGxB,eACjC,CACFA,MAAOG,EAAME,QAAQL,GAAO4B,cAG1BZ,OAAOC,QAAQd,EAAME,SAASa,OAAOC,EA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,QAASoC,EAAUtB,YACnB3F,KAAMiH,EAAUtB,cAKlB8B,GAAIR,EAAUI,UAAU,CAACJ,EAAUS,QAAQT,EAAUI,UAAU,CAACJ,EAAUO,KAAMP,EAAUE,OAAQF,EAAUU,QAASV,EAAUO,KAAMP,EAAUE,SAK/IlH,QAASgH,EAAgDI,UAAU,CAACJ,EAAUK,MAAM,CAAC,SAAU,WAAY,aAAcL,EAAUG","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"Alert.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Alert/Alert.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport Paper from \"../Paper/index.js\";\nimport alertClasses, { getAlertUtilityClass } from \"./alertClasses.js\";\nimport IconButton from \"../IconButton/index.js\";\nimport SuccessOutlinedIcon from \"../internal/svg-icons/SuccessOutlined.js\";\nimport ReportProblemOutlinedIcon from \"../internal/svg-icons/ReportProblemOutlined.js\";\nimport ErrorOutlineIcon from \"../internal/svg-icons/ErrorOutline.js\";\nimport InfoOutlinedIcon from \"../internal/svg-icons/InfoOutlined.js\";\nimport CloseIcon from \"../internal/svg-icons/Close.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n variant,\n color,\n severity,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color || severity)}`, `${variant}${capitalize(color || severity)}`, `${variant}`],\n icon: ['icon'],\n message: ['message'],\n action: ['action']\n };\n return composeClasses(slots, getAlertUtilityClass, classes);\n};\nconst AlertRoot = styled(Paper, {\n name: 'MuiAlert',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color || ownerState.severity)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n const getColor = theme.palette.mode === 'light' ? theme.darken : theme.lighten;\n const getBackgroundColor = theme.palette.mode === 'light' ? theme.lighten : theme.darken;\n return {\n ...theme.typography.body2,\n backgroundColor: 'transparent',\n display: 'flex',\n padding: '6px 16px',\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'standard'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'outlined'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n border: `1px solid ${(theme.vars || theme).palette[color].light}`,\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'filled'\n },\n style: {\n fontWeight: theme.typography.fontWeightMedium,\n ...(theme.vars ? {\n color: theme.vars.palette.Alert[`${color}FilledColor`],\n backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]\n } : {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,\n color: theme.palette.getContrastText(theme.palette[color].main)\n })\n }\n }))]\n };\n}));\nconst AlertIcon = styled('div', {\n name: 'MuiAlert',\n slot: 'Icon'\n})({\n marginRight: 12,\n padding: '7px 0',\n display: 'flex',\n fontSize: 22,\n opacity: 0.9\n});\nconst AlertMessage = styled('div', {\n name: 'MuiAlert',\n slot: 'Message'\n})({\n padding: '8px 0',\n minWidth: 0,\n overflow: 'auto'\n});\nconst AlertAction = styled('div', {\n name: 'MuiAlert',\n slot: 'Action'\n})({\n display: 'flex',\n alignItems: 'flex-start',\n padding: '4px 0 0 16px',\n marginLeft: 'auto',\n marginRight: -8\n});\nconst defaultIconMapping = {\n success: /*#__PURE__*/_jsx(SuccessOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n warning: /*#__PURE__*/_jsx(ReportProblemOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n error: /*#__PURE__*/_jsx(ErrorOutlineIcon, {\n fontSize: \"inherit\"\n }),\n info: /*#__PURE__*/_jsx(InfoOutlinedIcon, {\n fontSize: \"inherit\"\n })\n};\nconst Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAlert'\n });\n const {\n action,\n children,\n className,\n closeText = 'Close',\n color,\n components = {},\n componentsProps = {},\n icon,\n iconMapping = defaultIconMapping,\n onClose,\n role = 'alert',\n severity = 'success',\n slotProps = {},\n slots = {},\n variant = 'standard',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n severity,\n variant,\n colorSeverity: color || severity\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots: {\n closeButton: components.CloseButton,\n closeIcon: components.CloseIcon,\n ...slots\n },\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n shouldForwardComponentProp: true,\n className: clsx(classes.root, className),\n elementType: AlertRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n additionalProps: {\n role,\n elevation: 0\n }\n });\n const [IconSlot, iconSlotProps] = useSlot('icon', {\n className: classes.icon,\n elementType: AlertIcon,\n externalForwardedProps,\n ownerState\n });\n const [MessageSlot, messageSlotProps] = useSlot('message', {\n className: classes.message,\n elementType: AlertMessage,\n externalForwardedProps,\n ownerState\n });\n const [ActionSlot, actionSlotProps] = useSlot('action', {\n className: classes.action,\n elementType: AlertAction,\n externalForwardedProps,\n ownerState\n });\n const [CloseButtonSlot, closeButtonProps] = useSlot('closeButton', {\n elementType: IconButton,\n externalForwardedProps,\n ownerState\n });\n const [CloseIconSlot, closeIconProps] = useSlot('closeIcon', {\n elementType: CloseIcon,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [icon !== false ? /*#__PURE__*/_jsx(IconSlot, {\n ...iconSlotProps,\n children: icon || iconMapping[severity] || defaultIconMapping[severity]\n }) : null, /*#__PURE__*/_jsx(MessageSlot, {\n ...messageSlotProps,\n children: children\n }), action != null ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: action\n }) : null, action == null && onClose ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: /*#__PURE__*/_jsx(CloseButtonSlot, {\n size: \"small\",\n \"aria-label\": closeText,\n title: closeText,\n color: \"inherit\",\n onClick: onClose,\n ...closeButtonProps,\n children: /*#__PURE__*/_jsx(CloseIconSlot, {\n fontSize: \"small\",\n ...closeIconProps\n })\n })\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Alert.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display. It renders after the message, at the end of the alert.\n */\n action: PropTypes.node,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Override the default label for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Close'\n */\n closeText: PropTypes.string,\n /**\n * The color of the component. Unless provided, the value is taken from the `severity` prop.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n CloseButton: PropTypes.elementType,\n CloseIcon: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n closeButton: PropTypes.object,\n closeIcon: PropTypes.object\n }),\n /**\n * Override the icon displayed before the children.\n * Unless provided, the icon is mapped to the value of the `severity` prop.\n * Set to `false` to remove the `icon`.\n */\n icon: PropTypes.node,\n /**\n * The component maps the `severity` prop to a range of different icons,\n * for instance success to `<SuccessOutlined>`.\n * If you wish to change this mapping, you can provide your own.\n * Alternatively, you can use the `icon` prop to override the icon displayed.\n */\n iconMapping: PropTypes.shape({\n error: PropTypes.node,\n info: PropTypes.node,\n success: PropTypes.node,\n warning: PropTypes.node\n }),\n /**\n * Callback fired when the component requests to be closed.\n * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * The ARIA role attribute of the element.\n * @default 'alert'\n */\n role: PropTypes.string,\n /**\n * The severity of the alert. This defines the color and icon used.\n * @default 'success'\n */\n severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeButton: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n message: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n action: PropTypes.elementType,\n closeButton: PropTypes.elementType,\n closeIcon: PropTypes.elementType,\n icon: PropTypes.elementType,\n message: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'standard'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])\n} : void 0;\nexport default Alert;"],"names":["AlertRoot","styled","default","Paper","name","slot","overridesResolver","props","styles","ownerState","root","variant","capitalize","color","severity","memoTheme","theme","getColor","palette","mode","darken","lighten","getBackgroundColor","typography","body2","backgroundColor","display","padding","variants","Object","entries","filter","createSimplePaletteValueFilter","map","colorSeverity","style","vars","Alert","light","alertClasses","icon","main","border","fontWeight","fontWeightMedium","dark","getContrastText","AlertIcon","marginRight","fontSize","opacity","AlertMessage","minWidth","overflow","AlertAction","alignItems","marginLeft","defaultIconMapping","success","_jsx","jsxRuntimeExports","jsx","SuccessOutlinedIcon","warning","ReportProblemOutlinedIcon","error","ErrorOutlineIcon","info","InfoOutlinedIcon","React","forwardRef","inProps","ref","useDefaultProps","action","children","className","closeText","components","componentsProps","iconMapping","onClose","role","slotProps","slots","other","classes","message","composeClasses","getAlertUtilityClass","useUtilityClasses","externalForwardedProps","closeButton","CloseButton","closeIcon","CloseIcon","RootSlot","rootSlotProps","useSlot","shouldForwardComponentProp","clsx","elementType","additionalProps","elevation","IconSlot","iconSlotProps","MessageSlot","messageSlotProps","ActionSlot","actionSlotProps","CloseButtonSlot","closeButtonProps","IconButton","CloseIconSlot","closeIconProps","_jsxs","size","title","onClick","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOfType","oneOf","shape","func","sx","arrayOf","bool"],"mappings":"gpCAqBA,MAeMA,EAAYC,EAAMC,QAACC,EAAO,CAC9BC,KAAM,WACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMF,EAAOC,EAAWE,SAAUH,EAAO,GAAGC,EAAWE,UAAUC,EAAWH,EAAWI,OAASJ,EAAWK,gBAP5Gb,CASfc,GAAU,EACXC,YAEA,MAAMC,EAAkC,UAAvBD,EAAME,QAAQC,KAAmBH,EAAMI,OAASJ,EAAMK,QACjEC,EAA4C,UAAvBN,EAAME,QAAQC,KAAmBH,EAAMK,QAAUL,EAAMI,OAClF,MAAO,IACFJ,EAAMO,WAAWC,MACpBC,gBAAiB,cACjBC,QAAS,OACTC,QAAS,WACTC,SAAU,IAAIC,OAAOC,QAAQd,EAAME,SAASa,OAAOC,EAA+B,CAAC,WAAWC,KAAI,EAAEpB,MAAY,CAC9GN,MAAO,CACL2B,cAAerB,EACfF,QAAS,YAEXwB,MAAO,CACLtB,MAAOG,EAAMoB,KAAOpB,EAAMoB,KAAKlB,QAAQmB,MAAM,GAAGxB,UAAgBI,EA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,UAAU,CAACJ,EAAUO,KAAMP,EAAUE,SAC1DrF,KAAMmF,EAAUI,UAAU,CAACJ,EAAUO,KAAMP,EAAUE,SACrDtC,QAASoC,EAAUI,UAAU,CAACJ,EAAUO,KAAMP,EAAUE,SACxDnH,KAAMiH,EAAUI,UAAU,CAACJ,EAAUO,KAAMP,EAAUE,WAMvDzC,MAAOuC,EAAUM,MAAM,CACrBvD,OAAQiD,EAAUtB,YAClBT,YAAa+B,EAAUtB,YACvBP,UAAW6B,EAAUtB,YACrB7D,KAAMmF,EAAUtB,YAChBd,QAASoC,EAAUtB,YACnB3F,KAAMiH,EAAUtB,cAKlB8B,GAAIR,EAAUI,UAAU,CAACJ,EAAUS,QAAQT,EAAUI,UAAU,CAACJ,EAAUO,KAAMP,EAAUE,OAAQF,EAAUU,QAASV,EAAUO,KAAMP,EAAUE,SAK/IlH,QAASgH,EAAgDI,UAAU,CAACJ,EAAUK,MAAM,CAAC,SAAU,WAAY,aAAcL,EAAUG","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),o=require("../../../../../_virtual/index.cjs"),t=require("../../../../clsx/dist/clsx.cjs"),r=require("../utils/useSlot.cjs"),s=require("./backdropClasses.cjs"),n=require("../../../../../_virtual/jsx-runtime.cjs"),i=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),a=require("../styles/styled.cjs"),l=require("../Fade/Fade.cjs"),c=require("../../../utils/esm/composeClasses/composeClasses.cjs");function p(e){var o=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),o.default=e,Object.freeze(o)}var u=p(e);const d=a.default("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.invisible&&o.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),m=u.forwardRef((function(e,o){const a=i.useDefaultProps({props:e,name:"MuiBackdrop"}),{children:p,className:u,component:m="div",invisible:b=!1,open:f,components:j={},componentsProps:y={},slotProps:v={},slots:x={},TransitionComponent:T,transitionDuration:h,...P}=a,O={...a,component:m,invisible:b},g=(e=>{const{classes:o,invisible:t}=e;return c({root:["root",t&&"invisible"]},s.getBackdropUtilityClass,o)})(O),q={slots:{transition:T,root:j.Root,...x},slotProps:{...y,...v}},[C,k]=r("root",{elementType:d,externalForwardedProps:q,className:t.clsx(g.root,u),ownerState:O}),[R,w]=r("transition",{elementType:l,externalForwardedProps:q,ownerState:O});return n.jsxRuntimeExports.jsx(R,{in:f,timeout:h,...P,...w,children:n.jsxRuntimeExports.jsx(C,{"aria-hidden":!0,...k,classes:g,ref:o,children:p})})}));"production"!==process.env.NODE_ENV&&(m.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),module.exports=m;
|
|
1
|
+
"use strict";var e=require("react"),o=require("../../../../../_virtual/index.cjs"),t=require("../../../../clsx/dist/clsx.cjs"),r=require("../utils/useSlot.cjs"),s=require("./backdropClasses.cjs"),n=require("../../../../../_virtual/jsx-runtime.cjs"),i=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),a=require("../styles/styled.cjs"),l=require("../Fade/Fade.cjs"),c=require("../../../utils/esm/composeClasses/composeClasses.cjs");function p(e){var o=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),o.default=e,Object.freeze(o)}var u=p(e);const d=a.default("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.invisible&&o.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),m=u.forwardRef((function(e,o){const a=i.useDefaultProps({props:e,name:"MuiBackdrop"}),{children:p,className:u,component:m="div",invisible:b=!1,open:f,components:j={},componentsProps:y={},slotProps:v={},slots:x={},TransitionComponent:T,transitionDuration:h,...P}=a,O={...a,component:m,invisible:b},g=(e=>{const{classes:o,invisible:t}=e;return c({root:["root",t&&"invisible"]},s.getBackdropUtilityClass,o)})(O),q={component:m,slots:{transition:T,root:j.Root,...x},slotProps:{...y,...v}},[C,k]=r("root",{elementType:d,externalForwardedProps:q,className:t.clsx(g.root,u),ownerState:O}),[R,w]=r("transition",{elementType:l,externalForwardedProps:q,ownerState:O});return n.jsxRuntimeExports.jsx(R,{in:f,timeout:h,...P,...w,children:n.jsxRuntimeExports.jsx(C,{"aria-hidden":!0,...k,classes:g,ref:o,children:p})})}));"production"!==process.env.NODE_ENV&&(m.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),module.exports=m;
|
|
2
2
|
//# sourceMappingURL=Backdrop.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Backdrop.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Backdrop/Backdrop.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport Fade from \"../Fade/index.js\";\nimport { getBackdropUtilityClass } from \"./backdropClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n invisible\n } = ownerState;\n const slots = {\n root: ['root', invisible && 'invisible']\n };\n return composeClasses(slots, getBackdropUtilityClass, classes);\n};\nconst BackdropRoot = styled('div', {\n name: 'MuiBackdrop',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.invisible && styles.invisible];\n }\n})({\n position: 'fixed',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n WebkitTapHighlightColor: 'transparent',\n variants: [{\n props: {\n invisible: true\n },\n style: {\n backgroundColor: 'transparent'\n }\n }]\n});\nconst Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiBackdrop'\n });\n const {\n children,\n className,\n component = 'div',\n invisible = false,\n open,\n components = {},\n componentsProps = {},\n slotProps = {},\n slots = {},\n TransitionComponent: TransitionComponentProp,\n transitionDuration,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n invisible\n };\n const classes = useUtilityClasses(ownerState);\n const backwardCompatibleSlots = {\n transition: TransitionComponentProp,\n root: components.Root,\n ...slots\n };\n const backwardCompatibleSlotProps = {\n ...componentsProps,\n ...slotProps\n };\n const externalForwardedProps = {\n slots: backwardCompatibleSlots,\n slotProps: backwardCompatibleSlotProps\n };\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: BackdropRoot,\n externalForwardedProps,\n className: clsx(classes.root, className),\n ownerState\n });\n const [TransitionSlot, transitionProps] = useSlot('transition', {\n elementType: Fade,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsx(TransitionSlot, {\n in: open,\n timeout: transitionDuration,\n ...other,\n ...transitionProps,\n children: /*#__PURE__*/_jsx(RootSlot, {\n \"aria-hidden\": true,\n ...rootProps,\n classes: classes,\n ref: ref,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Backdrop.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.object\n }),\n /**\n * If `true`, the backdrop is invisible.\n * It can be used when rendering a popover or a custom select component.\n * @default false\n */\n invisible: PropTypes.bool,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Fade\n * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Backdrop;"],"names":["BackdropRoot","styled","default","name","slot","overridesResolver","props","styles","ownerState","root","invisible","position","display","alignItems","justifyContent","right","bottom","top","left","backgroundColor","WebkitTapHighlightColor","variants","style","Backdrop","React","forwardRef","inProps","ref","useDefaultProps","children","className","component","open","components","componentsProps","slotProps","slots","TransitionComponent","TransitionComponentProp","transitionDuration","other","classes","composeClasses","getBackdropUtilityClass","useUtilityClasses","externalForwardedProps","transition","Root","RootSlot","rootProps","useSlot","elementType","clsx","TransitionSlot","transitionProps","Fade","_jsx","in","timeout","jsxRuntimeExports","jsx","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","shape","bool","isRequired","oneOfType","func","sx","arrayOf","number","appear","enter","exit"],"mappings":"usBAYA,MAUMA,EAAeC,EAAMC,QAAC,MAAO,CACjCC,KAAM,cACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMD,EAAWE,WAAaH,EAAOG,aAPnCT,CASlB,CACDU,SAAU,QACVC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,MAAO,EACPC,OAAQ,EACRC,IAAK,EACLC,KAAM,EACNC,gBAAiB,qBACjBC,wBAAyB,cACzBC,SAAU,CAAC,CACTf,MAAO,CACLI,WAAW,GAEbY,MAAO,CACLH,gBAAiB,mBAIjBI,EAAwBC,EAAMC,YAAW,SAAkBC,EAASC,GACxE,MAAMrB,EAAQsB,EAAAA,gBAAgB,CAC5BtB,MAAOoB,EACPvB,KAAM,iBAEF0B,SACJA,EAAQC,UACRA,EAASC,UACTA,EAAY,MAAKrB,UACjBA,GAAY,EAAKsB,KACjBA,EAAIC,WACJA,EAAa,CAAE,EAAAC,gBACfA,EAAkB,CAAE,EAAAC,UACpBA,EAAY,CAAE,EAAAC,MACdA,EAAQ,CAAE,EACVC,oBAAqBC,EAAuBC,mBAC5CA,KACGC,GACDlC,EACEE,EAAa,IACdF,EACHyB,YACArB,aAEI+B,EA/DkBjC,KACxB,MAAMiC,QACJA,EAAO/B,UACPA,GACEF,EAIJ,OAAOkC,EAHO,CACZjC,KAAM,CAAC,OAAQC,GAAa,cAEDiC,EAAuBA,wBAAEF,IAuDtCG,CAAkBpC,GAU5BqC,EAAyB,
|
|
1
|
+
{"version":3,"file":"Backdrop.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Backdrop/Backdrop.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport Fade from \"../Fade/index.js\";\nimport { getBackdropUtilityClass } from \"./backdropClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n invisible\n } = ownerState;\n const slots = {\n root: ['root', invisible && 'invisible']\n };\n return composeClasses(slots, getBackdropUtilityClass, classes);\n};\nconst BackdropRoot = styled('div', {\n name: 'MuiBackdrop',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.invisible && styles.invisible];\n }\n})({\n position: 'fixed',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n WebkitTapHighlightColor: 'transparent',\n variants: [{\n props: {\n invisible: true\n },\n style: {\n backgroundColor: 'transparent'\n }\n }]\n});\nconst Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiBackdrop'\n });\n const {\n children,\n className,\n component = 'div',\n invisible = false,\n open,\n components = {},\n componentsProps = {},\n slotProps = {},\n slots = {},\n TransitionComponent: TransitionComponentProp,\n transitionDuration,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n invisible\n };\n const classes = useUtilityClasses(ownerState);\n const backwardCompatibleSlots = {\n transition: TransitionComponentProp,\n root: components.Root,\n ...slots\n };\n const backwardCompatibleSlotProps = {\n ...componentsProps,\n ...slotProps\n };\n const externalForwardedProps = {\n component,\n slots: backwardCompatibleSlots,\n slotProps: backwardCompatibleSlotProps\n };\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: BackdropRoot,\n externalForwardedProps,\n className: clsx(classes.root, className),\n ownerState\n });\n const [TransitionSlot, transitionProps] = useSlot('transition', {\n elementType: Fade,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsx(TransitionSlot, {\n in: open,\n timeout: transitionDuration,\n ...other,\n ...transitionProps,\n children: /*#__PURE__*/_jsx(RootSlot, {\n \"aria-hidden\": true,\n ...rootProps,\n classes: classes,\n ref: ref,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Backdrop.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.object\n }),\n /**\n * If `true`, the backdrop is invisible.\n * It can be used when rendering a popover or a custom select component.\n * @default false\n */\n invisible: PropTypes.bool,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Fade\n * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Backdrop;"],"names":["BackdropRoot","styled","default","name","slot","overridesResolver","props","styles","ownerState","root","invisible","position","display","alignItems","justifyContent","right","bottom","top","left","backgroundColor","WebkitTapHighlightColor","variants","style","Backdrop","React","forwardRef","inProps","ref","useDefaultProps","children","className","component","open","components","componentsProps","slotProps","slots","TransitionComponent","TransitionComponentProp","transitionDuration","other","classes","composeClasses","getBackdropUtilityClass","useUtilityClasses","externalForwardedProps","transition","Root","RootSlot","rootProps","useSlot","elementType","clsx","TransitionSlot","transitionProps","Fade","_jsx","in","timeout","jsxRuntimeExports","jsx","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","shape","bool","isRequired","oneOfType","func","sx","arrayOf","number","appear","enter","exit"],"mappings":"usBAYA,MAUMA,EAAeC,EAAMC,QAAC,MAAO,CACjCC,KAAM,cACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMD,EAAWE,WAAaH,EAAOG,aAPnCT,CASlB,CACDU,SAAU,QACVC,QAAS,OACTC,WAAY,SACZC,e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BxC,EAASyC,UAAmC,CAQlFnC,SAAUoC,EAAUC,KAIpBzB,QAASwB,EAAUE,OAInBrC,UAAWmC,EAAUG,OAKrBrC,UAAWkC,EAAUd,YAQrBlB,WAAYgC,EAAUI,MAAM,CAC1BtB,KAAMkB,EAAUd,cAUlBjB,gBAAiB+B,EAAUI,MAAM,CAC/B5D,KAAMwD,EAAUE,SAOlBzD,UAAWuD,EAAUK,KAIrBtC,KAAMiC,EAAUK,KAAKC,WAKrBpC,UAAW8B,EAAUI,MAAM,CACzB5D,KAAMwD,EAAUO,UAAU,CAACP,EAAUQ,KAAMR,EAAUE,SACrDrB,WAAYmB,EAAUO,UAAU,CAACP,EAAUQ,KAAMR,EAAUE,WAM7D/B,MAAO6B,EAAUI,MAAM,CACrB5D,KAAMwD,EAAUd,YAChBL,WAAYmB,EAAUd,cAKxBuB,GAAIT,EAAUO,UAAU,CAACP,EAAUU,QAAQV,EAAUO,UAAU,CAACP,EAAUQ,KAAMR,EAAUE,OAAQF,EAAUK,QAASL,EAAUQ,KAAMR,EAAUE,SAO/I9B,oBAAqB4B,EAAUd,YAK/BZ,mBAAoB0B,EAAUO,UAAU,CAACP,EAAUW,OAAQX,EAAUI,MAAM,CACzEQ,OAAQZ,EAAUW,OAClBE,MAAOb,EAAUW,OACjBG,KAAMd,EAAUW","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../../../../_virtual/index.cjs"),o=require("../../../../clsx/dist/clsx.cjs"),a=require("../styles/rootShouldForwardProp.cjs"),i=require("../utils/memoTheme.cjs"),r=require("../utils/createSimplePaletteValueFilter.cjs"),n=require("./buttonClasses.cjs"),s=require("../ButtonGroup/ButtonGroupContext.cjs"),l=require("../ButtonGroup/ButtonGroupButtonContext.cjs"),d=require("../../../../../_virtual/jsx-runtime.cjs"),p=require("../../../utils/esm/resolveProps/resolveProps.cjs"),c=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),u=require("../../../utils/esm/useId/useId.cjs"),v=require("../styles/styled.cjs"),g=require("../../../utils/esm/capitalize/capitalize.cjs"),h=require("../../../utils/esm/composeClasses/composeClasses.cjs"),m=require("../ButtonBase/ButtonBase.cjs"),y=require("../CircularProgress/CircularProgress.cjs"),x=require("../../../system/esm/colorManipulator/colorManipulator.cjs");function b(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var f=b(e);const j=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],z=v.default(m.default,{shouldForwardProp:e=>a(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${g(o.color)}`],t[`size${g(o.size)}`],t[`${o.variant}Size${g(o.size)}`],"inherit"===o.color&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth,o.loading&&t.loading]}})(i((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${n.default.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${n.default.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${n.default.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${n.default.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(r()).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:x.alpha(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:x.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:x.alpha(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:x.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:x.alpha(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${n.default.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${n.default.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${n.default.loading}`]:{color:"transparent"}}}]}}))),S=v.default("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,o.loading&&t.startIconLoadingStart,t[`iconSize${g(o.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...j]}))),B=v.default("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,o.loading&&t.endIconLoadingEnd,t[`iconSize${g(o.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...j]}))),P=v.default("span",{name:"MuiButton",slot:"LoadingIndicator"})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}))),w=v.default("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),C=f.forwardRef((function(e,t){const a=f.useContext(s),i=f.useContext(l),r=p(a,e),v=c.useDefaultProps({props:r,name:"MuiButton"}),{children:m,color:x="primary",component:b="button",className:j,disabled:C=!1,disableElevation:$=!1,disableFocusRipple:R=!1,endIcon:I,focusVisibleClassName:O,fullWidth:E=!1,id:q,loading:T=null,loadingIndicator:W,loadingPosition:N="center",size:k="medium",startIcon:L,type:M,variant:V="text",...D}=v,F=u(q),G=W??d.jsxRuntimeExports.jsx(y,{"aria-labelledby":F,color:"inherit",size:16}),_={...v,color:x,component:b,disabled:C,disableElevation:$,disableFocusRipple:R,fullWidth:E,loading:T,loadingIndicator:G,loadingPosition:N,size:k,type:M,variant:V},A=(e=>{const{color:t,disableElevation:o,fullWidth:a,size:i,variant:r,loading:s,loadingPosition:l,classes:d}=e,p={root:["root",s&&"loading",r,`${r}${g(t)}`,`size${g(i)}`,`${r}Size${g(i)}`,`color${g(t)}`,o&&"disableElevation",a&&"fullWidth",s&&`loadingPosition${g(l)}`],startIcon:["icon","startIcon",`iconSize${g(i)}`],endIcon:["icon","endIcon",`iconSize${g(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=h(p,n.getButtonUtilityClass,d);return{...d,...c}})(_),H=(L||T&&"start"===N)&&d.jsxRuntimeExports.jsx(S,{className:A.startIcon,ownerState:_,children:L||d.jsxRuntimeExports.jsx(w,{className:A.loadingIconPlaceholder,ownerState:_})}),U=(I||T&&"end"===N)&&d.jsxRuntimeExports.jsx(B,{className:A.endIcon,ownerState:_,children:I||d.jsxRuntimeExports.jsx(w,{className:A.loadingIconPlaceholder,ownerState:_})}),J=i||"",K="boolean"==typeof T?d.jsxRuntimeExports.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:T&&d.jsxRuntimeExports.jsx(P,{className:A.loadingIndicator,ownerState:_,children:G})}):null;return d.jsxRuntimeExports.jsxs(z,{ownerState:_,className:o.clsx(a.className,A.root,j,J),component:b,disabled:C||T,focusRipple:!R,focusVisibleClassName:o.clsx(A.focusVisible,O),ref:t,type:M,id:T?F:q,...D,classes:A,children:[H,"end"!==N&&K,m,"end"===N&&K,U]})}));"production"!==process.env.NODE_ENV&&(C.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","success","error","info","warning"]),t.string]),component:t.elementType,disabled:t.bool,disableElevation:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,endIcon:t.node,focusVisibleClassName:t.string,fullWidth:t.bool,href:t.string,id:t.string,loading:t.bool,loadingIndicator:t.node,loadingPosition:t.oneOf(["center","end","start"]),size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),startIcon:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.oneOfType([t.oneOf(["button","reset","submit"]),t.string]),variant:t.oneOfType([t.oneOf(["contained","outlined","text"]),t.string])}),module.exports=C;
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../../../../_virtual/index.cjs"),o=require("../../../../clsx/dist/clsx.cjs"),a=require("../styles/rootShouldForwardProp.cjs"),i=require("../utils/memoTheme.cjs"),r=require("../utils/createSimplePaletteValueFilter.cjs"),n=require("./buttonClasses.cjs"),s=require("../ButtonGroup/ButtonGroupContext.cjs"),l=require("../ButtonGroup/ButtonGroupButtonContext.cjs"),d=require("../../../../../_virtual/jsx-runtime.cjs"),p=require("../../../utils/esm/resolveProps/resolveProps.cjs"),c=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),u=require("../../../utils/esm/useId/useId.cjs"),g=require("../styles/styled.cjs"),v=require("../../../utils/esm/capitalize/capitalize.cjs"),h=require("../../../utils/esm/composeClasses/composeClasses.cjs"),m=require("../ButtonBase/ButtonBase.cjs"),y=require("../CircularProgress/CircularProgress.cjs");function x(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var f=x(e);const b=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],j=g.default(m.default,{shouldForwardProp:e=>a(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${v(o.color)}`],t[`size${v(o.size)}`],t[`${o.variant}Size${v(o.size)}`],"inherit"===o.color&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth,o.loading&&t.loading]}})(i((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${n.default.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${n.default.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${n.default.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${n.default.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(r()).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${n.default.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${n.default.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${n.default.loading}`]:{color:"transparent"}}}]}}))),z=g.default("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,o.loading&&t.startIconLoadingStart,t[`iconSize${v(o.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...b]}))),S=g.default("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,o.loading&&t.endIconLoadingEnd,t[`iconSize${v(o.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...b]}))),B=g.default("span",{name:"MuiButton",slot:"LoadingIndicator"})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}))),P=g.default("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),w=f.forwardRef((function(e,t){const a=f.useContext(s),i=f.useContext(l),r=p(a,e),g=c.useDefaultProps({props:r,name:"MuiButton"}),{children:m,color:x="primary",component:b="button",className:w,disabled:C=!1,disableElevation:R=!1,disableFocusRipple:I=!1,endIcon:O,focusVisibleClassName:$,fullWidth:E=!1,id:q,loading:T=null,loadingIndicator:W,loadingPosition:N="center",size:k="medium",startIcon:L,type:V,variant:D="text",...F}=g,M=u(q),G=W??d.jsxRuntimeExports.jsx(y,{"aria-labelledby":M,color:"inherit",size:16}),_={...g,color:x,component:b,disabled:C,disableElevation:R,disableFocusRipple:I,fullWidth:E,loading:T,loadingIndicator:G,loadingPosition:N,size:k,type:V,variant:D},A=(e=>{const{color:t,disableElevation:o,fullWidth:a,size:i,variant:r,loading:s,loadingPosition:l,classes:d}=e,p={root:["root",s&&"loading",r,`${r}${v(t)}`,`size${v(i)}`,`${r}Size${v(i)}`,`color${v(t)}`,o&&"disableElevation",a&&"fullWidth",s&&`loadingPosition${v(l)}`],startIcon:["icon","startIcon",`iconSize${v(i)}`],endIcon:["icon","endIcon",`iconSize${v(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=h(p,n.getButtonUtilityClass,d);return{...d,...c}})(_),H=(L||T&&"start"===N)&&d.jsxRuntimeExports.jsx(z,{className:A.startIcon,ownerState:_,children:L||d.jsxRuntimeExports.jsx(P,{className:A.loadingIconPlaceholder,ownerState:_})}),U=(O||T&&"end"===N)&&d.jsxRuntimeExports.jsx(S,{className:A.endIcon,ownerState:_,children:O||d.jsxRuntimeExports.jsx(P,{className:A.loadingIconPlaceholder,ownerState:_})}),J=i||"",K="boolean"==typeof T?d.jsxRuntimeExports.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:T&&d.jsxRuntimeExports.jsx(B,{className:A.loadingIndicator,ownerState:_,children:G})}):null;return d.jsxRuntimeExports.jsxs(j,{ownerState:_,className:o.clsx(a.className,A.root,w,J),component:b,disabled:C||T,focusRipple:!I,focusVisibleClassName:o.clsx(A.focusVisible,$),ref:t,type:V,id:T?M:q,...F,classes:A,children:[H,"end"!==N&&K,m,"end"===N&&K,U]})}));"production"!==process.env.NODE_ENV&&(w.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","success","error","info","warning"]),t.string]),component:t.elementType,disabled:t.bool,disableElevation:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,endIcon:t.node,focusVisibleClassName:t.string,fullWidth:t.bool,href:t.string,id:t.string,loading:t.bool,loadingIndicator:t.node,loadingPosition:t.oneOf(["center","end","start"]),size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),startIcon:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.oneOfType([t.oneOf(["button","reset","submit"]),t.string]),variant:t.oneOfType([t.oneOf(["contained","outlined","text"]),t.string])}),module.exports=w;
|
|
2
2
|
//# sourceMappingURL=Button.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Button/Button.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport resolveProps from '@mui/utils/resolveProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { unstable_useId as useId } from \"../utils/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport CircularProgress from \"../CircularProgress/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport buttonClasses, { getButtonUtilityClass } from \"./buttonClasses.js\";\nimport ButtonGroupContext from \"../ButtonGroup/ButtonGroupContext.js\";\nimport ButtonGroupButtonContext from \"../ButtonGroup/ButtonGroupButtonContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n disableElevation,\n fullWidth,\n size,\n variant,\n loading,\n loadingPosition,\n classes\n } = ownerState;\n const slots = {\n root: ['root', loading && 'loading', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],\n startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],\n endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`],\n loadingIndicator: ['loadingIndicator'],\n loadingWrapper: ['loadingWrapper']\n };\n const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);\n return {\n ...classes,\n // forward the focused, disabled, etc. classes to the ButtonBase\n ...composedClasses\n };\n};\nconst commonIconStyles = [{\n props: {\n size: 'small'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 18\n }\n }\n}, {\n props: {\n size: 'medium'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 20\n }\n }\n}, {\n props: {\n size: 'large'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 22\n }\n }\n}];\nconst ButtonRoot = styled(ButtonBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];\n }\n})(memoTheme(({\n theme\n}) => {\n const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];\n const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];\n return {\n ...theme.typography.button,\n minWidth: 64,\n padding: '6px 16px',\n border: 0,\n borderRadius: (theme.vars || theme).shape.borderRadius,\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n textDecoration: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n },\n variants: [{\n props: {\n variant: 'contained'\n },\n style: {\n color: `var(--variant-containedColor)`,\n backgroundColor: `var(--variant-containedBg)`,\n boxShadow: (theme.vars || theme).shadows[2],\n '&:hover': {\n boxShadow: (theme.vars || theme).shadows[4],\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n boxShadow: (theme.vars || theme).shadows[2]\n }\n },\n '&:active': {\n boxShadow: (theme.vars || theme).shadows[8]\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: (theme.vars || theme).shadows[6]\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled,\n boxShadow: (theme.vars || theme).shadows[0],\n backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n }\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n padding: '5px 15px',\n border: '1px solid currentColor',\n borderColor: `var(--variant-outlinedBorder, currentColor)`,\n backgroundColor: `var(--variant-outlinedBg)`,\n color: `var(--variant-outlinedColor)`,\n [`&.${buttonClasses.disabled}`]: {\n border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n }\n }\n }, {\n props: {\n variant: 'text'\n },\n style: {\n padding: '6px 8px',\n color: `var(--variant-textColor)`,\n backgroundColor: `var(--variant-textBg)`\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n '--variant-textColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBorder': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5),\n '--variant-containedColor': (theme.vars || theme).palette[color].contrastText,\n '--variant-containedBg': (theme.vars || theme).palette[color].main,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': (theme.vars || theme).palette[color].dark,\n '--variant-textBg': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n '--variant-outlinedBorder': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBg': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)\n }\n }\n }\n })), {\n props: {\n color: 'inherit'\n },\n style: {\n color: 'inherit',\n borderColor: 'currentColor',\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,\n '--variant-textBg': theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),\n '--variant-outlinedBg': theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity)\n }\n }\n }\n }, {\n props: {\n size: 'small',\n variant: 'text'\n },\n style: {\n padding: '4px 5px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'text'\n },\n style: {\n padding: '8px 11px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'outlined'\n },\n style: {\n padding: '3px 9px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'outlined'\n },\n style: {\n padding: '7px 21px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'contained'\n },\n style: {\n padding: '4px 10px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'contained'\n },\n style: {\n padding: '8px 22px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n disableElevation: true\n },\n style: {\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: 'none'\n },\n '&:active': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n boxShadow: 'none'\n }\n }\n }, {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {\n duration: theme.transitions.duration.short\n }),\n [`&.${buttonClasses.loading}`]: {\n color: 'transparent'\n }\n }\n }]\n };\n}));\nconst ButtonStartIcon = styled('span', {\n name: 'MuiButton',\n slot: 'StartIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n marginRight: 8,\n marginLeft: -4,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginLeft: -2\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true\n },\n style: {\n transition: theme.transitions.create(['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true,\n fullWidth: true\n },\n style: {\n marginRight: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonEndIcon = styled('span', {\n name: 'MuiButton',\n slot: 'EndIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n marginRight: -4,\n marginLeft: 8,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginRight: -2\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true\n },\n style: {\n transition: theme.transitions.create(['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true,\n fullWidth: true\n },\n style: {\n marginLeft: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonLoadingIndicator = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIndicator'\n})(({\n theme\n}) => ({\n display: 'none',\n position: 'absolute',\n visibility: 'visible',\n variants: [{\n props: {\n loading: true\n },\n style: {\n display: 'flex'\n }\n }, {\n props: {\n loadingPosition: 'start'\n },\n style: {\n left: 14\n }\n }, {\n props: {\n loadingPosition: 'start',\n size: 'small'\n },\n style: {\n left: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'start'\n },\n style: {\n left: 6\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n left: '50%',\n transform: 'translate(-50%)',\n color: (theme.vars || theme).palette.action.disabled\n }\n }, {\n props: {\n loadingPosition: 'end'\n },\n style: {\n right: 14\n }\n }, {\n props: {\n loadingPosition: 'end',\n size: 'small'\n },\n style: {\n right: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'end'\n },\n style: {\n right: 6\n }\n }, {\n props: {\n loadingPosition: 'start',\n fullWidth: true\n },\n style: {\n position: 'relative',\n left: -10\n }\n }, {\n props: {\n loadingPosition: 'end',\n fullWidth: true\n },\n style: {\n position: 'relative',\n right: -10\n }\n }]\n}));\nconst ButtonLoadingIconPlaceholder = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIconPlaceholder'\n})({\n display: 'inline-block',\n width: '1em',\n height: '1em'\n});\nconst Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {\n // props priority: `inProps` > `contextProps` > `themeDefaultProps`\n const contextProps = React.useContext(ButtonGroupContext);\n const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);\n const resolvedProps = resolveProps(contextProps, inProps);\n const props = useDefaultProps({\n props: resolvedProps,\n name: 'MuiButton'\n });\n const {\n children,\n color = 'primary',\n component = 'button',\n className,\n disabled = false,\n disableElevation = false,\n disableFocusRipple = false,\n endIcon: endIconProp,\n focusVisibleClassName,\n fullWidth = false,\n id: idProp,\n loading = null,\n loadingIndicator: loadingIndicatorProp,\n loadingPosition = 'center',\n size = 'medium',\n startIcon: startIconProp,\n type,\n variant = 'text',\n ...other\n } = props;\n const loadingId = useId(idProp);\n const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {\n \"aria-labelledby\": loadingId,\n color: \"inherit\",\n size: 16\n });\n const ownerState = {\n ...props,\n color,\n component,\n disabled,\n disableElevation,\n disableFocusRipple,\n fullWidth,\n loading,\n loadingIndicator,\n loadingPosition,\n size,\n type,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const startIcon = (startIconProp || loading && loadingPosition === 'start') && /*#__PURE__*/_jsx(ButtonStartIcon, {\n className: classes.startIcon,\n ownerState: ownerState,\n children: startIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const endIcon = (endIconProp || loading && loadingPosition === 'end') && /*#__PURE__*/_jsx(ButtonEndIcon, {\n className: classes.endIcon,\n ownerState: ownerState,\n children: endIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const positionClassName = buttonGroupButtonContextPositionClassName || '';\n const loader = typeof loading === 'boolean' ?\n /*#__PURE__*/\n // use plain HTML span to minimize the runtime overhead\n _jsx(\"span\", {\n className: classes.loadingWrapper,\n style: {\n display: 'contents'\n },\n children: loading && /*#__PURE__*/_jsx(ButtonLoadingIndicator, {\n className: classes.loadingIndicator,\n ownerState: ownerState,\n children: loadingIndicator\n })\n }) : null;\n return /*#__PURE__*/_jsxs(ButtonRoot, {\n ownerState: ownerState,\n className: clsx(contextProps.className, classes.root, className, positionClassName),\n component: component,\n disabled: disabled || loading,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ref: ref,\n type: type,\n id: loading ? loadingId : idProp,\n ...other,\n classes: classes,\n children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, no elevation is used.\n * @default false\n */\n disableElevation: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * Element placed after the children.\n */\n endIcon: PropTypes.node,\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * If `true`, the button will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * If `true`, the loading indicator is visible and the button is disabled.\n * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).\n * @default null\n */\n loading: PropTypes.bool,\n /**\n * Element placed before the children if the button is in loading state.\n * The node should contain an element with `role=\"progressbar\"` with an accessible name.\n * By default, it renders a `CircularProgress` that is labeled by the button itself.\n * @default <CircularProgress color=\"inherit\" size={16} />\n */\n loadingIndicator: PropTypes.node,\n /**\n * The loading indicator can be positioned on the start, end, or the center of the button.\n * @default 'center'\n */\n loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * Element placed before the children.\n */\n startIcon: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),\n /**\n * The variant to use.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default Button;"],"names":["commonIconStyles","props","size","style","fontSize","ButtonRoot","styled","default","ButtonBase","shouldForwardProp","prop","rootShouldForwardProp","name","slot","overridesResolver","styles","ownerState","root","variant","capitalize","color","colorInherit","disableElevation","fullWidth","loading","memoTheme","theme","inheritContainedBackgroundColor","palette","mode","grey","inheritContainedHoverBackgroundColor","A100","typography","button","minWidth","padding","border","borderRadius","vars","shape","transition","transitions","create","duration","short","textDecoration","buttonClasses","disabled","action","variants","backgroundColor","boxShadow","shadows","focusVisible","disabledBackground","borderColor","Object","entries","filter","createSimplePaletteValueFilter","map","main","mainChannel","alpha","contrastText","dark","hoverOpacity","Button","inheritContainedBg","inheritContainedHoverBg","text","primaryChannel","primary","pxToRem","width","loadingPosition","ButtonStartIcon","startIcon","startIconLoadingStart","display","marginRight","marginLeft","opacity","ButtonEndIcon","endIcon","endIconLoadingEnd","ButtonLoadingIndicator","position","visibility","left","transform","right","ButtonLoadingIconPlaceholder","height","React","forwardRef","inProps","ref","contextProps","useContext","ButtonGroupContext","buttonGroupButtonContextPositionClassName","ButtonGroupButtonContext","resolvedProps","resolveProps","useDefaultProps","children","component","className","disableFocusRipple","endIconProp","focusVisibleClassName","id","idProp","loadingIndicator","loadingIndicatorProp","startIconProp","type","other","loadingId","useId","_jsx","jsxRuntimeExports","jsx","CircularProgress","classes","slots","loadingWrapper","composedClasses","composeClasses","getButtonUtilityClass","useUtilityClasses","loadingIconPlaceholder","positionClassName","loader","_jsxs","clsx","focusRipple","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOfType","oneOf","elementType","bool","disableRipple","href","sx","arrayOf","func"],"mappings":"8sCAqBA,MAyBMA,EAAmB,CAAC,CACxBC,MAAO,CACLC,KAAM,SAERC,MAAO,CACL,uBAAwB,CACtBC,SAAU,MAGb,CACDH,MAAO,CACLC,KAAM,UAERC,MAAO,CACL,uBAAwB,CACtBC,SAAU,MAGb,CACDH,MAAO,CACLC,KAAM,SAERC,MAAO,CACL,uBAAwB,CACtBC,SAAU,OAIVC,EAAaC,EAAMC,QAACC,UAAY,CACpCC,kBAAmBC,GAAQC,EAAsBD,IAAkB,YAATA,EAC1DE,KAAM,YACNC,KAAM,OACNC,kBAAmB,CAACb,EAAOc,KACzB,MAAMC,WACJA,GACEf,EACJ,MAAO,CAACc,EAAOE,KAAMF,EAAOC,EAAWE,SAAUH,EAAO,GAAGC,EAAWE,UAAUC,EAAWH,EAAWI,UAAWL,EAAO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IV,EAAUI,UAAU,CAACJ,EAAUW,QAAQX,EAAUI,UAAU,CAACJ,EAAUY,KAAMZ,EAAUE,OAAQF,EAAUO,QAASP,EAAUY,KAAMZ,EAAUE,SAI/I3B,KAAMyB,EAAUI,UAAU,CAACJ,EAAUK,MAAM,CAAC,SAAU,QAAS,WAAYL,EAAUG,SAKrFhI,QAAS6H,EAAgDI,UAAU,CAACJ,EAAUK,MAAM,CAAC,YAAa,WAAY,SAAUL,EAAUG","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"Button.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Button/Button.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport resolveProps from '@mui/utils/resolveProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { unstable_useId as useId } from \"../utils/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport CircularProgress from \"../CircularProgress/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport buttonClasses, { getButtonUtilityClass } from \"./buttonClasses.js\";\nimport ButtonGroupContext from \"../ButtonGroup/ButtonGroupContext.js\";\nimport ButtonGroupButtonContext from \"../ButtonGroup/ButtonGroupButtonContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n disableElevation,\n fullWidth,\n size,\n variant,\n loading,\n loadingPosition,\n classes\n } = ownerState;\n const slots = {\n root: ['root', loading && 'loading', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],\n startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],\n endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`],\n loadingIndicator: ['loadingIndicator'],\n loadingWrapper: ['loadingWrapper']\n };\n const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);\n return {\n ...classes,\n // forward the focused, disabled, etc. classes to the ButtonBase\n ...composedClasses\n };\n};\nconst commonIconStyles = [{\n props: {\n size: 'small'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 18\n }\n }\n}, {\n props: {\n size: 'medium'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 20\n }\n }\n}, {\n props: {\n size: 'large'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 22\n }\n }\n}];\nconst ButtonRoot = styled(ButtonBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];\n }\n})(memoTheme(({\n theme\n}) => {\n const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];\n const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];\n return {\n ...theme.typography.button,\n minWidth: 64,\n padding: '6px 16px',\n border: 0,\n borderRadius: (theme.vars || theme).shape.borderRadius,\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n textDecoration: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n },\n variants: [{\n props: {\n variant: 'contained'\n },\n style: {\n color: `var(--variant-containedColor)`,\n backgroundColor: `var(--variant-containedBg)`,\n boxShadow: (theme.vars || theme).shadows[2],\n '&:hover': {\n boxShadow: (theme.vars || theme).shadows[4],\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n boxShadow: (theme.vars || theme).shadows[2]\n }\n },\n '&:active': {\n boxShadow: (theme.vars || theme).shadows[8]\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: (theme.vars || theme).shadows[6]\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled,\n boxShadow: (theme.vars || theme).shadows[0],\n backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n }\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n padding: '5px 15px',\n border: '1px solid currentColor',\n borderColor: `var(--variant-outlinedBorder, currentColor)`,\n backgroundColor: `var(--variant-outlinedBg)`,\n color: `var(--variant-outlinedColor)`,\n [`&.${buttonClasses.disabled}`]: {\n border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n }\n }\n }, {\n props: {\n variant: 'text'\n },\n style: {\n padding: '6px 8px',\n color: `var(--variant-textColor)`,\n backgroundColor: `var(--variant-textBg)`\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n '--variant-textColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBorder': theme.alpha((theme.vars || theme).palette[color].main, 0.5),\n '--variant-containedColor': (theme.vars || theme).palette[color].contrastText,\n '--variant-containedBg': (theme.vars || theme).palette[color].main,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': (theme.vars || theme).palette[color].dark,\n '--variant-textBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),\n '--variant-outlinedBorder': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n }\n })), {\n props: {\n color: 'inherit'\n },\n style: {\n color: 'inherit',\n borderColor: 'currentColor',\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,\n '--variant-textBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),\n '--variant-outlinedBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity)\n }\n }\n }\n }, {\n props: {\n size: 'small',\n variant: 'text'\n },\n style: {\n padding: '4px 5px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'text'\n },\n style: {\n padding: '8px 11px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'outlined'\n },\n style: {\n padding: '3px 9px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'outlined'\n },\n style: {\n padding: '7px 21px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'contained'\n },\n style: {\n padding: '4px 10px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'contained'\n },\n style: {\n padding: '8px 22px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n disableElevation: true\n },\n style: {\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: 'none'\n },\n '&:active': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n boxShadow: 'none'\n }\n }\n }, {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {\n duration: theme.transitions.duration.short\n }),\n [`&.${buttonClasses.loading}`]: {\n color: 'transparent'\n }\n }\n }]\n };\n}));\nconst ButtonStartIcon = styled('span', {\n name: 'MuiButton',\n slot: 'StartIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n marginRight: 8,\n marginLeft: -4,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginLeft: -2\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true\n },\n style: {\n transition: theme.transitions.create(['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true,\n fullWidth: true\n },\n style: {\n marginRight: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonEndIcon = styled('span', {\n name: 'MuiButton',\n slot: 'EndIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n marginRight: -4,\n marginLeft: 8,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginRight: -2\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true\n },\n style: {\n transition: theme.transitions.create(['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true,\n fullWidth: true\n },\n style: {\n marginLeft: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonLoadingIndicator = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIndicator'\n})(({\n theme\n}) => ({\n display: 'none',\n position: 'absolute',\n visibility: 'visible',\n variants: [{\n props: {\n loading: true\n },\n style: {\n display: 'flex'\n }\n }, {\n props: {\n loadingPosition: 'start'\n },\n style: {\n left: 14\n }\n }, {\n props: {\n loadingPosition: 'start',\n size: 'small'\n },\n style: {\n left: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'start'\n },\n style: {\n left: 6\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n left: '50%',\n transform: 'translate(-50%)',\n color: (theme.vars || theme).palette.action.disabled\n }\n }, {\n props: {\n loadingPosition: 'end'\n },\n style: {\n right: 14\n }\n }, {\n props: {\n loadingPosition: 'end',\n size: 'small'\n },\n style: {\n right: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'end'\n },\n style: {\n right: 6\n }\n }, {\n props: {\n loadingPosition: 'start',\n fullWidth: true\n },\n style: {\n position: 'relative',\n left: -10\n }\n }, {\n props: {\n loadingPosition: 'end',\n fullWidth: true\n },\n style: {\n position: 'relative',\n right: -10\n }\n }]\n}));\nconst ButtonLoadingIconPlaceholder = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIconPlaceholder'\n})({\n display: 'inline-block',\n width: '1em',\n height: '1em'\n});\nconst Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {\n // props priority: `inProps` > `contextProps` > `themeDefaultProps`\n const contextProps = React.useContext(ButtonGroupContext);\n const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);\n const resolvedProps = resolveProps(contextProps, inProps);\n const props = useDefaultProps({\n props: resolvedProps,\n name: 'MuiButton'\n });\n const {\n children,\n color = 'primary',\n component = 'button',\n className,\n disabled = false,\n disableElevation = false,\n disableFocusRipple = false,\n endIcon: endIconProp,\n focusVisibleClassName,\n fullWidth = false,\n id: idProp,\n loading = null,\n loadingIndicator: loadingIndicatorProp,\n loadingPosition = 'center',\n size = 'medium',\n startIcon: startIconProp,\n type,\n variant = 'text',\n ...other\n } = props;\n const loadingId = useId(idProp);\n const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {\n \"aria-labelledby\": loadingId,\n color: \"inherit\",\n size: 16\n });\n const ownerState = {\n ...props,\n color,\n component,\n disabled,\n disableElevation,\n disableFocusRipple,\n fullWidth,\n loading,\n loadingIndicator,\n loadingPosition,\n size,\n type,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const startIcon = (startIconProp || loading && loadingPosition === 'start') && /*#__PURE__*/_jsx(ButtonStartIcon, {\n className: classes.startIcon,\n ownerState: ownerState,\n children: startIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const endIcon = (endIconProp || loading && loadingPosition === 'end') && /*#__PURE__*/_jsx(ButtonEndIcon, {\n className: classes.endIcon,\n ownerState: ownerState,\n children: endIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const positionClassName = buttonGroupButtonContextPositionClassName || '';\n const loader = typeof loading === 'boolean' ?\n /*#__PURE__*/\n // use plain HTML span to minimize the runtime overhead\n _jsx(\"span\", {\n className: classes.loadingWrapper,\n style: {\n display: 'contents'\n },\n children: loading && /*#__PURE__*/_jsx(ButtonLoadingIndicator, {\n className: classes.loadingIndicator,\n ownerState: ownerState,\n children: loadingIndicator\n })\n }) : null;\n return /*#__PURE__*/_jsxs(ButtonRoot, {\n ownerState: ownerState,\n className: clsx(contextProps.className, classes.root, className, positionClassName),\n component: component,\n disabled: disabled || loading,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ref: ref,\n type: type,\n id: loading ? loadingId : idProp,\n ...other,\n classes: classes,\n children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, no elevation is used.\n * @default false\n */\n disableElevation: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * Element placed after the children.\n */\n endIcon: PropTypes.node,\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * If `true`, the button will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * If `true`, the loading indicator is visible and the button is disabled.\n * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).\n * @default null\n */\n loading: PropTypes.bool,\n /**\n * Element placed before the children if the button is in loading state.\n * The node should contain an element with `role=\"progressbar\"` with an accessible name.\n * By default, it renders a `CircularProgress` that is labeled by the button itself.\n * @default <CircularProgress color=\"inherit\" size={16} />\n */\n loadingIndicator: PropTypes.node,\n /**\n * The loading indicator can be positioned on the start, end, or the center of the button.\n * @default 'center'\n */\n loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * Element placed before the children.\n */\n startIcon: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),\n /**\n * The variant to use.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default Button;"],"names":["commonIconStyles","props","size","style","fontSize","ButtonRoot","styled","default","ButtonBase","shouldForwardProp","prop","rootShouldForwardProp","name","slot","overridesResolver","styles","ownerState","root","variant","capitalize","color","colorInherit","disableElevation","fullWidth","loading","memoTheme","theme","inheritContainedBackgroundColor","palette","mode","grey","inheritContainedHoverBackgroundColor","A100","typography","button","minWidth","padding","border","borderRadius","vars","shape","transition","transitions","create","duration","short","textDecoration","buttonClasses","disabled","action","variants","backgroundColor","boxShadow","shadows","focusVisible","disabledBackground","borderColor","Object","entries","filter","createSimplePaletteValueFilter","map","main","alpha","contrastText","dark","hoverOpacity","Button","inheritContainedBg","inheritContainedHoverBg","text","primary","pxToRem","width","loadingPosition","ButtonStartIcon","startIcon","startIconLoadingStart","display","marginRight","marginLeft","opacity","ButtonEndIcon","endIcon","endIconLoadingEnd","ButtonLoadingIndicator","position","visibility","left","transform","right","ButtonLoadingIconPlaceholder","height","React","forwardRef","inProps","ref","contextProps","useContext","ButtonGroupContext","buttonGroupButtonContextPositionClassName","ButtonGroupButtonContext","resolvedProps","resolveProps","useDefaultProps","children","component","className","disableFocusRipple","endIconProp","focusVisibleClassName","id","idProp","loadingIndicator","loadingIndicatorProp","startIconProp","type","other","loadingId","useId","_jsx","jsxRuntimeExports","jsx","CircularProgress","classes","slots","loadingWrapper","composedClasses","composeClasses","getButtonUtilityClass","useUtilityClasses","loadingIconPlaceholder","positionClassName","loader","_jsxs","clsx","focusRipple","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOfType","oneOf","elementType","bool","disableRipple","href","sx","arrayOf","func"],"mappings":"uoCAoBA,MAyBMA,EAAmB,CAAC,CACxBC,MAAO,CACLC,KAAM,SAERC,MAAO,CACL,uBAAwB,CACtBC,SAAU,MAGb,CACDH,MAAO,CACLC,KAAM,UAERC,MAAO,CACL,uBAAwB,CACtBC,SAAU,MAGb,CACDH,MAAO,CACLC,KAAM,SAERC,MAAO,CACL,uBAAwB,CACtBC,SAAU,OAIVC,EAAaC,EAAMC,QAACC,UAAY,CACpCC,kBAAmBC,GAAQC,EAAsBD,IAAkB,YAATA,EAC1DE,KAAM,YACNC,KAAM,OACNC,kBAAmB,CAACb,EAAOc,KACzB,MAAMC,WACJA,GACEf,EACJ,MAAO,CAACc,EAAOE,KAAMF,EAAOC,EAAWE,SAAUH,EAAO,GAAGC,EAAWE,UAAUC,EAAWH,EAAWI,UAAWL,EAAO,OAAOI,EAAWH,EAAWd,SAAUa,EAAO,GAAGC,EAAWE,cAAcC,EAAWH,EAAWd,SAA+B,YAArBc,EAAWI,OAAuBL,EAAOM,aAAcL,EAAWM,kBAAoBP,EAAOO,iBAAkBN,EAAWO,WAAaR,EAAOQ,UAAWP,EAAWQ,SAAWT,EAAOS,WARzYlB,CAUhBmB,GAAU,EACXC,YAEA,MAAMC,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,SAAUoC,EAAUC,KAIpBlB,QAASiB,EAAUE,OAInBpC,UAAWkC,EAAUG,OAOrB5H,MAAOyH,EAAgDI,UAAU,CAACJ,EAAUK,MAAM,CAAC,UAAW,UAAW,YAAa,UAAW,QAAS,OAAQ,YAAaL,EAAUG,SAKzKtC,UAAWmC,EAAUM,YAKrBnG,SAAU6F,EAAUO,KAKpB9H,iBAAkBuH,EAAUO,KAK5BxC,mBAAoBiC,EAAUO,KAQ9BC,cAAeR,EAAUO,KAIzBjE,QAAS0D,EAAUC,KAInBhC,sBAAuB+B,EAAUG,OAKjCzH,UAAWsH,EAAUO,KAKrBE,KAAMT,EAAUG,OAIhBjC,GAAI8B,EAAUG,OAMdxH,QAASqH,EAAUO,KAOnBnC,iBAAkB4B,EAAUC,KAK5BpE,gBAAiBmE,EAAUK,MAAM,CAAC,SAAU,MAAO,UAMnDhJ,KAAM2I,EAAgDI,UAAU,CAACJ,EAAUK,MAAM,CAAC,QAAS,SAAU,UAAWL,EAAUG,SAI1HpE,UAAWiE,EAAUC,KAIrBS,GAAIV,EAAUI,UAAU,CAACJ,EAAUW,QAAQX,EAAUI,UAAU,CAACJ,EAAUY,KAAMZ,EAAUE,OAAQF,EAAUO,QAASP,EAAUY,KAAMZ,EAAUE,SAI/I3B,KAAMyB,EAAUI,UAAU,CAACJ,EAAUK,MAAM,CAAC,SAAU,QAAS,WAAYL,EAAUG,SAKrF9H,QAAS2H,EAAgDI,UAAU,CAACJ,EAAUK,MAAM,CAAC,YAAa,WAAY,SAAUL,EAAUG","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../../../../_virtual/index.cjs"),a=require("../../../../clsx/dist/clsx.cjs"),o=require("../internal/svg-icons/Cancel.cjs"),l=require("../utils/memoTheme.cjs"),r=require("../utils/createSimplePaletteValueFilter.cjs"),n=require("./chipClasses.cjs"),i=require("../utils/useSlot.cjs"),s=require("../../../../../_virtual/jsx-runtime.cjs"),c=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),p=require("../../../utils/esm/useForkRef/useForkRef.cjs"),d=require("../ButtonBase/ButtonBase.cjs"),u=require("../styles/styled.cjs"),f=require("../../../utils/esm/capitalize/capitalize.cjs"),v=require("../../../utils/esm/composeClasses/composeClasses.cjs"),m=require("../../../utils/esm/unsupportedProp/unsupportedProp.cjs"),b=require("../../../system/esm/colorManipulator/colorManipulator.cjs");function g(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var h=g(e);const y=u.default("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e,{color:o,iconColor:l,clickable:r,onDelete:i,size:s,variant:c}=a;return[{[`& .${n.default.avatar}`]:t.avatar},{[`& .${n.default.avatar}`]:t[`avatar${f(s)}`]},{[`& .${n.default.avatar}`]:t[`avatarColor${f(o)}`]},{[`& .${n.default.icon}`]:t.icon},{[`& .${n.default.icon}`]:t[`icon${f(s)}`]},{[`& .${n.default.icon}`]:t[`iconColor${f(l)}`]},{[`& .${n.default.deleteIcon}`]:t.deleteIcon},{[`& .${n.default.deleteIcon}`]:t[`deleteIcon${f(s)}`]},{[`& .${n.default.deleteIcon}`]:t[`deleteIconColor${f(o)}`]},{[`& .${n.default.deleteIcon}`]:t[`deleteIcon${f(c)}Color${f(o)}`]},t.root,t[`size${f(s)}`],t[`color${f(o)}`],r&&t.clickable,r&&"default"!==o&&t[`clickableColor${f(o)})`],i&&t.deletable,i&&"default"!==o&&t[`deletableColor${f(o)}`],t[c],t[`${c}${f(o)}`]]}})(l((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${n.default.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${n.default.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${n.default.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${n.default.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${n.default.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${n.default.icon}`]:{marginLeft:5,marginRight:-6},[`& .${n.default.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:b.alpha(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:b.alpha(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${n.default.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${n.default.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(r(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${n.default.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:b.alpha(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${n.default.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${n.default.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${n.default.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:b.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(r(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${n.default.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:b.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${n.default.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:b.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(r(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${n.default.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${n.default.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${n.default.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${n.default.avatar}`]:{marginLeft:4},[`& .${n.default.avatarSmall}`]:{marginLeft:2},[`& .${n.default.icon}`]:{marginLeft:4},[`& .${n.default.iconSmall}`]:{marginLeft:2},[`& .${n.default.deleteIcon}`]:{marginRight:5},[`& .${n.default.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(r()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:b.alpha(e.palette[t].main,.7)}`,[`&.${n.default.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:b.alpha(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${n.default.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:b.alpha(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${n.default.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:b.alpha(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),$=u.default("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:a}=e,{size:o}=a;return[t.label,t[`label${f(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function C(e){return"Backspace"===e.key||"Delete"===e.key}const x=h.forwardRef((function(e,t){const l=c.useDefaultProps({props:e,name:"MuiChip"}),{avatar:r,className:u,clickable:m,color:b="default",component:g,deleteIcon:x,disabled:k=!1,icon:O,label:j,onClick:I,onDelete:T,onKeyDown:R,onKeyUp:w,size:S="medium",variant:D="filled",tabIndex:z,skipFocusWhenDisabled:P=!1,slots:q={},slotProps:E={},...N}=l,V=h.useRef(null),L=p(V,t),F=e=>{e.stopPropagation(),T&&T(e)},K=!(!1===m||!I)||m,B=K||T?d.default:g||"div",M={...l,component:B,disabled:k,size:S,color:b,iconColor:h.isValidElement(O)&&O.props.color||b,onDelete:!!T,clickable:K,variant:D},U=(e=>{const{classes:t,disabled:a,size:o,color:l,iconColor:r,onDelete:i,clickable:s,variant:c}=e,p={root:["root",c,a&&"disabled",`size${f(o)}`,`color${f(l)}`,s&&"clickable",s&&`clickableColor${f(l)}`,i&&"deletable",i&&`deletableColor${f(l)}`,`${c}${f(l)}`],label:["label",`label${f(o)}`],avatar:["avatar",`avatar${f(o)}`,`avatarColor${f(l)}`],icon:["icon",`icon${f(o)}`,`iconColor${f(r)}`],deleteIcon:["deleteIcon",`deleteIcon${f(o)}`,`deleteIconColor${f(l)}`,`deleteIcon${f(c)}Color${f(l)}`]};return v(p,n.getChipUtilityClass,t)})(M),W=B===d.default?{component:g||"div",focusVisibleClassName:U.focusVisible,...T&&{disableRipple:!0}}:{};let _=null;T&&(_=x&&h.isValidElement(x)?h.cloneElement(x,{className:a.clsx(x.props.className,U.deleteIcon),onClick:F}):s.jsxRuntimeExports.jsx(o,{className:U.deleteIcon,onClick:F}));let A=null;r&&h.isValidElement(r)&&(A=h.cloneElement(r,{className:a.clsx(U.avatar,r.props.className)}));let H=null;O&&h.isValidElement(O)&&(H=h.cloneElement(O,{className:a.clsx(U.icon,O.props.className)})),"production"!==process.env.NODE_ENV&&A&&H&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const G={slots:q,slotProps:E},[J,Q]=i("root",{elementType:y,externalForwardedProps:{...G,...N},ownerState:M,shouldForwardComponentProp:!0,ref:L,className:a.clsx(U.root,u),additionalProps:{disabled:!(!K||!k)||void 0,tabIndex:P&&k?-1:z,...W},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),I?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),(e=>{e.currentTarget===e.target&&C(e)&&e.preventDefault(),R&&R(e)})?.(t)},onKeyUp:t=>{e.onKeyUp?.(t),(e=>{e.currentTarget===e.target&&T&&C(e)&&T(e),w&&w(e)})?.(t)}})}),[X,Y]=i("label",{elementType:$,externalForwardedProps:G,ownerState:M,className:U.label});return s.jsxRuntimeExports.jsxs(J,{as:B,...Q,children:[A||H,s.jsxRuntimeExports.jsx(X,{...Y,children:j}),_]})}));"production"!==process.env.NODE_ENV&&(x.propTypes={avatar:t.element,children:m,classes:t.object,className:t.string,clickable:t.bool,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,deleteIcon:t.element,disabled:t.bool,icon:t.element,label:t.node,onClick:t.func,onDelete:t.func,onKeyDown:t.func,onKeyUp:t.func,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),skipFocusWhenDisabled:t.bool,slotProps:t.shape({label:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({label:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number,variant:t.oneOfType([t.oneOf(["filled","outlined"]),t.string])}),module.exports=x;
|
|
1
|
+
"use strict";var e=require("react"),t=require("../../../../../_virtual/index.cjs"),a=require("../../../../clsx/dist/clsx.cjs"),o=require("../internal/svg-icons/Cancel.cjs"),l=require("../utils/memoTheme.cjs"),r=require("../utils/createSimplePaletteValueFilter.cjs"),n=require("./chipClasses.cjs"),i=require("../utils/useSlot.cjs"),s=require("../../../../../_virtual/jsx-runtime.cjs"),c=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),p=require("../../../utils/esm/useForkRef/useForkRef.cjs"),d=require("../ButtonBase/ButtonBase.cjs"),u=require("../styles/styled.cjs"),f=require("../../../utils/esm/capitalize/capitalize.cjs"),m=require("../../../utils/esm/composeClasses/composeClasses.cjs"),v=require("../../../utils/esm/unsupportedProp/unsupportedProp.cjs");function b(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var g=b(e);const h=u.default("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e,{color:o,iconColor:l,clickable:r,onDelete:i,size:s,variant:c}=a;return[{[`& .${n.default.avatar}`]:t.avatar},{[`& .${n.default.avatar}`]:t[`avatar${f(s)}`]},{[`& .${n.default.avatar}`]:t[`avatarColor${f(o)}`]},{[`& .${n.default.icon}`]:t.icon},{[`& .${n.default.icon}`]:t[`icon${f(s)}`]},{[`& .${n.default.icon}`]:t[`iconColor${f(l)}`]},{[`& .${n.default.deleteIcon}`]:t.deleteIcon},{[`& .${n.default.deleteIcon}`]:t[`deleteIcon${f(s)}`]},{[`& .${n.default.deleteIcon}`]:t[`deleteIconColor${f(o)}`]},{[`& .${n.default.deleteIcon}`]:t[`deleteIcon${f(c)}Color${f(o)}`]},t.root,t[`size${f(s)}`],t[`color${f(o)}`],r&&t.clickable,r&&"default"!==o&&t[`clickableColor${f(o)})`],i&&t.deletable,i&&"default"!==o&&t[`deletableColor${f(o)}`],t[c],t[`${c}${f(o)}`]]}})(l((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${n.default.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${n.default.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${n.default.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${n.default.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${n.default.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${n.default.icon}`]:{marginLeft:5,marginRight:-6},[`& .${n.default.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${n.default.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${n.default.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(r(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${n.default.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${n.default.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${n.default.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${n.default.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(r(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${n.default.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${n.default.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(r(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${n.default.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${n.default.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${n.default.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${n.default.avatar}`]:{marginLeft:4},[`& .${n.default.avatarSmall}`]:{marginLeft:2},[`& .${n.default.icon}`]:{marginLeft:4},[`& .${n.default.iconSmall}`]:{marginLeft:2},[`& .${n.default.deleteIcon}`]:{marginRight:5},[`& .${n.default.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(r()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${n.default.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${n.default.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)},[`& .${n.default.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),y=u.default("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:a}=e,{size:o}=a;return[t.label,t[`label${f(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function $(e){return"Backspace"===e.key||"Delete"===e.key}const C=g.forwardRef((function(e,t){const l=c.useDefaultProps({props:e,name:"MuiChip"}),{avatar:r,className:u,clickable:v,color:b="default",component:C,deleteIcon:k,disabled:x=!1,icon:j,label:O,onClick:I,onDelete:T,onKeyDown:R,onKeyUp:w,size:S="medium",variant:D="filled",tabIndex:z,skipFocusWhenDisabled:P=!1,slots:q={},slotProps:E={},...N}=l,V=g.useRef(null),L=p(V,t),F=e=>{e.stopPropagation(),T&&T(e)},K=!(!1===v||!I)||v,B=K||T?d.default:C||"div",U={...l,component:B,disabled:x,size:S,color:b,iconColor:g.isValidElement(j)&&j.props.color||b,onDelete:!!T,clickable:K,variant:D},W=(e=>{const{classes:t,disabled:a,size:o,color:l,iconColor:r,onDelete:i,clickable:s,variant:c}=e,p={root:["root",c,a&&"disabled",`size${f(o)}`,`color${f(l)}`,s&&"clickable",s&&`clickableColor${f(l)}`,i&&"deletable",i&&`deletableColor${f(l)}`,`${c}${f(l)}`],label:["label",`label${f(o)}`],avatar:["avatar",`avatar${f(o)}`,`avatarColor${f(l)}`],icon:["icon",`icon${f(o)}`,`iconColor${f(r)}`],deleteIcon:["deleteIcon",`deleteIcon${f(o)}`,`deleteIconColor${f(l)}`,`deleteIcon${f(c)}Color${f(l)}`]};return m(p,n.getChipUtilityClass,t)})(U),M=B===d.default?{component:C||"div",focusVisibleClassName:W.focusVisible,...T&&{disableRipple:!0}}:{};let _=null;T&&(_=k&&g.isValidElement(k)?g.cloneElement(k,{className:a.clsx(k.props.className,W.deleteIcon),onClick:F}):s.jsxRuntimeExports.jsx(o,{className:W.deleteIcon,onClick:F}));let H=null;r&&g.isValidElement(r)&&(H=g.cloneElement(r,{className:a.clsx(W.avatar,r.props.className)}));let A=null;j&&g.isValidElement(j)&&(A=g.cloneElement(j,{className:a.clsx(W.icon,j.props.className)})),"production"!==process.env.NODE_ENV&&H&&A&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const G={slots:q,slotProps:E},[J,Q]=i("root",{elementType:h,externalForwardedProps:{...G,...N},ownerState:U,shouldForwardComponentProp:!0,ref:L,className:a.clsx(W.root,u),additionalProps:{disabled:!(!K||!x)||void 0,tabIndex:P&&x?-1:z,...M},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),I?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),(e=>{e.currentTarget===e.target&&$(e)&&e.preventDefault(),R&&R(e)})?.(t)},onKeyUp:t=>{e.onKeyUp?.(t),(e=>{e.currentTarget===e.target&&T&&$(e)&&T(e),w&&w(e)})?.(t)}})}),[X,Y]=i("label",{elementType:y,externalForwardedProps:G,ownerState:U,className:W.label});return s.jsxRuntimeExports.jsxs(J,{as:B,...Q,children:[H||A,s.jsxRuntimeExports.jsx(X,{...Y,children:O}),_]})}));"production"!==process.env.NODE_ENV&&(C.propTypes={avatar:t.element,children:v,classes:t.object,className:t.string,clickable:t.bool,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,deleteIcon:t.element,disabled:t.bool,icon:t.element,label:t.node,onClick:t.func,onDelete:t.func,onKeyDown:t.func,onKeyUp:t.func,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),skipFocusWhenDisabled:t.bool,slotProps:t.shape({label:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({label:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number,variant:t.oneOfType([t.oneOf(["filled","outlined"]),t.string])}),module.exports=C;
|
|
2
2
|
//# sourceMappingURL=Chip.cjs.map
|