Changes
This commit is contained in:
12
babel.config.cjs
Normal file
12
babel.config.cjs
Normal file
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
targets: {
|
||||
node: "current",
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
15
node_modules/.bin/detect-libc
generated
vendored
15
node_modules/.bin/detect-libc
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../detect-libc/bin/detect-libc.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../detect-libc/bin/detect-libc.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/detect-libc.cmd
generated
vendored
17
node_modules/.bin/detect-libc.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\detect-libc\bin\detect-libc.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/detect-libc.ps1
generated
vendored
18
node_modules/.bin/detect-libc.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../detect-libc/bin/detect-libc.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../detect-libc/bin/detect-libc.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/gitignore
generated
vendored
15
node_modules/.bin/gitignore
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../gitignore/bin/gitignore.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../gitignore/bin/gitignore.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/gitignore.cmd
generated
vendored
17
node_modules/.bin/gitignore.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\gitignore\bin\gitignore.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/gitignore.ps1
generated
vendored
18
node_modules/.bin/gitignore.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../gitignore/bin/gitignore.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../gitignore/bin/gitignore.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/is-ci
generated
vendored
15
node_modules/.bin/is-ci
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../is-ci/bin.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../is-ci/bin.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/is-ci.cmd
generated
vendored
17
node_modules/.bin/is-ci.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\is-ci\bin.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/is-ci.ps1
generated
vendored
18
node_modules/.bin/is-ci.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../is-ci/bin.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../is-ci/bin.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/loose-envify
generated
vendored
15
node_modules/.bin/loose-envify
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../loose-envify/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/loose-envify.cmd
generated
vendored
17
node_modules/.bin/loose-envify.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\loose-envify\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/loose-envify.ps1
generated
vendored
18
node_modules/.bin/loose-envify.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/mime
generated
vendored
15
node_modules/.bin/mime
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../mime/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../mime/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/mime.cmd
generated
vendored
17
node_modules/.bin/mime.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\mime\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/mime.ps1
generated
vendored
18
node_modules/.bin/mime.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../mime/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../mime/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/mkdirp
generated
vendored
15
node_modules/.bin/mkdirp
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/mkdirp.cmd
generated
vendored
17
node_modules/.bin/mkdirp.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/mkdirp.ps1
generated
vendored
18
node_modules/.bin/mkdirp.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/needle
generated
vendored
15
node_modules/.bin/needle
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../needle/bin/needle" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../needle/bin/needle" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/needle.cmd
generated
vendored
17
node_modules/.bin/needle.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\needle\bin\needle" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/needle.ps1
generated
vendored
18
node_modules/.bin/needle.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../needle/bin/needle" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../needle/bin/needle" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/node-pre-gyp
generated
vendored
15
node_modules/.bin/node-pre-gyp
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../node-pre-gyp/bin/node-pre-gyp" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../node-pre-gyp/bin/node-pre-gyp" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/node-pre-gyp.cmd
generated
vendored
17
node_modules/.bin/node-pre-gyp.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\node-pre-gyp\bin\node-pre-gyp" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/node-pre-gyp.ps1
generated
vendored
18
node_modules/.bin/node-pre-gyp.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../node-pre-gyp/bin/node-pre-gyp" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../node-pre-gyp/bin/node-pre-gyp" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/nodemon
generated
vendored
15
node_modules/.bin/nodemon
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../nodemon/bin/nodemon.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../nodemon/bin/nodemon.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/nodemon.cmd
generated
vendored
17
node_modules/.bin/nodemon.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\nodemon\bin\nodemon.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/nodemon.ps1
generated
vendored
18
node_modules/.bin/nodemon.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../nodemon/bin/nodemon.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../nodemon/bin/nodemon.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/nodetouch
generated
vendored
15
node_modules/.bin/nodetouch
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../touch/bin/nodetouch.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../touch/bin/nodetouch.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/nodetouch.cmd
generated
vendored
17
node_modules/.bin/nodetouch.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\touch\bin\nodetouch.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/nodetouch.ps1
generated
vendored
18
node_modules/.bin/nodetouch.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../touch/bin/nodetouch.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../touch/bin/nodetouch.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/nopt
generated
vendored
15
node_modules/.bin/nopt
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../nopt/bin/nopt.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/nopt.cmd
generated
vendored
17
node_modules/.bin/nopt.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\nopt\bin\nopt.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/nopt.ps1
generated
vendored
18
node_modules/.bin/nopt.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../nopt/bin/nopt.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../nopt/bin/nopt.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/rc
generated
vendored
15
node_modules/.bin/rc
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../rc/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../rc/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/rc.cmd
generated
vendored
17
node_modules/.bin/rc.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\rc\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/rc.ps1
generated
vendored
18
node_modules/.bin/rc.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../rc/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../rc/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/rimraf
generated
vendored
15
node_modules/.bin/rimraf
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../rimraf/bin.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../rimraf/bin.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/rimraf.cmd
generated
vendored
17
node_modules/.bin/rimraf.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\rimraf\bin.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/rimraf.ps1
generated
vendored
18
node_modules/.bin/rimraf.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../rimraf/bin.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
15
node_modules/.bin/semver
generated
vendored
15
node_modules/.bin/semver
generated
vendored
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../semver/bin/semver" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
17
node_modules/.bin/semver.cmd
generated
vendored
17
node_modules/.bin/semver.cmd
generated
vendored
@@ -1,17 +0,0 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\semver\bin\semver" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
||||
18
node_modules/.bin/semver.ps1
generated
vendored
18
node_modules/.bin/semver.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../semver/bin/semver" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../semver/bin/semver" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
||||
68
node_modules/@babel/runtime/package.json
generated
vendored
68
node_modules/@babel/runtime/package.json
generated
vendored
@@ -1,69 +1,23 @@
|
||||
{
|
||||
"_from": "@babel/runtime@^7.4.4",
|
||||
"_id": "@babel/runtime@7.10.5",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-otddXKhdNn7d0ptoFRHtMLa8LqDxLYwTjB4nYgM1yy5N6gU/MUf8zqyyLltCH3yAVitBzmwK4us+DD0l/MauAg==",
|
||||
"_location": "/@babel/runtime",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@babel/runtime@^7.4.4",
|
||||
"name": "@babel/runtime",
|
||||
"escapedName": "@babel%2fruntime",
|
||||
"scope": "@babel",
|
||||
"rawSpec": "^7.4.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^7.4.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@material-ui/core",
|
||||
"/@material-ui/styles",
|
||||
"/@material-ui/system",
|
||||
"/@material-ui/utils",
|
||||
"/css-vendor",
|
||||
"/dom-helpers",
|
||||
"/jss",
|
||||
"/jss-plugin-camel-case",
|
||||
"/jss-plugin-default-unit",
|
||||
"/jss-plugin-global",
|
||||
"/jss-plugin-nested",
|
||||
"/jss-plugin-props-sort",
|
||||
"/jss-plugin-rule-value-function",
|
||||
"/jss-plugin-vendor-prefixer",
|
||||
"/react-transition-group"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.10.5.tgz",
|
||||
"_shasum": "303d8bd440ecd5a491eae6117fd3367698674c5c",
|
||||
"_spec": "@babel/runtime@^7.4.4",
|
||||
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\@material-ui\\core",
|
||||
"author": {
|
||||
"name": "Sebastian McKenzie",
|
||||
"email": "sebmck@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"regenerator-runtime": "^0.13.4"
|
||||
},
|
||||
"deprecated": false,
|
||||
"version": "7.11.2",
|
||||
"description": "babel's modular runtime helpers",
|
||||
"devDependencies": {
|
||||
"@babel/helpers": "^7.10.4"
|
||||
},
|
||||
"gitHead": "f7964a9ac51356f7df6404a25b27ba1cffba1ba7",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"license": "MIT",
|
||||
"name": "@babel/runtime",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/babel/babel.git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-runtime"
|
||||
},
|
||||
"version": "7.10.5"
|
||||
"homepage": "https://babeljs.io/",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"dependencies": {
|
||||
"regenerator-runtime": "^0.13.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helpers": "^7.10.4"
|
||||
},
|
||||
"gitHead": "bc7a811fce3ceeea393229299c1cdb63858608e6"
|
||||
}
|
||||
|
||||
25
node_modules/@emotion/hash/CHANGELOG.md
generated
vendored
25
node_modules/@emotion/hash/CHANGELOG.md
generated
vendored
@@ -1,25 +0,0 @@
|
||||
# @emotion/hash
|
||||
|
||||
## 0.8.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [`446e756`](https://github.com/emotion-js/emotion/commit/446e75661c4aa01e51d1466472a212940c19cd82) [#1775](https://github.com/emotion-js/emotion/pull/1775) Thanks [@kripod](https://github.com/kripod)! - Optimized hashing for performance while also reducing the size of the function.
|
||||
|
||||
## 0.7.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file
|
||||
|
||||
## 0.7.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [c81c0033](https://github.com/emotion-js/emotion/commit/c81c0033c490210077da0e9c3f9fa1a22fcd9c96) [#1503](https://github.com/emotion-js/emotion/pull/1503) Thanks [@Andarist](https://github.com/Andarist)! - Add TS types to util packages - hash, memoize & weak-memoize
|
||||
|
||||
## 0.7.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool
|
||||
21
node_modules/@emotion/hash/LICENSE
generated
vendored
21
node_modules/@emotion/hash/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Emotion team and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
11
node_modules/@emotion/hash/README.md
generated
vendored
11
node_modules/@emotion/hash/README.md
generated
vendored
@@ -1,11 +0,0 @@
|
||||
# @emotion/hash
|
||||
|
||||
> A MurmurHash2 implementation
|
||||
|
||||
```jsx
|
||||
import hash from '@emotion/hash'
|
||||
|
||||
hash('some-string') // 12fj1d
|
||||
```
|
||||
|
||||
The source of this is from https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js.
|
||||
59
node_modules/@emotion/hash/dist/hash.browser.cjs.js
generated
vendored
59
node_modules/@emotion/hash/dist/hash.browser.cjs.js
generated
vendored
@@ -1,59 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
function murmur2(str) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
// Initialize the hash
|
||||
var h = 0; // Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
||||
k ^=
|
||||
/* k >>> r: */
|
||||
k >>> 24;
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Handle the last few bytes of the input array
|
||||
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
return ((h ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
exports.default = murmur2;
|
||||
55
node_modules/@emotion/hash/dist/hash.browser.esm.js
generated
vendored
55
node_modules/@emotion/hash/dist/hash.browser.esm.js
generated
vendored
@@ -1,55 +0,0 @@
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
function murmur2(str) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
// Initialize the hash
|
||||
var h = 0; // Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
||||
k ^=
|
||||
/* k >>> r: */
|
||||
k >>> 24;
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Handle the last few bytes of the input array
|
||||
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
return ((h ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
export default murmur2;
|
||||
59
node_modules/@emotion/hash/dist/hash.cjs.dev.js
generated
vendored
59
node_modules/@emotion/hash/dist/hash.cjs.dev.js
generated
vendored
@@ -1,59 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
function murmur2(str) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
// Initialize the hash
|
||||
var h = 0; // Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
||||
k ^=
|
||||
/* k >>> r: */
|
||||
k >>> 24;
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Handle the last few bytes of the input array
|
||||
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
return ((h ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
exports.default = murmur2;
|
||||
7
node_modules/@emotion/hash/dist/hash.cjs.js
generated
vendored
7
node_modules/@emotion/hash/dist/hash.cjs.js
generated
vendored
@@ -1,7 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
module.exports = require("./hash.cjs.prod.js");
|
||||
} else {
|
||||
module.exports = require("./hash.cjs.dev.js");
|
||||
}
|
||||
3
node_modules/@emotion/hash/dist/hash.cjs.js.flow
generated
vendored
3
node_modules/@emotion/hash/dist/hash.cjs.js.flow
generated
vendored
@@ -1,3 +0,0 @@
|
||||
// @flow
|
||||
export * from "../src/index.js";
|
||||
export { default } from "../src/index.js";
|
||||
21
node_modules/@emotion/hash/dist/hash.cjs.prod.js
generated
vendored
21
node_modules/@emotion/hash/dist/hash.cjs.prod.js
generated
vendored
@@ -1,21 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function murmur2(str) {
|
||||
for (var k, h = 0, i = 0, len = str.length; len >= 4; ++i, len -= 4) k = 1540483477 * (65535 & (k = 255 & str.charCodeAt(i) | (255 & str.charCodeAt(++i)) << 8 | (255 & str.charCodeAt(++i)) << 16 | (255 & str.charCodeAt(++i)) << 24)) + (59797 * (k >>> 16) << 16),
|
||||
h = 1540483477 * (65535 & (k ^= k >>> 24)) + (59797 * (k >>> 16) << 16) ^ 1540483477 * (65535 & h) + (59797 * (h >>> 16) << 16);
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (255 & str.charCodeAt(i + 2)) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (255 & str.charCodeAt(i + 1)) << 8;
|
||||
|
||||
case 1:
|
||||
h = 1540483477 * (65535 & (h ^= 255 & str.charCodeAt(i))) + (59797 * (h >>> 16) << 16);
|
||||
}
|
||||
return (((h = 1540483477 * (65535 & (h ^= h >>> 13)) + (59797 * (h >>> 16) << 16)) ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
}), exports.default = murmur2;
|
||||
55
node_modules/@emotion/hash/dist/hash.esm.js
generated
vendored
55
node_modules/@emotion/hash/dist/hash.esm.js
generated
vendored
@@ -1,55 +0,0 @@
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
function murmur2(str) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
// Initialize the hash
|
||||
var h = 0; // Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
|
||||
k ^=
|
||||
/* k >>> r: */
|
||||
k >>> 24;
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Handle the last few bytes of the input array
|
||||
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
} // Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
|
||||
return ((h ^ h >>> 15) >>> 0).toString(36);
|
||||
}
|
||||
|
||||
export default murmur2;
|
||||
57
node_modules/@emotion/hash/package.json
generated
vendored
57
node_modules/@emotion/hash/package.json
generated
vendored
@@ -1,57 +0,0 @@
|
||||
{
|
||||
"_from": "@emotion/hash@^0.8.0",
|
||||
"_id": "@emotion/hash@0.8.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==",
|
||||
"_location": "/@emotion/hash",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@emotion/hash@^0.8.0",
|
||||
"name": "@emotion/hash",
|
||||
"escapedName": "@emotion%2fhash",
|
||||
"scope": "@emotion",
|
||||
"rawSpec": "^0.8.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.8.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@material-ui/styles"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz",
|
||||
"_shasum": "bbbff68978fefdbe68ccb533bc8cbe1d1afb5413",
|
||||
"_spec": "@emotion/hash@^0.8.0",
|
||||
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\@material-ui\\styles",
|
||||
"browser": {
|
||||
"./dist/hash.cjs.js": "./dist/hash.browser.cjs.js",
|
||||
"./dist/hash.esm.js": "./dist/hash.browser.esm.js"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "A MurmurHash2 implementation",
|
||||
"devDependencies": {
|
||||
"dtslint": "^0.3.0"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"dist",
|
||||
"types"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/hash.cjs.js",
|
||||
"module": "dist/hash.esm.js",
|
||||
"name": "@emotion/hash",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/emotion-js/emotion/tree/master/packages/hash"
|
||||
},
|
||||
"scripts": {
|
||||
"test:typescript": "dtslint types"
|
||||
},
|
||||
"types": "types/index.d.ts",
|
||||
"version": "0.8.0"
|
||||
}
|
||||
64
node_modules/@emotion/hash/src/index.js
generated
vendored
64
node_modules/@emotion/hash/src/index.js
generated
vendored
@@ -1,64 +0,0 @@
|
||||
// @flow
|
||||
/* eslint-disable */
|
||||
// Inspired by https://github.com/garycourt/murmurhash-js
|
||||
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
|
||||
|
||||
export default function murmur2(str: string) {
|
||||
// 'm' and 'r' are mixing constants generated offline.
|
||||
// They're not really 'magic', they just happen to work well.
|
||||
|
||||
// const m = 0x5bd1e995;
|
||||
// const r = 24;
|
||||
|
||||
// Initialize the hash
|
||||
|
||||
var h = 0;
|
||||
|
||||
// Mix 4 bytes at a time into the hash
|
||||
|
||||
var k,
|
||||
i = 0,
|
||||
len = str.length;
|
||||
for (; len >= 4; ++i, len -= 4) {
|
||||
k =
|
||||
(str.charCodeAt(i) & 0xff) |
|
||||
((str.charCodeAt(++i) & 0xff) << 8) |
|
||||
((str.charCodeAt(++i) & 0xff) << 16) |
|
||||
((str.charCodeAt(++i) & 0xff) << 24);
|
||||
|
||||
k =
|
||||
/* Math.imul(k, m): */
|
||||
(k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0xe995) << 16);
|
||||
k ^= /* k >>> r: */ k >>> 24;
|
||||
|
||||
h =
|
||||
/* Math.imul(k, m): */
|
||||
((k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0xe995) << 16)) ^
|
||||
/* Math.imul(h, m): */
|
||||
((h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0xe995) << 16));
|
||||
}
|
||||
|
||||
// Handle the last few bytes of the input array
|
||||
|
||||
switch (len) {
|
||||
case 3:
|
||||
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
||||
case 2:
|
||||
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
||||
case 1:
|
||||
h ^= str.charCodeAt(i) & 0xff;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0xe995) << 16);
|
||||
}
|
||||
|
||||
// Do a few final mixes of the hash to ensure the last few
|
||||
// bytes are well-incorporated.
|
||||
|
||||
h ^= h >>> 13;
|
||||
h =
|
||||
/* Math.imul(h, m): */
|
||||
(h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0xe995) << 16);
|
||||
|
||||
return ((h ^ (h >>> 15)) >>> 0).toString(36);
|
||||
}
|
||||
1
node_modules/@emotion/hash/types/index.d.ts
generated
vendored
1
node_modules/@emotion/hash/types/index.d.ts
generated
vendored
@@ -1 +0,0 @@
|
||||
export default function murmurhash2_32_gc(str: string): string
|
||||
15
node_modules/@emotion/hash/types/tests.ts
generated
vendored
15
node_modules/@emotion/hash/types/tests.ts
generated
vendored
@@ -1,15 +0,0 @@
|
||||
import hash from '@emotion/hash'
|
||||
|
||||
// $ExpectType string
|
||||
hash('color: hotpink;')
|
||||
|
||||
// $ExpectError
|
||||
hash()
|
||||
// $ExpectError
|
||||
const hashed2: number = hash('color: hotpink;')
|
||||
// $ExpectError
|
||||
hash(42)
|
||||
// $ExpectError
|
||||
hash({})
|
||||
// $ExpectError
|
||||
hash('color: hotpink;', 'background-color: #fff;')
|
||||
26
node_modules/@emotion/hash/types/tsconfig.json
generated
vendored
26
node_modules/@emotion/hash/types/tsconfig.json
generated
vendored
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "../",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"module": "commonjs",
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"target": "es5",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": []
|
||||
},
|
||||
"include": [
|
||||
"./*.ts",
|
||||
"./*.tsx"
|
||||
]
|
||||
}
|
||||
25
node_modules/@emotion/hash/types/tslint.json
generated
vendored
25
node_modules/@emotion/hash/types/tslint.json
generated
vendored
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dtslint.json",
|
||||
"rules": {
|
||||
"array-type": [
|
||||
true,
|
||||
"generic"
|
||||
],
|
||||
"import-spacing": false,
|
||||
"semicolon": false,
|
||||
"whitespace": [
|
||||
true,
|
||||
"check-branch",
|
||||
"check-decl",
|
||||
"check-operator",
|
||||
"check-module",
|
||||
"check-rest-spread",
|
||||
"check-type",
|
||||
"check-typecast",
|
||||
"check-type-operator",
|
||||
"check-preblock"
|
||||
],
|
||||
|
||||
"no-unnecessary-generics": false
|
||||
}
|
||||
}
|
||||
57
node_modules/@material-ui/core/Accordion/Accordion.d.ts
generated
vendored
57
node_modules/@material-ui/core/Accordion/Accordion.d.ts
generated
vendored
@@ -1,57 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
import { TransitionProps } from '../transitions/transition';
|
||||
import { PaperProps } from '../Paper';
|
||||
|
||||
export interface AccordionProps extends StandardProps<PaperProps, AccordionClassKey, 'onChange'> {
|
||||
/**
|
||||
* The content of the accordion.
|
||||
*/
|
||||
children: NonNullable<React.ReactNode>;
|
||||
/**
|
||||
* If `true`, expands the accordion by default.
|
||||
*/
|
||||
defaultExpanded?: boolean;
|
||||
/**
|
||||
* If `true`, the accordion will be displayed in a disabled state.
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* If `true`, expands the accordion, otherwise collapse it.
|
||||
* Setting this prop enables control over the accordion.
|
||||
*/
|
||||
expanded?: boolean;
|
||||
/**
|
||||
* Callback fired when the expand/collapse state is changed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {boolean} expanded The `expanded` state of the accordion.
|
||||
*/
|
||||
onChange?: (event: React.ChangeEvent<{}>, expanded: boolean) => void;
|
||||
/**
|
||||
* The component used for the collapse effect.
|
||||
* [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
*/
|
||||
TransitionComponent?: React.ComponentType<
|
||||
TransitionProps & { children?: React.ReactElement<any, any> }
|
||||
>;
|
||||
/**
|
||||
* Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.
|
||||
*/
|
||||
TransitionProps?: TransitionProps;
|
||||
}
|
||||
|
||||
export type AccordionClassKey = 'root' | 'rounded' | 'expanded' | 'disabled';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Accordion API](https://material-ui.com/api/accordion/)
|
||||
* - inherits [Paper API](https://material-ui.com/api/paper/)
|
||||
*/
|
||||
export default function Accordion(props: AccordionProps): JSX.Element;
|
||||
255
node_modules/@material-ui/core/Accordion/Accordion.js
generated
vendored
255
node_modules/@material-ui/core/Accordion/Accordion.js
generated
vendored
@@ -1,255 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
|
||||
|
||||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _reactIs = require("react-is");
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _utils = require("@material-ui/utils");
|
||||
|
||||
var _Collapse = _interopRequireDefault(require("../Collapse"));
|
||||
|
||||
var _Paper = _interopRequireDefault(require("../Paper"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _AccordionContext = _interopRequireDefault(require("./AccordionContext"));
|
||||
|
||||
var _useControlled3 = _interopRequireDefault(require("../utils/useControlled"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
var transition = {
|
||||
duration: theme.transitions.duration.shortest
|
||||
};
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
position: 'relative',
|
||||
transition: theme.transitions.create(['margin'], transition),
|
||||
'&:before': {
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
top: -1,
|
||||
right: 0,
|
||||
height: 1,
|
||||
content: '""',
|
||||
opacity: 1,
|
||||
backgroundColor: theme.palette.divider,
|
||||
transition: theme.transitions.create(['opacity', 'background-color'], transition)
|
||||
},
|
||||
'&:first-child': {
|
||||
'&:before': {
|
||||
display: 'none'
|
||||
}
|
||||
},
|
||||
'&$expanded': {
|
||||
margin: '16px 0',
|
||||
'&:first-child': {
|
||||
marginTop: 0
|
||||
},
|
||||
'&:last-child': {
|
||||
marginBottom: 0
|
||||
},
|
||||
'&:before': {
|
||||
opacity: 0
|
||||
}
|
||||
},
|
||||
'&$expanded + &': {
|
||||
'&:before': {
|
||||
display: 'none'
|
||||
}
|
||||
},
|
||||
'&$disabled': {
|
||||
backgroundColor: theme.palette.action.disabledBackground
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `square={false}`. */
|
||||
rounded: {
|
||||
borderRadius: 0,
|
||||
'&:first-child': {
|
||||
borderTopLeftRadius: theme.shape.borderRadius,
|
||||
borderTopRightRadius: theme.shape.borderRadius
|
||||
},
|
||||
'&:last-child': {
|
||||
borderBottomLeftRadius: theme.shape.borderRadius,
|
||||
borderBottomRightRadius: theme.shape.borderRadius,
|
||||
// Fix a rendering issue on Edge
|
||||
'@supports (-ms-ime-align: auto)': {
|
||||
borderBottomLeftRadius: 0,
|
||||
borderBottomRightRadius: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `expanded={true}`. */
|
||||
expanded: {},
|
||||
|
||||
/* Styles applied to the root element if `disabled={true}`. */
|
||||
disabled: {}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var Accordion = /*#__PURE__*/React.forwardRef(function Accordion(props, ref) {
|
||||
var childrenProp = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$defaultExpande = props.defaultExpanded,
|
||||
defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande,
|
||||
_props$disabled = props.disabled,
|
||||
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
||||
expandedProp = props.expanded,
|
||||
onChange = props.onChange,
|
||||
_props$square = props.square,
|
||||
square = _props$square === void 0 ? false : _props$square,
|
||||
_props$TransitionComp = props.TransitionComponent,
|
||||
TransitionComponent = _props$TransitionComp === void 0 ? _Collapse.default : _props$TransitionComp,
|
||||
TransitionProps = props.TransitionProps,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "defaultExpanded", "disabled", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"]);
|
||||
|
||||
var _useControlled = (0, _useControlled3.default)({
|
||||
controlled: expandedProp,
|
||||
default: defaultExpanded,
|
||||
name: 'Accordion',
|
||||
state: 'expanded'
|
||||
}),
|
||||
_useControlled2 = (0, _slicedToArray2.default)(_useControlled, 2),
|
||||
expanded = _useControlled2[0],
|
||||
setExpandedState = _useControlled2[1];
|
||||
|
||||
var handleChange = React.useCallback(function (event) {
|
||||
setExpandedState(!expanded);
|
||||
|
||||
if (onChange) {
|
||||
onChange(event, !expanded);
|
||||
}
|
||||
}, [expanded, onChange, setExpandedState]);
|
||||
|
||||
var _React$Children$toArr = React.Children.toArray(childrenProp),
|
||||
_React$Children$toArr2 = (0, _toArray2.default)(_React$Children$toArr),
|
||||
summary = _React$Children$toArr2[0],
|
||||
children = _React$Children$toArr2.slice(1);
|
||||
|
||||
var contextValue = React.useMemo(function () {
|
||||
return {
|
||||
expanded: expanded,
|
||||
disabled: disabled,
|
||||
toggle: handleChange
|
||||
};
|
||||
}, [expanded, disabled, handleChange]);
|
||||
return /*#__PURE__*/React.createElement(_Paper.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, expanded && classes.expanded, disabled && classes.disabled, !square && classes.rounded),
|
||||
ref: ref,
|
||||
square: square
|
||||
}, other), /*#__PURE__*/React.createElement(_AccordionContext.default.Provider, {
|
||||
value: contextValue
|
||||
}, summary), /*#__PURE__*/React.createElement(TransitionComponent, (0, _extends2.default)({
|
||||
in: expanded,
|
||||
timeout: "auto"
|
||||
}, TransitionProps), /*#__PURE__*/React.createElement("div", {
|
||||
"aria-labelledby": summary.props.id,
|
||||
id: summary.props['aria-controls'],
|
||||
role: "region"
|
||||
}, children)));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Accordion.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the accordion.
|
||||
*/
|
||||
children: (0, _utils.chainPropTypes)(_propTypes.default.node.isRequired, function (props) {
|
||||
var summary = React.Children.toArray(props.children)[0];
|
||||
|
||||
if ((0, _reactIs.isFragment)(summary)) {
|
||||
return new Error("Material-UI: The Accordion doesn't accept a Fragment as a child. " + 'Consider providing an array instead.');
|
||||
}
|
||||
|
||||
if (! /*#__PURE__*/React.isValidElement(summary)) {
|
||||
return new Error('Material-UI: Expected the first child of Accordion to be a valid element.');
|
||||
}
|
||||
|
||||
return null;
|
||||
}),
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, expands the accordion by default.
|
||||
*/
|
||||
defaultExpanded: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the accordion will be displayed in a disabled state.
|
||||
*/
|
||||
disabled: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, expands the accordion, otherwise collapse it.
|
||||
* Setting this prop enables control over the accordion.
|
||||
*/
|
||||
expanded: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* Callback fired when the expand/collapse state is changed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {boolean} expanded The `expanded` state of the accordion.
|
||||
*/
|
||||
onChange: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* If `true`, rounded corners are disabled.
|
||||
*/
|
||||
square: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The component used for the collapse effect.
|
||||
* [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
*/
|
||||
TransitionComponent: _propTypes.default.elementType,
|
||||
|
||||
/**
|
||||
* Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.
|
||||
*/
|
||||
TransitionProps: _propTypes.default.object
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordion'
|
||||
})(Accordion);
|
||||
|
||||
exports.default = _default;
|
||||
23
node_modules/@material-ui/core/Accordion/AccordionContext.js
generated
vendored
23
node_modules/@material-ui/core/Accordion/AccordionContext.js
generated
vendored
@@ -1,23 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
|
||||
*/
|
||||
var AccordionContext = /*#__PURE__*/React.createContext({});
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
AccordionContext.displayName = 'AccordionContext';
|
||||
}
|
||||
|
||||
var _default = AccordionContext;
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/Accordion/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/Accordion/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './Accordion';
|
||||
export * from './Accordion';
|
||||
15
node_modules/@material-ui/core/Accordion/index.js
generated
vendored
15
node_modules/@material-ui/core/Accordion/index.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Accordion.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Accordion = _interopRequireDefault(require("./Accordion"));
|
||||
5
node_modules/@material-ui/core/Accordion/package.json
generated
vendored
5
node_modules/@material-ui/core/Accordion/package.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Accordion/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
28
node_modules/@material-ui/core/AccordionActions/AccordionActions.d.ts
generated
vendored
28
node_modules/@material-ui/core/AccordionActions/AccordionActions.d.ts
generated
vendored
@@ -1,28 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface AccordionActionsProps
|
||||
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, AccordionActionsClassKey> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
*/
|
||||
disableSpacing?: boolean;
|
||||
}
|
||||
|
||||
export type AccordionActionsClassKey = 'root' | 'spacing';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AccordionActions API](https://material-ui.com/api/accordion-actions/)
|
||||
*/
|
||||
export default function AccordionActions(props: AccordionActionsProps): JSX.Element;
|
||||
84
node_modules/@material-ui/core/AccordionActions/AccordionActions.js
generated
vendored
84
node_modules/@material-ui/core/AccordionActions/AccordionActions.js
generated
vendored
@@ -1,84 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: 8,
|
||||
justifyContent: 'flex-end'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `disableSpacing={false}`. */
|
||||
spacing: {
|
||||
'& > :not(:first-child)': {
|
||||
marginLeft: 8
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
var AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$disableSpacing = props.disableSpacing,
|
||||
disableSpacing = _props$disableSpacing === void 0 ? false : _props$disableSpacing,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "disableSpacing"]);
|
||||
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className, !disableSpacing && classes.spacing),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionActions.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
*/
|
||||
disableSpacing: _propTypes.default.bool
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordionActions'
|
||||
})(AccordionActions);
|
||||
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/AccordionActions/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/AccordionActions/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './AccordionActions';
|
||||
export * from './AccordionActions';
|
||||
15
node_modules/@material-ui/core/AccordionActions/index.js
generated
vendored
15
node_modules/@material-ui/core/AccordionActions/index.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AccordionActions.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AccordionActions = _interopRequireDefault(require("./AccordionActions"));
|
||||
5
node_modules/@material-ui/core/AccordionActions/package.json
generated
vendored
5
node_modules/@material-ui/core/AccordionActions/package.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AccordionActions/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
24
node_modules/@material-ui/core/AccordionDetails/AccordionDetails.d.ts
generated
vendored
24
node_modules/@material-ui/core/AccordionDetails/AccordionDetails.d.ts
generated
vendored
@@ -1,24 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface AccordionDetailsProps
|
||||
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, AccordionDetailsClassKey> {
|
||||
/**
|
||||
* The content of the accordion details.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export type AccordionDetailsClassKey = 'root';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AccordionDetails API](https://material-ui.com/api/accordion-details/)
|
||||
*/
|
||||
export default function AccordionDetails(props: AccordionDetailsProps): JSX.Element;
|
||||
71
node_modules/@material-ui/core/AccordionDetails/AccordionDetails.js
generated
vendored
71
node_modules/@material-ui/core/AccordionDetails/AccordionDetails.js
generated
vendored
@@ -1,71 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
padding: theme.spacing(1, 2, 2)
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className"]);
|
||||
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the accordion details.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordionDetails'
|
||||
})(AccordionDetails);
|
||||
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/AccordionDetails/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/AccordionDetails/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './AccordionDetails';
|
||||
export * from './AccordionDetails';
|
||||
15
node_modules/@material-ui/core/AccordionDetails/index.js
generated
vendored
15
node_modules/@material-ui/core/AccordionDetails/index.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AccordionDetails.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AccordionDetails = _interopRequireDefault(require("./AccordionDetails"));
|
||||
5
node_modules/@material-ui/core/AccordionDetails/package.json
generated
vendored
5
node_modules/@material-ui/core/AccordionDetails/package.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AccordionDetails/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
54
node_modules/@material-ui/core/AccordionSummary/AccordionSummary.d.ts
generated
vendored
54
node_modules/@material-ui/core/AccordionSummary/AccordionSummary.d.ts
generated
vendored
@@ -1,54 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
||||
import { IconButtonProps } from '../IconButton';
|
||||
import { OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export type AccordionSummaryTypeMap<
|
||||
P = {},
|
||||
D extends React.ElementType = 'div'
|
||||
> = ExtendButtonBaseTypeMap<{
|
||||
props: P & {
|
||||
/**
|
||||
* The content of the accordion summary.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The icon to display as the expand indicator.
|
||||
*/
|
||||
expandIcon?: React.ReactNode;
|
||||
/**
|
||||
* Props applied to the `IconButton` element wrapping the expand icon.
|
||||
*/
|
||||
IconButtonProps?: Partial<IconButtonProps>;
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: AccordionSummaryClassKey;
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Accordion](https://material-ui.com/components/accordion/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AccordionSummary API](https://material-ui.com/api/accordion-summary/)
|
||||
* - inherits [ButtonBase API](https://material-ui.com/api/button-base/)
|
||||
*/
|
||||
declare const AccordionSummary: ExtendButtonBase<AccordionSummaryTypeMap>;
|
||||
|
||||
export type AccordionSummaryClassKey =
|
||||
| 'root'
|
||||
| 'expanded'
|
||||
| 'focused'
|
||||
| 'disabled'
|
||||
| 'content'
|
||||
| 'expandIcon';
|
||||
|
||||
export type AccordionSummaryProps<
|
||||
D extends React.ElementType = AccordionSummaryTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<AccordionSummaryTypeMap<P, D>, D>;
|
||||
|
||||
export default AccordionSummary;
|
||||
215
node_modules/@material-ui/core/AccordionSummary/AccordionSummary.js
generated
vendored
215
node_modules/@material-ui/core/AccordionSummary/AccordionSummary.js
generated
vendored
@@ -1,215 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
||||
|
||||
var _IconButton = _interopRequireDefault(require("../IconButton"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _AccordionContext = _interopRequireDefault(require("../Accordion/AccordionContext"));
|
||||
|
||||
/* eslint-disable jsx-a11y/aria-role */
|
||||
var styles = function styles(theme) {
|
||||
var transition = {
|
||||
duration: theme.transitions.duration.shortest
|
||||
};
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
minHeight: 8 * 6,
|
||||
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
||||
padding: theme.spacing(0, 2),
|
||||
'&:hover:not($disabled)': {
|
||||
cursor: 'pointer'
|
||||
},
|
||||
'&$expanded': {
|
||||
minHeight: 64
|
||||
},
|
||||
'&$focused': {
|
||||
backgroundColor: theme.palette.action.focus
|
||||
},
|
||||
'&$disabled': {
|
||||
opacity: theme.palette.action.disabledOpacity
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
|
||||
expanded: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `focused={true}`. */
|
||||
focused: {},
|
||||
|
||||
/* Pseudo-class applied to the root element if `disabled={true}`. */
|
||||
disabled: {},
|
||||
|
||||
/* Styles applied to the children wrapper element. */
|
||||
content: {
|
||||
display: 'flex',
|
||||
flexGrow: 1,
|
||||
transition: theme.transitions.create(['margin'], transition),
|
||||
margin: '12px 0',
|
||||
'&$expanded': {
|
||||
margin: '20px 0'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the `IconButton` component when `expandIcon` is supplied. */
|
||||
expandIcon: {
|
||||
transform: 'rotate(0deg)',
|
||||
transition: theme.transitions.create('transform', transition),
|
||||
'&:hover': {
|
||||
// Disable the hover effect for the IconButton,
|
||||
// because a hover effect should apply to the entire Expand button and
|
||||
// not only to the IconButton.
|
||||
backgroundColor: 'transparent'
|
||||
},
|
||||
'&$expanded': {
|
||||
transform: 'rotate(180deg)'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
expandIcon = props.expandIcon,
|
||||
IconButtonProps = props.IconButtonProps,
|
||||
onBlur = props.onBlur,
|
||||
onClick = props.onClick,
|
||||
onFocusVisible = props.onFocusVisible,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "expandIcon", "IconButtonProps", "onBlur", "onClick", "onFocusVisible"]);
|
||||
|
||||
var _React$useState = React.useState(false),
|
||||
focusedState = _React$useState[0],
|
||||
setFocusedState = _React$useState[1];
|
||||
|
||||
var handleFocusVisible = function handleFocusVisible(event) {
|
||||
setFocusedState(true);
|
||||
|
||||
if (onFocusVisible) {
|
||||
onFocusVisible(event);
|
||||
}
|
||||
};
|
||||
|
||||
var handleBlur = function handleBlur(event) {
|
||||
setFocusedState(false);
|
||||
|
||||
if (onBlur) {
|
||||
onBlur(event);
|
||||
}
|
||||
};
|
||||
|
||||
var _React$useContext = React.useContext(_AccordionContext.default),
|
||||
_React$useContext$dis = _React$useContext.disabled,
|
||||
disabled = _React$useContext$dis === void 0 ? false : _React$useContext$dis,
|
||||
expanded = _React$useContext.expanded,
|
||||
toggle = _React$useContext.toggle;
|
||||
|
||||
var handleChange = function handleChange(event) {
|
||||
if (toggle) {
|
||||
toggle(event);
|
||||
}
|
||||
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
};
|
||||
|
||||
return /*#__PURE__*/React.createElement(_ButtonBase.default, (0, _extends2.default)({
|
||||
focusRipple: false,
|
||||
disableRipple: true,
|
||||
disabled: disabled,
|
||||
component: "div",
|
||||
"aria-expanded": expanded,
|
||||
className: (0, _clsx.default)(classes.root, className, disabled && classes.disabled, expanded && classes.expanded, focusedState && classes.focused),
|
||||
onFocusVisible: handleFocusVisible,
|
||||
onBlur: handleBlur,
|
||||
onClick: handleChange,
|
||||
ref: ref
|
||||
}, other), /*#__PURE__*/React.createElement("div", {
|
||||
className: (0, _clsx.default)(classes.content, expanded && classes.expanded)
|
||||
}, children), expandIcon && /*#__PURE__*/React.createElement(_IconButton.default, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.expandIcon, expanded && classes.expanded),
|
||||
edge: "end",
|
||||
component: "div",
|
||||
tabIndex: null,
|
||||
role: null,
|
||||
"aria-hidden": true
|
||||
}, IconButtonProps), expandIcon));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the accordion summary.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The icon to display as the expand indicator.
|
||||
*/
|
||||
expandIcon: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Props applied to the `IconButton` element wrapping the expand icon.
|
||||
*/
|
||||
IconButtonProps: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onBlur: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: _propTypes.default.func,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onFocusVisible: _propTypes.default.func
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAccordionSummary'
|
||||
})(AccordionSummary);
|
||||
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/AccordionSummary/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/AccordionSummary/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './AccordionSummary';
|
||||
export * from './AccordionSummary';
|
||||
15
node_modules/@material-ui/core/AccordionSummary/index.js
generated
vendored
15
node_modules/@material-ui/core/AccordionSummary/index.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AccordionSummary.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AccordionSummary = _interopRequireDefault(require("./AccordionSummary"));
|
||||
5
node_modules/@material-ui/core/AccordionSummary/package.json
generated
vendored
5
node_modules/@material-ui/core/AccordionSummary/package.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AccordionSummary/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
39
node_modules/@material-ui/core/AppBar/AppBar.d.ts
generated
vendored
39
node_modules/@material-ui/core/AppBar/AppBar.d.ts
generated
vendored
@@ -1,39 +0,0 @@
|
||||
import { PropTypes, StandardProps } from '..';
|
||||
import { PaperProps } from '../Paper';
|
||||
|
||||
export interface AppBarProps extends StandardProps<PaperProps, AppBarClassKey> {
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color?: PropTypes.Color | 'transparent';
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
*/
|
||||
position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
|
||||
}
|
||||
|
||||
export type AppBarClassKey =
|
||||
| 'root'
|
||||
| 'positionFixed'
|
||||
| 'positionAbsolute'
|
||||
| 'positionSticky'
|
||||
| 'positionStatic'
|
||||
| 'positionRelative'
|
||||
| 'colorDefault'
|
||||
| 'colorPrimary'
|
||||
| 'colorSecondary';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [App Bar](https://material-ui.com/components/app-bar/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AppBar API](https://material-ui.com/api/app-bar/)
|
||||
* - inherits [Paper API](https://material-ui.com/api/paper/)
|
||||
*/
|
||||
export default function AppBar(props: AppBarProps): JSX.Element;
|
||||
168
node_modules/@material-ui/core/AppBar/AppBar.js
generated
vendored
168
node_modules/@material-ui/core/AppBar/AppBar.js
generated
vendored
@@ -1,168 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
|
||||
var _Paper = _interopRequireDefault(require("../Paper"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
var backgroundColorDefault = theme.palette.type === 'light' ? theme.palette.grey[100] : theme.palette.grey[900];
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
width: '100%',
|
||||
boxSizing: 'border-box',
|
||||
// Prevent padding issue with the Modal and fixed positioned AppBar.
|
||||
zIndex: theme.zIndex.appBar,
|
||||
flexShrink: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="fixed"`. */
|
||||
positionFixed: {
|
||||
position: 'fixed',
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0,
|
||||
'@media print': {
|
||||
// Prevent the app bar to be visible on each printed page.
|
||||
position: 'absolute'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="absolute"`. */
|
||||
positionAbsolute: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="sticky"`. */
|
||||
positionSticky: {
|
||||
// ⚠️ sticky is not supported by IE 11.
|
||||
position: 'sticky',
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="static"`. */
|
||||
positionStatic: {
|
||||
position: 'static'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `position="relative"`. */
|
||||
positionRelative: {
|
||||
position: 'relative'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="default"`. */
|
||||
colorDefault: {
|
||||
backgroundColor: backgroundColorDefault,
|
||||
color: theme.palette.getContrastText(backgroundColorDefault)
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
color: theme.palette.primary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="secondary"`. */
|
||||
colorSecondary: {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
color: theme.palette.secondary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="inherit"`. */
|
||||
colorInherit: {
|
||||
color: 'inherit'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="transparent"`. */
|
||||
colorTransparent: {
|
||||
backgroundColor: 'transparent',
|
||||
color: 'inherit'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var AppBar = /*#__PURE__*/React.forwardRef(function AppBar(props, ref) {
|
||||
var classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'primary' : _props$color,
|
||||
_props$position = props.position,
|
||||
position = _props$position === void 0 ? 'fixed' : _props$position,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["classes", "className", "color", "position"]);
|
||||
return /*#__PURE__*/React.createElement(_Paper.default, (0, _extends2.default)({
|
||||
square: true,
|
||||
component: "header",
|
||||
elevation: 4,
|
||||
className: (0, _clsx.default)(classes.root, classes["position".concat((0, _capitalize.default)(position))], classes["color".concat((0, _capitalize.default)(color))], className, position === 'fixed' && 'mui-fixed'),
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AppBar.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color: _propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']),
|
||||
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
*/
|
||||
position: _propTypes.default.oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAppBar'
|
||||
})(AppBar);
|
||||
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/AppBar/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/AppBar/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './AppBar';
|
||||
export * from './AppBar';
|
||||
15
node_modules/@material-ui/core/AppBar/index.js
generated
vendored
15
node_modules/@material-ui/core/AppBar/index.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _AppBar.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _AppBar = _interopRequireDefault(require("./AppBar"));
|
||||
5
node_modules/@material-ui/core/AppBar/package.json
generated
vendored
5
node_modules/@material-ui/core/AppBar/package.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/AppBar/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
69
node_modules/@material-ui/core/Avatar/Avatar.d.ts
generated
vendored
69
node_modules/@material-ui/core/Avatar/Avatar.d.ts
generated
vendored
@@ -1,69 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface AvatarTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
||||
props: P & {
|
||||
/**
|
||||
* Used in combination with `src` or `srcSet` to
|
||||
* provide an alt attribute for the rendered `img` element.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
||||
* This can be an element, or just a string.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Attributes applied to the `img` element if the component is used to display an image.
|
||||
* It can be used to listen for the loading error event.
|
||||
*/
|
||||
imgProps?: React.ImgHTMLAttributes<HTMLImageElement>;
|
||||
/**
|
||||
* The `sizes` attribute for the `img` element.
|
||||
*/
|
||||
sizes?: string;
|
||||
/**
|
||||
* The `src` attribute for the `img` element.
|
||||
*/
|
||||
src?: string;
|
||||
/**
|
||||
* The `srcSet` attribute for the `img` element.
|
||||
* Use this attribute for responsive image display.
|
||||
*/
|
||||
srcSet?: string;
|
||||
/**
|
||||
* The shape of the avatar.
|
||||
*/
|
||||
variant?: 'circle' | 'rounded' | 'square';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: AvatarClassKey;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Avatars](https://material-ui.com/components/avatars/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Avatar API](https://material-ui.com/api/avatar/)
|
||||
*/
|
||||
declare const Avatar: OverridableComponent<AvatarTypeMap>;
|
||||
|
||||
export type AvatarClassKey =
|
||||
| 'root'
|
||||
| 'colorDefault'
|
||||
| 'circle'
|
||||
| 'rounded'
|
||||
| 'square'
|
||||
| 'img'
|
||||
| 'fallback';
|
||||
|
||||
export type AvatarProps<
|
||||
D extends React.ElementType = AvatarTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<AvatarTypeMap<P, D>, D>;
|
||||
|
||||
export default Avatar;
|
||||
244
node_modules/@material-ui/core/Avatar/Avatar.js
generated
vendored
244
node_modules/@material-ui/core/Avatar/Avatar.js
generated
vendored
@@ -1,244 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _Person = _interopRequireDefault(require("../internal/svg-icons/Person"));
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
position: 'relative',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
flexShrink: 0,
|
||||
width: 40,
|
||||
height: 40,
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: theme.typography.pxToRem(20),
|
||||
lineHeight: 1,
|
||||
borderRadius: '50%',
|
||||
overflow: 'hidden',
|
||||
userSelect: 'none'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if not `src` or `srcSet`. */
|
||||
colorDefault: {
|
||||
color: theme.palette.background.default,
|
||||
backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="circle"`. */
|
||||
circle: {},
|
||||
|
||||
/* Styles applied to the root element if `variant="rounded"`. */
|
||||
rounded: {
|
||||
borderRadius: theme.shape.borderRadius
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="square"`. */
|
||||
square: {
|
||||
borderRadius: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the img element if either `src` or `srcSet` is defined. */
|
||||
img: {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
textAlign: 'center',
|
||||
// Handle non-square image. The property isn't supported by IE 11.
|
||||
objectFit: 'cover',
|
||||
// Hide alt text.
|
||||
color: 'transparent',
|
||||
// Hide the image broken icon, only works on Chrome.
|
||||
textIndent: 10000
|
||||
},
|
||||
|
||||
/* Styles applied to the fallback icon */
|
||||
fallback: {
|
||||
width: '75%',
|
||||
height: '75%'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
|
||||
function useLoaded(_ref) {
|
||||
var src = _ref.src,
|
||||
srcSet = _ref.srcSet;
|
||||
|
||||
var _React$useState = React.useState(false),
|
||||
loaded = _React$useState[0],
|
||||
setLoaded = _React$useState[1];
|
||||
|
||||
React.useEffect(function () {
|
||||
if (!src && !srcSet) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
setLoaded(false);
|
||||
var active = true;
|
||||
var image = new Image();
|
||||
image.src = src;
|
||||
image.srcSet = srcSet;
|
||||
|
||||
image.onload = function () {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
|
||||
setLoaded('loaded');
|
||||
};
|
||||
|
||||
image.onerror = function () {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
|
||||
setLoaded('error');
|
||||
};
|
||||
|
||||
return function () {
|
||||
active = false;
|
||||
};
|
||||
}, [src, srcSet]);
|
||||
return loaded;
|
||||
}
|
||||
|
||||
var Avatar = /*#__PURE__*/React.forwardRef(function Avatar(props, ref) {
|
||||
var alt = props.alt,
|
||||
childrenProp = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$component = props.component,
|
||||
Component = _props$component === void 0 ? 'div' : _props$component,
|
||||
imgProps = props.imgProps,
|
||||
sizes = props.sizes,
|
||||
src = props.src,
|
||||
srcSet = props.srcSet,
|
||||
_props$variant = props.variant,
|
||||
variant = _props$variant === void 0 ? 'circle' : _props$variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["alt", "children", "classes", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"]);
|
||||
var children = null; // Use a hook instead of onError on the img element to support server-side rendering.
|
||||
|
||||
var loaded = useLoaded({
|
||||
src: src,
|
||||
srcSet: srcSet
|
||||
});
|
||||
var hasImg = src || srcSet;
|
||||
var hasImgNotFailing = hasImg && loaded !== 'error';
|
||||
|
||||
if (hasImgNotFailing) {
|
||||
children = /*#__PURE__*/React.createElement("img", (0, _extends2.default)({
|
||||
alt: alt,
|
||||
src: src,
|
||||
srcSet: srcSet,
|
||||
sizes: sizes,
|
||||
className: classes.img
|
||||
}, imgProps));
|
||||
} else if (childrenProp != null) {
|
||||
children = childrenProp;
|
||||
} else if (hasImg && alt) {
|
||||
children = alt[0];
|
||||
} else {
|
||||
children = /*#__PURE__*/React.createElement(_Person.default, {
|
||||
className: classes.fallback
|
||||
});
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, classes.system, classes[variant], className, !hasImgNotFailing && classes.colorDefault),
|
||||
ref: ref
|
||||
}, other), children);
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Avatar.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Used in combination with `src` or `srcSet` to
|
||||
* provide an alt attribute for the rendered `img` element.
|
||||
*/
|
||||
alt: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
||||
* This can be an element, or just a string.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* Attributes applied to the `img` element if the component is used to display an image.
|
||||
* It can be used to listen for the loading error event.
|
||||
*/
|
||||
imgProps: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* The `sizes` attribute for the `img` element.
|
||||
*/
|
||||
sizes: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The `src` attribute for the `img` element.
|
||||
*/
|
||||
src: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The `srcSet` attribute for the `img` element.
|
||||
* Use this attribute for responsive image display.
|
||||
*/
|
||||
srcSet: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The shape of the avatar.
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['circle', 'rounded', 'square'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiAvatar'
|
||||
})(Avatar);
|
||||
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/Avatar/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/Avatar/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './Avatar';
|
||||
export * from './Avatar';
|
||||
15
node_modules/@material-ui/core/Avatar/index.js
generated
vendored
15
node_modules/@material-ui/core/Avatar/index.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Avatar.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Avatar = _interopRequireDefault(require("./Avatar"));
|
||||
5
node_modules/@material-ui/core/Avatar/package.json
generated
vendored
5
node_modules/@material-ui/core/Avatar/package.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Avatar/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
44
node_modules/@material-ui/core/Backdrop/Backdrop.d.ts
generated
vendored
44
node_modules/@material-ui/core/Backdrop/Backdrop.d.ts
generated
vendored
@@ -1,44 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { Omit, StandardProps } from '..';
|
||||
import { FadeProps } from '../Fade';
|
||||
import { TransitionProps } from '../transitions/transition';
|
||||
|
||||
export interface BackdropProps
|
||||
extends StandardProps<
|
||||
React.HTMLAttributes<HTMLDivElement> & Partial<Omit<FadeProps, 'children'>>,
|
||||
BackdropClassKey
|
||||
> {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the backdrop is invisible.
|
||||
* It can be used when rendering a popover or a custom select component.
|
||||
*/
|
||||
invisible?: boolean;
|
||||
/**
|
||||
* If `true`, the backdrop is open.
|
||||
*/
|
||||
open: boolean;
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*/
|
||||
transitionDuration?: TransitionProps['timeout'];
|
||||
}
|
||||
|
||||
export type BackdropClassKey = 'root' | 'invisible';
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Backdrop](https://material-ui.com/components/backdrop/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Backdrop API](https://material-ui.com/api/backdrop/)
|
||||
* - inherits [Fade API](https://material-ui.com/api/fade/)
|
||||
*/
|
||||
export default function Backdrop(props: BackdropProps): JSX.Element;
|
||||
117
node_modules/@material-ui/core/Backdrop/Backdrop.js
generated
vendored
117
node_modules/@material-ui/core/Backdrop/Backdrop.js
generated
vendored
@@ -1,117 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _Fade = _interopRequireDefault(require("../Fade"));
|
||||
|
||||
var styles = {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
// Improve scrollable dialog support.
|
||||
zIndex: -1,
|
||||
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'
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `invisible={true}`. */
|
||||
invisible: {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
};
|
||||
exports.styles = styles;
|
||||
var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
|
||||
var children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$invisible = props.invisible,
|
||||
invisible = _props$invisible === void 0 ? false : _props$invisible,
|
||||
open = props.open,
|
||||
transitionDuration = props.transitionDuration,
|
||||
_props$TransitionComp = props.TransitionComponent,
|
||||
TransitionComponent = _props$TransitionComp === void 0 ? _Fade.default : _props$TransitionComp,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "invisible", "open", "transitionDuration", "TransitionComponent"]);
|
||||
return /*#__PURE__*/React.createElement(TransitionComponent, (0, _extends2.default)({
|
||||
in: open,
|
||||
timeout: transitionDuration
|
||||
}, other), /*#__PURE__*/React.createElement("div", {
|
||||
className: (0, _clsx.default)(classes.root, className, invisible && classes.invisible),
|
||||
"aria-hidden": true,
|
||||
ref: ref
|
||||
}, children));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Backdrop.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* If `true`, the backdrop is invisible.
|
||||
* It can be used when rendering a popover or a custom select component.
|
||||
*/
|
||||
invisible: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* If `true`, the backdrop is open.
|
||||
*/
|
||||
open: _propTypes.default.bool.isRequired,
|
||||
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*/
|
||||
transitionDuration: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
||||
appear: _propTypes.default.number,
|
||||
enter: _propTypes.default.number,
|
||||
exit: _propTypes.default.number
|
||||
})])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiBackdrop'
|
||||
})(Backdrop);
|
||||
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/Backdrop/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/Backdrop/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './Backdrop';
|
||||
export * from './Backdrop';
|
||||
15
node_modules/@material-ui/core/Backdrop/index.js
generated
vendored
15
node_modules/@material-ui/core/Backdrop/index.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _Backdrop.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _Backdrop = _interopRequireDefault(require("./Backdrop"));
|
||||
5
node_modules/@material-ui/core/Backdrop/package.json
generated
vendored
5
node_modules/@material-ui/core/Backdrop/package.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "../esm/Backdrop/index.js",
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
85
node_modules/@material-ui/core/Badge/Badge.d.ts
generated
vendored
85
node_modules/@material-ui/core/Badge/Badge.d.ts
generated
vendored
@@ -1,85 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
||||
|
||||
export interface BadgeOrigin {
|
||||
vertical: 'top' | 'bottom';
|
||||
horizontal: 'left' | 'right';
|
||||
}
|
||||
|
||||
export interface BadgeTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
||||
props: P & {
|
||||
/**
|
||||
* The anchor of the badge.
|
||||
*/
|
||||
anchorOrigin?: BadgeOrigin;
|
||||
/**
|
||||
* Wrapped shape the badge should overlap.
|
||||
*/
|
||||
overlap?: 'rectangle' | 'circle';
|
||||
/**
|
||||
* The content rendered within the badge.
|
||||
*/
|
||||
badgeContent?: React.ReactNode;
|
||||
/**
|
||||
* The badge will be added relative to this node.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color?: 'primary' | 'secondary' | 'default' | 'error';
|
||||
/**
|
||||
* If `true`, the badge will be invisible.
|
||||
*/
|
||||
invisible?: boolean;
|
||||
/**
|
||||
* Max count to show.
|
||||
*/
|
||||
max?: number;
|
||||
/**
|
||||
* Controls whether the badge is hidden when `badgeContent` is zero.
|
||||
*/
|
||||
showZero?: boolean;
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant?: 'standard' | 'dot';
|
||||
};
|
||||
defaultComponent: D;
|
||||
classKey: BadgeClassKey;
|
||||
}
|
||||
|
||||
export type BadgeClassKey =
|
||||
| 'root'
|
||||
| 'badge'
|
||||
| 'colorPrimary'
|
||||
| 'colorSecondary'
|
||||
| 'colorError'
|
||||
| 'dot'
|
||||
| 'anchorOriginTopRightRectangle'
|
||||
| 'anchorOriginBottomRightRectangle'
|
||||
| 'anchorOriginTopLeftRectangle'
|
||||
| 'anchorOriginBottomLeftRectangle'
|
||||
| 'anchorOriginTopRightCircle'
|
||||
| 'anchorOriginBottomRightCircle'
|
||||
| 'anchorOriginTopLeftCircle'
|
||||
| 'invisible';
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Avatars](https://material-ui.com/components/avatars/)
|
||||
* - [Badges](https://material-ui.com/components/badges/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Badge API](https://material-ui.com/api/badge/)
|
||||
*/
|
||||
declare const Badge: OverridableComponent<BadgeTypeMap>;
|
||||
|
||||
export type BadgeProps<
|
||||
D extends React.ElementType = BadgeTypeMap['defaultComponent'],
|
||||
P = {}
|
||||
> = OverrideProps<BadgeTypeMap<P, D>, D>;
|
||||
|
||||
export default Badge;
|
||||
312
node_modules/@material-ui/core/Badge/Badge.js
generated
vendored
312
node_modules/@material-ui/core/Badge/Badge.js
generated
vendored
@@ -1,312 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = exports.styles = void 0;
|
||||
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
|
||||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
|
||||
var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
||||
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
|
||||
var RADIUS_STANDARD = 10;
|
||||
var RADIUS_DOT = 4;
|
||||
|
||||
var styles = function styles(theme) {
|
||||
return {
|
||||
/* Styles applied to the root element. */
|
||||
root: {
|
||||
position: 'relative',
|
||||
display: 'inline-flex',
|
||||
// For correct alignment with the text.
|
||||
verticalAlign: 'middle',
|
||||
flexShrink: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the badge `span` element. */
|
||||
badge: {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
flexWrap: 'wrap',
|
||||
justifyContent: 'center',
|
||||
alignContent: 'center',
|
||||
alignItems: 'center',
|
||||
position: 'absolute',
|
||||
boxSizing: 'border-box',
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
minWidth: RADIUS_STANDARD * 2,
|
||||
lineHeight: 1,
|
||||
padding: '0 6px',
|
||||
height: RADIUS_STANDARD * 2,
|
||||
borderRadius: RADIUS_STANDARD,
|
||||
zIndex: 1,
|
||||
// Render the badge on top of potential ripples.
|
||||
transition: theme.transitions.create('transform', {
|
||||
easing: theme.transitions.easing.easeInOut,
|
||||
duration: theme.transitions.duration.enteringScreen
|
||||
})
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
color: theme.palette.primary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="secondary"`. */
|
||||
colorSecondary: {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
color: theme.palette.secondary.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `color="error"`. */
|
||||
colorError: {
|
||||
backgroundColor: theme.palette.error.main,
|
||||
color: theme.palette.error.contrastText
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `variant="dot"`. */
|
||||
dot: {
|
||||
borderRadius: RADIUS_DOT,
|
||||
height: RADIUS_DOT * 2,
|
||||
minWidth: RADIUS_DOT * 2,
|
||||
padding: 0
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangle"`. */
|
||||
anchorOriginTopRightRectangle: {
|
||||
top: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangle"`. */
|
||||
anchorOriginBottomRightRectangle: {
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangle"`. */
|
||||
anchorOriginTopLeftRectangle: {
|
||||
top: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangle"`. */
|
||||
anchorOriginBottomLeftRectangle: {
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }} overlap="circle"`. */
|
||||
anchorOriginTopRightCircle: {
|
||||
top: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circle"`. */
|
||||
anchorOriginBottomRightCircle: {
|
||||
bottom: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }} overlap="circle"`. */
|
||||
anchorOriginTopLeftCircle: {
|
||||
top: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circle"`. */
|
||||
anchorOriginBottomLeftCircle: {
|
||||
bottom: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
'&$invisible': {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
},
|
||||
|
||||
/* Pseudo-class to the badge `span` element if `invisible={true}`. */
|
||||
invisible: {
|
||||
transition: theme.transitions.create('transform', {
|
||||
easing: theme.transitions.easing.easeInOut,
|
||||
duration: theme.transitions.duration.leavingScreen
|
||||
})
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.styles = styles;
|
||||
var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
|
||||
var _props$anchorOrigin = props.anchorOrigin,
|
||||
anchorOrigin = _props$anchorOrigin === void 0 ? {
|
||||
vertical: 'top',
|
||||
horizontal: 'right'
|
||||
} : _props$anchorOrigin,
|
||||
badgeContent = props.badgeContent,
|
||||
children = props.children,
|
||||
classes = props.classes,
|
||||
className = props.className,
|
||||
_props$color = props.color,
|
||||
color = _props$color === void 0 ? 'default' : _props$color,
|
||||
_props$component = props.component,
|
||||
ComponentProp = _props$component === void 0 ? 'span' : _props$component,
|
||||
invisibleProp = props.invisible,
|
||||
_props$max = props.max,
|
||||
max = _props$max === void 0 ? 99 : _props$max,
|
||||
_props$overlap = props.overlap,
|
||||
overlap = _props$overlap === void 0 ? 'rectangle' : _props$overlap,
|
||||
_props$showZero = props.showZero,
|
||||
showZero = _props$showZero === void 0 ? false : _props$showZero,
|
||||
_props$variant = props.variant,
|
||||
variant = _props$variant === void 0 ? 'standard' : _props$variant,
|
||||
other = (0, _objectWithoutProperties2.default)(props, ["anchorOrigin", "badgeContent", "children", "classes", "className", "color", "component", "invisible", "max", "overlap", "showZero", "variant"]);
|
||||
var invisible = invisibleProp;
|
||||
|
||||
if (invisibleProp == null && (badgeContent === 0 && !showZero || badgeContent == null && variant !== 'dot')) {
|
||||
invisible = true;
|
||||
}
|
||||
|
||||
var displayValue = '';
|
||||
|
||||
if (variant !== 'dot') {
|
||||
displayValue = badgeContent > max ? "".concat(max, "+") : badgeContent;
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement(ComponentProp, (0, _extends2.default)({
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref: ref
|
||||
}, other), children, /*#__PURE__*/React.createElement("span", {
|
||||
className: (0, _clsx.default)(classes.badge, classes["".concat(anchorOrigin.horizontal).concat((0, _capitalize.default)(anchorOrigin.vertical), "}")], classes["anchorOrigin".concat((0, _capitalize.default)(anchorOrigin.vertical)).concat((0, _capitalize.default)(anchorOrigin.horizontal)).concat((0, _capitalize.default)(overlap))], color !== 'default' && classes["color".concat((0, _capitalize.default)(color))], invisible && classes.invisible, variant === 'dot' && classes.dot)
|
||||
}, displayValue));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Badge.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the d.ts file and run "yarn proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The anchor of the badge.
|
||||
*/
|
||||
anchorOrigin: _propTypes.default.shape({
|
||||
horizontal: _propTypes.default.oneOf(['left', 'right']).isRequired,
|
||||
vertical: _propTypes.default.oneOf(['bottom', 'top']).isRequired
|
||||
}),
|
||||
|
||||
/**
|
||||
* The content rendered within the badge.
|
||||
*/
|
||||
badgeContent: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* The badge will be added relative to this node.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
* See [CSS API](#css) below for more details.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
|
||||
/**
|
||||
* The color of the component. It supports those theme colors that make sense for this component.
|
||||
*/
|
||||
color: _propTypes.default.oneOf(['default', 'error', 'primary', 'secondary']),
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: _propTypes.default
|
||||
/* @typescript-to-proptypes-ignore */
|
||||
.elementType,
|
||||
|
||||
/**
|
||||
* If `true`, the badge will be invisible.
|
||||
*/
|
||||
invisible: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* Max count to show.
|
||||
*/
|
||||
max: _propTypes.default.number,
|
||||
|
||||
/**
|
||||
* Wrapped shape the badge should overlap.
|
||||
*/
|
||||
overlap: _propTypes.default.oneOf(['circle', 'rectangle']),
|
||||
|
||||
/**
|
||||
* Controls whether the badge is hidden when `badgeContent` is zero.
|
||||
*/
|
||||
showZero: _propTypes.default.bool,
|
||||
|
||||
/**
|
||||
* The variant to use.
|
||||
*/
|
||||
variant: _propTypes.default.oneOf(['dot', 'standard'])
|
||||
} : void 0;
|
||||
|
||||
var _default = (0, _withStyles.default)(styles, {
|
||||
name: 'MuiBadge'
|
||||
})(Badge);
|
||||
|
||||
exports.default = _default;
|
||||
2
node_modules/@material-ui/core/Badge/index.d.ts
generated
vendored
2
node_modules/@material-ui/core/Badge/index.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
export { default } from './Badge';
|
||||
export * from './Badge';
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user